AWS Developer DVA-C02 · Deployment · medium

An application runs on AWS Elastic Beanstalk across a fleet of 6 EC2 instances behind an Application Load Balancer. During a version update, the architect requires that: (1) existing instances never serve the old and new versions simultaneously without a full health check, (2) a brand-new Auto Scaling group of 6 instances is launched alongside the existing 6 instances, and (3) if the new instances fail health checks, rollback requires zero DNS swap and simply terminates the new temporary Auto Scaling group. Which Elastic Beanstalk deployment policy meets these requirements?

Published · Last updated · checked before publication — how we verify questions

Options

  • AAll at once deployment policy updating the 6 existing instances in place
  • BRolling deployment policy reducing capacity by one batch at a time
  • CRolling with additional batch updating existing instances after one batch
  • DImmutable deployment policy launching a full parallel set of new instancesCorrect answer

Answer: D. Immutable deployment policy launching a full parallel set of new instances

Immutable deployments launch a temporary second Auto Scaling group of fresh instances inside the same environment behind the existing load balancer. Once the new instances pass health checks, they are moved into the primary Auto Scaling group and the old instances are terminated — allowing fast, clean rollback without modifying existing instances or swapping external DNS CNAMEs.

Why the other options are wrong

  • A. All at once deployment policy updating the 6 existing instances in place — All at once updates existing instances in place and causes brief service downtime.
  • B. Rolling deployment policy reducing capacity by one batch at a time — Rolling updates existing instances in place at reduced fleet capacity.
  • C. Rolling with additional batch updating existing instances after one batch — Rolling with additional batch still mutates existing instances in place after the first batch.

All Deployment questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.