Soru

Zorluk: OrtaDeployment Strategies

A developer is configuring a deployment for a web application running on an Auto Scaling group of four Amazon EC2 instances using AWS CodeDeploy. The deployment must meet the following constraints:
- The application must experience zero downtime, meaning at least some instances must remain online and healthy to serve traffic at all times.
- Due to strict budget limitations, no additional EC2 instances can be provisioned during the deployment.

Which two AWS CodeDeploy default deployment configurations satisfy these requirements? (Select two.)

  1. CodeDeployDefault.OneAtATimeCevap
  2. CodeDeployDefault.HalfAtATimeCevap
  3. C
    CodeDeployDefault.AllAtOnce
  4. D
    A CodeDeploy Blue/Green deployment
  5. E
    CodeDeployDefault.ECSLinear10PercentEvery1Minute

Cevap

The correct configurations are CodeDeployDefault.OneAtATime and CodeDeployDefault.HalfAtATime.
The correct configurations are CodeDeployDefault.OneAtATime and CodeDeployDefault.HalfAtATime. Because the deployment must not launch additional EC2 instances, it must be performed in-place. To prevent downtime, the deployment configuration must ensure that some instances remain online and healthy during the update. CodeDeployDefault.OneAtATime updates one instance at a time (keeping three online), and CodeDeployDefault.HalfAtATime updates two instances at a time (keeping two online). Both options satisfy the zero-downtime and zero-additional-cost constraints.

Adım Adım Çözüm

1
Analyze the deployment platform and constraints.
The platform is Amazon EC2. The constraints are zero downtime (at least one instance must remain online) and zero additional instances (the update must be in-place).
This establishes that we must use an in-place deployment strategy for EC2 that does not deploy to all instances simultaneously.
2
Evaluate CodeDeploy default in-place configurations.
CodeDeployDefault.OneAtATime deploys to 1 of 4 instances (leaving 3 healthy). CodeDeployDefault.HalfAtATime deploys to 2 of 4 instances (leaving 2 healthy). CodeDeployDefault.AllAtOnce deploys to 4 of 4 instances (leaving 0 healthy).
Both OneAtATime and HalfAtATime maintain application availability during the in-place update process.
3
Filter out configurations that violate the constraints.
AllAtOnce causes downtime. Blue/Green requires provisioning a replacement Auto Scaling group (incurring extra instance costs). ECSLinear10PercentEvery1Minute is incompatible with EC2 deployments.
This confirms that only the two selected in-place configurations meet both the availability and budget requirements.

Anahtar Kavram

AWS CodeDeploy in-place deployment configurations for EC2 that balance fleet capacity and update progress without provisioning new instances.
Bu soruyu puanla