Ravindra BagaleCourses & study guides मराठी

Chapter 89: Amazon ECS for DevOps

DevOps

89.11 Interview questions and revision

Interview cards

Interview card: What is Amazon ECS?
Interview card: What is Amazon ECS?
Interview card: Task role vs execution role
Interview card: Task role vs execution role
Interview card: How do you deploy a new image on ECS?
Interview card: How do you deploy a new image on ECS?

Interview questions

  1. What is ECS? — AWS service that runs containers as tasks and services on EC2 or Fargate.
  2. Cluster vs task definition vs service? — Home, recipe, and keeper of desired copies.
  3. EC2 launch type vs Fargate? — You manage instances vs AWS-managed task capacity; compare approximate cost and ops.
  4. Task role vs execution role? — App AWS calls vs ECS pull/logs/startup needs.
  5. How do you release? — Build → ECR → new task definition revision → update-service (often with circuit breaker).
  6. How does ALB fit? — Service registers tasks into a target group; health checks protect users.
  7. Where are logs? — Usually CloudWatch via the awslogs driver.
  8. ECS vs EKS? — AWS-native tasks vs Kubernetes API; pick by team skills and portability needs (chapter 88).

Revision checklist

Revision card: Amazon ECS checklist
Revision card: Amazon ECS 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.

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.