AWS CLF-C02 — Docker, ECS, Lambda, Batch, Lightsail, and Serverless Overview
Docker is a software development platform to deploy apps in containers. Containers are standardized units that package code and dependencies together, ensuring apps run the same way regardless of where they are deployed.
ECS + EC2 = you manage EC2 instances. ECS/EKS + Fargate = serverless (no servers to manage). ECR = where you store your Docker images.
Serverless compute service that runs your code in response to events without provisioning or managing servers.
| Pricing Component | Details |
|---|---|
| Per Request | First 1 million requests free, then $0.20 per million requests |
| Per Duration | 400,000 GB-seconds free per month. After that, $1.00 per 600,000 GB-seconds |
It is usually very cheap to run Lambda, making it very popular for serverless architectures.
Lambda = serverless, event-driven, auto-scaling, pay per invocation + compute time. Max 15 min runtime. If the question says "run code without servers" or "event-driven compute," think Lambda.
Fully managed service to create, publish, maintain, monitor, and secure REST, HTTP, and WebSocket APIs at any scale.
API Gateway + Lambda = fully serverless API. This is a very common architecture pattern on the exam!
Fully managed batch processing service at any scale. Dynamically provisions the optimal quantity and type of compute resources.
| Feature | Lambda | AWS Batch |
|---|---|---|
| Time Limit | 15 minutes max | No time limit |
| Languages | Limited runtimes | Any (Docker image) |
| Storage | Limited temporary disk space | EBS / instance store |
| Serverless | Yes | Managed (runs on EC2/Spot) |
| Best For | Short, event-driven tasks | Long-running batch processing |
Lambda = short, event-driven (max 15 min). Batch = long-running jobs, no time limit, Docker-based. If the question mentions "batch processing" or jobs that need hours to complete, think AWS Batch.
Simpler alternative to using EC2, RDS, ELB, EBS, Route 53, etc. For people with little cloud experience.
Lightsail = simple cloud for beginners, low predictable pricing, VPS. Think of it as AWS for people who don't want to deal with the complexity of full AWS services.
Fully managed service to deploy web applications and APIs at scale. No infrastructure experience required.
Serverless means you don't manage or see servers. AWS handles provisioning, scaling, and maintenance.
| Category | Serverless Service |
|---|---|
| Compute | AWS Lambda (functions), AWS Fargate (containers) |
| Storage | Amazon S3 |
| Database | DynamoDB, Aurora Serverless |
| API | Amazon API Gateway |
| Messaging | Amazon SNS, Amazon SQS |
| Orchestration | AWS Step Functions |
| Event Bus | Amazon EventBridge |
| Analytics | Amazon Athena, Amazon QuickSight |
| ETL | AWS Glue |
| Data Streaming | Kinesis Data Firehose |
Memorize which services are serverless. The exam frequently asks "which is a serverless service?" EC2 is NOT serverless. ECS (with EC2 launch type) is NOT serverless. Fargate IS serverless. Lambda IS serverless.
| Service | Type | Best For |
|---|---|---|
| EC2 | Virtual Machine | Full control, long-running workloads |
| Lambda | Serverless Functions | Short event-driven tasks (max 15 min) |
| ECS | Containers (EC2) | Docker on self-managed EC2 |
| Fargate | Containers (Serverless) | Docker without managing servers |
| Batch | Batch Processing | Long-running batch jobs, Docker-based |
| Lightsail | Simple VPS | Beginners, simple apps, predictable pricing |
| App Runner | Managed Containers | Quick web app/API deployment |