SAA-C03 Question 154
Single answerA company is running containerized applications using Amazon Elastic Container Service (Amazon ECS) with the AWS Fargate launch type. The company wants to implement a solution that will automatically scale the number of running tasks in their ECS service based on CPU utilization. What should the Solutions Architect do to meet this requirement?
- A
Enable Service Auto Scaling for the ECS service and define a scaling policy based on CPU utilization.
- B
Use an Application Load Balancer (ALB) to monitor traffic and scale the ECS service automatically.
- C
Manually increase or decrease the desired count of tasks in the ECS service based on CPU utilization metrics.
- D
Deploy the ECS service to an Amazon EC2 Auto Scaling group to automatically scale tasks based on resource usage.
Show answer and explanation
Correct answer: A
Explanation
To automatically scale ECS tasks based on CPU utilization, you must enable Service Auto Scaling for the ECS service. This involves creating scaling policies that define when to add or remove tasks based on metrics like CPU utilization, which are collected by Amazon CloudWatch. Other options, such as manually scaling tasks or relying on an ALB or EC2 Auto Scaling, do not fulfill the requirement for automatic scaling of ECS tasks.
- A. Correct.
This is the correct option. Enabling Service Auto Scaling for the ECS service and defining a scaling policy based on CPU utilization allows the ECS service to automatically increase or decrease the number of tasks based on specified thresholds.
- B. Incorrect.
Incorrect. While an ALB can route traffic to ECS tasks, it does not directly enable scaling based on CPU utilization metrics. Auto Scaling policies need to be explicitly configured.
- C. Incorrect.
Incorrect. Manually scaling tasks is not automated and does not meet the requirement of automatic scaling based on CPU utilization.
- D. Incorrect.
Incorrect. Deploying ECS services to an EC2 Auto Scaling group does not automatically scale the number of ECS tasks. Auto Scaling groups scale EC2 instances, not ECS tasks.