DVA-C02 Troubleshooting and Optimization Practice Question
A developer is troubleshooting an AWS CloudFormation stack that failed to create. The error message says 'The following resource(s) failed to create: [MyEC2Instance]'. What is the first step the developer should take?
⚠ Common exam trap
The trap here is that candidates often jump to fixing the template or retrying the stack, overlooking that the specific error details are available in the stack events, which is the fastest path to identifying the actual 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
✓
View the stack events in the CloudFormation console to see the specific error for the resource.
When a CloudFormation stack fails to create, the error message only indicates which resource failed, not why. The first troubleshooting step is to view the stack events in the CloudFormation console, which provides detailed error messages for each resource, such as an API call failure, insufficient permissions, or a resource limit exceeded. This allows the developer to diagnose the root cause before making any changes.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Update the stack with a new template.
Why it's wrong here
If a CloudFormation stack fails during its initial CREATE_IN_PROGRESS phase and transitions to CREATE_FAILED, it does not reach a stable CREATE_COMPLETE state. In this scenario, the stack is considered to be in a rollback or unstable state, which prevents any UpdateStack operations. An update operation requires an existing, successfully created stack as its baseline, which is not the case when the initial creation has failed.
- ✗
Delete the stack and try again.
Why it's wrong here
Deleting a CREATE_FAILED stack will remove all resources that were successfully created and then rolled back, along with the stack's metadata. While this clears the environment, it provides no diagnostic information regarding *why* the initial creation failed. The primary goal in troubleshooting is to identify the root cause, which deleting the stack actively prevents by removing the evidence of the failure.
- ✗
Review the CloudFormation template for syntax errors.
Why it's wrong here
CloudFormation performs a template validation step before attempting to provision any resources. If the template contained syntax errors (e.g., malformed YAML/JSON, incorrect intrinsic function usage), the stack creation would fail almost immediately during the CREATE_IN_PROGRESS phase with a "Template validation failed" error, often before any resources are even attempted. The question implies a resource *creation* failure, indicating the template itself was syntactically valid.
- ✓
View the stack events in the CloudFormation console to see the specific error for the resource.
Why this is correct
The CloudFormation console's "Events" tab provides a chronological log of every action taken by the stack, including resource creation attempts, status changes, and, critically, any errors encountered. When a resource fails to create, CloudFormation logs a specific CREATE_FAILED event for that resource, often including the underlying AWS service error message (e.g., "User is not authorized to perform this operation," "The specified S3 bucket already exists"). This detailed information is essential for diagnosing the exact cause of the failure.
Go deeper
Related to this question
About these practice questions
One of 724 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.