Bird
0
0

You want to run a web app that scales automatically based on CPU usage. Which combination should you use in AWS ECS?

hard📝 Best Practice Q15 of 15
AWS - ECS and Fargate
You want to run a web app that scales automatically based on CPU usage. Which combination should you use in AWS ECS?
ACreate a service with a task definition and enable auto scaling on the service
BCreate only tasks without a service and manually start more tasks
CUse EC2 instances without ECS to run containers
DCreate a service but disable task definitions
Step-by-Step Solution
Solution:
  1. Step 1: Identify components for scaling

    A service manages tasks and can be configured with auto scaling based on CPU.
  2. Step 2: Evaluate other options

    Running tasks without a service lacks auto scaling. Using EC2 alone misses ECS benefits. Disabling task definitions is invalid.
  3. Final Answer:

    Create a service with a task definition and enable auto scaling on the service -> Option A
  4. Quick Check:

    Service + task + auto scaling = C [OK]
Quick Trick: Use service with auto scaling for CPU-based scaling [OK]
Common Mistakes:
  • Skipping service and expecting auto scaling
  • Confusing EC2 usage without ECS
  • Disabling task definitions breaks deployment

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes