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

Design node scaling for EKS with mixed Spot and On-Demand and fast scale-up.

AdvancedScenarioECS, EKS, Lambda and ECR
Answer

Situation read → Karpenter replaces fixed node groups with just-in-time right-sized nodes.

What I'd do →

  1. Install Karpenter with a NodePool allowing multiple instance families and spot plus on-demand capacity types
  2. Set disruption consolidation policy WhenEmptyOrUnderutilized
  3. Keep a small managed node group for system pods
  4. Use PDBs and topologySpreadConstraints
  5. Handle interruption via SQS queue integration

Why → Karpenter picks the cheapest fitting instance in seconds rather than scaling fixed groups.

Interview tip → Mention bin-packing and consolidation.

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

More on ECS, EKS, Lambda and ECR