DVA-C02 Troubleshooting and Optimization Practice Question
A developer is troubleshooting an AWS CloudFormation stack creation failure. The stack creation failed with the error: 'Resource creation cancelled'. What does this error typically indicate?
⚠ Common exam trap
DVA-C02 often tests whether candidates recognize that 'Resource creation cancelled' is a downstream symptom of rollback, not a root-cause error — candidates incorrectly blame IAM or syntax instead of finding the first resource that actually failed.
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
✓
Another resource in the stack failed, causing a rollback.
'Resource creation cancelled' is CloudFormation's generic message when a resource's creation is aborted because another resource in the same stack failed and CloudFormation initiated a rollback. By default, stack creation uses rollback-on-failure, so once any resource fails, all in-progress creations are cancelled and successfully created resources are deleted. The error is a symptom of a sibling resource failure, not a problem with the cancelled resource itself.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The IAM user does not have permission to create the resource.
Why it's wrong here
If the IAM principal (user or role) executing the CloudFormation stack lacks the necessary permissions to create a specific AWS resource, the operation would fail with an explicit "Access Denied" error. This error typically occurs when CloudFormation attempts to make an API call to the underlying AWS service on behalf of the principal and is rejected due to policy restrictions. The "Resource creation cancelled" status does not indicate a direct permissions failure but rather a termination due to a broader stack event.
- ✓
Another resource in the stack failed, causing a rollback.
Why this is correct
When a CloudFormation stack creates multiple resources, these operations often occur in parallel or a defined sequence. If one resource fails to create or update successfully, CloudFormation's default behavior is to initiate a rollback of the entire stack to its previous stable state. During this rollback, any resources that were in the process of being created or updated, but had not yet failed themselves, will have their operations terminated, resulting in a "Resource creation cancelled" status. This indicates an orchestrated termination rather than an individual resource failure.
- ✗
The template has a syntax error.
Why it's wrong here
CloudFormation performs a thorough validation of the template's syntax and structure before attempting to provision any resources. If the template contains a syntax error (e.g., malformed JSON/YAML, incorrect intrinsic function usage), the stack creation process would fail immediately during this validation phase. The error message would clearly state a "Template validation error" or similar, preventing any resource creation attempts, thus not leading to a "Resource creation cancelled" status.
- ✗
The resource type is not supported by CloudFormation.
Why it's wrong here
If CloudFormation encounters a resource type it does not recognize or support (e.g., a typo in the type, or a service not integrated), the stack creation would fail during the initial validation or very early in the provisioning process. The error message would explicitly indicate an "Unsupported resource type" or "Invalid resource type," not "Resource creation cancelled," which implies an operation was initiated but then terminated due to an external factor.
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 and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint
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.