DOP-C02 Domain 1: SDLC Automation

An application runs on EC2 behind an Application Load Balancer in an Auto Scaling group. AWS CodeDeploy performs blue/green deployments. Operators read application logs on instances and manually tell CodeDeploy to roll back when error rates are too high. Which TWO steps automate rollback? (Select TWO.)

Multiple response — select two or more answers

Answer choices

  1. a. Create a CloudWatch alarm on the ALB HTTPCode_Target_4XX_Count metric above a threshold.
  2. b. Configure the deployment group to monitor the alarm, fail the deployment, and roll back when the alarm enters ALARM.
  3. c. Use a scheduled Lambda every hour to roll back if an alarm is in ALARM.
  4. d. Publish to SNS on ALARM and configure CodeDeploy to subscribe to the topic for rollback.
  5. e. Send application logs to CloudWatch Logs, add a metric filter for error lines, and alarm on the error rate.

Architectural breakdown & explanation

CodeDeploy can tie rollback to deployment alarms; log metric filters catch errors that never appear as ALB HTTP codes.

Correct answer(s): b. Configure the deployment group to monitor the alarm, fail the deployment, and roll back when the alarm enters ALARM., e. Send application logs to CloudWatch Logs, add a metric filter for error lines, and alarm on the error rate.

Exam domain: Domain 1: SDLC Automation (22% weight on the official guide).

Official documentation & study links

Practice this certification

This page is one question from the AWS Certified DevOps Engineer – Professional bank. Run a full timed practice exam with domain-weighted random questions in your browser.