Courseiva
Implement natural language processing solutionsmediumMultiple ChoiceObjective-mapped

AI-102 Practice Question: Implement natural language processing solutions

Exhibit

Refer to the exhibit.

{
  "analysisInput": {
    "documents": [
      {
        "id": "1",
        "text": "The quick brown fox jumps over the lazy dog. The dog was sleeping.",
        "language": "en"
      }
    ]
  },
  "tasks": [
    {
      "taskName": "ExtractKeyPhrases",
      "kind": "KeyPhraseExtraction",
      "parameters": {
        "modelVersion": "latest"
      }
    },
    {
      "taskName": "AnalyzeSentiment",
      "kind": "SentimentAnalysis",
      "parameters": {
        "modelVersion": "latest"
      }
    }
  ]
}

You submit the request shown in the exhibit to the Azure AI Language service. What will the response contain?

⚠ Common exam trap

A common mix-up: candidates assume `opinionMining` only affects sentiment analysis and forget that the request also includes `keyPhrases: true`, leading them to incorrectly select option D (only sentiment scores) instead of recognizing that both key phrases and sentiment scores are returned.

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

Both key phrases and sentiment scores.

The exhibit shows a request to the Azure AI Language service with the `showStats` parameter set to `true` and the `opinionMining` parameter set to `true`. When `opinionMining` is enabled, the service returns both key phrases and sentiment scores (including aspect-based sentiment) for the analyzed text. Therefore, the response contains both key phrases and sentiment scores, making option C correct.

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 extracted key phrases.

    Why it's wrong here

    There are two tasks.

  • Entity recognition results and sentiment scores.

    Why it's wrong here

    Entity recognition task not included.

  • Both key phrases and sentiment scores.

    Why this is correct

    Both tasks are included.

  • Only sentiment scores.

    Why it's wrong here

    There are two tasks.

About these practice questions

This AI-102 question is part of Courseiva's 945-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.