Skip to content
Learn Netverks

Lesson

Step 16/36 44% through track

containers-ecs-preview

Containers and ECS preview

Last reviewed May 28, 2026 Content v20260528
Track mode
none
Means
Read / quiz
Reading
~2 min
Level
beginner

This lesson

This lesson teaches Containers and ECS preview: AWS concepts, console/CLI practice patterns, and how the service fits in a typical cloud architecture.

Teams apply Containers and ECS preview in every serious AWS rollout—skipping it leaves blind spots in reviews and incidents.

You will apply Containers and ECS preview in contexts like: Event-driven APIs, webhooks, and containerized microservices.

Read the lesson, reproduce steps in your AWS Free Tier or sandbox (console and optional AWS CLI), diagram the architecture in notes, and complete MCQs—no in-browser cloud lab.

When you can explain the previous lesson's ideas in your own words.

Containers package apps with dependencies. Amazon ECS (Elastic Container Service) runs Docker containers on AWS—on EC2 you manage, or on Fargate serverless tasks.

ECS vocabulary

  • Cluster — logical grouping of capacity
  • Task definition — CPU, memory, container image, env vars
  • Service — maintains desired task count behind a load balancer
  • ECR — private Docker registry in AWS

ECS vs EKS preview

EKS is managed Kubernetes—choose when you need K8s APIs and ecosystem. ECS is simpler when you want AWS-native orchestration without Kubernetes complexity.

List clusters

aws ecs list-clusters
aws ecr describe-repositories --query 'repositories[].repositoryName'

Practice: Launch resources in the EC2 Console or CLI only in a sandbox account. Use t2.micro or t3.micro where free tier applies; terminate when done.

Important interview questions and answers

  1. Q: Task vs service?
    A: Task is one running container group; service keeps N tasks running and replaces failures.
  2. Q: What is ECR?
    A: Elastic Container Registry—stores Docker images for ECS/EKS deployment.

Self-check

  1. Name two ECS components and their roles.
  2. When might you pick Fargate over EC2-backed ECS?

Tip: ECR image scanning catches known CVEs before deploy—enable in sandbox repos.

Interview prep

Task vs service?

Task runs containers once; service maintains desired running task count.

ECR?

Private Docker registry storing images for ECS/EKS deployment.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • Fargate vs EC2?
  • ECR purpose?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump