A developer needs to update a production web application hosted on AWS Elastic Beanstalk. The application runs on multiple Amazon EC2 instances behind an Application Load Balancer. The deployment must satisfy the following criteria:
- There must be zero application downtime.
- The environment must maintain of its provisioned capacity throughout the deployment process to handle high traffic.
- The deployment must support a fast and clean rollback mechanism with minimal impact if any issues occur.
- Double-allocation cost is acceptable for the duration of the deployment.
Which two Elastic Beanstalk deployment policies should the developer select to meet these requirements?
- ImmutableAnswer
- Rolling with additional batchAnswer
- CRolling
- DAll at once
- ELinear 10% every 10 minutes
Answer
Immutable and Rolling with additional batch
The Immutable deployment policy satisfies the constraints by deploying the new version to a temporary Auto Scaling group, ensuring full capacity is maintained during health checks and allowing an instant rollback if needed. The Rolling with additional batch policy also meets the criteria by launching a new batch of instances first to maintain capacity before updating the existing instances in batches.
Step-by-Step Solution
Key Concept
AWS Elastic Beanstalk deployment policies and their impact on environment capacity, downtime, and rollbacks.