A developer is configuring an in-place deployment using AWS CodeDeploy for an application running on a fleet of Amazon EC2 instances behind an Application Load Balancer. The application must maintain at least of its serving capacity throughout the deployment process. Which TWO of the following CodeDeploy deployment configurations can the developer use to meet this requirement? (Select TWO.)
- Use the predefined CodeDeployDefault.OneAtATime deployment configuration.Answer
- Create a custom deployment configuration with the minimum healthy hosts set to a percentage of .Answer
- CUse the predefined CodeDeployDefault.HalfAtATime deployment configuration.
- DUse the predefined CodeDeployDefault.AllAtOnce deployment configuration.
- ECreate a custom deployment configuration with the minimum healthy hosts set to a percentage of .
Answer
To maintain at least capacity of the -instance fleet during deployment, the developer can either use the predefined OneAtATime configuration or create a custom configuration with the minimum healthy hosts set to .
To maintain at least capacity of an -instance fleet, CodeDeploy must keep at least instances healthy at all times (). The predefined configuration that deploys to one instance at a time ensures that out of instances () remain healthy during the deployment, which satisfies the threshold. Alternatively, creating a custom deployment configuration with the minimum healthy hosts explicitly set to a percentage of directly guarantees that at least instances remain online and healthy.
Step-by-Step Solution
Key Concept
CodeDeploy Deployment Configurations