Bird
0
0

Given this ECS service auto scaling configuration snippet:

medium📝 service behavior Q13 of 15
AWS - ECS and Fargate
Given this ECS service auto scaling configuration snippet:
{"MinCapacity": 2, "MaxCapacity": 5, "TargetValue": 60}

What happens when CPU utilization stays at 70% for a long time?
AThe service scales up to 5 containers to reduce CPU load
BThe service scales down to 2 containers to save cost
CThe service keeps running 2 containers without change
DThe service crashes due to high CPU
Step-by-Step Solution
Solution:
  1. Step 1: Understand scaling triggers from CPU target

    TargetValue 60 means ECS tries to keep CPU near 60%. If CPU is 70%, it needs more containers.
  2. Step 2: Apply min and max capacity limits

    Min is 2, max is 5. Scaling up is allowed up to 5 containers to reduce CPU load.
  3. Final Answer:

    The service scales up to 5 containers to reduce CPU load -> Option A
  4. Quick Check:

    CPU above target scales up containers = The service scales up to 5 containers to reduce CPU load [OK]
Quick Trick: CPU above target scales up, below scales down [OK]
Common Mistakes:
  • Thinking service scales down when CPU is high
  • Ignoring max capacity limit
  • Assuming service crashes on high CPU

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes