AWS Certified Solutions Architect – Professional (SAP-C02) — Question 450

A company is using GitHub Actions to run a CI/CD pipeline that accesses resources on AWS. The company has an IAM user that uses a secret key in the pipeline to authenticate to AWS. An existing IAM role with an attached policy grants the required permissions to deploy resources.

The company’s security team implements a new requirement that pipelines can no longer use long-lived secret keys. A solutions architect must replace the secret key with a short-lived solution.

Which solution will meet these requirements with the LEAST operational overhead?

Answer options

Correct answer: B

Explanation

Configuring an IAM OpenID Connect (OIDC) identity provider is the standard, secure, and lowest-overhead method for integrating GitHub Actions with AWS. It allows GitHub to exchange short-lived OIDC tokens for temporary AWS credentials using the sts:AssumeRoleWithWebIdentity API call. Other options, such as SAML, Amazon Cognito, or AWS IAM Roles Anywhere, require significantly more configuration, certificate management, or external infrastructure, resulting in higher operational overhead.