Scenario: To minimize the risk of a 'Deployment Stagnation' (where a failed deployment leaves the environment in an inconsistent state), you want to ensure that CodeDeploy automatically rolls back to the last known healthy version if any life-cycle hook fails. Solution ?

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

Correct Answer: Configure 'Rollback on failure' in the CodeDeploy Deployment Group

CodeDeploy can be set to automatically roll back to the previously successful deployment if current one fails....

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

Scenario: To minimize the risk of a 'Deployment Stagnation' (where a failed deployment leaves the environment in an inconsistent state), you want to ensure that CodeDeploy automatically rolls back to the last known healthy version if any life-cycle hook fails. Solution ?

✓ Correct Answer & ExplanationScenario Based

Correct Answer

Configure 'Rollback on failure' in the CodeDeploy Deployment Group

Why This Answer Is Correct

CodeDeploy can be set to automatically roll back to the previously successful deployment if current one fails.

📚 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.