Courseiva
Question 102 of 724
DeploymenthardMultiple ChoiceObjective-mapped

DVA-C02 Deployment Practice Question

A developer is using AWS CodePipeline with multiple actions in a stage. The pipeline has a build action that produces artifacts, followed by a deploy action. The developer wants to ensure that if the deploy action fails, the pipeline stops and does not continue to the next stage. How can they achieve this?

⚠ Common exam trap

The trap here is that candidates may overthink and assume they need to configure a special failure behavior, when in fact the default sequential pipeline execution already stops on any action failure.

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 additional configuration is needed; the pipeline stops on failure by default.

AWS CodePipeline stages are sequential by default: if any action within a stage fails, the entire stage fails and the pipeline stops, preventing execution of subsequent stages. No additional configuration is needed to halt the pipeline on a deploy action failure, as this is the inherent behavior of a pipeline stage with multiple actions.

Answer analysis

Option-by-option breakdown

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

  • Configure the deploy action to 'Abort' on failure.

    Why it's wrong here

    Configuring a CodePipeline action with an explicit 'Abort' on failure setting is not a valid or available option within the AWS CodePipeline service. CodePipeline actions do not expose a direct configuration parameter to dictate their individual failure response in this manner. Instead, the pipeline itself has an inherent default behavior to halt the entire execution upon any action failure, preventing subsequent stages from running.

  • Set the runOrder for the deploy action to 'Blocked'.

    Why it's wrong here

    The `runOrder` parameter in AWS CodePipeline is used to specify the sequential execution order of actions *within the same stage*, not to control how the pipeline reacts to a failure. It accepts an integer value, determining which action runs first, second, and so on, if multiple actions are configured in a stage. Setting `runOrder` to a non-numeric value like 'Blocked' is invalid and would not influence the pipeline's default failure handling mechanism.

  • No additional configuration is needed; the pipeline stops on failure by default.

    Why this is correct

    AWS CodePipeline is designed to inherently stop the entire pipeline execution immediately upon the failure of any action within any stage. This default behavior is crucial for maintaining the integrity of the CI/CD process, preventing the deployment of potentially faulty code or artifacts to subsequent environments. No explicit configuration is required to enable this safety mechanism, as it is a fundamental aspect of CodePipeline's operational design.

  • Set the pipeline's execution mode to 'PARALLEL'.

    Why it's wrong here

    The `executionMode` parameter for an AWS CodePipeline primarily dictates how multiple *pipeline executions* are handled concurrently, such as allowing parallel runs of different source changes. Setting it to 'PARALLEL' enables multiple pipeline executions to proceed simultaneously, rather than queuing them up. This configuration has no direct impact on how a *single* pipeline execution responds when one of its constituent actions fails; the default stop-on-failure behavior remains unaffected regardless of the execution mode.

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: Jul 4, 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 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.