
Answer-first summary for fast verification
Answer: Use AWS CodeDeploy with a deployment group configured with a blue/green deployment configuration. Select the option Terminate the original instances in the deployment group with a waiting period of 1 hour.
The correct answer is C. Using AWS CodeDeploy with a deployment group configured for blue/green deployment fits the requirement perfectly. This approach allows launching a new set of instances (the second fleet) with the same capacity as the current fleet. During the deployment, the original instances are maintained without any changes while the new fleet is being launched. Traffic is then seamlessly transitioned to the second fleet when it is fully deployed. Additionally, AWS CodeDeploy provides the option to automatically terminate the original instances after a specified waiting period (in this case, 1 hour). This method ensures a smooth and efficient deployment with minimum downtime and manual intervention.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A DevOps engineer is tasked with managing a web application hosted on Amazon EC2 instances behind an Application Load Balancer (ALB), which are part of an EC2 Auto Scaling group spanning multiple Availability Zones. The engineer must implement a deployment strategy that ensures the following: 1) A second fleet of instances is launched with identical capacity to the existing fleet. 2) The original fleet remains operational without modification during the launch of the second fleet. 3) Traffic is seamlessly switched to the second fleet once it is fully operational. 4) The original fleet is automatically terminated one hour after traffic has been redirected. Which AWS service or combination of services should the engineer use to achieve this deployment strategy?
A
Use an AWS CloudFormation template with a retention policy for the ALB set to 1 hour. Update the Amazon Route 53 record to reflect the new ALB.
B
Use two AWS Elastic Beanstalk environments to perform a blue/green deployment from the original environment to the new one. Create an application version lifecycle policy to terminate the original environment in 1 hour.
C
Use AWS CodeDeploy with a deployment group configured with a blue/green deployment configuration. Select the option Terminate the original instances in the deployment group with a waiting period of 1 hour.
D
Use AWS Elastic Beanstalk with the configuration set to Immutable. Create an .ebextension using the Resources key that sets the deletion policy of the ALB to 1 hour, and deploy the application.