Courseiva
Implement natural language processing solutionsmediumMultiple ChoiceObjective-mapped

AI-102 Practice Question: Implement natural language processing solutions

Exhibit

Refer to the exhibit.
```json
{
  "analysisInput": {
    "documents": [
      {
        "id": "1",
        "text": "The quick brown fox jumps over the lazy dog.",
        "language": "en"
      }
    ]
  },
  "tasks": [
    {
      "taskName": "EntityRecognition",
      "kind": "EntityRecognition",
      "parameters": {
        "modelVersion": "2022-10-01",
        "stringIndexType": "TextElement_V8"
      }
    },
    {
      "taskName": "KeyPhraseExtraction",
      "kind": "KeyPhraseExtraction",
      "parameters": {
        "modelVersion": "2024-01-01"
      }
    }
  ]
}
```

Refer to the exhibit. You submit this request to the Azure AI Language service. What is the expected response?

⚠ Common exam trap

Many exam-takers assume only one task can be performed per request, or that the response will only include results for the first task listed, when in fact the Azure AI Language service supports multiple tasks in a single request and returns results for all specified tasks.

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 entity recognition and key phrase extraction results.

The request includes both the `entities` and `keyPhrases` tasks in the `tasks` array, which instructs the Azure AI Language service to perform both entity recognition and key phrase extraction on the same input document. The service processes each specified task independently and returns a combined response with results for both tasks, not just one.

Answer analysis

Option-by-option breakdown

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

  • An error because the request format is invalid.

    Why it's wrong here

    The request format is valid for a batch analysis with multiple tasks.

  • Only key phrase extraction results.

    Why it's wrong here

    Both tasks are specified, so both results are returned.

  • Both entity recognition and key phrase extraction results.

    Why this is correct

    The request includes both tasks, so both are executed and results returned.

  • Only entity recognition results.

    Why it's wrong here

    Both tasks are specified, so both results are returned.

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.