DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
System Design Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
hard
System Design
What real problem does plain modulo-based sharding (hash(key) % numShards) have when numShards changes?
A
No problem — it scales perfectly
B
Changing numShards changes hash(key) % numShards for almost every key, meaning almost all data would need to move shards — this is why consistent hashing is preferred in practice
C
It only works for string keys, not numbers
D
It requires taking the whole database offline permanently
Check Answer