A web application runs in an AWS Elastic Beanstalk environment behind a Classic Load Balancer, which the team cannot replace this quarter.
Each release must keep the environment at full capacity, must leave the instances serving traffic untouched until the new instances pass health checks, and must not update existing instances in place. If the new instances fail health checks, they should be terminated and the old ones kept.
Which deployment policy should the developer choose?
Choose one answer.
AA. All at once: every instance is updated together
BB. Rolling: batches of instances are updated in place
CC. Traffic-splitting: a new group takes a share of live traffic
DD. Immutable: a full new group of instances replaces the old one
Show the answer and explanation
Answer: D
A. Wrong: All at once takes every instance out of service together, so capacity drops for a short time. It breaks the full-capacity requirement and changes the instances that serve traffic.
B. Wrong: Rolling takes batches of instances out of service, which reduces capacity during the deployment. It also updates existing instances in place, so a failure leaves some of them changed.
C. Wrong: Traffic-splitting gives canary-style testing with full capacity, but it needs an Application Load Balancer. This environment uses a Classic Load Balancer that the team cannot replace this quarter.
D. Right: Correct. Immutable launches a full set of new instances in a separate Auto Scaling group, and the original instances are left untouched. If the new instances fail health checks, Elastic Beanstalk terminates them. Learn more: Elastic Beanstalk deployment policies (opens in a new tab)
Explanation
Immutable deployments launch a full new group of instances alongside the old one, so capacity stays up and existing instances are never changed. Traffic-splitting also protects the old instances, but it requires an Application Load Balancer, which this environment does not have.
Want more on Deployment strategies and rollbacks? The 5 full-length practice sets have 11 more Deployment strategies and rollbacks questions, 390 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →