Soru

Zorluk: OrtaDeployment Strategies

A developer is configuring an in-place deployment using AWS CodeDeploy for an application running on a fleet of 88 Amazon EC2 instances behind an Application Load Balancer. The application must maintain at least 75%75\% 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.)

  1. Use the predefined CodeDeployDefault.OneAtATime deployment configuration.Cevap
  2. Create a custom deployment configuration with the minimum healthy hosts set to a percentage of 75%75\%.Cevap
  3. C
    Use the predefined CodeDeployDefault.HalfAtATime deployment configuration.
  4. D
    Use the predefined CodeDeployDefault.AllAtOnce deployment configuration.
  5. E
    Create a custom deployment configuration with the minimum healthy hosts set to a percentage of 25%25\%.

Cevap

To maintain at least 75%75\% capacity of the 88-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 75%75\%.
To maintain at least 75%75\% capacity of an 88-instance fleet, CodeDeploy must keep at least 66 instances healthy at all times (8×0.75=68 \times 0.75 = 6). The predefined configuration that deploys to one instance at a time ensures that 77 out of 88 instances (87.5%87.5\%) remain healthy during the deployment, which satisfies the 75%75\% threshold. Alternatively, creating a custom deployment configuration with the minimum healthy hosts explicitly set to a percentage of 75%75\% directly guarantees that at least 66 instances remain online and healthy.

Adım Adım Çözüm

1
Calculate the minimum number of healthy instances required during deployment.
88 instances ×0.75=6\times 0.75 = 6 healthy instances.
The scenario requires maintaining at least 75%75\% capacity of the fleet.
2
Evaluate the predefined CodeDeploy deployment configurations against the calculated minimum capacity.
The predefined OneAtATime configuration leaves 77 instances healthy (87.5%87.5\%), which is greater than or equal to 75%75\%. The HalfAtATime configuration leaves 44 instances healthy (50%50\%), and AllAtOnce leaves 00 healthy (0%0\%). Both are less than 75%75\% and are therefore incorrect.
To identify which predefined configuration satisfies the capacity constraint.
3
Evaluate custom deployment configurations to enforce the threshold.
A custom deployment configuration with minimum healthy hosts set to 75%75\% directly guarantees 66 healthy instances remain online, whereas a minimum healthy host configuration set to 25%25\% allows capacity to drop to 22 instances, failing the requirement.
To select the correct custom configuration option.

Anahtar Kavram

CodeDeploy Deployment Configurations
Bu soruyu puanla