exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 111 discussion

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?

  • 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.
  • 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.
  • C. Create a new ALB, Auto Scaling group, and target group for the beta version of the application. Use Amazon CloudFront with Lambda@Edge to determine which specific request will go to the new ALB. Use the CloudFront endpoint to send the test system requests to test the beta version of the application.
  • D. 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. Use Amazon CloudFront with Lambda@Edge to update the test system requests to add the required cookie when the requests go to the ALB.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
MrTee
Highly Voted 2 years ago
Selected Answer: A
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.
upvoted 26 times
...
backfringe
Highly Voted 1 year, 9 months ago
Selected Answer: B
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.
upvoted 8 times
wh1t4k3r
8 months, 1 week ago
I will say that it is way simpler to create an ALB rule to a new tg and alter the beta app then create a new tg, a new alb and configure route 53 and then deploy the app
upvoted 1 times
...
...
sumanshu
Most Recent 4 months ago
Selected Answer: A
B) Eliminated - You need a second load balancer, which increases both costs and maintenance overhead. Testers must switch between different URLs to test the beta version, which is less seamless. C/D) Eliminated - Lambda@Edge increases complexity unnecessarily
upvoted 2 times
sumanshu
4 months ago
A ) New Beta Group: You create a new "group of servers" (Auto Scaling group + target group) for the beta version of your app. These servers will run the updated beta code. Routing with Cookies: The existing load balancer is updated to check incoming requests for a specific cookie in the browser. If the cookie says something like version=beta, the load balancer will route the request to the beta servers. If there’s no cookie, the load balancer routes the request to the normal servers (current version). Test System’s Role: The test system (used by testers) adds the special cookie (version=beta) to its requests. This ensures only the testers access the beta version. Regular users don’t have this cookie, so they continue to see the normal version.
upvoted 1 times
...
...
Anandesh
9 months, 3 weeks ago
Selected Answer: A
https://aws.amazon.com/blogs/aws/new-advanced-request-routing-for-aws-application-load-balancers/
upvoted 1 times
...
65703c1
11 months, 1 week ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
IvRa
1 year ago
ChatGPT goes for D.
upvoted 1 times
...
41eb566
1 year, 1 month ago
Selected Answer: B
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.
upvoted 1 times
...
SerialiDr
1 year, 1 month ago
Selected Answer: A
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.
upvoted 1 times
...
SerialiDr
1 year, 3 months ago
Selected Answer: A
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.
upvoted 1 times
...
JohnPl
1 year, 3 months ago
Selected Answer: D
A is modifying the code for testing, not a good practice. D is the least effort compared to B and C
upvoted 2 times
...
gqs3119
1 year, 3 months ago
Selected Answer: D
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.
upvoted 3 times
...
a_win
1 year, 4 months ago
Selected Answer: A
requirement with the LEAST effort
upvoted 1 times
...
LR2023
1 year, 4 months ago
Selected Answer: D
just using voting...explanation in a different thread
upvoted 3 times
...
LR2023
1 year, 4 months ago
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.
upvoted 3 times
...
Nagasoracle
1 year, 6 months ago
Selected Answer: B
Considering Least effort
upvoted 3 times
...
LemonGremlin
1 year, 6 months ago
Selected Answer: A
Agree that this is A
upvoted 1 times
...
Rameez1
1 year, 6 months ago
Selected Answer: A
Option A serves the requirement with least efforts.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago