A developer is configuring an in-place deployment in AWS CodeDeploy for an application running on a fleet of Amazon EC2 instances. To prevent performance degradation during peak hours, the application must maintain at least of its serving capacity online and healthy at all times during the update. The developer wants to configure the deployment to update the maximum number of instances simultaneously while strictly adhering to this availability constraint. Which configuration should the developer use?
- Create a custom deployment configuration with Minimum Healthy Hosts defined as a type of FLEET_PERCENT with a value of .Answer
- BCreate a custom deployment configuration with Minimum Healthy Hosts defined as a type of HOST_COUNT with a value of .
- CUse the predefined CodeDeployDefault.HalfAtATime deployment configuration.
- DUse the predefined CodeDeployDefault.OneAtATime deployment configuration.
Answer
Create a custom deployment configuration with Minimum Healthy Hosts defined as a type of FLEET_PERCENT with a value of .
The correct option ensures that of the instance capacity ( instances) remains healthy and online during the deployment. This allows CodeDeploy to update the remaining instances () in parallel, completing the deployment as quickly as possible without violating the availability threshold.
Step-by-Step Solution
Key Concept
Custom deployment configurations in AWS CodeDeploy allow developers to define availability requirements using the Minimum Healthy Hosts parameter, specified as either a percentage or absolute host count.
Estimated Time:2m 0s