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

Containers on EKS should scale on SQS queue depth. How?

IntermediateScenarioECS, EKS, Lambda and ECR
Answer

Situation read → KEDA scales pods on external metrics.

What I'd do →

  1. Install KEDA
  2. Create a ScaledObject with an aws-sqs-queue trigger and queueLength 20
  3. Authenticate using Pod Identity
  4. Set min and max replicas
  5. Combine with Karpenter for nodes

Why → Queue depth reflects work to do better than CPU.

Interview tip → Scale-to-zero is possible.

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

More on ECS, EKS, Lambda and ECR