AWS Certified Solutions Architect – Professional — Question 253

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: C

Explanation

Option C is correct because creating a version for every new deployed Lambda function and using the AWS CLI update-function-configuration command with the routing-config parameter allows for controlled traffic shifting to the new version, facilitating a canary release. Option A is incorrect as it refers to aliases rather than versions, which does not provide the required traffic control for a canary release. Option B suggests deploying to a new stack, which is not practical for a canary release strategy. Option D, while involving AWS CodeDeploy, does not specifically address the versioning and traffic management needed for AWS Lambda functions.