An external CI service issues OpenID Connect tokens containing repository and branch claims. A deployment pipeline must obtain temporary AWS credentials only for an approved repository and branch; which approach should the engineer use?
Show the answer
Correct answerB. Configure an IAM OIDC provider and condition the role's trust on token claims.
AWhy not this: A SAML provider expects SAML assertions and does not consume the service's OIDC tokens.
BWhy this is right: OIDC federation supports temporary role credentials, and trust conditions can restrict the repository and branch claims.
CWhy not this: IAM Identity Center account assignments target users and groups, not CI repository identities.
DWhy not this: Rotating access keys still requires managing IAM user credentials and does not validate the issued token claims.
An IAM OIDC provider lets the pipeline exchange its token for temporary role credentials, with trust-policy conditions restricting accepted claims. SAML federation requires SAML assertions, not the OIDC tokens issued by this service.