DynamoDB Accelerator (DAX) vs Amazon ElastiCache (Redis)
10-Second Exam Rule:
DynamoDB eventually consistent point reads + minimal code changes = DAX. Strongly consistent reads, sorted-set leaderboards, session stores, or RDS caching = ElastiCache for Redis.
Side-by-Side Decision Matrix
| Dimension | DynamoDB DAX | ElastiCache for Redis |
|---|---|---|
| Compatible Datastores | Amazon DynamoDB only | Any database (RDS, Aurora, DynamoDB, etc.) |
| App Code Change | Minimal (drop-in SDK endpoint swap) | Moderate (cache-aside read/write/TTL code) |
| Strongly Consistent Reads | Not cached (passes through) | Supported via application cache logic |
| Complex Data Types | Item & Query cache only | Sorted sets, hashes, lists, pub/sub, streams |
Pick DynamoDB Accelerator (DAX) when…
- Workload reads heavily from Amazon DynamoDB with eventual consistency.
- Prompt asks for microsecond latency with minimal or zero application code changes.
Pick Amazon ElastiCache (Redis) when…
- Need Redis data structures (sorted sets for real-time leaderboards, pub/sub, geospatial).
- Caching SQL query aggregations from Amazon RDS/Aurora or complex computed objects.
- Application requires strongly consistent caching logic or write-heavy caching patterns.
Primary exam distractor trap
DAX bypasses the cache on Strongly Consistent reads (sending them straight to DynamoDB) and cannot cache RDS queries or compute sorted-set leaderboards.
Test if you can spot the rule under pressure
A DynamoDB-backed app needs microsecond latency for eventually consistent GetItem reads with the least possible code modification. What should you deploy?
Practice this exact scenario inside the Pass Workspace
Drill full 4-option CBT scenarios with inline blueprint citations, Distractor X-Ray, and FSRS auto-review.