A web application is deployed on AWS Elastic Beanstalk. The development team wants to update the application using a strategy that maintains full serving capacity during the deployment. Additionally, if the deployment fails, the rollback must be immediate and avoid any modification to the original running instances. Which of the following deployment policies meet these requirements? (Select TWO.)
- ImmutableAnswer
- Traffic splittingAnswer
- CRolling
- DRolling with additional batch
- EAll at once
Answer
The Immutable and Traffic splitting deployment policies meet the requirements because they both maintain full capacity and allow an immediate, clean rollback by terminating a temporary Auto Scaling group without modifying active production instances.
The correct policies are the ones that maintain full capacity and do not modify the original instances during deployment, allowing for immediate rollback. Immutable updates create a new Auto Scaling group, deploy the application, and then switch traffic. Traffic splitting also creates a new Auto Scaling group and routes a fraction of traffic to it while keeping the original group at full capacity. Both options keep the original instances untouched until the deployment is successful, allowing for a safe, instant rollback by deleting the new instances or shifting traffic back.
Step-by-Step Solution
Key Concept
AWS Elastic Beanstalk deployment policies and their capacity and rollback characteristics.