Bird
0
0

Given a DAX cluster caching an item with key 'User123', what happens when a GetItem request for 'User123' is made?

medium📝 query result Q4 of 15
DynamoDB - Cost Optimization and Monitoring
Given a DAX cluster caching an item with key 'User123', what happens when a GetItem request for 'User123' is made?
AThe item is returned from the DAX cache, reducing latency
BThe request bypasses DAX and queries DynamoDB directly
CThe item is deleted from the cache before returning
DThe request causes a cache miss and returns an error
Step-by-Step Solution
Solution:
  1. Step 1: Understand DAX cache hit behavior

    If the item is cached, DAX returns it directly to reduce latency.
  2. Step 2: Eliminate incorrect behaviors

    DAX does not bypass cache on hit, delete cached items, or error on cache hit.
  3. Final Answer:

    The item is returned from the DAX cache, reducing latency -> Option A
  4. Quick Check:

    Cache hit returns item fast = The item is returned from the DAX cache, reducing latency [OK]
Quick Trick: Cache hit returns item fast from DAX, no DynamoDB call [OK]
Common Mistakes:
MISTAKES
  • Thinking DAX bypasses cache on hits
  • Assuming cache deletes item on read
  • Believing cache miss causes error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More DynamoDB Quizzes