AWS Lambda and Serverless Patterns for SAA-C03: When to Use It and When Not To
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.
AWS-SAA-FULL
Try a free AWS SAA exam
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.
In this guide
Lambda facts worth memorising
| Limit or behaviour | Value |
|---|---|
| Maximum run time | 15 minutes |
| Memory | 128 MB to 10,240 MB; CPU scales with memory |
| Billing | Per request and per millisecond of duration |
| Scaling | Automatic, one execution environment per concurrent request |
| Access to a VPC | Optional, needed for private resources such as RDS |
Lambda vs Fargate vs EC2
| Need | Choose |
|---|---|
| Short event-driven tasks | Lambda |
| Run time over 15 minutes, containers, no servers to manage | Fargate |
| OS access, GPU or specific instance types | EC2 |
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.
- Users upload to an S3 bucket, directly with a presigned URL.
- An S3 event notification invokes a Lambda function, which writes the thumbnail to another bucket.
- Metadata goes to DynamoDB.
- 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
| Option | What it does |
|---|---|
| Reserved concurrency | Guarantees and caps capacity for one function |
| Provisioned concurrency | Keeps environments warm to avoid cold starts |
| Amazon ECS | AWS-native container orchestration |
| Amazon EKS | Managed Kubernetes, useful for portability |
| AWS Fargate | Runs 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 says | Think |
|---|---|
| Run code on an event, no servers | Lambda |
| Longer than 15 minutes, no servers | Fargate or AWS Batch |
| Avoid cold starts | Provisioned concurrency |
| Kubernetes required | EKS |
| Coordinate steps with retries | Step Functions |
| Least operational overhead | Serverless or managed options first |
Lambda and Serverless: practice questions
Five original questions. Each explanation says why the other options fail.
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.