Courseiva
SDLC Automation →easyMultiple Choice

DOP-C02 SDLC Automation Practice Question

A development team uses AWS CodeCommit to store their application code. They want to enforce that all code changes to the main branch are reviewed and approved by at least one other team member before being merged. Which AWS service or feature should they use to implement this requirement?

⚠ Common exam trap

It's easy for candidates to confuse deployment approval (CodePipeline manual approval) with code review approval (CodeCommit approval rules), which serve different purposes.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

AWS CodeCommit approval rule templates

CodeCommit approval rule templates define the number of approvals required for a pull request to be merged. By applying a template to the repository, you can enforce that at least one approval is needed before merging into the main branch. This is the native feature for implementing mandatory code reviews in CodeCommit.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    AWS Identity and Access Management (IAM) policies

    Why it's wrong here

    IAM policies control access to CodeCommit actions, such as who can push or create branches. They cannot enforce that a pull request must be approved before merging. While you could restrict direct pushes to the main branch, you cannot use IAM to require an approval step in the pull request process.

  • ✗

    AWS CodePipeline manual approval action

    Why it's wrong here

    A manual approval action in CodePipeline pauses a pipeline for approval, but it does not prevent code from being merged into the main branch. It is used for deployment approvals, not for code review enforcement. Code can still be merged without approval, and the pipeline would only be triggered after the merge.

  • ✓

    AWS CodeCommit approval rule templates

    Why this is correct

    Approval rule templates in CodeCommit allow you to define the number of approvals required for a pull request to be merged. You can apply a template to a repository to enforce that at least one approval is needed before merging into the main branch. This directly meets the requirement for mandatory code review.

  • ✗

    AWS CodeCommit repository triggers

    Why it's wrong here

    Repository triggers in CodeCommit are used to send notifications or invoke Lambda functions in response to repository events like pushes. They do not enforce approval workflows or block merges. Triggers are for automation, not for access control or review enforcement. They cannot prevent a merge without approval.

About these practice questions

This DOP-C02 question is part of Courseiva's 1,298-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

This DOP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DOP-C02 exam.