AWS Certified Solutions Architect – Professional (SAP-C02) — Question 58

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?

Answer options

Correct answer: A

Explanation

The correct answer is A because creating an alias for each new version of the Lambda function and using the update-alias command allows for gradual traffic shifting, which is essential for a canary release. Option B is incorrect as it involves a new CloudFormation stack instead of using aliases for versions. Option C is not suitable because it uses the wrong command for adjusting traffic distribution. Option D uses CodeDeploy, which is not necessary in this context as Lambda aliases are sufficient for a canary release.