A developer is configuring an in-place deployment in AWS CodeDeploy for an application running on an Auto Scaling group with Amazon EC2 instances. To prevent performance degradation during peak hours, the application must maintain at least of its capacity ( instances) to serve traffic at all times during the deployment. The developer also wants to complete the deployment in the shortest time possible. Which deployment configuration should the developer use to meet these requirements?
- Create a custom deployment configuration with the minimum healthy hosts set to a fleet percentage of .Answer
- BUse the predefined CodeDeployDefault.HalfAtATime deployment configuration.
- CUse the predefined CodeDeployDefault.OneAtATime deployment configuration.
- DCreate a custom deployment configuration with the minimum healthy hosts set to a host count of .
Answer
Create a custom deployment configuration with the minimum healthy hosts set to a fleet percentage of .
The correct option is the custom deployment configuration with the minimum healthy hosts set to a fleet percentage of . This ensures that at least instances (which is of instances) remain healthy and serving traffic throughout the deployment. Consequently, CodeDeploy can update up to instances concurrently, minimizing the total deployment duration while satisfying the capacity constraint.
Step-by-Step Solution
Key Concept
AWS CodeDeploy deployment configurations and minimum healthy hosts parameters.