Courseiva
Question 790 of 988
Cloud Technology and ServicesmediumMultiple ChoiceObjective-mapped

CLF-C02 Cloud Technology and Services Practice Question

A company is developing a microservices-based application using Docker containers. The development team wants to run these containers on AWS without having to provision or manage any servers. The solution must automatically scale the containers based on demand and integrate with an Application Load Balancer for traffic distribution. Which AWS service should the team use to meet these requirements?

⚠ Common exam trap

Many exam-takers confuse AWS Lambda with serverless container services, but Lambda is for functions, not long-running containers, and Amazon ECS on EC2 is serverless in terms of orchestration but still requires server management, which the question explicitly excludes.

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

AWS Fargate

AWS Fargate is the correct choice because it is a serverless compute engine for containers that allows you to run Docker containers without provisioning or managing servers. It automatically scales containers based on demand and integrates natively with an Application Load Balancer (ALB) for traffic distribution, 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.

  • AWS Lambda

    Why it's wrong here

    AWS Lambda is a serverless compute service that executes code in response to events, and although it supports packaging functions as OCI-compatible container images, it does not run arbitrary long-running Docker containers. Lambda functions have a maximum execution timeout of 15 minutes and are designed for short-lived, discrete invocations, not persistent microservices with continuous connections. You also cannot directly attach an Application Load Balancer to a container image in Lambda; instead, you need an API Gateway or a function URL. Thus, Lambda is not a suitable replacement for a container orchestration service like Fargate for this use case.

    When this WOULD be correct

    A company needs to run a serverless function triggered by an S3 upload event to process images, with no need for a load balancer or long-running containers. AWS Lambda would be the correct choice for this event-driven compute scenario.

  • Amazon ECS on Amazon EC2

    Why it's wrong here

    While Amazon ECS can run Docker containers, using the EC2 launch type requires you to provision and manage the underlying EC2 instances. The requirement is to avoid server management, so this option does not meet that need.

    When this WOULD be correct

    If the question required full control over the underlying EC2 instances for compliance, custom AMIs, or cost optimization through Reserved Instances, Amazon ECS on Amazon EC2 would be the correct choice.

  • AWS Fargate

    Why this is correct

    AWS Fargate is a serverless compute engine for containers that runs on top of Amazon ECS or Amazon EKS. It abstracts away all underlying EC2 instances, automatically managing host patching, capacity provisioning, and hardware failures. Fargate integrates natively with Application Load Balancers and can scale tasks or pods horizontally based on CPU/memory utilization or custom metrics. This fully meets the requirement of avoiding server management while supporting containerized microservices.

  • Amazon Lightsail

    Why it's wrong here

    Amazon Lightsail is a simplified virtual private server (VPS) service designed for straightforward workloads like blogs, simple websites, or small business apps. It does not provide native container orchestration, so there is no built-in mechanism for service discovery, rolling deployments, or automatic scaling of individual container instances. While you could manually run Docker on a Lightsail instance, you would need to configure load balancing and scaling yourself, which violates the requirement to avoid managing the underlying server infrastructure. It is architecture, not a container platform.

    When this WOULD be correct

    A small business needs a simple, predictable-cost environment to host a few Docker containers with minimal configuration, and does not require automatic scaling or ALB integration. Lightsail would be the correct choice for its ease of use and fixed pricing.

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.

AWS FargateCorrect answer

Why this is correct

AWS Fargate is a serverless compute engine for containers that runs on top of Amazon ECS or Amazon EKS. It abstracts away all underlying EC2 instances, automatically managing host patching, capacity provisioning, and hardware failures. Fargate integrates natively with Application Load Balancers and can scale tasks or pods horizontally based on CPU/memory utilization or custom metrics. This fully meets the requirement of avoiding server management while supporting containerized microservices.

AWS LambdaWrong answer — click to see why

Why this is wrong here

AWS Lambda is designed for event-driven, short-running functions, not for running Docker containers as a microservices-based application with an Application Load Balancer. Lambda does not natively support Docker containers for long-running services or integrate with ALB in the same way as container orchestration services.

★ When this WOULD be the correct answer

A company needs to run a serverless function triggered by an S3 upload event to process images, with no need for a load balancer or long-running containers. AWS Lambda would be the correct choice for this event-driven compute scenario.

Why candidates choose this

Candidates may confuse 'serverless' with 'containers' and think Lambda can run Docker containers, but Lambda's container support is limited to packaging code, not running full microservices with persistent connections or ALB integration.

Amazon ECS on Amazon EC2Wrong answer — click to see why

Why this is wrong here

Amazon ECS on Amazon EC2 requires you to provision and manage EC2 instances, which contradicts the requirement to run containers without managing servers.

★ When this WOULD be the correct answer

If the question required full control over the underlying EC2 instances for compliance, custom AMIs, or cost optimization through Reserved Instances, Amazon ECS on Amazon EC2 would be the correct choice.

Why candidates choose this

Candidates may confuse ECS with Fargate, assuming ECS always abstracts server management, or they may think EC2 is needed for custom container configurations.

Amazon LightsailWrong answer — click to see why

Why this is wrong here

Amazon Lightsail is a simplified VPS service that requires manual scaling and does not natively integrate with Application Load Balancers or auto-scaling based on demand, unlike Fargate which is serverless and integrates with ALB.

★ When this WOULD be the correct answer

A small business needs a simple, predictable-cost environment to host a few Docker containers with minimal configuration, and does not require automatic scaling or ALB integration. Lightsail would be the correct choice for its ease of use and fixed pricing.

Why candidates choose this

Candidates may be tempted by Lightsail's simplicity and lower cost, mistakenly believing it can handle container orchestration and auto-scaling, when it is actually designed for simpler, non-scalable workloads.

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

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, 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 →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

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.

Loading comments…

Sign in to join the discussion.

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.