Topic: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

A company's application teams use AWS CodeCommit repositories for their applications. The application teams have repositories in multiple AWS accounts. All accounts are in 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 allows the application teams to use Git to work with the code in the repositories.

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

Which combination of steps will meet these requirements? (Choose three.)

A.
Update the SAML assertion to pass the user's team name. Update the IAM role's trust policy to add an access-team session tag that has the team name.
B.
Create an approval rule template for each team in the Organizations management account. Associate the template with all the repositories. Add the developer role ARN as an approver.
C.
Create an approval rule template for each account. Associate the template with all repositories. Add the "aws:ResourceTag/access-team": "$ ;{aws:PrincipalTag/access-team}" condition to the approval rule template.
D.
For each CodeCommit repository, add an access-team tag that has the value set to the name of the associated team.
E.
Attach an SCP to the accounts. Include the following statement:
F.
Create an IAM permissions boundary in each account. Include the following statement:

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

ADE for me

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

ADE seems more appropriate

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

ADF, 100%

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

Correction, its ADE:
Permissions boundaries (Option F) are more granular and would be set on each IAM role individually. While they could achieve a similar effect, they are not as broad in scope as SCPs and would require setting up on every IAM role, which could be less efficient than a blanket policy across the organization with an SCP

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

A D E
There no mention of an approval step being needed so rules out B & C. and F is an allow policy not deny

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

ACE
reference for option c
https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-create-template.html

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

A- SAML Assertion
D - Tag the resource
E - Will work with D above ad condition is based on resource tag

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

adf -> correct

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

isn't ADF? " Attach an SCP to the accounts. Include the following statement:" scp are for the organizations no?

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

i think . adf~

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

I will go with ADE

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

ACE are correct:
A: < IAM Identity Center (AWS Single Sign-On) configured with an external IdP> means we need SAML
C and E are just similar with "aws:ResourceTag/access-team": "$ ;{aws:PrincipalTag/access-team}" condition

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

Go For ADE, We don't need approval Rule here, And we use organizations, that's why SCP

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

As far as I know, the approval rule templates are designed to manage pull requests, not direct pushes to branches.

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

question sounds like ABAC assessment: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_abac-saml.html

approval rule templates are good to audit pull requests and if the developer is the repo owner, he/she is free to do anything.

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

edit: ADE

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

Answer is A, C, & E.

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 190

Tricky question, I'll go with A C E