All challenges
Multiple ChoiceBeginner 45s

Why negative caching helps

A cache penetration attack repeatedly requests IDs that do not exist. Why does caching a negative result help?
Options
  1. 1It short-circuits repeated misses by storing a 'not found' marker with a short TTL
  2. 2It compresses the repeated response payloads, so the marker shrinks bytes sent per miss
  3. 3It encrypts the lookup key on each miss, so attackers cannot enumerate valid IDs from query patterns
  4. 4It raises the cache hit ratio near 100%, since each store read is replaced by a negative marker lookup

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle