Ways to Federate users to access aws?

In a question on tutorials dojo - a question came up on how users in Corporate network can access AWS (no mention of SAML 2.0) - amongst the answer choices (1) & (3) were indicated as correct.

(1) is definitely right - However, I’ve been searching AWS documentation on (2) vs (3)-> I had picked (2) because You can create a Custom Identity Broker which calls STS.AssumeRole on behalf of the application and hands off the credentials to the application which is in the AWS documentation. However the correct answer picks (3). I have not found any documentation where the “application first authenticates against LDAP to retrieve the name of an IAM role associated with the user. It then assumes that role via a call to IAM Security Token Service (STS)”. (1) and (2) can be found here .

  • (1) Authenticate against LDAP using an identity broker you created, and have it call IAM Security Token Service (STS) to retrieve IAM federated user credentials. The application then gets the IAM federated user credentials from the identity broker to access the appropriate S3 bucket.
  • (2) Create an identity broker that assumes an IAM role, and retrieve temporary AWS security credentials via IAM Security Token Service (STS). The application gets the AWS temporary security credentials from the identity broker to gain access to the appropriate S3 bucket
  • (3) The application first authenticates against LDAP to retrieve the name of an IAM role associated with the user. It then assumes that role via a call to IAM Security Token Service (STS). Afterward, the application can now use the temporary credentials from the role to access the appropriate S3 bucket.

Can someone point out where does AWS say an app can directly auth against LDAP WITHOUT an Identity Broker and thus validate (3) is right? And thus why (2) is wrong?


Related discussions:

You probably need to post the whole question as AWS cert questions have keywords and loaded sentences that are used to exclude correct or plausibly correct answers from the set. The questions are designed to have conditional phrases in them that you use to rule out answers and thus zero down to the one they want you to choose.

There will be some sort of reason why #2 is “wrong” – either from a technical perspective or because one of the conditional phrases in the question rules it out. The key difference in #2 and #3 to me seems to be which entity is assuming the role, maybe that was mentioned somehow in the question?

thanks - i was putting it in but the post was becoming very verbose. Ive put it back in… I was more curious on the actual solution in (2) which they’re saying is a valid solution (regardless of the question) → can an application actually auth against LDAP directly without an IdP broker? Ive not seen any arch diagram or resource that shows this architecture