SAP-C02 Continuous Improvement for Existing Solutions Practice Question
A company uses AWS CloudFormation to deploy infrastructure. The operations team wants to automatically roll back a stack update if it fails, and receive a notification. What should be configured to meet these requirements?
⚠ Common exam trap
The trap here is that candidates may overcomplicate the solution by adding unnecessary services like Lambda or Config, overlooking CloudFormation's native rollback and notification capabilities that directly satisfy the requirements.
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
✓
Enable rollback on failure in the CloudFormation stack and configure an SNS notification topic.
CloudFormation natively supports automatic rollback on stack update failure via the 'Rollback on failure' setting. By configuring an SNS notification topic on the stack, the operations team receives alerts when a rollback occurs, meeting both requirements without additional custom logic.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use AWS CloudTrail to monitor the UpdateStack API call and trigger a rollback via a Lambda function.
Why it's wrong here
CloudTrail is for auditing, not automatic rollback.
- ✗
Use AWS Config rules to detect stack failure and revert changes.
Why it's wrong here
AWS Config does not perform rollbacks.
- ✓
Enable rollback on failure in the CloudFormation stack and configure an SNS notification topic.
Why this is correct
CloudFormation can automatically roll back on failure and send SNS notifications.
- ✗
Create a custom resource in the CloudFormation template that performs rollback.
Why it's wrong here
Custom resources add unnecessary complexity.
Go deeper
Related to this question
About these practice questions
Courseiva writes every SAP-C02 question from scratch — 1,660 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 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.