Interview Prep/AWS/ECS, EKS, Lambda and ECR

ECS tasks run out of memory only in production. How do you right-size?

IntermediateScenarioECS, EKS, Lambda and ECR
Answer

Situation read → Container insights show actual usage.

What I'd do →

  1. Enable Container Insights
  2. Check MemoryUtilized versus reserved
  3. Set a hard memory limit and soft memoryReservation
  4. Use load test to find p99 memory
  5. Alert on OOM exit 137

Why → Dev traffic rarely resembles production memory behavior.

Interview tip → Hard limit equals kill, soft limit equals scheduling hint.

aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on ECS, EKS, Lambda and ECR