nerdexam
Amazon

SAP-C02 · Question #722

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…

The correct answer is B. Create an IAM OpenID Connect (OIDC) identity provider (IdP) in AWS Identity and Access. https://aws.amazon.com/blogs/devops/integrating-with-github-actions-ci-cd-pipeline-to-deploy-a- web-app-to-amazon-ec2/

Submitted by kim_seoul· Mar 6, 2026Continuous Improvement for Existing Solutions

Question

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?

Options

  • ACreate an IAM SAML 2.0 identity provider (IdP) in AWS Identity and Access Management (IAM).
  • BCreate an IAM OpenID Connect (OIDC) identity provider (IdP) in AWS Identity and Access
  • CCreate an Amazon Cognito identity pool. Configure the authentication provider to use GitHub.
  • DCreate a trust anchor to AWS Private Certificate Authority. Generate a client certificate to use with

How the community answered

(32 responses)
  • A
    6% (2)
  • B
    81% (26)
  • C
    3% (1)
  • D
    9% (3)

Explanation

https://aws.amazon.com/blogs/devops/integrating-with-github-actions-ci-cd-pipeline-to-deploy-a- web-app-to-amazon-ec2/

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice