Question 241 of 988
CLF-C02 Cloud Technology and Services Practice Question
A company is refactoring its legacy application into a microservices architecture using Docker containers. The operations team wants to deploy and manage these containers on AWS without the need to provision, patch, or manage the underlying servers. The solution must automatically scale containers based on demand and integrate with services like Application Load Balancer and Amazon RDS. Which AWS compute service should the company use?
⚠ Common exam trap
Watch out — candidates often confuse the EC2 launch type (which still requires server management) with Fargate (which is serverless), or mistakenly think AWS Lambda can run Docker containers as a full microservice platform, ignoring its execution time and invocation model limitations.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Amazon ECS with AWS Fargate launch type
Amazon ECS with AWS Fargate launch type is the correct choice because it is a serverless compute engine for containers that eliminates the need to provision, patch, or manage underlying servers. Fargate automatically scales containers based on demand and integrates natively with services like Application Load Balancer and Amazon RDS, meeting all the stated requirements.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Amazon ECS with Amazon EC2 launch type
Why it's wrong here
With the Amazon EC2 launch type, ECS orchestrates your containers, but the worker nodes are EC2 instances that you own and operate. Someone on the team must manage AMI updates, OS security patching, the ECS agent, and the cluster's desired capacity, and you manually scale instances using Auto Scaling or an Auto Scaling group. This operational burden directly conflicts with the requirement to avoid managing servers, so it is not the most appropriate fit.
When this WOULD be correct
If the question specified that the company needs granular control over the underlying infrastructure, such as custom AMIs, GPU instances, or specific instance configurations, and is willing to manage servers, then ECS with EC2 launch type would be correct.
- ✓
Amazon ECS with AWS Fargate launch type
Why this is correct
AWS Fargate is a serverless compute engine for containers. It automatically provisions and scales the underlying infrastructure, so the team does not have to manage servers. It integrates with ECS, ALB, RDS, and other AWS services.
- ✗
AWS Lambda
Why it's wrong here
AWS Lambda runs code only in response to invocations, on a model built for short, event-driven work—the hard cap is 15 minutes and container images are limited to 10 GB. Microservices that accept long-lived connections or run continuous background jobs would time out, and the stateless, invocation-centric model makes it awkward for a traditional autoscaled HTTP service with persistent pool connections to RDS. It can package container images, but at best it is a functions layer; it is not a general-purpose, long-running container compute platform like Fargate.
When this WOULD be correct
A company needs to run a stateless, event-driven function that processes data from an S3 bucket or API Gateway, with no need for persistent storage or long-running processes. The solution must scale automatically and requires no server management.
- ✗
Amazon EC2 instances with Docker installed
Why it's wrong here
This is the highest-touch path: you must launch EC2 instances, install and update the Docker engine, patch the OS, restart failed containers, and wire up service discovery, load balancing, and autoscaling yourself. There is no orchestration layer for rolling deployments or health checks unless you build one, and the team is accountable for the entire container host lifecycle. That manual management makes it incompatible with the requirement to minimize server management.
When this WOULD be correct
This option would be correct if the question specified that the company needs full control over the underlying operating system, custom kernel modules, or specific Docker configurations that are not supported by managed services like ECS or Fargate.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The CLF-C02 exam frequently reuses these exact scenarios with slightly different constraints.
✓Amazon ECS with AWS Fargate launch typeCorrect answer▾
Why this is correct
AWS Fargate is a serverless compute engine for containers. It automatically provisions and scales the underlying infrastructure, so the team does not have to manage servers. It integrates with ECS, ALB, RDS, and other AWS services.
✗Amazon ECS with Amazon EC2 launch typeWrong answer — click to see why▾
Why this is wrong here
Amazon ECS with EC2 launch type requires provisioning, patching, and managing the underlying EC2 instances, which contradicts the requirement to avoid server management.
★ When this WOULD be the correct answer
If the question specified that the company needs granular control over the underlying infrastructure, such as custom AMIs, GPU instances, or specific instance configurations, and is willing to manage servers, then ECS with EC2 launch type would be correct.
Why candidates choose this
Candidates may know ECS is for containers but overlook the distinction between launch types, assuming EC2 is the default or only option, and miss the 'no server management' constraint.
✗AWS LambdaWrong answer — click to see why▾
Why this is wrong here
AWS Lambda is designed for short-running, event-driven functions, not for managing Docker containers as a primary compute service. It does not natively support running Docker containers or integrate with Application Load Balancer for container orchestration.
★ When this WOULD be the correct answer
A company needs to run a stateless, event-driven function that processes data from an S3 bucket or API Gateway, with no need for persistent storage or long-running processes. The solution must scale automatically and requires no server management.
Why candidates choose this
Candidates may confuse serverless computing with container orchestration, assuming that Lambda can run Docker containers because it supports custom runtimes, but it lacks the necessary features for container management and load balancing.
✗Amazon EC2 instances with Docker installedWrong answer — click to see why▾
Why this is wrong here
Amazon EC2 instances with Docker installed require the operations team to provision, patch, and manage the underlying servers, which contradicts the requirement to avoid server management.
★ When this WOULD be the correct answer
This option would be correct if the question specified that the company needs full control over the underlying operating system, custom kernel modules, or specific Docker configurations that are not supported by managed services like ECS or Fargate.
Why candidates choose this
Candidates may think that running Docker on EC2 is the standard way to containerize applications on AWS, overlooking the managed alternatives that eliminate server management overhead.
Analysis generated from the official CLF-C02blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 11, 2026
This CLF-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CLF-C02 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.