Chapter 89: Amazon ECS for DevOps
89.11 Interview questions and revision
Interview cards
Interview questions
- What is ECS? — AWS service that runs containers as tasks and services on EC2 or Fargate.
- Cluster vs task definition vs service? — Home, recipe, and keeper of desired copies.
- EC2 launch type vs Fargate? — You manage instances vs AWS-managed task capacity; compare approximate cost and ops.
- Task role vs execution role? — App AWS calls vs ECS pull/logs/startup needs.
- How do you release? — Build → ECR → new task definition revision → update-service (often with circuit breaker).
- How does ALB fit? — Service registers tasks into a target group; health checks protect users.
- Where are logs? — Usually CloudWatch via the awslogs driver.
- ECS vs EKS? — AWS-native tasks vs Kubernetes API; pick by team skills and portability needs (chapter 88).
Revision checklist
- [ ] I can explain when ECS is enough and when EKS is worth it.
- [ ] I can sketch cluster, task definition and service.
- [ ] I can compare EC2 launch type and Fargate.
- [ ] I know ALB target groups and optional Cloud Map discovery.
- [ ] I split task role and execution role.
- [ ] I can describe ECR push plus update-service.
- [ ] I know autoscaling and deployment circuit breaker with rollback.
- [ ] I can find logs in CloudWatch and set retention.
- [ ] I treat AWS prices as approximate and check official pricing.
- [ ] I delete lab resources the same day.
Quick quiz
Q1. Name two ECS cost levers.
Fargate or EC2 compute time, plus ALB, NAT and CloudWatch Logs — verify current prices.
Q2. What should you enable to auto-undo a bad ECS deploy?
Deployment circuit breaker with rollback.
Q3. Which chapter taught managed Kubernetes on AWS?
Chapter 88 — Amazon EKS.
Ravindra Bagale's Tip
In interviews: define ECS in one line, contrast task vs execution roles, then walk build → ECR → update-service → circuit breaker.
Interview: एका वाक्यात ECS, task vs execution role, नंतर build → ECR → update-service → circuit breaker.
Interview: एक पंक्ति में ECS, task vs execution role, फिर build → ECR → update-service → circuit breaker.
In short
- ECS runs containers as tasks and services on AWS without the Kubernetes API.
- Learn cluster, task definition, service, Fargate vs EC2, ALB, and split IAM roles.
- Release with ECR and update-service; protect with circuit breaker and CloudWatch logs.
- Compare honestly with EKS (chapter 88); pick for team and portability, not hype.
- Lab only on funded accounts; tear down the same day; prices are approximate.
Did you understand? Let us try it once more.