AWS Certified Cloud Practitioner (CLF-C02)Cloud Technology and ServicesHard

A company runs a containerized application on Amazon ECS and wants full control over the underlying EC2 instances, including the ability to install custom monitoring agents directly on the host operating system and choose specific instance types for cost optimization. Which ECS launch type should the company use?

  1. AEC2 launch type
  2. BAWS Fargate launch type
  3. CExternal launch type only
  4. DLambda launch type
Show answer & explanation

Correct answer: A. EC2 launch type

The ECS EC2 launch type requires the customer to provision and manage the underlying EC2 instances, giving full control over instance types, host-level agents, and OS configuration, unlike Fargate which abstracts away the infrastructure entirely.

Why the other options are wrong

  • B. Fargate is serverless and abstracts the underlying instances, so customers cannot access or customize the host OS.
  • C. External launch type (ECS Anywhere) is for running tasks on-premises, not for customizing AWS-managed EC2 instances.
  • D. Lambda is not an ECS launch type; it is a separate serverless compute service.

ECS EC2 Launch Type

An ECS launch type where customers manage and provision the underlying EC2 instances that host containers, offering full control over infrastructure.

  • Contrasts with Fargate's serverless model
  • Requires capacity planning and instance management
  • Allows custom AMIs, agents, and instance type selection

Memory trick: EC2 launch type: you drive the bus (manage the instances).

More Cloud Technology and Services questions