MockCertMockCert
Menu

Test yourself in exam conditions

A full Microsoft Certified: Azure AI Apps and Agents Developer Associate mock exam: 60 questions in 120 minutes, scored against the real exam's pass mark. Your first one is free.

Start a free mock exam
Domain 5 · 2 topics · about 14 minTopics in this domainTopics

Domain 5 · Overview

Overview

Up next: Build retrieval and grounding pipelines · 11 steps + check · 7 min

Domain 5 · Topic 1 of 2

Build retrieval and grounding pipelines

Step 1 of 11

Think first How would you turn a pile of PDFs and images into search results an agent can ground its answers on?

Why it matters: Questions describe a grounding need and ask which indexer setting, skill, query type or agent connection fits it.

An indexer cracks each document, runs a skillset to enrich it and writes fields to an index. Queries then search that index by keywords, vectors or both. A knowledge base hands those results to agents.

Step 2 of 11

Term Meaning
Skillset The enrichment steps an indexer runs on cracked content, such as OCR, Text Merge, Text Split or embedding.
Hybrid query One request with both search and vectorQueries, run in parallel and merged by Reciprocal Rank Fusion (RRF).
Semantic ranker A reranking step after the first ranking that rescores the top results and returns @search.rerankerScore.
Knowledge base The object that groups one or more knowledge sources and connects them to Foundry Agent Service.

Step 3 of 11

Field mappings run before the skillset; output field mappings run after it. Document cracking puts file text in /document/content and images in /document/normalized_images/*. Skills read those paths. Anything a skill creates exists only after enrichment, so it reaches the index through an output field mapping.

The two kinds of indexer mapping compared

Feature fieldMappings outputFieldMappings
When it runs Before the skillset After the skillset
What it maps from Fields in the data source Fields made by cracking or enrichment
When you can skip it Names and types already match the index Never, if enriched output must reach the index

Exam trap Mapping an OCR or key phrase result with fieldMappings fails, because those fields don't exist yet when field mappings run.

Step 4 of 11

Set imageAction to generateNormalizedImages and add OCR plus Text Merge. Together they pull text out of images and merge it into the content field. That covers images inside a PDF and standalone image files such as JPGs. When you need embeddings for the images themselves, the recommended choice is the Foundry Tools Image Retrieval Vectorize Image API.

Step 5 of 11

Run Text Split before skills that take at most 50,000 characters. Key phrase extraction and entity recognition have that input limit. Text Split defaults to pages mode, which builds chunks of several sentences; sentences mode makes one-sentence chunks. A sound starting point is 512-token chunks with 25% overlap, which is 128 tokens. By default, maximumPagesToTake is 0, meaning every chunk is kept.

Exam trap pageOverlapLength can't be half the maximum page length or more. It must stay below half.

Step 6 of 11

Built-in chunking and embedding needs an indexer, a data source and a skillset. You supply endpoints and connection details, for example for Azure OpenAI, and the service makes the calls. Built-in enrichment includes 20 free transactions per indexer. Beyond that, the skillset needs an attached Microsoft Foundry resource, billed at Standard pricing.

Step 7 of 11

A hybrid query runs full-text and vector search in parallel, then merges them. Keyword search suits product codes, jargon, dates and people's names, because it finds exact matches. To filter a vector query, add a filterable text or numeric field. The filter can run before or after the vector query.

The two halves of a hybrid query

Feature Full-text query Vector query
Ranking function BM25 HNSW or exhaustive KNN (eKNN)
Filterable field type Text or numeric fields can be filterable A vector field isn't filterable
Setting that widens or weights it maxTextRecallSize, default 1,000 Vector weight, default 1.0 (no weighting)

Step 8 of 11

RRF scores each result as 1/(rank + k). Here rank is the result's position in each list and k is a constant. The algorithm performs best with a small k, such as 60. With the default vector weight of 1.0, the vector score goes into RRF as it is.

Exam trap The RRF constant k is not the vector query's k. When semantic ranker is used, set the vector query's k to 50 to give it the most input.

Step 9 of 11

Semantic ranking runs after RRF and rescores only the top 50 results. Its @search.rerankerScore runs from 4 down to 0, and higher means more relevant. That score is always reported separately. An empty search (search=*) isn't charged, even with queryType set to semantic.

Exam trap Semantic captions and answers are not written by a generative model. They are always verbatim text taken from your index.

Step 10 of 11

Agents reach an index through a knowledge source inside a knowledge base. Create an indexed knowledge source over a vector index, parent it to a knowledge base, then connect that to Foundry Agent Service. Every agentic retrieval scenario requires one knowledge base plus one or more knowledge sources. Knowledge sources over Blob Storage, ADLS Gen2 or OneLake can create the indexer, skillset and index for you.

Exam trap Agentic subqueries don't run one after another. They run at the same time, as keyword, vector or hybrid searches, and each one is semantically reranked.

Step 11 of 11

Check

Check: Build retrieval and grounding pipelines

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Extract content from documents · 9 steps + check · 6 min

Domain 5 · Topic 2 of 2

Extract content from documents

Step 1 of 9

Think first How do you turn messy documents into clean Markdown or structured fields that an agent or RAG pipeline can trust?

Why it matters: Questions describe a document workload and ask which analyzer, extraction setting or field method gives the needed output.

Content Understanding reads a document with OCR and layout recognition, then returns it as Markdown or as JSON fields. You run it by naming an analyzer ID and a file. Opt-in confidence scores from 0 to 1 estimate how reliable each field value is.

Step 2 of 9

Term Meaning
Analyzer What you name by its ID, with the file, to run content extraction; a custom one sets a base in baseAnalyzerId.
Field schema An optional list of fields to extract, each using the extract, classify or generate method.
Confidence score An opt-in reliability estimate from 0 to 1 for each extracted field value.
Selection mark A checkbox-style mark on a form, shown as ☒ when selected and ☐ when cleared.
Span offset The character position of extracted content, returned with a length in Unicode code points by default.

Step 3 of 9

Content extraction turns unstructured files into structured text and metadata. It runs OCR, finds selection marks and barcodes, detects formulas, and recognizes paragraphs, sections and tables. You don't need a field schema for this: the analyzer ID and the file are enough.

Exam trap Each Excel sheet and each PowerPoint slide maps to a page. A Word or HTML file, by contrast, is treated as one single page.

Step 4 of 9

Match the prebuilt analyzer to the file and the job. A scanned or image-based file calls for prebuilt-read or prebuilt-layout. In production, work from a copy of a prebuilt analyzer, because prebuilt definitions can change between API versions.

Three prebuilt document analyzers compared

Analyzer What it does Use it when
prebuilt-read Basic OCR with no layout analysis Plain text is enough; no language or embedding model needed
prebuilt-digitalParse Reads the file's internal structure and encoding The file is machine-readable, not a scan
prebuilt-documentSearch Chunked output ready for embedding, plus figure descriptions You ingest documents for RAG

Step 5 of 9

extractionMode chooses layout-aware or faster text-only extraction. Pick layout-aware extraction when tables, sections and reading order matter. Pick text-only extraction for clean Markdown in RAG ingestion. RAG analyzers return content with layout as Markdown and add semantic analysis to improve retrieval.

Step 6 of 9

Output is GitHub Flavored Markdown that keeps content and layout. Tables use HTML table markup, so merged cells can span rows and columns. Page numbers, headers, footers and breaks become HTML comments. Selected marks appear as ☒ and cleared ones as ☐. config.chartFormat turns charts into Chart.js code blocks or Markdown tables.

Step 7 of 9

A custom analyzer derives from one of four base analyzers. Name it in baseAnalyzerId: prebuilt-audio, prebuilt-document, prebuilt-image or prebuilt-video. Turn on segmentation into logical sections with enableSegment. For figures, set enableFigureAnalysis and enableFigureDescription to true.

Step 8 of 9

Each field uses one method: extract, classify or generate. Define repeated items, such as invoice line items, as arrays of objects. Transcripts, OCR text and video key frames are already in the output, so add fields for them only when they need extra processing.

The three field extraction methods

Method Use it for Example
Extract Values exactly as they appear; documents only Dates from receipts
Classify Choosing from predefined options Document type or category
Generate Values that need inference or summarization Risk level or summary

Exam trap Dates and numbers come back normalized to a canonical format. That normalization can't be configured or switched off.

Step 9 of 9

Check

Check: Extract content from documents

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Domain 5 · after the last topic

Domain 5 review

Each topic's Check tested it on its own; this mixes them.

Mixed quiz

Take the Domain 5 quiz

7 questions mixed from every topic in this domain, each answer explained. Mixing topics is harder than one at a time, and it is what the exam does. No account needed; with a free account your answers also build your estimated exam score.

Flashcards

Domain 5 flashcards

4 cards with this domain's key facts. Flip each one and check what you knew. No account needed.

Test yourself in exam conditions

A full Microsoft Certified: Azure AI Apps and Agents Developer Associate mock exam: 60 questions in 120 minutes, scored against the real exam's pass mark. Your first one is free.

Start a free mock exam
All domains studiedTry a timed mock exam

Report a problem

On “”. Tell us what looks wrong; we read every report.

What is the problem?

Optional.