A developer is configuring the deployment policy for a web application running on an AWS Elastic Beanstalk environment. The environment currently consists of Amazon EC2 instances. To meet strict SLA requirements, the deployment must maintain of the current serving capacity ( instances) at all times during the update. Additionally, the development team wants to minimize the additional infrastructure costs during the deployment process by avoiding the temporary doubling of instances or provisioning a second environment. Which Elastic Beanstalk deployment policy should the developer select?
- ARolling
- Rolling with additional batchAnswer
- CImmutable
- DAll-at-once
Answer
The Rolling with additional batch deployment policy should be selected.
The 'Rolling with additional batch' policy launches a new batch of instances first to maintain capacity during the deployment. It then updates the remaining instances in batches. Because it only launches one batch of new instances at a time rather than a full duplicate of the environment, it is more cost-effective than the 'Immutable' policy while still preventing any capacity reduction.
Step-by-Step Solution
Key Concept
AWS Elastic Beanstalk deployment policies trade-offs between capacity, cost, and rollback capability