A developer is configuring the deployment policy for a high-traffic web application hosted on AWS Elastic Beanstalk. The application runs on multiple Amazon EC2 instances. The deployment policy must satisfy the following requirements:
1. The application must maintain of its instance capacity to handle incoming traffic at all times during the deployment.
2. If a deployment failure occurs, the rollback process must be rapid and must not perform any updates or modifications on the original, healthy instances.
Which two deployment strategies should the developer select to meet these requirements?
- ImmutableAnswer
- Traffic splittingAnswer
- CAll-at-once
- DRolling
- ERolling with additional batch
Answer
The correct strategies are Immutable and Traffic splitting.
The correct strategies are Immutable and Traffic splitting. Both of these strategies maintain instance capacity during deployment by launching a separate, temporary Auto Scaling group for the new version. Furthermore, if a deployment failure occurs, the rollback is rapid and clean because it only requires terminating the temporary Auto Scaling group and redirecting traffic, leaving the original, healthy instances completely untouched.
Step-by-Step Solution
Key Concept
AWS Elastic Beanstalk deployment policies and their impact on capacity, rollback speed, and resource modification.