Service Comparison

Lambda vs ECS/Fargate vs EC2

All run compute, but control and operational overhead vary.

What They Have in Common

Each option can solve part of the scenario. The exam expects you to choose the one that satisfies the stated constraints with the right operational burden, security boundary, availability model, and cost behavior.

Key Differences

OptionPrimary modelBest useSecurityAvailabilityOperations and cost
LambdaFunctionsEvent-driven, bursty, short-duration workloadsExecution roles, resource policies, KMS/VPC controlsAWS-managed multi-AZ availability; automatic scaling and concurrency controlsLowest server ops; request/duration pricing; function runtime limits
ECS/FargateManaged containersContainerized services and jobs without managing hostsTask/execution roles, security groups, secretsServices can distribute/rebalance tasks across AZsNo host management; pay for configured task compute; manage task/service configuration
EC2Virtual machinesFull OS control, custom agents, legacy or specialized workloadsInstance roles, security groups, OS hardening and patchingIndividual instances are AZ-based; multi-AZ resilience must be architectedHighest management burden; instance/storage cost; manage patching and scaling

Typical Exam Clues

Practice After Studying

Return to the certification guide that includes this comparison and launch domain training from there.

Sources and Review Metadata