Q23 Redis Domain 2 · 25–30% of exam Priority · Real Exam

Which eviction policy suits a pure cache where the least recently used entries should be discarded under memory pressure?

  1. A noeviction
  2. B allkeys-lru (correct answer)
  3. C volatile-ttl
  4. D allkeys-random

Shortcut: allkeys-lru evicts the least recently used key regardless of TTL, which is the standard choice for a cache. noeviction would instead return write errors when memory fills.