To monitor the deployment of a new application version in CodeDeploy, you want to ensure that if the '5XX Error' metric for your ALB exceeds 5% during the deployment, the process is aborted. How can you automate this?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Add a CloudWatch Alarm to the CodeDeploy Deployment Group for automatic rollback

CodeDeploy can be configured to monitor CloudWatch alarms and automatically roll back if the specified threshold is reached during deployment....

📋Part of AWS Certified DevOps Engineer – Professional (DOP-C02) · AWS Certification Practice
Real Exam ScenarioScenario Based

To monitor the deployment of a new application version in CodeDeploy, you want to ensure that if the '5XX Error' metric for your ALB exceeds 5% during the deployment, the process is aborted. How can you automate this?

✓ Correct Answer & ExplanationScenario Based

Correct Answer

Add a CloudWatch Alarm to the CodeDeploy Deployment Group for automatic rollback

Why This Answer Is Correct

CodeDeploy can be configured to monitor CloudWatch alarms and automatically roll back if the specified threshold is reached during deployment.

📚 What This Question Tests

This question evaluates your knowledge of Scenario Based — a core concept tested in AWS Certified DevOps Engineer – Professional (DOP-C02). Understanding Scenario Based is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.