Courseiva

DVA-C02 Retry on failed actions Practice Question

A company is using AWS CodePipeline to automate deployments. The pipeline has a source stage that retrieves code from an S3 bucket, a build stage using CodeBuild, and a deploy stage using CodeDeploy. The build stage sometimes fails due to intermittent network issues. Which TWO actions would make the pipeline more resilient to such failures?

⚠ Common exam trap

A common mistake is to assume that running multiple actions in parallel provides redundancy. In CodePipeline, all actions in a stage must succeed for the stage to succeed, so parallel execution does not make the pipeline resilient to a single action's transient failure. Retry logic is the correct mechanism for handling intermittent failures.

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

✓

Enable retry on the build stage to automatically attempt the build again on failure.

Option A is correct because CodePipeline supports automatic stage retry, which re-runs the failed build stage (including its CodeBuild action) after an intermittent network failure, allowing transient issues to resolve without manual intervention. Option D is incorrect because CodePipeline does not allow a stage to succeed when only one of several parallel actions succeeds; all actions in a stage must succeed for the stage to succeed, so running multiple build actions in parallel does not provide redundancy against transient failures and only adds complexity. Option B is incorrect because changing the artifact S3 bucket does not address intermittent network failures during the build. Option C is incorrect because a manual approval stage only pauses the pipeline for human review and does not automatically recover from network-related build failures. Option E is incorrect because switching the source repository to CodeCommit does not make the CodeBuild stage resilient to intermittent network issues.

Answer analysis

Option-by-option breakdown

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

  • ✓

    Enable retry on the build stage to automatically attempt the build again on failure.

    Why this is correct

    CodePipeline supports automatic retry on failed actions. Enabling retry on the build stage automatically re-runs the build if it fails due to transient network issues, improving resilience.

  • ✗

    Store build artifacts in a different S3 bucket.

    Why it's wrong here

    Storing artifacts in a different S3 bucket does not address the intermittent network issue causing build failures; it only changes storage location.

  • ✗

    Add a manual approval stage before the build stage.

    Why it's wrong here

    Adding a manual approval stage before the build stage would introduce a manual gate, which does not automatically recover from network failures and could delay the pipeline.

  • ✗

    Configure the build stage to run multiple build actions in parallel.

    Why it's wrong here

    Configuring the build stage to run multiple build actions in parallel provides redundancy. If one build fails due to a network issue, another parallel build can succeed, provided the stage is set to succeed if any action succeeds.

  • ✗

    Use a different source repository, such as CodeCommit.

    Why it's wrong here

    Changing the source repository to CodeCommit does not address build stage network issues. The build stage itself still runs in CodeBuild and is subject to the same network conditions.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

One of 1,135 original DVA-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.