A developer is configuring a rolling update deployment for an application hosted on an Amazon Elastic Container Service (Amazon ECS) cluster using the EC2 launch type. The service runs with a desired task count of . Due to strict memory constraints on the container instances, the cluster cannot run more than tasks simultaneously. Additionally, the application must maintain at least of its desired capacity ( tasks) at all times to handle incoming baseline traffic.
Which two parameters should the developer configure in the ECS service definition to meet these requirements? (Select TWO.)
- Set `minimumHealthyPercent` to .Answer
- Set `maximumPercent` to .Answer
- CSet `minimumHealthyPercent` to .
- DSet `maximumPercent` to .
- ESet `minimumHealthyPercent` to .
Answer
Setting the minimum healthy percent to and the maximum percent to in the ECS service definition deployment configuration.
To satisfy the requirements, the developer must configure the deployment parameters of the ECS service relative to the desired task count of . The minimum healthy percent represents the lower limit of healthy tasks that must remain running during a deployment, calculated as . The maximum percent represents the upper limit of tasks that can be running, calculated as . Together, these parameters allow the ECS service to perform a rolling update by launching up to new tasks before terminating old ones, while never dropping below active tasks or exceeding total tasks.
Step-by-Step Solution
Key Concept
Amazon ECS Rolling Update Deployment Parameters
Estimated Time:1m 30s