All Questions
Cassandra medium

In Cassandra, a secondary index is 'Local' to the node. What is the fundamental problem when querying a high-cardinality column (like `user_email`) via a secondary index?

  1. A The index query will only return results from the local node where the client happened to connect.
  2. B The index is stored in a centralized database which becomes a bottleneck.
  3. C The 'Scatter-Gather' effect: Because the Partition Key is unknown, the Coordinator must query every single node in the cluster, causing latency to spike as the cluster grows.
  4. D Secondary indexes are limited to exactly 1,000 entries total per table.

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

Get the app

Related questions