Question 765 of 1,740
SDLC AutomationmediumMultiple SelectObjective-mapped

Quick Answer

The answer is using AWS CodePipeline with a source stage that polls CodeCommit for changes and triggers a build stage, along with configuring AWS CodeBuild to automatically run tests when a pull request is created in CodeCommit. These are valid strategies because they enforce continuous integration by automatically building and testing code upon every commit or pull request, ensuring that only validated code is merged into the main branch. On the AWS Certified DevOps Engineer Professional DOP-C02 exam, this concept tests your understanding of how to automate the integration pipeline using event-driven triggers versus manual polling, with a common trap being to confuse manual approval gates with CI triggers. A key memory tip is to remember that CI is about automation before merge, not after—so think "CodePipeline + CodeBuild = auto-test on push or PR."

DOP-C02 CI strategies AWS Practice Question

This DOP-C02 practice question tests your understanding of sdlc automation. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Which of the following are valid strategies for implementing continuous integration in AWS? (Choose two.)

Question 1mediummulti select
Full question →

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

Configure AWS CodeBuild to automatically run tests when a pull request is created in CodeCommit.

Option A is correct because AWS CodeBuild can be configured to automatically run tests when a pull request is created in CodeCommit using a webhook or event rule. This enables continuous integration by validating code changes before merging, ensuring that only tested code is integrated into the main branch.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Set up AWS CodeDeploy to trigger a build every time a commit is pushed to a repository.

    Why it's wrong here

    CodeDeploy is for deployment, not building or testing.

  • Use AWS CloudFormation to create a stack that runs tests every time a new commit is pushed.

    Why it's wrong here

    CloudFormation is for infrastructure as code, not for running tests.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The DOP-C02 exam frequently reuses these exact scenarios with slightly different constraints.

Configure AWS CodeBuild to automatically run tests when a pull request is created in CodeCommit.Correct answer
Set up AWS CodeDeploy to trigger a build every time a commit is pushed to a repository.Wrong answer — click to see why

Why this is wrong here

CodeDeploy is for deployment, not building or testing.

Use AWS CloudFormation to create a stack that runs tests every time a new commit is pushed.Wrong answer — click to see why

Why this is wrong here

CloudFormation is for infrastructure as code, not for running tests.

Analysis generated from the official DOP-C02blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is confusing deployment services (CodeDeploy) and infrastructure provisioning (CloudFormation) with CI build triggers, leading candidates to select options that sound plausible but lack the specific capability to initiate a build or run tests.

Detailed technical explanation

How to think about this question

Under the hood, AWS CodeBuild integrates with CodeCommit via event-based triggers (e.g., Amazon CloudWatch Events or CodeCommit repository triggers) that invoke a build project on pull request creation or code push. CodePipeline, on the other hand, uses a source stage that polls CodeCommit for changes (or uses webhooks) and then passes the artifact to a build stage, enabling a fully managed CI/CD pipeline. In real-world scenarios, combining CodePipeline with CodeBuild allows for parallel test execution and artifact versioning, which is essential for maintaining code quality in multi-branch workflows.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related DOP-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free DOP-C02 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this DOP-C02 question test?

SDLC Automation — This question tests SDLC Automation — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Configure AWS CodeBuild to automatically run tests when a pull request is created in CodeCommit. — Option A is correct because AWS CodeBuild can be configured to automatically run tests when a pull request is created in CodeCommit using a webhook or event rule. This enables continuous integration by validating code changes before merging, ensuring that only tested code is integrated into the main branch.

What should I do if I get this DOP-C02 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.