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
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.
More Deployment questions
- An AWS CloudFormation stack provisions an Amazon RDS production database and an Amazon S3 audit bucket. If a junior…
- A developer is writing a buildspec.yml file for AWS CodeBuild that compiles a Node.js TypeScript service, runs unit…
- You are deploying an application to Amazon EC2 instances using AWS CodeDeploy (in-place deployment). Inside the root…
- A serverless team uses AWS SAM (template.yaml) and AWS CodeDeploy to deploy a new version of an AWS Lambda function…
- In an AWS CloudFormation template, Stack A (NetworkStack) creates a production VPC and wants to export the VpcId so…
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.