Bird
0
0

How can you ensure cache consistency when multiple clients update the same DynamoDB item behind a DAX cluster?

hard🚀 Application Q9 of 15
DynamoDB - Cost Optimization and Monitoring
How can you ensure cache consistency when multiple clients update the same DynamoDB item behind a DAX cluster?
ADisable DAX caching for that item only
BUse write-through caching and invalidate cache on updates
CIncrease cache TTL to delay cache refresh
DUse DAX only for write operations
Step-by-Step Solution
Solution:
  1. Step 1: Understand cache consistency needs

    Write-through caching with cache invalidation ensures updated data is fresh in cache.
  2. Step 2: Review other options

    Disabling cache or increasing TTL causes stale data; DAX does not cache writes only.
  3. Final Answer:

    Use write-through caching and invalidate cache on updates -> Option B
  4. Quick Check:

    Cache invalidation on writes ensures consistency [OK]
Quick Trick: Invalidate cache on writes to keep data consistent [OK]
Common Mistakes:
MISTAKES
  • Increasing TTL causing stale cache
  • Disabling cache instead of invalidating
  • Misusing DAX for writes only

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More DynamoDB Quizzes