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

What is the effect of setting maxmemory-policy to noeviction when memory is exhausted?

  1. A Random keys are dropped
  2. B Write commands return an OOM error while reads continue (correct answer)
  3. C The server restarts
  4. D TTLs are shortened automatically

Shortcut: noeviction refuses new writes with an OOM error rather than discarding data. It suits durable queues but is a poor fit for caches.