SAA-C03 ยท Containers and microservices
Amazon ECS versus Amazon EKS
Container orchestration on AWS: ECS tasks and services versus Kubernetes on EKS, and which to choose for portability or simplicity.
Key points
- Amazon ECS: AWS's own orchestrator, no Kubernetes to learn.
- Task definition: describes containers; task: one running copy.
- Service: keeps desired task count, replaces failed tasks, registers them with a load balancer.
- Amazon EKS: managed Kubernetes-conformant control plane; manifests, Helm charts, tools work unchanged; portability.
- EKS Auto Mode also manages nodes.
- Both run on EC2 or AWS Fargate.
Source: https://docs.aws.amazon.com/eks/latest/userguide/what-is-eks.html
Practice questions
In Amazon ECS, which object keeps a set number of copies of a task definition running and replaces tasks that stop?
- The task definition
- The cluster
- The service
- The container instance
Show answer
Answer: C. The service
An ECS service maintains the desired count and launches a replacement when a task fails or stops. A task definition is only the blueprint, and a standalone task is not restarted when it stops.
Which statements about an Amazon ECS service are correct?
- It keeps the desired number of tasks running in the cluster
- It is managed with kubectl and Kubernetes manifests
- It replaces tasks that fail a load balancer health check
- It can put its tasks behind an Application Load Balancer
- It stops the whole service when any single task fails
Show answer
Answer: A. It keeps the desired number of tasks running in the cluster, C. It replaces tasks that fail a load balancer health check, D. It can put its tasks behind an Application Load Balancer
An ECS service keeps the desired task count, replaces tasks that fail container or load balancer health checks, and can register its tasks with an Application Load Balancer. ECS is not Kubernetes, so there is no kubectl, and a service does not simply stop when a task fails.
To run containers on Amazon ECS you first need to set up a Kubernetes control plane.
Show answer
Answer: False
False. Amazon ECS is AWS's own orchestrator and uses no Kubernetes at all. A Kubernetes control plane is what Amazon EKS provides and manages for you.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
