Courseiva
Implement natural language processing solutionsmediumMultiple ChoiceObjective-mapped

AI-102 Practice Question: Implement natural language processing solutions

Exhibit

{
  "kind": "ExtractiveSummarization",
  "parameters": {
    "sentenceCount": 3,
    "sortBy": "Offset"
  },
  "analysisInput": {
    "documents": [
      {
        "id": "1",
        "language": "en",
        "text": "Azure AI Language provides natural language processing capabilities. It includes summarization, sentiment analysis, and entity recognition. These features enable developers to build intelligent applications."
      }
    ]
  }
}

Refer to the exhibit. You are calling the Azure AI Language API for extractive summarization. What will be the output of this request?

⚠ Common exam trap

Microsoft often tests the misconception that extractive summarization returns sentences sorted by confidence score, when in fact the default behavior preserves the original document order unless the `sortBy` parameter is explicitly set to `'Rank'`.

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 three sentences in the order they appear in the document.

The Azure AI Language API for extractive summarization returns the most relevant sentences from the original document in the order they appear, not reordered by score. The API extracts sentences based on a ranker, but the output preserves the original sentence sequence to maintain readability and context. Option D is correct because the default behavior is to return the extracted sentences in their original order.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Only the first sentence because the document is short.

    Why it's wrong here

    The API returns up to sentenceCount sentences.

  • An abstractive summary generated from the text.

    Why it's wrong here

    This is extractive summarization, not abstractive.

  • The three sentences ranked by confidence score.

    Why it's wrong here

    sortBy: Offset does not rank by confidence.

  • The three sentences in the order they appear in the document.

    Why this is correct

    sortBy: Offset returns sentences in original order.

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 →

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.