Courseiva

AI-102 Practice Question: Implement knowledge mining and information extraction solutions

You are implementing a knowledge mining solution using Azure AI Search with a custom skillset. The custom skill is an Azure Function that enriches documents with additional metadata. You need to ensure that the custom skill receives the entire document content as input. How should you configure the skill's context and inputs?

⚠ Common exam trap

AI-102 often tests the distinction between skill context (execution granularity) and input source (data passed to the skill), tricking candidates who set context to '/document/content' instead of '/document' or who confuse content with normalized_images.

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

✓

Set context to '/document' and input source to '/document/content'.

To pass the entire document content to a custom skill, the skill's context must be set to '/document' (the root of each document in the enrichment tree) and the input source must be '/document/content'. Setting context to '/document' ensures the skill executes once per document, and mapping the input to '/document/content' delivers the full text content to the Azure Function. This is the correct configuration for document-level enrichment.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Set context to '/document/content' and input source to '/document/metadata'.

    Why it's wrong here

    Metadata contains document properties such as file name and size, not the extracted text, so the function would never receive the full content. It is tempting because metadata enrichment is the skill's purpose, and reading /document/metadata is correct when the skill only needs fields like title or author rather than the body text.

  • ✗

    Set context to '/document/content' and input source to '/document/content'.

    Why it's wrong here

    Setting context to '/document/content' makes each skill invocation receive a string rather than the document object, so sibling fields such as metadata cannot be referenced in inputs. It is tempting because '/document/content' is the canonical path for the extracted text, and it would be correct when the skill only needs raw text.

  • ✗

    Set context to '/document' and input source to '/document/normalized_images/*'.

    Why it's wrong here

    Normalized images are only populated by the OCR skill for image extraction, so this path yields image data rather than document text. It is tempting because /document is the correct context level for whole-document enrichment, and image inputs are right when the custom skill performs image analysis instead of text enrichment.

  • ✓

    Set context to '/document' and input source to '/document/content'.

    Why this is correct

    Setting context to `/document` makes the skill execute once per document rather than per page or chunk, while the input source `/document/content` passes the full extracted text of that document into the Azure Function. This satisfies the requirement that the custom skill receives the entire document content.

About these practice questions

This AI-102 question is part of Courseiva's 761-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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Microsoft exam blueprint

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.