A team wants CodeDeploy to stop an Amazon EC2 application deployment and automatically restore the last successfully deployed revision when application errors exceed a threshold. Which actions establish this behavior? (Choose three.)
Choose 3 answers
Show the answer
Correct answersB. Create a CloudWatch alarm for the application error threshold.D. Associate the CloudWatch alarm with the CodeDeploy deployment group.E. Enable automatic rollback for deployment stops caused by alarms.
AWhy not this: An approval action gates pipeline progression; it does not automatically restore the previous application revision.
BWhy this is right: The alarm detects when application errors cross the threshold that should trigger deployment intervention.
CWhy not this: Ignoring alarm polling failures controls behavior when alarm status is unavailable, not rollback when errors exceed a threshold.
DWhy this is right: The association lets CodeDeploy monitor the alarm and stop the deployment when it enters ALARM.
EWhy this is right: This rollback event setting causes CodeDeploy to redeploy the last successful revision after an alarm-triggered stop.
A CloudWatch alarm detects the error threshold, its deployment-group association lets CodeDeploy stop the deployment, and alarm-triggered automatic rollback restores the last successful revision. A manual approval action does not automatically reverse a deployment.