Interview questions
Sharding, replication & partitioningMediumSDE-2

Your cache cluster uses hash(key) mod N to pick a node. When you added one node to go from 10 to 11, the hit rate dropped to almost zero and the database got overloaded. Explain and fix it.

Asked at
AmazonMeta

Think first

Answer out loud as you would in the room — clarify, give numbers, name the trade-off — then compare with the model answer.

Saved on this device. Create a free account to keep it on every device.

Practise this with Sam

A real mock interview, out loud, with an honest scorecard. Free to start.

Start free