AWS Lambda
Serverless compute service that runs code in response to events and automatically scales execution.
How it works
AWS Lambda runs function code in managed execution environments when invoked, including through configured integrations with S3 or API Gateway. Lambda creates execution environments as needed within concurrency quotas and may reuse them after an invocation. Pricing depends on requests, resources, and duration; optional features may incur additional charges.
When to use it
Choose it when the requirement is event-driven compute or short background tasks without managing servers.
Real-world example
A news site configures S3 notifications to invoke a Lambda function when photos are uploaded. The function resizes the images and writes metadata to a database without the team maintaining persistent servers.
Key facts
- Function memory is configurable from 128 MB to 10 GB with an execution timeout limit of 900 seconds (15 minutes).
- Concurrency quotas apply per Region and may be lower for new accounts; synchronous throttles return HTTP 429.
- ZIP packages allow 50 MB for direct upload and 250 MB uncompressed, including layers; /tmp storage is configurable.
Common pitfall
Lambda has a maximum execution timeout of 15 minutes per invocation. Longer work must be divided into smaller tasks or run on another suitable service; persistent state needs external storage.
Often confused with
Amazon EC2 (virtual servers that you manage and keep running) and AWS Fargate (serverless containers without a 15-minute timeout).
References
Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:
Keywords you will see in SAA-C03 questions
- no servers to manage
- S3 event notification
Understand it for real with 3D models and simulated labs
Connect the concept to a working architecture.