Q5 — AWS SAP-C02 Ch.3
Question 5 of 75 | ← Chapter 3
Q230. A company is running an application in the AWS Cloud. The core business logic is running on a set of Amazon EC2 instances in an Auto Scaling group. An Application Load Balancer (ALB) distributes traffic to the EC2 instances. Amazon Route 53 record api.example.com is pointing to the ALE. The company's development team makes major updates to the business logic. The company has a rule that when changes are deployed, only 10% of customers can receive the new logic during a testing window. A customer must use the same version of the business logic during the testing window. How should the company deploy the updates to meet these requirements?
- A. Create a second ALB, and deploy the new logic to a set of EC2 instances in a new Auto Scaling group. Configure the ALB to distribute traffic to the EC2 instances. Update the Route 53 record to use weighted routing, and point the record to both of the ALBs
- B. Create a second target group that is referenced by the ALB.Deploy the new logic to EC2 instances in this new target group. Update the ALB listener rule to use weighted target groups. Configure ALB target group stickiness ✓
- C. Create a new launch configuration for the Auto Scaling group. Specify the launch configuration to use the AutoScalingRollingUpdate policy, and set the MaxBatchSize option to 10. Replace the launch configuration on the Auto Scaling group. Deploy the changes
- D. Create a second Auto Scaling group that is referenced by the ALB. Deploy the new logic on a set of EC2 instances in this new Auto Scaling group. Change the ALB routing algorithm to least outstanding requests (LOR). Configure ALB session stickiness
Correct Answer: B. Create a second target group that is referenced by the ALB.Deploy the new logic to EC2 instances in this new target group. Update the ALB listener rule to use weighted target groups. Configure ALB target group stickiness
Explanation
To deploy updates to the application in the AWS Cloud and meet the company's requirements, a solutions architect should recommend creating a second target group that is referenced by the ALB, deploying the new logic to EC2 instances in this new target group, and updating the ALB listener rule to use weighted target groups. This approach allows the company to control the percentage of customers who receive the updated logic during the testing window. Therefore, option B is the correct answer. Option A suggests creating a second ALB and deploying the new logic to another set of EC2 instances in a new Auto Scaling group. While this might work, it introduces unnecessary complexity when compared to using a single ALB with multiple target groups. Option C suggests creating a new launch configuration for the Auto Scaling group and using the AutoScalingRollingUpdate policy to update instances in batches of 10. This approach does not allow the company to control the percentage of customers who receive the updated logic during the testing window. Option D suggests creating a second Auto Scaling group that is referenced by the ALB and changing the routing algorithm to least outstanding requests (LOR). While this might work, it does not allow the company to control the percentage of customers who receive the updated logic during the testing window. Therefore, the best solution is to create a second target group that is referenced by the ALB, deploy the new logic to EC2 instances in this new target group, and update the ALB listener rule to use weighted target groups. This approach allows the company to gradually increase the percentage of customers who receive the updated logic while ensuring that each customer uses the same version of the business logic during the testing window.