
Answer-first summary for fast verification
Answer: Utilize AWS CloudFormation to deploy API Gateway and Lambda functions with Lambda function versions, updating the CloudFormation stack with new Lambda code, and employing a canary release strategy for API version updates, with promotion of the new version post-testing.
The correct answer is B. This strategy uses AWS CloudFormation to manage API Gateway and Lambda functions with Lambda function versions. When deploying new code, you update the CloudFormation stack with the new Lambda code and API versions, employing a canary release strategy to test the new version on a small subset of users before promoting it to the entire user base. This approach ensures controlled and gradual rollouts, aligning with the company's needs for testing and broader deployment.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company is transitioning its content sharing web application from an EC2-based architecture to a serverless model using Amazon API Gateway and AWS Lambda. They require a deployment strategy that allows them to update their application and conduct tests on a limited user base before a broader deployment. Which strategy should they adopt to meet these requirements?
A
Employ AWS CDK for deploying API Gateway and Lambda functions, updating the AWS CloudFormation stack for new code deployments, and utilizing a Route 53 failover routing policy for the canary release strategy.
B
Utilize AWS CloudFormation to deploy API Gateway and Lambda functions with Lambda function versions, updating the CloudFormation stack with new Lambda code, and employing a canary release strategy for API version updates, with promotion of the new version post-testing.
C
Deploy API Gateway and Lambda functions using AWS Elastic Beanstalk, deploying new API and Lambda function versions for code changes, and gradually shifting traffic with an Elastic Beanstalk blue/green deployment.
D
Deploy API Gateway in the service layer and Lambda functions in a custom layer using AWS OpsWorks, performing a blue/green deployment for code changes and gradually shifting traffic with OpsWorks.