DOP-C02 Configuration Management and IaC Practice Question
Network Topology
A DevOps engineer runs these commands to investigate a failed CloudFormation stack creation. The stack status is ROLLBACK_COMPLETE and the most recent event shows CREATE_FAILED. What should the engineer do next to identify the root cause?
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
✓
Run describe-stack-events with a filter to see the ResourceStatusReason for the CREATE_FAILED event.
The correct next step is to run describe-stack-events with a filter to see the ResourceStatusReason for the CREATE_FAILED event (Option C). Describe-stack-events returns all events for the stack, and each event includes a ResourceStatusReason that explains why the resource creation failed. This is the most direct way to identify the root cause. Option A is wrong because update-stack cannot recreate a stack that has rolled back; it would attempt an update on a failed stack, which is not appropriate. Option B is wrong because describe-stacks does not include failure reasons; it only shows stack status and parameters. Option D is wrong because deleting and recreating the stack would lose the current events and not provide the failure reason from the original creation attempt.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Run update-stack to recreate the stack and examine the error.
Why it's wrong here
Not needed; the error is in the events.
- ✗
Run describe-stacks with additional query to get the StackStatusReason.
Why it's wrong here
StackStatusReason may be empty; events have detailed reason.
- ✓
Run describe-stack-events with a filter to see the ResourceStatusReason for the CREATE_FAILED event.
Why this is correct
The ResourceStatusReason field contains the error message.
- ✗
Run delete-stack and recreate with debugging enabled.
Why it's wrong here
Inefficient; information is already available.
Go deeper
Related to this question
About these practice questions
Courseiva writes every DOP-C02 question from scratch — 1,339 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.