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

A server with double the RAM should hold double the keys. How do you do this with consistent hashing?

A server with double the RAM should hold double the keys. How do you do this with consistent hashing?

  1. A.Hash its name twice
  2. B.Give it twice as many virtual nodes
  3. C.Put it at position 0 on the ring
  4. D.Use hash % 2 for that server
Answer & explanation

Correct answer: Give it twice as many virtual nodes

Each virtual node is a share of the ring, so more virtual nodes means more keys.

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 →