Lambda runs your code without servers, billed per millisecond of execution (rounded up) plus memory allocated. You pick memory from 128 MB to 10,240 MB, and CPU scales proportionally with memory - more memory means more CPU. Default timeout is 3 seconds, maximum is 15 minutes. Deployment package (zip) limit is 50 MB zipped / 250 MB unzipped including layers; container images can go up to 10 GB.
A 'cold start' happens when Lambda provisions a fresh execution environment - this adds latency, worse for languages like Java or .NET. Provisioned concurrency keeps environments warm for predictable latency, at extra cost. Reserved concurrency caps how many concurrent executions a function can use, protecting downstream systems and other functions from being starved. Default account concurrency limit is 1,000 (soft limit, raisable).
Use environment variables for config; encrypt sensitive ones with KMS. Lambda is stateless between invocations but the execution environment can be reused, so anything initialised outside the handler (like a DB connection) persists across warm invocations - a common exam trap.
Supports REST APIs (more features, usage plans, API keys) and HTTP APIs (cheaper, faster, simpler, no usage plans). Integrates with Lambda via Lambda proxy integration, passing the full request and expecting a specific JSON response shape (statusCode, headers, body). Throttling defaults to 10,000 requests/second steady-state with a 5,000 burst, account-wide - configurable per method. Caching is REST-API only, not HTTP API.
A NoSQL key-value/document store. Partition key alone, or partition key + sort key, forms the primary key. Read/write capacity modes: on-demand (pay per request, scales automatically) or provisioned (set RCU/WCU, can use auto scaling). One RCU = one strongly consistent read of up to 4 KB/second (or two eventually consistent reads). One WCU = one write of up to 1 KB/second. Item size limit is 400 KB.
DAX is an in-memory cache for DynamoDB, cutting read latency to microseconds - it sits in front, transparent to your app code. Streams capture item-level changes and can trigger Lambda functions. Global Secondary Indexes (GSI) can use different partition/sort keys and have their own capacity; Local Secondary Indexes (LSI) share the base table's partition key and must be created at table creation time.
Don't confuse Lambda timeout (max 15 min) with API Gateway's own 29-second maximum integration timeout - a long Lambda behind API Gateway will still fail after 29 seconds. Don't forget IAM execution roles - Lambda needs a role attached even if it does nothing but write logs. Remember DynamoDB is eventually consistent by default unless you explicitly request strongly consistent reads.