Question

Difficulty: EasyDeployment Strategies

A developer needs to update an Amazon ECS service that runs behind an Application Load Balancer. To prevent any service degradation, the service must maintain 100% of its desired task capacity at all times during the update. Additionally, the service is allowed to provision up to double its desired capacity temporarily to perform the rolling update. Which configuration of deployment parameters should the developer apply to the ECS service?

  1. Set the minimum healthy percent to 100% and the maximum percent to 200%Answer
  2. B
    Set the minimum healthy percent to 50% and the maximum percent to 100%
  3. C
    Set the minimum healthy percent to 100% and the maximum percent to 100%
  4. D
    Set the minimum healthy percent to 0% and the maximum percent to 200%

Answer

Set the minimum healthy percent to 100% and the maximum percent to 200%
Setting the minimum healthy percent to 100% ensures that the desired capacity is maintained at all times, preventing any service degradation. Setting the maximum percent to 200% allows ECS to launch the new version of tasks up to double the desired count before stopping any of the existing tasks, enabling a smooth rolling update with zero downtime.

Step-by-Step Solution

1
Identify the minimum capacity requirement from the scenario.
The minimum healthy percent must be set to 100% to ensure that the service capacity never drops below 100% of the desired task count at any point.
To prevent service degradation, the application must maintain full capacity during the update.
2
Identify the maximum allowable capacity during the update.
The maximum percent must be set to 200% to allow the service to temporarily scale up to double its desired task count.
Provisioning up to double the capacity allows Amazon ECS to start new version tasks before draining and terminating the old version tasks.

Key Concept

Amazon ECS service rolling update parameters (minimum healthy percent and maximum percent)
Rate this question