Cloud and AWS · Trade-off
EC2, ECS, EKS or Lambda for a small team
Practise this out loud
Say your answer out loud to an AI interviewer that follows up, and get a score for it.
Practise by voiceThe interviewer asks
A startup with four engineers is moving six services and a few cron jobs from one big EC2 server to something more reliable on AWS. Would you pick EC2 with Auto Scaling, ECS on Fargate, EKS, or Lambda? Why?
Then
Follow-ups the interviewer asks next
- What does each option make you own and operate?
- What does Kubernetes give you that ECS doesn't, and is it worth it here?
- Which workloads fit Lambda, and which don't?
- How do costs compare at low and at steady traffic?
- What would change your answer in two years?
- Does EKS Auto Mode change the picture?
The answer
What a strong answer covers
- EC2 with Auto Scaling: full control, cheapest per CPU at steady load; you own OS patching, images, deployments and service discovery.
- ECS on Fargate: AWS-native containers, no servers or control plane to run, simple deployments behind an ALB, an IAM role per task, quick to learn; less ecosystem and portability than Kubernetes; Fargate costs more per vCPU than EC2 but saves people's time.
- EKS: the Kubernetes ecosystem (Helm, operators, GitOps, portability, a large hiring pool), but you own add-ons, yearly upgrades (or extended-support fees), networking and security tuning. Auto Mode (managed nodes, core add-ons and scaling) reduces this; the learning curve stays.
- Lambda: spiky and event-driven work, scheduled jobs (EventBridge Scheduler), glue code; limits on run time (15 minutes), cold starts, database connections (use RDS Proxy), a different way to develop and observe.
- For this team: ECS on Fargate for the six services and EventBridge Scheduler (running Lambda functions or Fargate tasks) for cron is usually the best fit: least operations, enough features. Move to EKS when many teams, platform needs or portability justify it.
- Cost: at low traffic, Lambda and Fargate are cheap; at steady high traffic, EC2 (with Savings Plans, Graviton, Spot) wins; for a team of four, people's time dominates.
- Whatever they choose: infrastructure as code, CI/CD, logs and metrics from day one.
The red pen
Common traps
Avoid:"Kubernetes, because everyone uses it"; Lambda for long-running or connection-heavy services; ignoring who will be on call.
Practise this out loud
Say your answer out loud to an AI interviewer that follows up, and get a score for it.
Practise by voicePractise questions like this out loud
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.