Question 350 of 993

Correct Sentiment Skill Input Source with Wildcard for Split Pages

This AI-102 practice question tests your understanding of implement knowledge mining and information extraction solutions. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. A key principle to apply: skill Context. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Exhibit

Refer to the exhibit.

{
  "skills": [
    {
      "@odata.type": "#Microsoft.Skills.Text.SplitSkill",
      "name": "#1",
      "context": "/document",
      "inputs": [
        {"name": "text", "source": "/document/content"},
        {"name": "textSplitMode", "source": "pages"},
        {"name": "maximumPageLength", "source": 5000}
      ],
      "outputs": [
        {"name": "textItems", "targetName": "pages"}
      ]
    },
    {
      "@odata.type": "#Microsoft.Skills.Text.V3.SentimentSkill",
      "name": "#2",
      "context": "/document/pages/*",
      "inputs": [
        {"name": "text", "source": "/document/pages/*"}
      ],
      "outputs": [
        {"name": "sentiment", "targetName": "sentimentLabel"},
        {"name": "confidenceScores", "targetName": "confidenceScores"}
      ]
    }
  ]
}

You are reviewing the skillset definition for an Azure AI Search indexer. The SplitSkill splits the document content into pages of 5000 characters. The SentimentSkill is set to run on each page. However, the sentiment analysis is not producing correct results. What is the most likely cause?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "most likely"

    Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

Exhibit

Refer to the exhibit.

{
  "skills": [
    {
      "@odata.type": "#Microsoft.Skills.Text.SplitSkill",
      "name": "#1",
      "context": "/document",
      "inputs": [
        {"name": "text", "source": "/document/content"},
        {"name": "textSplitMode", "source": "pages"},
        {"name": "maximumPageLength", "source": 5000}
      ],
      "outputs": [
        {"name": "textItems", "targetName": "pages"}
      ]
    },
    {
      "@odata.type": "#Microsoft.Skills.Text.V3.SentimentSkill",
      "name": "#2",
      "context": "/document/pages/*",
      "inputs": [
        {"name": "text", "source": "/document/pages/*"}
      ],
      "outputs": [
        {"name": "sentiment", "targetName": "sentimentLabel"},
        {"name": "confidenceScores", "targetName": "confidenceScores"}
      ]
    }
  ]
}

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 context of the SentimentSkill is set to an array, which is not supported

Option C is correct. Setting the context of the SentimentSkill to an array (e.g., '/document/pages') causes the skill to run once on the entire array of pages, rather than iterating over each page individually. This results in incorrect sentiment analysis because the skill receives a collection of strings as a single input, which is not the intended per-page processing. The correct configuration is to set the context to '/document/pages/*' so that the skill executes on each page separately.

Key principle: Skill Context

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 maximumPageLength of 5000 is too high for sentiment analysis

    Why it's wrong here

    Incorrect. The maximumPageLength of 5000 is within the limits for sentiment analysis (5000 characters per document) and is not the cause of incorrect results.

  • The input source for SentimentSkill should be '/document/pages/*' but the SplitSkill output is named 'pages', so the input should be '/document/pages'

    Why it's wrong here

    Incorrect. While the input source path should use '/*' to iterate over pages, the option incorrectly states that the input should be '/document/pages' (without wildcard), which is the wrong path. The real issue is that the skill's context is set to the array, causing the skill to not iterate.

  • The context of the SentimentSkill is set to an array, which is not supported

    Why this is correct

    Correct. Setting the context to an array (e.g., '/document/pages') without the wildcard causes the skill to run once on the entire array, leading to incorrect sentiment analysis. The context should be '/document/pages/*' for per-page processing.

    Clue confirmation

    The clue word "most likely" in the question point toward this answer.

    Related concept

    Skill Context

  • The SentimentSkill uses an incorrect @odata.type version

    Why it's wrong here

    Incorrect. The @odata.type version for SentimentSkill is not the issue; the problem lies in the context configuration.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Candidates often confuse the skill context with the input source path. Setting the context to an array does not automatically iterate; the context must end with '/*' to run the skill per element.

Detailed technical explanation

How to think about this question

In Azure AI Search skillsets, when a skill like SplitSkill outputs an array of strings under a field like '/document/pages', downstream skills must use a context path with '/*' to iterate over each element. Without the wildcard, the skill treats the entire array as a single input, which can cause errors or incorrect results because sentiment analysis expects a single string per execution. This pattern is critical for skills that process collections, such as KeyPhraseExtractionSkill or EntityRecognitionSkill, and is a common source of misconfiguration.

KKey Concepts to Remember

  • Skill Context
  • Input Source Path
  • Array Iteration

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Skill Context

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Skill Context Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Review skill Context, then practise related AI-102 questions on the same topic to reinforce the concept.

Related practice questions

Related AI-102 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Implement an agentic solution practice questions

Practise AI-102 questions linked to Implement an agentic solution.

Implement computer vision solutions practice questions

Practise AI-102 questions linked to Implement computer vision solutions.

Implement knowledge mining and information extraction solutions practice questions

Practise AI-102 questions linked to Implement knowledge mining and information extraction solutions.

Implement image and video processing solutions practice questions

Practise AI-102 questions linked to Implement image and video processing solutions.

Implement natural language processing solutions practice questions

Practise AI-102 questions linked to Implement natural language processing solutions.

Implement generative AI solutions practice questions

Practise AI-102 questions linked to Implement generative AI solutions.

Implement agentic AI solutions practice questions

Practise AI-102 questions linked to Implement agentic AI solutions.

Implement knowledge mining and document intelligence solutions practice questions

Practise AI-102 questions linked to Implement knowledge mining and document intelligence solutions.

Plan and manage an Azure AI solution practice questions

Practise AI-102 questions linked to Plan and manage an Azure AI solution.

Implement content moderation solutions practice questions

Practise AI-102 questions linked to Implement content moderation solutions.

AI-102 fundamentals practice questions

Practise AI-102 questions linked to AI-102 fundamentals.

AI-102 scenario practice questions

Practise AI-102 questions linked to AI-102 scenario.

Practice this exam

Start a free AI-102 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AI-102 question test?

Implement knowledge mining and information extraction solutions — This question tests Implement knowledge mining and information extraction solutions — Skill Context.

What is the correct answer to this question?

The correct answer is: The context of the SentimentSkill is set to an array, which is not supported — Option C is correct. Setting the context of the SentimentSkill to an array (e.g., '/document/pages') causes the skill to run once on the entire array of pages, rather than iterating over each page individually. This results in incorrect sentiment analysis because the skill receives a collection of strings as a single input, which is not the intended per-page processing. The correct configuration is to set the context to '/document/pages/*' so that the skill executes on each page separately.

What should I do if I get this AI-102 question wrong?

Review skill Context, then practise related AI-102 questions on the same topic to reinforce the concept.

Are there clue words in this question I should notice?

Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

What is the key concept behind this question?

Skill Context

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More AI-102 practice questions

Last reviewed: Jul 4, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.