An application routes all DynamoDB reads and writes through DAX, repeatedly reading individual items and identical Query results. Item reads must reflect successful application writes, Query results may lag by five seconds, and database reads must be minimized. Which cache configuration best meets these requirements?
Show the answer
Correct answerC. Set the query cache TTL to five seconds and retain a long item cache TTL.
AWhy not this: Writes through DAX update cached items but do not invalidate cached Query results.
BWhy not this: Strongly consistent reads pass through DAX to DynamoDB, forfeiting the required reduction in database reads.
CWhy this is right: The query TTL bounds cached Query staleness, while writes through DAX update the item cache without requiring a short item TTL.
DWhy not this: The item cache TTL does not control expiration of cached Query results.
DAX writes update the item cache but do not invalidate cached Query results. A five-second query cache TTL bounds Query staleness while a long item cache TTL reduces database reads; shortening only the item cache TTL does not refresh cached Query results.