🎙 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 12 of 15

On a ring with servers at positions 100, 200 and 300 (out of 360), a key hashes to 350. Which server owns it?

On a ring with servers at positions 100, 200 and 300 (out of 360), a key hashes to 350. Which server owns it?

  1. A.The server at 100, because the key wraps around past the last server
  2. B.The server at 300, the nearest one behind it
  3. C.No server; the key is rejected
  4. D.All three servers equally
Answer & explanation

Correct answer: The server at 100, because the key wraps around past the last server

Going clockwise from 350 there is no server before 360, so it wraps to the first one.

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 →