DVA-C02 · Question #263
A company is using AWS Elastic Beanstalk to manage web applications that are running on Amazon EC2 instances. A developer needs to make configuration changes. The developer must deploy the changes…
The correct answer is B. Immutable D. Blue/green. Immutable and blue/green deployments both provision entirely new EC2 instances for the new version, ensuring existing instances are never modified in place.
Question
A company is using AWS Elastic Beanstalk to manage web applications that are running on Amazon EC2 instances. A developer needs to make configuration changes. The developer must deploy the changes to new instances only. Which types of deployment can the developer use to meet this requirement? (Choose two.)
Options
- AAll at once
- BImmutable
- CRolling
- DBlue/green
- ERolling with additional batch
How the community answered
(17 responses)- A6% (1)
- B76% (13)
- C6% (1)
- E12% (2)
Why each option
Immutable and blue/green deployments both provision entirely new EC2 instances for the new version, ensuring existing instances are never modified in place.
All-at-once deployments update all existing instances simultaneously in place, which does not meet the requirement of deploying only to new instances.
Immutable deployments launch a fresh Auto Scaling group with new instances running the new version. If the deployment succeeds, traffic is shifted to the new instances and old ones are terminated, so changes are only applied to new instances.
Rolling deployments update existing instances in batches, modifying currently running instances rather than deploying exclusively to new ones.
Blue/green deployments create a completely new environment (green) with new instances and swap the CNAME or load balancer to direct traffic, meaning the new configuration is deployed exclusively to the new instances.
Rolling with additional batch adds new instances during deployment but also updates existing instances as the roll progresses, so changes are not limited solely to new instances.
Concept tested: Elastic Beanstalk deployment strategies targeting new instances only
Source: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.rolling-version-deploy.html
Community Discussion
No community discussion yet for this question.