AWS Lambda and Serverless Patterns for SAA-C03: When to Use It and When Not To

FE
FigigExams Team
Senior Network & Security Engineers · 6+ years designing and securing enterprise networks. We build the FigigExams AWS SAA exam. This guide maps to task 2.1 and 3.2 of AWS's SAA-C03 exam guide.
Aligned to the AWS SAA-C03 exam guide · Nov 2026
Try it · free · no credit card

Know this topic? Test it on a full SAA-C03 paper

A complete SAA-C03 practice exam: 65 questions in 130 minutes, an explanation on every item and an Exam Coach report that ranks your weakest domains.

Already have an account? Log in to redeem

Lambda runs code without servers, for up to 15 minutes per invocation, and you pay for requests and duration. It suits event-driven, short-lived work. Choose Fargate for containers that run longer or need more control, and EC2 when you need the operating system or specialised hardware. Step Functions orchestrate multi-step workflows.Checked against AWS's published exam guide on 9 November 2026.

Lambda facts worth memorising

Limit or behaviourValue
Maximum run time15 minutes
Memory128 MB to 10,240 MB; CPU scales with memory
BillingPer request and per millisecond of duration
ScalingAutomatic, one execution environment per concurrent request
Access to a VPCOptional, needed for private resources such as RDS

Lambda vs Fargate vs EC2

NeedChoose
Short event-driven tasksLambda
Run time over 15 minutes, containers, no servers to manageFargate
OS access, GPU or specific instance typesEC2

Patterns the exam likes

  • API Gateway to Lambda to DynamoDB: a serverless API with no servers to patch.
  • S3 event to Lambda: process a file when it arrives.
  • SQS to Lambda: smooth out bursts and decouple the producer.
  • Step Functions: coordinate several steps, with retries and error handling.
  • EventBridge schedule to Lambda: run a task on a timer.

Common traps

  • A job that runs for hours is not a Lambda job. Look at Fargate or AWS Batch.
  • Many short database connections from Lambda can exhaust RDS. Use RDS Proxy.
  • To give Lambda more CPU, increase its memory.

A worked scenario: an image pipeline

Requirement: when users upload photos, create thumbnails, with no servers to manage and traffic that varies through the day.

  1. Users upload to an S3 bucket, directly with a presigned URL.
  2. An S3 event notification invokes a Lambda function, which writes the thumbnail to another bucket.
  3. Metadata goes to DynamoDB.
  4. If bursts could overwhelm a downstream system, put an SQS queue between S3 and Lambda.

Use a separate bucket or prefix for output. A function triggered by the bucket it writes to can loop indefinitely.

Concurrency and containers

OptionWhat it does
Reserved concurrencyGuarantees and caps capacity for one function
Provisioned concurrencyKeeps environments warm to avoid cold starts
Amazon ECSAWS-native container orchestration
Amazon EKSManaged Kubernetes, useful for portability
AWS FargateRuns ECS or EKS containers with no servers

API Gateway features worth knowing

  • Throttling protects back ends, and usage plans can limit clients.
  • Caching reduces calls to your back end.
  • Cognito or Lambda authorizers handle authentication.

How the exam words it

If the question saysThink
Run code on an event, no serversLambda
Longer than 15 minutes, no serversFargate or AWS Batch
Avoid cold startsProvisioned concurrency
Kubernetes requiredEKS
Coordinate steps with retriesStep Functions
Least operational overheadServerless or managed options first

Lambda and Serverless: practice questions

Five original questions. Each explanation says why the other options fail.

Try it · free · no credit card

Your free AWS SAA exam code is ready

Sit the full SAA-C03 paper against the real 130-minute clock. AWS SAA is $39 once, lifetime, future versions included.

AWS-SAA-FULL Redeem the code

Already have an account? Log in to redeem

Frequently asked questions

What is the maximum run time for AWS Lambda?

15 minutes per invocation. Longer work belongs on Fargate, AWS Batch or EC2.

When should I use Fargate instead of Lambda?

When tasks run longer than 15 minutes, or you already package your application as containers and do not want to manage servers.

How is Lambda priced?

By the number of requests and by duration, in milliseconds, with the rate depending on memory.

Study guides Free exam