
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
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?
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.
Explanation:
Correct Answer: D - Use AWS Application Auto Scaling with target tracking policies to scale when ECS metric breaches trigger an Amazon CloudWatch alarm.
AWS Application Auto Scaling is specifically designed for scaling AWS services like Amazon ECS, Amazon EC2 Spot Fleets, Amazon DynamoDB, and Amazon Aurora. It provides automatic scaling for these services based on CloudWatch metrics.
Target Tracking Scaling Policies are the most efficient way to scale ECS services with Fargate launch type. These policies:
Fargate Launch Type Compatibility: Since the company is using Fargate launch type, EC2 Auto Scaling (Options A and C) is not appropriate because Fargate abstracts away the underlying EC2 instances. With Fargate, you scale tasks, not EC2 instances.
Cost Optimization: Target tracking policies automatically scale in when utilization decreases, which directly addresses the requirement to "reduce costs when utilization decreases."
Option A: Incorrect because:
Option B: Incorrect because:
Option C: Incorrect because:
This solution provides automatic, responsive scaling based on actual utilization, ensuring optimal performance during high traffic while minimizing costs during low utilization periods.