InterviewHubPRO
Section Overview
Q31

Question 31 of 65

Part 3: Compute, Containers & Serverless (21 - 35)

48%
AWS Cloud Architecture•Part 3: Compute, Containers & Serverless (21 - 35)

ECS vs EKS: Operational trade-offs.

In Simple Words:

  • Amazon ECS: AWS-native, simple, zero control-plane cost, deeply integrated with IAM and ALB.
  • Amazon EKS: Managed Kubernetes. Higher learning curve and costs ($0.10/hour control plane), but provides cross-cloud portability and the huge Kubernetes ecosystem (Helm, ArgoCD).
json
// ECS Task Definition snippet:
{
  "family": "api-service",
  "networkMode": "awsvpc",
  "requiresCompatibilities": ["FARGATE"],
  "cpu": "512",
  "memory": "1024",
  "containerDefinitions": [
    {
      "name": "web",
      "image": "123456789.dkr.ecr.us-east-1.amazonaws.com/api:v1",
      "portMappings": [{ "containerPort": 8080 }]
    }
  ]
}