DOP-C02 Configuration Management and IaC Practice Question
A DevOps team uses AWS CodePipeline to deploy a web application. They notice that the deployment stage fails intermittently due to a missing configuration file. Which troubleshooting step should they take first?
⚠ Common exam trap
The trap here is that candidates may jump to verifying CodeDeploy settings (Option D) because the failure occurs in the deployment stage, but the root cause is a missing configuration file that should have been produced or included earlier in the pipeline, making build logs the correct first diagnostic step.
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
✓
Review the build logs in AWS CodeBuild to identify the error.
The deployment stage fails intermittently due to a missing configuration file. The first troubleshooting step should be to review the build logs in AWS CodeBuild, because CodeBuild generates detailed logs that capture the exact error message, including file paths and missing configuration details. This allows the team to pinpoint the root cause without making unnecessary changes to the pipeline or deployment group settings.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Switch to AWS CodeBuild for the deployment stage.
Why it's wrong here
Switching to AWS CodeBuild for the deployment stage is a misdirected change rather than a diagnostic step. CodeBuild is designed for compiling and running tests, not for performing deployments; using it to replace your deployment action would require you to manually script release logic and still gives you no insight into why the current pipeline failed. You should instead inspect the logs from the failing action to obtain the actual error.
- ✓
Review the build logs in AWS CodeBuild to identify the error.
Why this is correct
Reviewing the build logs in AWS CodeBuild directly surfaces the compile-time or test-time error that caused the pipeline action to fail. CodeBuild logs are stored in CloudWatch Logs (and optionally S3), showing the full output of each build phase, including command execution, environment setup, and the exact error message and exit code. This is the fastest, most authoritative way to identify the root cause of a build-phase failure.
- ✗
Recreate the pipeline with the same configuration to see if the issue repeats.
Why it's wrong here
Recreating the pipeline with the same configuration is a blind troubleshooting technique that often wastes time and can create duplicate resources. If the failure is deterministic, the new pipeline will fail identically without any additional diagnostic detail; if it happens to succeed, you still don't know what fixed it, so the original issue remains unaddressed. Pipeline behavior depends on code revisions, environment variables, and external dependencies, so re-running the same definition doesn't isolate the variable that changed.
- ✗
Verify the deployment group settings in AWS CodeDeploy.
Why it's wrong here
Verifying the deployment group settings in AWS CodeDeploy looks at the wrong stage because the pipeline failed in its build phase, before any deployment can execute. CodeDeploy deployment groups control how traffic is shifted and which EC2/Lambda targets receive the application, but they are irrelevant to a build failure, which occurs during compilation, unit tests, or artifact creation. You should instead inspect the build action's execution details to see the specific step and error message.
Go deeper
Related to this question
About these practice questions
Courseiva writes every DOP-C02 question from scratch — 1,298 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.