Course menuDVA-C03

Exams / DVA-C03 / Deployment strategies and rollbacks / Question 2

DVA-C03 practice question: Deployment strategies and rollbacks (2 of 2)

Testing and Deployment A free question from our original DVA-C03 practice exam. Try it, then open the answer to see why each option is right or wrong.

Last verified against current AWS documentation ·How we write our questions

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.

  1. A. All at once: every instance is updated together
  2. B. Rolling: batches of instances are updated in place
  3. C. Traffic-splitting: a new group takes a share of live traffic
  4. D. 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.

Study

Keep practicing

Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.

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