An e-commerce company runs a production web application on AWS Elastic Beanstalk. The application is deployed across Amazon EC2 instances inside an Auto Scaling group behind an Application Load Balancer. A developer needs to configure a deployment strategy for a minor application update. The deployment must satisfy the following constraints:
* The environment must maintain exactly of its capacity ( instances) to handle traffic at all times during the update.
* The temporary cost overhead during the deployment process must be kept to a minimum.
* The update must be performed within the existing environment without creating a new environment or swapping CNAMEs.
Which Elastic Beanstalk deployment policy should the developer select?
- AAll at once
- BRolling
- Rolling with additional batchAnswer
- DImmutable
Answer
Rolling with additional batch
The deployment policy that meets all criteria is the one that adds an additional batch of instances before taking any offline, thereby maintaining the full environment capacity of ten instances during deployment. Since only one batch is provisioned at a time, the temporary cost overhead is minimized. Furthermore, the deployment is executed entirely within the existing environment.
Step-by-Step Solution
Key Concept
AWS Elastic Beanstalk deployment policies and their tradeoffs regarding capacity, deployment speed, rollback, and cost.
Estimated Time:1m 30s