nerdexam
AmazonAmazon

DOP-C02 · Question #135

DOP-C02 Question #135: Real Exam Question with Answer & Explanation

The correct answer is A: Start a rolling restart of the Auto Scaling group for the green environment to deploy the new software. As there is only one ALB. The ALB can be configured to send traffic to the blue environment’s target group or the green environment’s target group. Traffic route to blue or green, must be configure at Load balancer, in this case, update the target group.

Submitted by rania.sa· Mar 6, 2026SDLC Automation

Question

A DevOps engineer needs to configure a blue/green deployment for an existing three-tier application. The application runs on Amazon EC2 instances and uses an Amazon RDS database. The EC2 instances run behind an Application Load Balancer (ALB) and are in an Auto Scaling group. The DevOps engineer has created a launch template and an Auto Scaling group for the blue environment. The DevOps engineer also has created a launch template and an Auto Scaling group for the green environment. Each Auto Scaling group deploys to a matching blue or green target group. The target group also specifies which software, blue or green, gets loaded on the EC2 instances. The ALB can be configured to send traffic to the blue environment's target group points to the ALB. The deployment must move traffic all at once between the software on the blue environment's EC2 instances to the newly deployed software on the green environment's EC2 instances. What should the DevOps engineer do to meet these requirements?

Options

  • AStart a rolling restart of the Auto Scaling group for the green environment to deploy the new software
  • BUse an AWS CLI command to update the ALB to send traffic to the green environment's target group.
  • CUpdate the launch template to deploy the green environment's software on the blue environment's
  • DStart a rolling restart of the Auto Scaling group for the green environment to deploy the new software

Explanation

As there is only one ALB. The ALB can be configured to send traffic to the blue environment’s target group or the green environment’s target group. Traffic route to blue or green, must be configure at Load balancer, in this case, update the target group.

Topics

#Blue/Green Deployment#AWS Auto Scaling#Application Load Balancer#EC2

Community Discussion

No community discussion yet for this question.

Full DOP-C02 PracticeBrowse All DOP-C02 Questions