AI-102 Implement generative AI solutions Practice Question
Exhibit
Refer to the exhibit.
```json
{
"role": "system",
"content": "You are an AI assistant that helps people find information. Provide concise answers with citations."
}
```
```json
{
"role": "user",
"content": "What is the capital of France?"
}
```
```json
{
"role": "assistant",
"content": "The capital of France is Paris [^1].",
"context": {
"citations": [
{
"content": "Paris is the capital and most populous city of France.",
"title": "Wikipedia",
"url": "https://en.wikipedia.org/wiki/Paris"
}
]
}
}
```Refer to the exhibit. The developer is using Azure OpenAI with data sources (preview) to ground the model on a custom dataset. The assistant response includes a citation [^1]. However, the developer notices that the citation does not appear in the final output displayed to the user. What is the most likely cause?
⚠ Common exam trap
Microsoft often tests the distinction between parameters that control output formatting versus those that control retrieval behavior; the trap here is that candidates assume citations are always included when data sources are used, overlooking the 'include_contexts' parameter that explicitly suppresses them.
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
✓
The 'include_contexts' parameter in the API call is set to false.
The 'include_contexts' parameter controls whether citation metadata from the data sources is included in the final output. When set to false, the API suppresses the citation markers (e.g., [^1]) even though the underlying context was used to generate the response. This is a preview feature of Azure OpenAI with your own data, where the citation rendering is explicitly gated by this parameter.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The 'include_contexts' parameter in the API call is set to false.
Why this is correct
When include_contexts is false, citations and other context are not included in the final output.
- ✗
The citation format [^1] is not supported in Azure OpenAI with data sources.
Why it's wrong here
The [^1] format is the standard citation format for Azure OpenAI with data sources.
- ✗
The system message overrides the citation rendering.
Why it's wrong here
The system message does not affect citation rendering; it only sets the assistant's behavior.
- ✗
The 'context' object in the assistant response is not being passed back in the prompt for the next turn.
Why it's wrong here
The context object is part of the API response and is not required in the prompt for citations to appear.
Go deeper
Related to this question
About these practice questions
One of 945 original AI-102 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AI-102 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-102 exam.