SAP-C02 Continuous Improvement for Existing Solutions Practice Question
A company runs a production application on Amazon EC2 instances behind an Application Load Balancer. Recently, error rates increased due to a misconfiguration. The operations team wants to automatically roll back to the previous working configuration if errors exceed a threshold. Which solution provides the fastest rollback?
⚠ Common exam trap
SAP-C02 often tests the difference between automated rollback mechanisms and manual or preventive measures, causing candidates to choose options that either lack automation or do not directly trigger rollback based on error thresholds.
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
✓
Implement AWS CodeDeploy with automatic rollback triggered by CloudWatch alarms.
AWS CodeDeploy with automatic rollback triggered by CloudWatch alarms provides the fastest rollback because it continuously monitors application health via CloudWatch metrics and automatically reverts to the last known good revision when an alarm threshold is breached. This automation minimizes manual intervention and downtime, enabling rapid recovery from misconfigurations.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Manually restore AMI snapshots of the previous deployment.
Why it's wrong here
Restoring AMI snapshots requires launching replacement instances and re-registering them behind the load balancer, taking many minutes and manual coordination. It is tempting because AMIs capture the last known-good machine image, but that suits disaster recovery or immutable redeployment, not automatic threshold-triggered rollback of a configuration change.
- ✗
Use AWS Elastic Beanstalk with rolling updates and health checks.
Why it's wrong here
Elastic Beanstalk rolling updates replace instances in batches and its health-check rollback triggers only on instance or environment health, not on application error-rate thresholds from the load balancer. It is tempting because Beanstalk automates deployment rollback, but that suits platform-managed deployments, not ALB metric-driven rollback of an existing EC2 fleet.
- ✗
Use AWS CloudFormation with a stack policy to prevent updates.
Why it's wrong here
A CloudFormation stack policy only denies update actions on specified resources; it prevents changes rather than detecting elevated error rates or reverting to a prior template. It is tempting because stack policies guard critical resources during updates, but that suits protecting stateful resources from accidental replacement, not automated rollback triggered by application errors.
- ✓
Implement AWS CodeDeploy with automatic rollback triggered by CloudWatch alarms.
Why this is correct
CodeDeploy deployment groups can bind CloudWatch alarms; when the alarm threshold breaches, CodeDeploy automatically reverts to the last known-good revision. This restores the previous configuration within minutes, far faster than manual redeployment, satisfying the fastest-rollback constraint.
Go deeper
Related to this question
About these practice questions
This SAP-C02 question is part of Courseiva's 984-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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 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.