Q56 — AWS DVA-C02 Ch.1
Question 56 of 100 | ← Chapter 1
A company operates an image storage web application on AWS. The application runs on Amazon EC2 instances in an Auto Scaling group, which serves as the target group for an Application Load Balancer (ALB). The company uses an Amazon S3 bucket to store images for sale. The company wants to develop a feature to test system requests, routing them to a separate target group hosting a new beta version of the application. Which solution meets this requirement with minimal effort?
- A. Create a new Auto Scaling group and target group for the beta version. Update the ALB routing rules with a condition to look for a cookie named 'version' with value 'beta'. Update the test system code to send this cookie to test the beta version. ✓
- B. Create a new ALB, Auto Scaling group, and target group for the beta version. Configure an alternate Amazon Route 53 record for the new ALB endpoint. Use the alternate Route 53 endpoint in test system requests to test the beta version.
- C. Create a new ALB, Auto Scaling group, and target group for the beta version. Use Amazon CloudFront with Lambda@Edge to determine which specific requests should be routed to the new ALB. Send test system requests through the CloudFront endpoint to test the beta version.
- D. Create a new Auto Scaling group and target group for the beta version. Update the ALB routing rules with a condition to look for a cookie named 'version' with value 'beta'. Use Amazon CloudFront with Lambda@Edge to inject the required cookie into test system requests before they reach the ALB.
Correct Answer: A. Create a new Auto Scaling group and target group for the beta version. Update the ALB routing rules with a condition to look for a cookie named 'version' with value 'beta'. Update the test system code to send this cookie to test the beta version.
Explanation
This solution enables routing requests to a separate target group hosting the new beta application version without requiring a new ALB or additional services like Amazon Route 53 or Amazon CloudFront. Compared to Option A, Option D adds unnecessary complexity and effort; Option A only requires updating the ALB routing rules with a condition checking for a 'version=beta' cookie and updating test system code to include that cookie when testing the beta version.