AI-200 Data Management Services And Vector Search Practice Question
You are writing a Python application using the Azure Cosmos DB Python SDK to perform a vector search. You execute a parameterized SQL query containing VectorDistance(). What must be passed as a query parameter for the VectorDistance function to evaluate correctly against the container's vector property?
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
✓
A Python list of float values representing the query embedding
When using VectorDistance() in Cosmos DB SQL queries, the target vector must be passed as a parameter array of floats corresponding to the model dimensions.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
A base64 encoded string of the text
Why it's wrong here
Query vectors must be passed as numeric arrays.
- ✗
A connection string to Azure OpenAI Service
Why it's wrong here
Connection strings belong in client configuration, not inside the vector distance SQL parameter.
- ✓
A Python list of float values representing the query embedding
Why this is correct
Cosmos DB expects the query vector parameter to be passed as a list of floats.
- ✗
A file path pointing to a local .npy numpy file
Why it's wrong here
Cosmos DB cannot parse local file paths directly in SQL queries.
About these practice questions
Courseiva writes every AI-200 question from scratch — 507 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.