Application Optimization
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing AWS Certified Developer - Associate premium course — no separate purchase.
Included in this chapter:
- Caching: serve a stored result instead of recomputing it
- Lambda performance: memory is the dial, cold starts are the tax
- Reduce the calls before you scale the backend: batching, paging, backoff
- Cost-vs-latency tradeoffs and right-sizing: exam patterns
AWS caching layers: what each one caches and where
| Cache | What it caches | Where it sits | Code change to adopt | Reach for it when |
|---|---|---|---|---|
| Amazon CloudFront | HTTP responses (static and dynamic objects) | Edge locations near the viewer | None: front the origin with a distribution; tune cache key on headers/cookies/query | Globally distributed users hit the same URLs |
| API Gateway caching | Endpoint responses keyed on the request | At the API stage, in front of the backend integration | None: enable caching per stage/method and set TTL | Repeated identical API calls re-invoke an expensive backend |
| Amazon ElastiCache (Redis OSS / Memcached) | Any data the app chooses to store (query results, sessions, computed values) | In-memory cluster the application reads/writes directly | Yes: app code must read-through and populate the cache | General-purpose caching or session store across services |
| Amazon DynamoDB Accelerator (DAX) | DynamoDB item and query/scan results (read-through, write-through) | In front of a DynamoDB table | Minimal: swap to the DAX client; same API surface | Read-heavy DynamoDB needs microsecond reads, eventual consistency OK |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
Also tested in
References
- What is Amazon CloudFront?
- Enabling API caching to enhance responsiveness (API Gateway)
- What is Amazon ElastiCache?
- DynamoDB Accelerator (DAX) concepts
- Configuring Lambda function memory
- Best practices for working with AWS Lambda functions
- Configuring provisioned concurrency for Lambda
- Improving startup performance with Lambda SnapStart
- Modifying the runtime environment (AWS_LAMBDA_EXEC_WRAPPER)
- BatchGetItem API reference (DynamoDB)
- BatchWriteItem API reference (DynamoDB)
- Amazon SQS batch actions
- Querying tables in DynamoDB
- Error retries and exponential backoff in AWS
- What is AWS Compute Optimizer?
- Amazon ElastiCache reserved nodes