Q76 — AWS DOP-C02 Ch.3

Question 76 of 100 | ← Chapter 3

• The application must deploy one instance at a time to ensure the message queue continues serving traffic. • The application is CPU-intensive and requires monitoring. • If the deployed instance’s CPU utilization exceeds 85%, the deployment must automatically roll back.

Correct Answer: B. Use AWS CodeDeploy integrated with Amazon EC2 Auto Scaling. Configure an alarm associated with the CPU utilization metric. Use the CodeDeployDefault.OneAtATime deployment strategy. Configure automatic rollback in the deployment group to revert on alarm threshold violation.

Explanation

Option B is correct. AWS CodeDeploy integrates natively with Amazon EC2 Auto Scaling and supports the OneAtATime deployment strategy, enabling sequential instance updates. It also supports automatic rollback triggered by CloudWatch alarms—including CPU utilization thresholds—ensuring immediate remediation if performance degrades beyond 85%. Elastic Beanstalk (Option C) supports rolling deployments and alarms but lacks native, granular rollback tied directly to custom metrics during deployment phases. Options A and D involve complex custom orchestration and do not provide built-in, metric-driven rollback capabilities like CodeDeploy.