AWS Certified Solutions Architect – Associate (SAA-C02) — Question 237
A company is launching a new application deployed on an Amazon Elastic Container Service (Amazon ECS) cluster and is using the Fargate launch type for ECS tasks. The company is monitoring CPU and memory usage because it is expecting high traffic to the application upon its launch. However, the company wants to reduce costs when utilization decreases.
What should a solutions architect recommend?
Answer options
- A. Use Amazon EC2 Auto Scaling to scale at certain periods based on previous traffic patterns.
- B. Use an AWS Lambda function to scale Amazon ECS based on metric breaches that trigger an Amazon CloudWatch alarm.
- C. Use Amazon EC2 Auto Scaling with simple scaling policies to scale when ECS metric breaches trigger an Amazon CloudWatch alarm.
- D. Use AWS Application Auto Scaling with target tracking policies to scale when ECS metric breaches trigger an Amazon CloudWatch alarm.
Correct answer: D
Explanation
The correct answer is D because AWS Application Auto Scaling with target tracking policies allows for efficient scaling based on predefined metrics, which is especially suited for fluctuating traffic. Options A and C rely on Amazon EC2 Auto Scaling, which is not applicable with Fargate launch type, while option B suggests using AWS Lambda, which is not necessary for automatic scaling in this context.