AI-102 Implement generative AI solutions Practice Question
Exhibit
Refer to the exhibit.
{
"completions": [
{
"index": 0,
"finish_reason": "content_filter",
"message": {
"role": "assistant",
"content": null
}
}
]
}You are testing an Azure OpenAI chat completion. The response shown in the exhibit is returned. What does the finish_reason of 'content_filter' indicate?
⚠ Common exam trap
Watch out — candidates often confuse 'content_filter' with prompt rejection, but the finish_reason specifically indicates the model's output was blocked, not the user's input.
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's response was blocked by the content filter.
The 'content_filter' finish_reason indicates that the Azure OpenAI content filtering system detected that the model's generated response violated one of the configured content policies (e.g., hate, violence, self-harm, sexual content). The response was therefore blocked before being returned to the user, and the finish_reason explicitly signals this filtering action rather than a normal completion or a stop due to token limits.
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's response was blocked by the content filter.
Why this is correct
The finish_reason indicates the response was filtered.
- ✗
There was a system error during processing.
Why it's wrong here
System errors show different finish reasons.
- ✗
The user's prompt was flagged by the content filter.
Why it's wrong here
The filter triggered on the response, not the prompt.
- ✗
The model refused to answer due to insufficient data.
Why it's wrong here
Refusal would show finish_reason 'stop' with a refusal message.
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.