AWS Certified Cloud Practitioner (CLF-C02)Cloud Technology and ServicesHard
A startup is building a new application and wants to use containers to package their microservices. They prefer not to manage the underlying servers (EC2 instances) for their container orchestration platform. They need a serverless compute engine for their containers. Which AWS service combination BEST meets this requirement?
- AAmazon EKS with EC2 instances
- BAWS Lambda with container images
- CAmazon ECS with AWS Fargate
- DAmazon EC2 with Docker
Show answer & explanationAnswer & explanation
Correct answer: C. Amazon ECS with AWS Fargate
Amazon ECS (Elastic Container Service) is a container orchestration service. When combined with AWS Fargate, it provides a serverless compute engine for containers, meaning you don't need to provision, configure, or scale clusters of virtual machines.
Why the other options are wrong
- A. Amazon EKS (Elastic Kubernetes Service) with EC2 instances still requires managing the EC2 instances, which is not serverless compute for the underlying infrastructure.
- B. AWS Lambda with container images allows running functions as containers, but it's more for event-driven functions and not a general-purpose container orchestration platform for microservices like ECS/Fargate.
- D. Amazon EC2 with Docker requires manual management of EC2 instances, which goes against the 'not manage underlying servers' requirement.
Amazon ECS with AWS Fargate
A combination of services that allows you to run containerized applications without provisioning or managing the underlying infrastructure (servers).
- ECS: Container orchestration service
- Fargate: Serverless compute engine for containers
- No EC2 instance management required
- Ideal for microservices and containerized applications
Memory trick: ECS and Fargate, a serverless pair, containers run, no servers to bear.