A developer is using AWS CodeDeploy to perform an in-place deployment of a new application revision to an Amazon EC2 Auto Scaling group that currently contains running instances. The deployment must satisfy the following constraints:
* A minimum of instances must remain healthy and serve traffic at all times during the deployment process.
* The deployment must complete as quickly as possible while adhering to the healthy host constraint.
Which two CodeDeploy configurations can the developer use to meet these requirements?
- The default deployment configuration CodeDeployDefault.HalfAtATimeAnswer
- A custom deployment configuration with the minimumHealthyHosts parameter set to a type of FLEET_PERCENT and a value of Answer
- CThe default deployment configuration CodeDeployDefault.OneAtATime
- DThe default deployment configuration CodeDeployDefault.AllAtOnce
- EA custom deployment configuration with the minimumHealthyHosts parameter set to a type of HOST_COUNT and a value of
Answer
The developer can use the default deployment configuration CodeDeployDefault.HalfAtATime or a custom deployment configuration with the minimumHealthyHosts parameter set to a type of FLEET_PERCENT and a value of .
The correct options are the default configuration that updates half of the instances at a time, and a custom configuration specifying a minimum of fleet health. For a fleet of instances, keeping a minimum of healthy instances requires maintaining at least health. The default configuration that accomplishes this in the fewest steps is the one that updates half the fleet at a time, completing in two batches. Alternatively, a custom configuration using a fleet percentage of achieves the exact same balance of speed and availability.
Step-by-Step Solution
Key Concept
AWS CodeDeploy deployment configurations allow developers to specify the number or percentage of instances that must remain healthy during an in-place deployment to balance availability and speed.