Q50 — AWS DOP-C02 Ch.2
Question 50 of 100 | ← Chapter 2
A company wants to migrate its monolithic web application—currently hosted on Amazon EC2—to a serverless architecture. Currently, it deploys the application using a new EC2 Auto Scaling group and a new Elastic Load Balancer, then shifts traffic using Amazon Route 53 routing policies. For the new serverless application, the company plans to use Amazon API Gateway and AWS Lambda. It will need to update its deployment process accordingly. Before rolling out new features to all customers, it must retain the ability to test them with a small subset of users. Which deployment strategy meets these requirements?
- A. Deploy the API Gateway and Lambda functions using AWS CDK. When code changes are needed, update the AWS CloudFormation stack and deploy new versions of the API and Lambda functions. Use Route 53 failover routing for canary releases.
- B. Deploy API Gateway and Lambda functions using AWS CloudFormation with Lambda function versions. When code changes are needed, update the CloudFormation stack with new Lambda code and update the API version using a canary release strategy. Promote the new version after testing. ✓
- C. Deploy API Gateway and Lambda functions using AWS Elastic Beanstalk. When code changes are needed, deploy new versions of the API and Lambda functions. Use Elastic Beanstalk blue/green deployments to gradually shift traffic.
- D. Deploy API Gateway at the service layer and Lambda functions at the custom layer using AWS OpsWorks. When code changes are needed, use OpsWorks to execute blue/green deployments and gradually shift traffic.
Correct Answer: B. Deploy API Gateway and Lambda functions using AWS CloudFormation with Lambda function versions. When code changes are needed, update the CloudFormation stack with new Lambda code and update the API version using a canary release strategy. Promote the new version after testing.
Explanation
ympyamtanharrrnm