
Answer-first summary for fast verification
Answer: Initiate a rolling restart of the Auto Scaling group for the green environment to install the new software on the green environment's EC2 instances. After the rolling restart is finished, employ an AWS CLI command to reconfigure the ALB to direct traffic to the green environment's target group.
The correct answer is A. In this scenario, the DevOps engineer needs to move traffic all at once from the blue environment to the green environment. Option A correctly describes the steps necessary to achieve this. First, a rolling restart of the Auto Scaling group for the green environment is initiated to deploy the new software on the green environment’s EC2 instances. Once the new software is deployed, an AWS CLI command is used to update the ALB to send traffic to the green environment’s target group. This approach adheres to the requirement of switching traffic instantaneously. Options B, C, and D either involve steps that do not meet the requirement of an all-at-once traffic switch or involve unnecessary complexity, such as DNS updating, which is not suitable for immediate traffic redirection.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A DevOps engineer is tasked with setting up a blue/green deployment for a three-tier application that operates on Amazon EC2 instances and utilizes an Amazon RDS database. The EC2 instances are managed by an Auto Scaling group and are situated behind an Application Load Balancer (ALB). The engineer has already established separate launch templates and Auto Scaling groups for both the blue and green environments, each associated with its own target group. The ALB is capable of routing traffic to either the blue or green target group, and an Amazon Route 53 record for www.example.com is configured to direct traffic to the ALB. The requirement is to transition traffic instantaneously from the software running on the blue environment's EC2 instances to the freshly deployed software on the green environment's EC2 instances. What actions should the DevOps engineer take to fulfill this requirement?
A
Initiate a rolling restart of the Auto Scaling group for the green environment to install the new software on the green environment's EC2 instances. After the rolling restart is finished, employ an AWS CLI command to reconfigure the ALB to direct traffic to the green environment's target group.
B
Utilize an AWS CLI command to reconfigure the ALB to direct traffic to the green environment's target group. Subsequently, commence a rolling restart of the Auto Scaling group for the green environment to install the new software on the green environment's EC2 instances.
C
Modify the launch template to deploy the green environment's software on the blue environment's EC2 instances. Maintain the existing target groups and Auto Scaling groups for both environments. Execute a rolling restart of the blue environment's EC2 instances to apply the changes.
D
Begin a rolling restart of the Auto Scaling group for the green environment to install the new software on the green environment's EC2 instances. Once the rolling restart is complete, update the Route 53 DNS to redirect traffic to the green environment's endpoint on the ALB.