← Back to Home

Other Compute Services

AWS CLF-C02 — Docker, ECS, Lambda, Batch, Lightsail, and Serverless Overview

Docker & Container Services

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.

Amazon ECS (Elastic Container Service)

AWS Fargate

Amazon EKS (Elastic Kubernetes Service)

Amazon ECR (Elastic Container Registry)

Exam Tip:

ECS + EC2 = you manage EC2 instances. ECS/EKS + Fargate = serverless (no servers to manage). ECR = where you store your Docker images.

AWS Lambda

Serverless compute service that runs your code in response to events without provisioning or managing servers.

Key Characteristics

Supported Languages

Common Use Cases

Lambda Pricing

Pricing ComponentDetails
Per RequestFirst 1 million requests free, then $0.20 per million requests
Per Duration400,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.

Key Point:

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.

Amazon API Gateway

Fully managed service to create, publish, maintain, monitor, and secure REST, HTTP, and WebSocket APIs at any scale.

Exam Tip:

API Gateway + Lambda = fully serverless API. This is a very common architecture pattern on the exam!

AWS Batch

Fully managed batch processing service at any scale. Dynamically provisions the optimal quantity and type of compute resources.

FeatureLambdaAWS Batch
Time Limit15 minutes maxNo time limit
LanguagesLimited runtimesAny (Docker image)
StorageLimited temporary disk spaceEBS / instance store
ServerlessYesManaged (runs on EC2/Spot)
Best ForShort, event-driven tasksLong-running batch processing
Exam Tip:

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.

Amazon Lightsail

Simpler alternative to using EC2, RDS, ELB, EBS, Route 53, etc. For people with little cloud experience.

Key Point:

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.

AWS App Runner

Fully managed service to deploy web applications and APIs at scale. No infrastructure experience required.

Serverless Services Summary

Serverless means you don't manage or see servers. AWS handles provisioning, scaling, and maintenance.

CategoryServerless Service
ComputeAWS Lambda (functions), AWS Fargate (containers)
StorageAmazon S3
DatabaseDynamoDB, Aurora Serverless
APIAmazon API Gateway
MessagingAmazon SNS, Amazon SQS
OrchestrationAWS Step Functions
Event BusAmazon EventBridge
AnalyticsAmazon Athena, Amazon QuickSight
ETLAWS Glue
Data StreamingKinesis Data Firehose
Exam Tip:

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.

Compute Services Comparison

ServiceTypeBest For
EC2Virtual MachineFull control, long-running workloads
LambdaServerless FunctionsShort event-driven tasks (max 15 min)
ECSContainers (EC2)Docker on self-managed EC2
FargateContainers (Serverless)Docker without managing servers
BatchBatch ProcessingLong-running batch jobs, Docker-based
LightsailSimple VPSBeginners, simple apps, predictable pricing
App RunnerManaged ContainersQuick web app/API deployment