
Ultimate access to all questions.
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.