← 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?
- A.Only the crashed server's keys are lost
- B.N changes, so most keys map to a different server and the cache misses almost everywhere at once
- C.The hash function stops working
- 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 →