QuestionQ62

VerifiedSecurity and Compliance

A company’s application teams use AWS CodeCommit repositories for their applications. The application teams maintain repositories in multiple AWS accounts. All accounts belong to an organization in AWS Organizations.

Each application team uses AWS IAM Identity Center (AWS Single Sign-On), configured with an external IdP, to assume a developer IAM role. The developer role permits the application teams to use Git to work with code in the repositories.

A security audit finds that the application teams can modify the main branch in any repository. A DevOps engineer must implement a solution that lets the application teams modify the main branch only in the repositories they manage.

Which combination of steps meets these requirements?

Choose three
Explanation

A SAML-provided access-team session tag makes the team identity available as aws:PrincipalTag/access-team, while an access-team tag on each CodeCommit repository identifies its managing team. An SCP can apply an organization-wide explicit deny to main-branch write operations when the principal tag and repository tag do not match, overriding the broad existing developer-role permissions. CodeCommit supports tag-based authorization and its GitPush action supports the codecommit:References condition key for branch-specific restrictions.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!