Bird
0
0

You defined a task with 512 MB memory but your service fails to start tasks due to insufficient resources. What is the likely problem?

medium📝 Debug Q14 of 15
AWS - ECS and Fargate
You defined a task with 512 MB memory but your service fails to start tasks due to insufficient resources. What is the likely problem?
AThe container image is missing
BThe task definition JSON is invalid
CThe service desired count is set to zero
DThe cluster has no available memory to run the task
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the error cause

    Insufficient resources usually mean the cluster lacks enough memory to run the task.
  2. Step 2: Check other options

    Invalid JSON or zero desired count would cause different errors. Missing image causes container start failure, not resource error.
  3. Final Answer:

    The cluster has no available memory to run the task -> Option D
  4. Quick Check:

    Insufficient resources = cluster memory shortage [OK]
Quick Trick: Check cluster memory before blaming task definition [OK]
Common Mistakes:
  • Assuming JSON syntax error causes resource failure
  • Ignoring cluster resource limits
  • Confusing desired count zero with resource shortage

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes