A team has containerised its application and wants to keep the container image as its unit of deployment. It does not want to choose, patch, scale or pay for EC2 instances to host those containers. What should it use?

AWS Certified Cloud Practitioner (CLF-C02), objective 3. Cloud technology and services medium

Machine-checked — no person has signed for it. This question was read against the source cited below by an automated pass, which found no contradiction. That is a weaker claim than it sounds: the same kind of process wrote the question, so it can confirm its own mistake.

Treat it as a good draft rather than as settled fact, and read the source below before you rely on it. It is not used in mock exams here — only questions a person has signed for are.

The options

Correct AWS Fargate as the launch type behind Amazon ECS or Amazon EKS

Correct. Fargate runs the containers on capacity AWS owns and manages. You declare the vCPU and memory each task needs and pay for that, with no instances in your account to size or patch.

Not correct Amazon ECS with an EC2 capacity provider

Wrong for this requirement. ECS orchestrates the containers, but with the EC2 launch type the container instances are yours: you choose the type, keep the AMI patched and manage how many are running.

Not correct EC2 instances with a container runtime installed and managed by the team

Wrong, and it is more of the same work by hand, with the orchestration to build as well. This is what ECS and EKS were created to replace.

Not correct AWS Lambda

Wrong for the stated goal. Lambda also removes all server management, but it is a function-and-event model with a fifteen-minute ceiling per invocation. The team asked to keep running containers, not to rewrite the application as functions.

Why

Two independent choices hide inside every container question. Which orchestrator: Amazon ECS is AWS's own, Amazon EKS is managed Kubernetes and is the answer when the team already has Kubernetes skills or manifests. Who owns the servers: EC2 means you do, Fargate means AWS does. So 'ECS on Fargate' and 'EKS on EC2' are both sensible sentences. Images themselves live in Amazon ECR.

Where this comes from

Cited
AWS exam guide task statement 3.3

Practise this

Reading one question is not practice. The trainer will draw a set from objective 3 and space the ones you get wrong.

Practise AWS Certified Cloud Practitioner (CLF-C02)

More questions on this objective

All questions on Cloud technology and services