Content Understanding apps: AI-901 study notes and practice questions
What to know about Content Understanding apps for the AI-901 exam, from the Implement AI solutions by using Microsoft Foundry domain (58% of the exam guide), then 3 free questions to test it. Part of the AI-901 study guide.
Content Understanding is a Foundry Tool that uses large language models to extract content and structure from many input types. This topic covers using it, in the portal and in Python.
In the Foundry portal
Go to Build, then Services, then Document Intelligence and Content Understanding. You upload a file and choose an analyzer:
OCR (Read) returns the text.
Layout returns text plus structure such as paragraphs and tables.
Receipt is a prebuilt analyzer that returns named fields, such as merchant, date and total.
The results appear in tabs: Markdown, Paragraphs, Tables, Fields and the raw Result. A View Code tab shows a sample that does the same thing in code.
In Python
Install azure-ai-contentunderstanding with --pre, along with azure-identity.
Create a ContentUnderstandingClient with the endpoint and a credential: a key through AzureKeyCredential if you have one, otherwise DefaultAzureCredential.
Start an analysis with begin_analyze, naming an analyzer such as prebuilt-receipt and giving it the file URL.
Because analysis is a long-running operation, begin_analyze returns a poller. Call poller.result() to wait for the result, then read the JSON.
Field extraction methods
When you define your own fields, each can be extracted (copied as it appears, for documents), classified (chosen from a set you give) or generated (written freely, such as a summary). Results can include a confidence score from 0 to 1 and grounding that shows where a value came from.
How to choose
Need
Pick
Just the text
OCR (Read)
Tables and structure
Layout
Merchant and total from a receipt
A receipt analyzer
A value from a fixed set
A classify field
Common traps
Forgetting the long-running operation. The call starts the job; you must wait for the result.
Content Understanding versus Document Intelligence. Content Understanding is LLM-powered and multimodal. Document Intelligence uses fixed prebuilt models.
Guardrails. Content Understanding inherits Foundry guardrails, so flagged content can block extraction.
Preview features. Treat anything labeled preview as outside the core exam facts.
A healthcare group processes three kinds of input in its back office. Each need below suits a different Foundry Tool.
Match each need to the tool that fits it best.
Match each item to one answer. An answer can be used more than once, and some may not be used.
Items
Pull the patient name and insurance number from scanned intake forms into a schema that the clinic defines.
Read line items and totals from supplier invoices, using a fixed prebuilt model.
Find and mask phone numbers in patient emails typed into the contact form.
Answers
AA. Azure Document Intelligence with the prebuilt-invoice model
BB. Azure Content Understanding with a custom analyzer
CC. Azure Language PII detection
DD. Azure Vision image tagging
Show the answer and explanation
Correct matches
Pull the patient name and insurance number from scanned intake forms into a schema that the clinic defines.: B. Azure Content Understanding with a custom analyzer
Read line items and totals from supplier invoices, using a fixed prebuilt model.: A. Azure Document Intelligence with the prebuilt-invoice model
Find and mask phone numbers in patient emails typed into the contact form.: C. Azure Language PII detection
About each answer
A. The prebuilt-invoice model is a fixed model for supplier invoices. It suits invoice line items and totals, but it does not map the clinic's own intake fields into a custom schema.
B. Content Understanding analyzers are LLM-powered and can use a custom schema, so they pull the clinic's defined fields from scanned forms with varied layouts.
C. PII detection finds and masks personal details in typed text. It works on emails and notes, not on scanned forms, and it does not map values into a schema.
D. Image tagging labels objects and scenes in photos. It does not extract named fields from forms, invoices or emails.
Explanation
Each need matches a tool by input and output. Custom intake fields from scanned forms suit Content Understanding, fixed invoice fields suit the prebuilt-invoice model, and personal details in typed messages suit Azure Language PII detection.
A university's admissions office scans each applicant's personal statement. Staff want a short summary written for every file, using wording that may not appear in the document. They also want the applicant's home country picked from a fixed list.
Which Content Understanding field extraction method should the summary field use?
Choose one answer.
AA. Extract, which copies a value as it appears in the document
BB. Classify, which picks one value from a set of options you define
CC. Generate, which writes new content such as a summary
DD. Segment, which splits a long file into sections that are analyzed separately
Show the answer and explanation
Answer: C
A. Wrong: Extract returns text exactly as it appears in the source, which suits names and numbers. A summary written in new words would not come back as extract output.
B. Wrong: Classify chooses one value from a list you provide. It fits the home-country field, but a free-text summary cannot be held in a fixed list.
D. Wrong: Segmentation divides a long file into parts. It is a processing option rather than a field method, so it does not write a summary.
Explanation
Content Understanding has Extract for values as they appear, Classify for picking from a set, and Generate for newly written content. The summary needs Generate, and the home-country field suits Classify.
A hotel chain pulls fields from expense receipts that staff upload. Its finance team needs each extracted value to show how confident the system is, and it wants to trace each value back to where it appeared on the receipt. Reviewers accept only confident values, so unsure fields must be flagged.
Which Content Understanding output meets these checks?
Choose one answer.
AA. Markdown text in reading order, which shows the receipt's text with no per-field confidence
BB. Paragraphs and tables results, which keep the receipt's text structure but not field values
CC. Field results with a confidence value from 0 to 1 and source grounding for each field
DD. A Classify field, which picks each value from a fixed list of options you define
Show the answer and explanation
Answer: C
A. Wrong: Markdown shows the readable content of the receipt. It does not attach a confidence value or a source location to each field, so reviewers cannot check individual values.
B. Wrong: The paragraphs and tables results show how the receipt's text is organized. They do not return named values with a confidence score, so reviewers cannot flag unsure fields.
D. Wrong: Classify is a field extraction method for choosing one value from a set, such as an expense category. It describes how a field is filled, not the confidence and source location the reviewers need.
Explanation
Field results with a confidence value and source grounding let reviewers trace each value to the receipt and flag unsure ones. Markdown, paragraphs and tables show the text and its structure but not per-field confidence. Classify is a way to fill a field, not a check on it.
Want more on Content Understanding apps? The 5 full-length practice sets have 15 more Content Understanding apps questions, 225 in all, none of them in the free exam. One payment of $9.99 $6.99, no subscription. Get the practice sets →