🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Consistent Hashing: all 15 questions

Quiz: Consistent Hashing · Question 11 of 15

A cache cluster uses hash(key) % N and one of its 4 servers crashes. Why is this so harmful?

A cache cluster uses hash(key) % N and one of its 4 servers crashes. Why is this so harmful?

  1. A.Only the crashed server's keys are lost
  2. B.N changes, so most keys map to a different server and the cache misses almost everywhere at once
  3. C.The hash function stops working
  4. D.The database deletes its data
Answer & explanation

Correct answer: N changes, so most keys map to a different server and the cache misses almost everywhere at once

The modulo answer depends on N, so removing one server reshuffles most keys and floods the database.

Can you get the rest right without peeking?

Take the timed Quiz: Consistent Hashing quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →