Courseiva

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 content_filter finish reason means Azure OpenAI's responsible AI filtering intercepted the completion, so no usable text was returned. The prompt itself was accepted; the generated output was flagged and suppressed, which is distinct from length or stop-sequence termination.

  • ✗

    There was a system error during processing.

    Why it's wrong here

    A system error surfaces as an HTTP error or an 'error' object, not as a finish_reason value; content_filter means the responsible AI filter intervened. It is tempting because truncated or empty completions can look like failures, but genuine service faults return error codes rather than a normal completion with a finish_reason.

  • ✗

    The user's prompt was flagged by the content filter.

    Why it's wrong here

    A content_filter finish reason means the model's generated completion was blocked by the Azure OpenAI content filter, not the user's prompt. It is tempting because filtering is involved, but prompt-level rejection returns a 400 error before inference, so this describes output-side filtering.

  • ✗

    The model refused to answer due to insufficient data.

    Why it's wrong here

    Insufficient data produces an ordinary completion with finish_reason 'stop', not content_filter; the model simply answers with what it has. It is tempting because a short or unhelpful reply resembles a refusal, but content_filter specifically signals the responsible AI filter blocked the prompt or response, not model uncertainty.

About these practice questions

One of 761 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 →

How Courseiva writes practice questions · Editorial policy

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.