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