An application reads heavily from Amazon DynamoDB tables and needs microsecond response times for repeated reads. The team wants to keep its existing GetItem and Query calls and write no cache-population or invalidation code. Which solution meets these requirements?
Show the answer
Correct answerA. A DAX cluster in front of the DynamoDB tables
AWhy this is right: DAX accepts the same DynamoDB API calls and manages the cache itself, returning cached reads in microseconds.
BWhy not this: ElastiCache needs application code to load items on misses and to invalidate or update them on writes.
CWhy not this: API Gateway caching stores HTTP responses of an API, not DynamoDB GetItem and Query results made by the application.
DWhy not this: CloudFront caches HTTP content at edge locations; it does not serve the application's DynamoDB calls.
DynamoDB Accelerator (DAX) is a managed in-memory cache that is API-compatible with DynamoDB, so the application keeps its GetItem and Query calls and DAX handles read-through and write-through caching with microsecond reads. ElastiCache is a general-purpose cache that needs application code to load and invalidate entries, and API Gateway or CloudFront cache HTTP responses rather than DynamoDB calls.