AI-200 Data Management Services And Vector Search Practice Question
You are implementing a RAG solution where user queries are matched against an Azure AI Search vector index. You want to ensure that search results only return documents where a specific metadata field 'securityLevel' matches the user's clearance. How should you apply this filter?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Pass an OData filter expression in the 'filter' parameter of the search query request
Vector queries in Azure AI Search support OData filtering via the 'filter' parameter, allowing you to combine semantic vector search with strict metadata filtering.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Pass an OData filter expression in the 'filter' parameter of the search query request
Why this is correct
The 'filter' parameter accepts OData syntax (e.g., securityLevel eq 'secret') alongside vector queries.
- ✗
Create a separate Azure AI Search service for each security level
Why it's wrong here
Creating a search service per security level is unnecessary and expensive when OData filters provide granular access control.
- ✗
Encode the security level into the vector embedding values directly
Why it's wrong here
Embedding values represent semantic features, not discrete security permission tags.
- ✗
Filter the results in application memory after receiving all 1000 documents
Why it's wrong here
Filtering client-side is inefficient and risks security leaks if top-k results omit authorized documents.
About these practice questions
Courseiva writes every AI-200 question from scratch — 503 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Microsoft exam blueprint
This AI-200 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-200 exam.