DOP-C02 · Question #32
A company wants to migrate its content sharing web application hosted on Amazon EC2 to a serverless architecture. The company currently deploys changes to its application by creating a new Auto…
The correct answer is B. Use AWS CloudFormation to deploy API Gateway and Lambda functions using Lambda function. Option B provides a deployment strategy for the company's new serverless architecture, allowing the company to retain the ability to test new features on a small number of users before rolling the features out to the entire user base. Using AWS CloudFormation, the company can…
Question
A company wants to migrate its content sharing web application hosted on Amazon EC2 to a serverless architecture. The company currently deploys changes to its application by creating a new Auto Scaling group of EC2 instances and a new Elastic Load Balancer, and then shifting the traffic away using an Amazon Route 53 weighted routing policy. For its new serverless application, the company is planning to use Amazon API Gateway and AWS Lambda. The company will need to update its deployment processes to work with the new application. It will also need to retain the ability to test new features on a small number of users before rolling the features out to the entire user base. Which deployment strategy will meet these requirements?
Options
- AUse AWS CDK to deploy API Gateway and Lambda functions. When code needs to be changed,
- BUse AWS CloudFormation to deploy API Gateway and Lambda functions using Lambda function
- CUse AWS Elastic Beanstalk to deploy API Gateway and Lambda functions. When code needs to
- DUse AWS OpsWorks to deploy API Gateway in the service layer and Lambda functions in a
How the community answered
(41 responses)- A5% (2)
- B83% (34)
- C2% (1)
- D10% (4)
Explanation
Option B provides a deployment strategy for the company's new serverless architecture, allowing the company to retain the ability to test new features on a small number of users before rolling the features out to the entire user base. Using AWS CloudFormation, the company can deploy API Gateway and Lambda functions using Lambda function versions. When code needs to be changed, the company can update the CloudFormation stack with the new Lambda code and update the API versions using a canary release strategy. Once testing is complete, the new version can be promoted.
Topics
Community Discussion
No community discussion yet for this question.