← 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?
- A.The server at 100, because the key wraps around past the last server
- B.The server at 300, the nearest one behind it
- C.No server; the key is rejected
- 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 →