StudyToCert

All certifications / Developer Associate / Lessons

AWS Certified Developer – Associate DVA-C02 · Domain 4: Troubleshooting and Optimization

Caching for performance: API Gateway stage caching, CloudFront, ElastiCache, DAX

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

A cache is a place to keep a copy of an answer you have already worked out, so the next time someone asks the same question you can reply instantly instead of doing all the work again. It is like a librarian who keeps the most requested books on the front desk instead of fetching them from the basement every time. AWS has caches at different points. API Gateway can remember responses to repeated API calls. CloudFront keeps copies of files and pages in locations around the world, close to users. ElastiCache is a fast memory store your own code can put anything into. DAX is a cache made just for DynamoDB. The trade-off is always the same: a cached copy might be a little out of date.

Maple Grove Market's product catalog API gets hammered every Saturday morning. The same GET request for "fresh produce" arrives thousands of times a minute, each one waking a Lambda function that reads the same DynamoDB items and returns the same answer. Customers in other countries complain that product photos load slowly. Meanwhile the analytics team wants faster results from a heavy SQL report that runs against the relational database dozens of times an hour. Eli, the finance analyst, asks why the AWS bill rises every weekend when the catalog barely changes. You know caching is the answer, but AWS offers caches at four different layers. Which one belongs where?

Caching stores the result of expensive work so repeated requests are answered faster and backends do less work. AWS offers caches at several layers of an application, and exam questions give clues about where the repeated work happens and what kind of data is involved. This lesson compares four: Amazon API Gateway stage caching, Amazon CloudFront, Amazon ElastiCache and DynamoDB Accelerator (DAX).

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Developer Associate for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Developer Associate study plan