AWSCloud Visual Academy

AWS service / Serverless

AWS Lambda

Serverless function compute that runs code in response to events or direct invocation.

Try a scenarioRecall card

How it works

AWS manages the execution infrastructure and scales execution environments with demand subject to concurrency limits. A function invocation has a maximum duration of 15 minutes; durable state belongs outside the execution environment.

Exam keywords

functions
event-driven
invocation
concurrency
15-minute timeout

Picture this

An on-call technician performs a short job when a bell rings and does not keep a desk between calls.

Lambda runs a function per invocation.

When to use it

A team needs to generate thumbnails within seconds of an object upload and avoid keeping compute running when no uploads occur.

When not to use it

Do not choose it for jobs that cannot finish within the invocation limit or for software that must control the OS.

AWS Fargate — Serverless compute capacity for running Amazon ECS tasks and supported Amazon EKS pods without managing worker instances.
Amazon EC2 — On-demand virtual machines with control over the operating system, instance type, and network placement.
AWS Step Functions — Managed workflow orchestration that coordinates tasks using state machines.

On the exam

AWS Certified Cloud Practitioner (CLF-C02) · Domain 3: Technology & Services · Task 3.3