exam questions

Exam AWS Certified Developer Associate All Questions

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

Exam AWS Certified Developer Associate topic 1 question 387 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 387
Topic #: 1
[All AWS Certified Developer Associate Questions]

A company uses AWS CloudFormation to deploy an application that uses an Amazon API Gateway REST API with AWS Lambda function integration. The application uses Amazon DynamoDB for data persistence. The application has three stages: development, testing, and production. Each stage uses its own DynamoDB table.

The company has encountered unexpected issues when promoting changes to the production stage. The changes were successful in the development and testing stages. A developer needs to route 20% of the traffic to the new production stage API with the next production release. The developer needs to route the remaining 80% of the traffic to the existing production stage. The solution must minimize the number of errors that any single customer experiences.

Which approach should the developer take to meet these requirements?

  • A. Update 20% of the planned changes to the production stage. Deploy the new production stage. Monitor the results. Repeat this process five times to test all planned changes.
  • B. Update the Amazon Route 53 DNS record entry for the production stage API to use a weighted routing policy. Set the weight to a value of 80. Add a second record for the production domain name. Change the second routing policy to a weighted routing policy. Set the weight of the second policy to a value of 20. Change the alias of the second policy to use the testing stage API.
  • C. Deploy an Application Load Balancer (ALB) in front of the REST API. Change the production API Amazon Route 53 record to point traffic to the ALB. Register the production and testing stages as targets of the ALB with weights of 80% and 20%, respectively.
  • D. Configure canary settings for the production stage API. Change the percentage of traffic directed to canary deployment to 20%. Make the planned updates to the production stage. Deploy the changes.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
DrDopey
2 years, 2 months ago
Selected Answer: B
Option B is the best approach to meet the requirements. With this approach, you can update the Amazon Route 53 DNS record entry for the production stage API to use a weighted routing policy. You can set the weight of the first policy to 80, which will route 80% of the traffic to the existing production stage. You can then add a second record for the production domain name and change the routing policy to a weighted routing policy, with a weight of 20. You can then change the alias of the second policy to use the testing stage API, which will route 20% of the traffic to the new production stage API. By doing so, you can minimize the number of errors that any single customer experiences and test the new production stage API before directing more traffic to it. The question never states its intention to move the rest of the traffic over once the testing is complete which would indicate a Canary deployment, so D assumes too much
upvoted 1 times
...
Drey
2 years, 2 months ago
Selected Answer: D
It's D.
upvoted 2 times
...
pancman
2 years, 3 months ago
I am inbetween C and D. The question seems like a canary deployment will be appropriate, so D looks good. But I can see that C could also work in this situation.
upvoted 1 times
joanneli77
2 years, 2 months ago
API Gateway can be in front of an ALB. An ALB cannot be in front of an API Gateway.
upvoted 1 times
...
...
Smartiup
2 years, 3 months ago
Selected Answer: D
The typical Canary deployment. First the 20% of trafic then route all of it to the new stage if all went well.
upvoted 4 times
...
tieyua
2 years, 3 months ago
Selected Answer: D
Gateway can handle canary deployment for testing. https://docs.aws.amazon.com/apigateway/latest/developerguide/canary-release.html
upvoted 2 times
...
JagpreetLM10
2 years, 3 months ago
Selected Answer: C
C. Deploy an Application Load Balancer (ALB) in front of the REST API. Change the production API Amazon Route 53 record to point traffic to the ALB. Register the production and testing stages as targets of the ALB with weights of 80% and 20%, respectively. This approach would route 20% of the traffic to the new production stage API, and 80% of the traffic to the existing production stage, using the weights configured on the ALB. This would allow for a gradual roll-out of the changes, and minimize the number of errors that any single customer might experience.
upvoted 2 times
rlnd2000
2 years, 2 months ago
In my opinion you are right and the solution you suggest will work but the canary option is cheaper, and much easier to implement. So in my opinion D is the correct choice not because is the only right but because is the best.
upvoted 1 times
...
...
JagpreetLM10
2 years, 3 months ago
Selected Answer: D
D . Canary
upvoted 1 times
JagpreetLM10
2 years, 3 months ago
Moving to CCCCCC
upvoted 1 times
...
...
Phinx
2 years, 3 months ago
Selected Answer: D
I think it's D.
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