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
- 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.
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.