Question 1,557 of 724
DVA-C02 Deployment Practice Question
A developer is using AWS CodePipeline to deploy a web application. The pipeline has stages: Source, Build, Staging Deploy, Staging Test, and Prod Deploy. The developer wants to ensure that if the Staging Test stage fails, the pipeline automatically stops and does not proceed to Prod Deploy. Which action should the developer take?
⚠ Common exam trap
The trap here is that candidates may overthink the solution and assume additional configuration is needed, when in fact CodePipeline's default behavior already stops on stage failure, making options like manual approval or disabling transitions unnecessary.
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
✓
No action is needed; CodePipeline automatically stops on stage failure
AWS CodePipeline's default behavior is to stop execution when a stage fails, preventing the pipeline from proceeding to subsequent stages. When the Staging Test stage fails, the pipeline transitions to a 'Failed' status and does not automatically continue to Prod Deploy. No additional configuration is required for this behavior.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
No action is needed; CodePipeline automatically stops on stage failure
Why this is correct
AWS CodePipeline is inherently designed to halt execution when any action within a stage fails, causing the entire stage to be marked as failed. This default behavior prevents the pipeline from automatically transitioning to subsequent stages, ensuring that faulty code or configurations do not progress further into environments like staging or production. Therefore, no explicit configuration is needed to stop the pipeline on stage failure; it is a built-in safety mechanism.
- ✗
Add a manual approval step before Prod Deploy
Why it's wrong here
Adding a manual approval step is intended to introduce a deliberate human gate in the pipeline, requiring explicit consent before proceeding to the next stage, typically for successful deployments. Its purpose is not to handle or prevent progression due to a stage failure. Since CodePipeline already stops automatically when a stage fails, introducing a manual approval step specifically for this scenario is redundant and does not address the core issue of a failed deployment.
- ✗
Disable the transition from Staging Test to Prod Deploy
Why it's wrong here
Disabling a transition between stages prevents the pipeline from automatically moving from the preceding stage to the subsequent one, regardless of the preceding stage's outcome. This action effectively requires manual intervention to release the transition for every deployment. However, CodePipeline's default behavior already ensures that progression is stopped if a stage fails, making this configuration unnecessary for the goal of halting on failure. Disabling a transition is typically used when permanent manual gating is desired.
- ✗
Configure the pipeline execution mode to 'Superseded'
Why it's wrong here
The pipeline execution mode, such as 'Superseded' or 'Queued', governs how CodePipeline manages multiple concurrent executions triggered by new source changes. 'Superseded' mode dictates that a new execution will cancel and replace any currently running execution. This setting, however, has no bearing on how a single pipeline execution reacts to a stage failure. A stage failure will still cause that specific execution to halt, irrespective of whether new executions are superseding older ones.
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 →
Last reviewed: Jun 11, 2026
This DVA-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 DVA-C02 exam.
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.
Sign in to join the discussion.