All Questions
Sharding medium

In database architecture, why is a low-cardinality boolean column (like `is_active`) considered an extremely poor choice for a Shard Key?

  1. A The data type is too small for modern hash functions to process effectively.
  2. B It practically limits the entire cluster to just two servers (True/False), making it impossible to scale the system further.
  3. C Most distributed databases do not allow the use of boolean values as a partition key.
  4. D It would require too many secondary index lookups to find any specific record.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions