exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 605 discussion

A company built an application based on AWS Lambda deployed in an AWS CloudFormation stack. The last production release of the web application introduced an issue that resulted in an outage lasting several minutes. A solutions architect must adjust the deployment process to support a canary release.
Which solution will meet these requirements?

  • A. Create an alias for every new deployed version of the Lambda function. Use the AWS CLI update-alias command with the routing-config parameter to distribute the load.
  • B. Deploy the application into a new CloudFormation stack. Use an Amazon Route 53 weighted routing policy to distribute the load.
  • C. Create a version for every new deployed Lambda function. Use the AWS CLI update-function-configuration command with the routing-config parameter to distribute the load.
  • D. Configure AWS CodeDeploy and use CodeDeployDefault.OneAtATime in the Deployment configuration to distribute the load.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
Nemer
Highly Voted 3 years, 8 months ago
A. Alias traffic shifting. https://aws.amazon.com/blogs/compute/implementing-canary-deployments-of-aws-lambda-functions-with-alias-traffic-shifting/
upvoted 23 times
...
claymannain
Most Recent 1 year, 12 months ago
A. Lambda aliases are a way to point to multiple versions of a Lambda function. This can be useful for testing new versions of a function before rolling them out to production, or for running multiple versions of a function in parallel to test different approaches. When you create a Lambda alias, you can specify a routing configuration. This configuration determines how traffic is routed between the alias and the function versions it points to. There are two types of routing configurations: Static routing: With static routing, you specify a fixed percentage of traffic that is routed to each function version. Canary routing: With canary routing, you specify a starting percentage of traffic that is routed to a new function version. Over time, the percentage of traffic routed to the new function version increases, while the percentage of traffic routed to the old function version decreases.
upvoted 1 times
...
BlueSpark
2 years, 5 months ago
A is My answer.
upvoted 1 times
...
Sumit_Kumar
2 years, 9 months ago
# Update $LATEST version of function aws lambda update-function-code --function-name myfunction …. # Publish new version of function aws lambda publish-version --function-name myfunction # Point alias to new version, weighted at 5% (original version at 95% of traffic) aws lambda update-alias --function-name myfunction --name myalias --routing-config '{"AdditionalVersionWeights" : {"2" : 0.05} }' # Verify that the new version is healthy … # Set the primary version on the alias to the new version and reset the additional versions (100% weighted) aws lambda update-alias --function-name myfunction --name myalias --function-version 2 --routing-config '{}' This is begging to be automate
upvoted 4 times
...
Jughead
2 years, 9 months ago
Selected Answer: A
A is the answer
upvoted 1 times
...
bobsmith2000
3 years ago
NONE of them is correct. B and D are nonsense. B - there's no point to deploy a new Lambda every time and edit rte D - Look it up here. https://docs.amazonaws.cn/en_us/codedeploy/latest/userguide/deployment-configurations.html Between A and C. A is wrong because "Create an alias for every new deployed version". The alias it's the same, the weight between the versions for the alias it's different. You point out to the alias and then operate with version. C it's wrong because you have to use update-alias instead of update-function-configuration. So it's either A and C phrasing is messed up or none of them is correct.
upvoted 3 times
...
cldy
3 years, 5 months ago
A. Create an alias for every new deployed version of the Lambda function. Use the AWS CLI update-alias command with the routing-config parameter to distribute the load.
upvoted 1 times
...
AzureDP900
3 years, 6 months ago
Correct Answer A. there is no second thoughts also!
upvoted 1 times
...
tgv
3 years, 7 months ago
AAA ---
upvoted 1 times
...
WhyIronMan
3 years, 7 months ago
I'll go with A
upvoted 1 times
...
blackgamer
3 years, 7 months ago
A is the answer. Refer below link for details explanation on how Lambda Alias works. https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
upvoted 3 times
...
Waiweng
3 years, 7 months ago
it's A
upvoted 2 times
...
Kian1
3 years, 7 months ago
going with A
upvoted 2 times
...
lechuk
3 years, 7 months ago
Maybe a Typo but it's not need to create an ALIAS for every every function deployment...
upvoted 2 times
...
Ebi
3 years, 7 months ago
A is my answer
upvoted 3 times
...
Bulti
3 years, 7 months ago
A is the correct option for Serverless.
upvoted 2 times
...
T14102020
3 years, 7 months ago
Correct is A . Update alias traffic
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 ...