Course menuDOP-C02

Exams / DOP-C02 / Federation and IAM Identity Center / Question 2

DOP-C02 practice question: Federation and IAM Identity Center (2 of 2)

Security and Compliance A free question from our original DOP-C02 practice exam. Try it, then open the answer to see why each option is right or wrong.

Last verified against current AWS documentation ·How we write our questions

An airline's engineering teams deploy services from GitHub Actions workflows into AWS accounts. The current workflows use long-lived access keys stored as GitHub secrets, and the security team has asked for those keys to be removed.

Deployment roles must trust only the approved repository and the main branch, and no access keys may be stored outside AWS. Engineers also need console access that follows their membership in directory groups, which the airline manages in its corporate directory.

Which TWO actions meet these requirements? (Choose two.)

Choose two answers.

  1. A. Create an IAM user for each workflow, store its access key in a secrets manager that the workflows read, and rotate the key every month with a scheduled Lambda function.
  2. B. Create an IAM OIDC identity provider for GitHub, and a deployment role whose trust policy checks the token's subject claim against the approved repository and the main branch.
  3. C. Give every engineer a shared IAM user with console access and an MFA device, and let the engineers record the account in their own password manager.
  4. D. Assign IAM Identity Center permission sets to groups synchronized from the corporate directory, so that each engineer's console access follows the group membership in the directory.
  5. E. Use IAM Roles Anywhere for the workflows, with an X.509 certificate and its private key stored as GitHub secrets, and a trust anchor that maps the certificate to the deployment role.
Show the answer and explanation

Answers: B, D

Explanation

An IAM OIDC identity provider for GitHub lets a workflow exchange a short-lived token for role credentials, and a trust policy condition on the token's subject limits which repository and branch can assume the role, so no secrets are stored. Identity Center permission sets assigned to directory groups make console access follow group membership. Stored keys, certificates kept in GitHub and shared users each break a requirement.

Study

Keep practicing

Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.

Want more on Federation and IAM Identity Center? The 5 full-length practice sets have 9 more Federation and IAM Identity Center questions, 375 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets