A developer is managing an application deployed on a fleet of 10 Amazon EC2 instances using AWS CodeDeploy. The application must maintain a minimum of 8 healthy instances at all times during a deployment to handle peak traffic loads. To minimize the overall deployment duration as much as possible while strictly adhering to this capacity constraint, which CodeDeploy deployment configuration should the developer choose?
- A custom deployment configuration with the minimum healthy hosts set to 80%.Answer
- BThe default CodeDeployDefault.OneAtATime deployment configuration.
- CThe default CodeDeployDefault.HalfAtATime deployment configuration.
- DThe default CodeDeployDefault.AllAtOnce deployment configuration.
Answer
A custom deployment configuration with the minimum healthy hosts set to 80%.
A custom deployment configuration specifying a minimum of 80% healthy hosts allows CodeDeploy to update 2 instances in parallel. This is the fastest way to deploy the update because it maximizes the number of parallel updates (2 instances) while guaranteeing that the remaining 8 instances (80%) stay online and healthy, satisfying the customer constraint.
Step-by-Step Solution
Key Concept
AWS CodeDeploy deployment configurations and capacity management
Estimated Time:1m 30s