Q44 — AWS DVA-C02 Ch.3
Question 44 of 100 | ← Chapter 3
A company hosts a photo storage web application on AWS. The application runs on Amazon EC2 instances in an Auto Scaling group. The Auto Scaling group serves as a target group for an Application Load Balancer (ALB), and photos for sale are stored in Amazon S3. The company wants to develop a testing system for new features. This feature must route requests to a separate target group hosting a new test version of the application. Which solution meets this requirement with the least operational effort?
- A. Create a new Auto Scaling group and target group for the test version of the application. Update the ALB routing rules to include a condition that looks for a cookie named 'version' with value 'beta'. Update the test system code to send this cookie when testing the test version. ✓
- B. Create a new ALB, Auto Scaling group, and target group for the test version. Configure a secondary Amazon Route 53 record pointing to the new ALB endpoint. Use the secondary Route 53 endpoint in test system requests.
- C. Create a new ALB, Auto Scaling group, and target group for the test version. Use Amazon CloudFront and Lambda@Edge to determine which specific requests should be forwarded to the new ALB. Send test system requests through the CloudFront endpoint.
- D. Create a new Auto Scaling group and target group for the test version. Update the ALB routing rules to include a condition that looks for a cookie named 'version' with value 'beta'. Use Amazon CloudFront and 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 test version of the application. Update the ALB routing rules to include a condition that looks for a cookie named 'version' with value 'beta'. Update the test system code to send this cookie when testing the test version.
Explanation
To meet the requirement with minimal operational effort, the solution must enable traffic routing to a new test version without duplicating infrastructure like ALBs. Option A achieves this by adding only a new Auto Scaling group and target group, then using ALB’s native host/path/cookie-based routing rules — no additional services or DNS management needed. Options B and C introduce unnecessary complexity (extra ALB, Route 53, or CloudFront). Option D adds Lambda@Edge overhead when the test client can directly set the cookie. Thus, A is optimal.