DOP-C02 · Question #121
DOP-C02 Question #121: Real Exam Question with Answer & Explanation
Sign in or unlock DOP-C02 to reveal the answer and full explanation for question #121. The question stem and answer options stay visible for context.
Question
A company uses AWS CodeCommit for source code control. Developers apply their changes to various feature branches and create pull requests to move those changes to the main branch when the changes are ready for production. The developers should not be able to push changes directly to the main branch. The company applied the AWSCodeCommitPowerUser managed policy to the developers' IAM role, and now these developers can push changes to the main branch directly on every repository in the AWS account. What should the company do to restrict the developers' ability to push changes to the main branch directly?
Options
- ACreate an additional policy to include a Deny rule for the GitPush and PutFile actions. Include a
- BRemove the IAM policy, and add an AWSCodeCommitReadOnly managed policy. Add an Allow rule
- CModify the IAM policy. Include a Deny rule for the GitPush and PutFile actions for the specific
- DCreate an additional policy to include an Allow rule for the GitPush and PutFile actions. Include a
Unlock DOP-C02 to see the answer
You've previewed enough free DOP-C02 questions. Unlock DOP-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.