AI-102 Plan and manage an Azure AI solution Practice Question
Exhibit
Refer to the exhibit.
{
"role": "system",
"content": "You are an AI assistant that helps users find information. You must always use the provided tools to answer questions. You must not make up answers."
}
{
"role": "user",
"content": "What is the capital of France?"
}
{
"role": "assistant",
"content": null,
"tool_calls": [
{
"id": "call1",
"type": "function",
"function": {
"name": "search_web",
"arguments": "{\"query\": \"capital of France\"}"
}
}
]
}You are testing an Azure OpenAI Service chat completion with function calling. The assistant returned null content and a tool call. What does this indicate?
⚠ Common exam trap
The trap here is that candidates often misinterpret a null content as a model failure or error, when in fact it is a standard indicator that the model is actively using a tool to fulfill the request.
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 model is using a tool to answer the question, so content is null
In Azure OpenAI Service function calling, when the model determines that it needs to invoke a tool (e.g., an external API or database query) to fulfill the user's request, it returns a `tool_calls` object with `content` set to `null`. This is the expected behavior—the model is signaling that it is delegating the response to the tool, not that it has failed or is blocked.
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 model is unable to answer the question and returned an error
Why it's wrong here
Null content with a populated tool call is a normal, successful response indicating the model chose to invoke a function, not an error state. Errors surface as HTTP status codes or an error object, not as a well-formed tool call. This option would apply if the API returned a failure payload instead of choices.
- ✗
The system message is preventing the model from responding
Why it's wrong here
A null content field alongside a tool call is the expected contract when the model delegates work to a function, not a system-message conflict. System messages shape tone and constraints; they never suppress content while emitting a tool call. This option would fit only if the assistant returned refusals or empty replies with no tool_calls present.
- ✓
The model is using a tool to answer the question, so content is null
Why this is correct
With function calling, the model returns a tool call instead of a natural-language reply, so the content field is null. Your code must execute the named function and send its result back for a final completion.
- ✗
The function call syntax is invalid and the model skipped it
Why it's wrong here
A null content field alongside a tool call is the expected response when the model has chosen to invoke a function, so the syntax was parsed successfully and the caller must execute it and return the result. It is tempting to read the empty content as malformed JSON, but invalid syntax surfaces as an API error, not a valid tool call.
Go deeper
Related to this question
About these practice questions
Courseiva writes every AI-102 question from scratch — 761 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 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.