Question

Difficulty: EasyDeployment Strategy Design

A company is designing the deployment strategy for a new web service that will run on Amazon Elastic Container Service (Amazon ECS). The deployment will be managed by updating the ECS service's task definition via AWS CloudFormation. The application must maintain 100%100\% of its desired task capacity at all times during the rolling update to prevent performance degradation, and it can temporarily run up to 200%200\% of the desired task count to facilitate the deployment.

Which configuration of the deployment parameters in the ECS service resource will meet these requirements?

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

Answer

Setting the minimum healthy percent to 100%100\% and the maximum percent to 200%200\% in the Amazon ECS service configuration.
The correct configuration is setting the minimum healthy percent to 100%100\% and the maximum percent to 200%200\%. This ensures that during a rolling update, the ECS service maintains all of its existing running tasks while launching new tasks up to double the desired capacity. Once the new tasks pass health checks, the ECS scheduler will terminate the old tasks, ensuring zero downtime and no performance degradation.

Step-by-Step Solution

1
Determine the minimum healthy task count requirement during the rolling update.
The requirement states that the service must maintain 100%100\% of its desired task capacity at all times, which means the minimum healthy percent must be set to at least 100%100\%.
This prevents the ECS scheduler from terminating any running tasks before new tasks are successfully deployed and pass health checks.
2
Determine the maximum allowed task count during the deployment.
The requirement states that the service can temporarily run up to 200%200\% of the desired task count to facilitate the update.
Setting the maximum percent to 200%200\% allows the ECS scheduler to spin up a complete set of new tasks alongside the existing tasks before starting the cutover.
3
Select the option that combines both configurations.
Configuring the ECS service resource with a minimum healthy percent of 100%100\% and a maximum percent of 200%200\%.
This is the only configuration that satisfies both the capacity maintenance and the temporary resource scaling requirements during a rolling update.

Key Concept

Amazon ECS service rolling update parameters (minimum healthy percent and maximum percent) control deployment capacity and speed.
Rate this question