All Questions
Elasticsearch medium

A developer provides a custom `routing` parameter (e.g., `routing=user_123`) when indexing documents. What is the query-time performance benefit?

  1. A It allows the query to bypass the Master node entirely.
  2. B Shard Targeting: It ensures all documents for that user reside on the *same physical shard*. A search can then target just that one shard instead of broadcasting across the entire index, significantly reducing the 'Scatter-Gather' overhead.
  3. C It automatically prioritizes the document in the cache using a Most-Recently-Used algorithm.
  4. D It allows the indexing of duplicate IDs without causing a conflict.

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

Get the app

Related questions