DVA-C02 Exam QuestionsBrowse all questions from this exam

DVA-C02 Exam - Question 111


A company has an image storage web application that runs on AWS. The company hosts the application on Amazon EC2 instances in an Auto Scaling group. The Auto Scaling group acts as the target group for an Application Load Balancer (ALB) and uses an Amazon S3 bucket to store the images for sale.

The company wants to develop a feature to test system requests. The feature will direct requests to a separate target group that hosts a new beta version of the application.

Which solution will meet this requirement with the LEAST effort?

Show Answer
Correct Answer: A

To meet the requirement with the least effort, creating a new Auto Scaling group and target group for the beta version of the application and updating the ALB routing rule with a condition that looks for a cookie named version that has a value of beta is the most efficient solution. By updating the test system code to include this cookie, you can direct beta traffic without significant overhead. This approach leverages existing infrastructure without the need to create new ALBs or Route 53 records, making it simpler and quicker to implement.

Discussion

17 comments
Sign in to comment
MrTeeOption: A
Apr 22, 2023

This solution will allow the company to direct requests to a separate target group that hosts the new beta version of the application without having to create a new ALB or use additional services such as Amazon Route 53 or Amazon CloudFront. Option D adds additional complexity and effort compared to option A, which simply involves updating the ALB routing rule with a condition that looks for a cookie named version that has a value of beta and updating the test system code to use this cookie to test the beta version of the application.

backfringeOption: B
Jul 31, 2023

Option B provides the simplest and least effort solution to test the beta version of the application. By creating a new ALB, Auto Scaling group, and target group for the beta version, the company can deploy the new version of the application separately from the production version. Configuring an alternate Amazon Route 53 record for the new ALB endpoint allows the test system requests to be directed to the beta version.

nnecodeOption: B
Sep 29, 2023

Which solution will meet this requirement with the LEAST effort? Updating code will be more effort, hence B is the correct answer.

NagasoracleOption: B
Oct 18, 2023

Considering Least effort

LR2023
Dec 4, 2023

I am going with D..... https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-at-the-edge.html A Lambda function can inspect cookies and rewrite URLs so that users see different versions of a site for A/B testing. Option B & C requires to create new ALB - which is not least effort. And option A requires to update code.

LR2023Option: D
Dec 4, 2023

just using voting...explanation in a different thread

gqs3119Option: D
Jan 2, 2024

Modifying ALB (A/D) is less effort than modifying route 53 and adding ALB (B/C), 1 action vs 2. So it's A or D, let's think about effort in both cases. In case of A you will need to: 1.Add a new temporary code to set cookies 2.Test app with new temporary code, to make sure it won't break the production 3.Deploy it to the production After tests are finished: 4.Remove temporary code 5.Deploy to production In case of D you will need: 1.Create lambda 2.Do a simple testing to make sure it won't affect production After tests are finished: 3.Remove lambda I'd say D is the least effort.

JohnPlOption: D
Jan 14, 2024

A is modifying the code for testing, not a good practice. D is the least effort compared to B and C

Rameez1Option: A
Oct 14, 2023

Option A serves the requirement with least efforts.

LemonGremlinOption: A
Oct 17, 2023

Agree that this is A

a_winOption: A
Dec 25, 2023

requirement with the LEAST effort

SerialiDrOption: A
Jan 15, 2024

A. Create a new Auto Scaling group and target group for the beta version of the application. Update the ALB routing rule with a condition that looks for a cookie named version that has a value of beta. Update the test system code to use this cookie to test the beta version of the application: This is a straightforward and effective solution. By creating a new Auto Scaling group and target group for the beta version and updating the ALB to route based on a specific cookie, the company can easily direct test traffic to the beta version without needing additional infrastructure or complex configurations. The test system would simply include the specified cookie in its requests to access the beta version.

SerialiDrOption: A
Feb 29, 2024

This approach allows for the least amount of effort in setting up a beta environment where test system requests can be directed to a new version of the application for testing purposes. It leverages ALB's ability to conditionally route traffic based on request attributes, such as cookies, allowing for flexible and efficient testing of new application versions alongside existing production workloads.

41eb566Option: B
Mar 17, 2024

The solution that will meet the requirement with the least effort is: B. Create a new ALB, Auto Scaling group, and target group for the beta version of the application. Configure an alternate Amazon Route 53 record for the new ALB endpoint. Use the alternate Route 53 endpoint in the test system requests to test the beta version of the application.

IvRa
Apr 10, 2024

ChatGPT goes for D.

65703c1Option: A
May 22, 2024

A is the correct answer.

AnandeshOption: A
Jul 8, 2024

https://aws.amazon.com/blogs/aws/new-advanced-request-routing-for-aws-application-load-balancers/