Question 484:
Your team uses AWS CodeCommit to manage the source code. Recently, some incorrect code has been merged to the master branch and caused application issues. The related pull requests were approved by some junior developers. You need to create an approval rule to require that the approvals for a pull request must come from the IAM users of senior developers. This approval rule should be applied to all existing CodeCommit repositories. How would you achieve this requirement?
Answer options:
A.Create an approval rule template in CodeCommit, add the IAM users of senior developers in “Approval pool members” and associate the template with all CodeCommit repositories. B.Create a pull request template in CodeCommit and only allow the IAM users of senior developers to approve. Use the pull request template for any new pull request. C.For the IAM users of senior developers, add an IAM policy to allow the "codecommit:UpdatePullRequestApprovalState" action. D.For the IAM users of senior developers, add the AWSCodeCommitPowerUser managed policy. Make sure that other IAM users are not permitted to perform the "codecommit:CreatePullRequest" action.