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
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
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 →
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.