Q31 Cosmos DB Domain 2 · 25–30% of exam Priority · Real Exam

You must store both the source text and its embedding, then filter by category before the vector search. What is required for efficient execution?

  1. A A vector index only
  2. B A vector index plus a range index on category, so the filter narrows candidates (correct answer)
  3. C Separate containers per category
  4. D Strong consistency

Shortcut: Filtered vector search benefits from indexing the filter property as well as the vector path, allowing the engine to restrict the candidate set before computing distances.