AWS Certified Cloud Practitioner (CLF-C02)Cloud Technology and ServicesMedium
A development team wants to deploy a new web application rapidly without managing underlying servers or scaling infrastructure. The application consists of containerized microservices. They need a service that automatically provisions and scales the compute capacity for their containers. Which AWS service should they use?
- AAmazon EKS
- BAmazon ECS with Fargate launch type
- CAmazon EC2
- DAWS Lambda
Show answer & explanationAnswer & explanation
Correct answer: B. Amazon ECS with Fargate launch type
Amazon ECS (Elastic Container Service) with the Fargate launch type allows you to run containers without having to provision, configure, or scale clusters of virtual machines. Fargate is a serverless compute engine for containers that automatically handles the underlying infrastructure, making it ideal for rapid deployment of containerized microservices without server management.
Why the other options are wrong
- A. Amazon EKS (Elastic Kubernetes Service) requires managing Kubernetes clusters and worker nodes (unless combined with Fargate), which involves more operational overhead than ECS Fargate for pure serverless container deployments.
- C. Amazon EC2 requires manual provisioning, configuration, and scaling of virtual servers, which goes against the 'without managing underlying servers' requirement.
- D. AWS Lambda is for running serverless code functions, not for containerized microservices that typically run for longer durations and have more complex dependencies.
Amazon ECS with Fargate
A serverless compute engine for Amazon ECS that allows you to run containers without having to provision, configure, or scale clusters of virtual machines.
- No servers to manage.
- Pay only for the resources consumed by your containers.
- Seamlessly integrates with ECS for container orchestration.
Memory trick: ECS Fargate: Effortless Container Service, Fulfills all serverless dreams.