SAP-C02 Design for New Solutions Practice Question
Network Topology
Refer to the exhibit. A CloudFormation stack creation failed. The architect needs to identify the reason for the failure. Which CLI command should be used to get detailed error messages?
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
✓
aws cloudformation describe-stack-events --stack-name my-stack
The 'describe-stack-events' command provides detailed events including error messages, which can be used to identify reasons for stack creation failure. Option A is incorrect because 'describe-stacks' only shows the stack status and output, not detailed error messages. Option C is incorrect because 'get-template' retrieves the template body, not events. Option D is incorrect because 'list-stack-resources' lists resources, not events or errors.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
aws cloudformation describe-stacks --stack-name my-stack
Why it's wrong here
Incorrect. 'describe-stacks' only shows the stack status and output, not detailed error messages.
- ✓
aws cloudformation describe-stack-events --stack-name my-stack
Why this is correct
Correct. 'describe-stack-events' provides detailed events including error messages, which are useful for troubleshooting stack failures.
- ✗
aws cloudformation get-template --stack-name my-stack
Why it's wrong here
Incorrect. 'get-template' retrieves the template body, not events or error messages.
- ✗
aws cloudformation list-stack-resources --stack-name my-stack
Why it's wrong here
Incorrect. 'list-stack-resources' lists resources, not events or errors.
Go deeper
Related to this question
About these practice questions
One of 1,660 original SAP-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 SAP-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 SAP-C02 exam.