A company hosts a web application on a fleet of Amazon EC2 instances managed by an Auto Scaling group. A SysOps Administrator is configuring AWS CodeDeploy to perform in-place deployments of application updates. The deployment must maintain at least 75% of the total instance capacity to ensure performance is not degraded. Since the Auto Scaling group dynamically scales based on CPU utilization, the configuration must adapt to varying instance counts. Which configuration for the minimum healthy hosts parameter in CodeDeploy will meet these requirements?
- AA custom deployment configuration with the type set to FLEET_PERCENT and the value set to 25
- BA custom deployment configuration with the type set to HOST_COUNT and the value set to 3
- A custom deployment configuration with the type set to FLEET_PERCENT and the value set to 75Answer
- DThe predefined CodeDeployDefault.HalfAtOnce deployment configuration
Answer
A custom deployment configuration with the type set to FLEET_PERCENT and the value set to 75.
The custom deployment configuration using FLEET_PERCENT set to 75 ensures that CodeDeploy keeps at least 75% of the instances in the deployment group healthy at any given time during the deployment. Because the Auto Scaling group dynamically scales, using a percentage (FLEET_PERCENT) rather than a static count (HOST_COUNT) ensures that the 75% capacity threshold is dynamically calculated and maintained regardless of the fleet size.
Step-by-Step Solution
Key Concept
AWS CodeDeploy Custom Deployment Configurations and Capacity Management