Study guide · Skill area 2
Implement AI solutions by using Microsoft Foundry
55-60% of the exam · 4 skill groups
Skill area 2 is 55 to 60% of AI-901 and is about building with Microsoft Foundry: writing system and user prompts, deploying a model from the model catalog and trying it in the chat playground, writing a small Python chat client, creating and testing an agent with instructions and tools, calling an agent from code, analysing text with Azure Language, handling spoken prompts and Azure Speech, interpreting and generating images, Azure Vision, and extracting structured fields from documents, images, audio and video with Azure Content Understanding. Most questions describe a need and ask which service, setting or line of code meets it.
A study feature written by ExamDragon, not part of the real exam. Each heading is one of this skill area's 4 skill groups, with its skills, as Microsoft states them in the study guide for Exam AI-901 (skills measured as of April 15, 2026).
At a glance
Skill area 2of the exam, the middle of the range Microsoft publishes for AI-901
- Weight
- 55-60%
- Skill groups
- 4
- Key terms
- 10
What this guide covers, skill group by skill group
2.1Implement generative AI apps and agents by using Foundry
Skills measured (Microsoft)
- Create effective system and user prompts for generative AI models
- Deploy a model and interact with it in the Foundry portal
- Create a lightweight chat client application by using the Foundry SDK
- Create and test a single-agent solution in the Foundry portal
- Create a lightweight client application for an agent
- Prompts: the system message sets the role, tone, scope and output format for the whole conversation; the user message carries the request for the current turn; assistant messages hold the model's earlier replies. Good prompts are specific about task, audience, format and length, can include a few examples (few-shot) and can be grounded in supplied data with an instruction to answer only from it.
- In the Foundry portal you work in a project, pick a model in the model catalog and deploy it. The deployment, with its name, is what the chat playground and your code call.
- In the chat playground you set the system message and parameters and test prompts. Temperature (and top_p) control randomness: lower for consistent, factual replies, higher for creative ones; change one at a time. Max tokens (max response) caps the reply length, so replies that stop mid-sentence need a higher limit. The playground can show sample code for the current chat.
- A lightweight chat client sends the deployment name and a messages list and reads the reply text from the first choice. Models keep no memory between requests: the app appends each user message and assistant reply to the list and sends the whole history, which grows the request over a long session.
- Secrets never go in code: use Microsoft Entra ID through DefaultAzureCredential (a developer sign-in locally, a managed identity in Azure) or read keys from environment variables or a vault.
- An agent is a model plus instructions plus tools. File search answers from uploaded files, Azure AI Search queries an existing index, Grounding with Bing Search brings in the public web, code interpreter runs Python to compute and chart, and function calling lets the agent ask your app to run your own code.
- Test an agent in the agent playground before writing a client; use tracing to see each step and tool call, and evaluation (for example groundedness and relevance) to measure answer quality after changes.
- An agent client connects to the project endpoint with a credential, reuses one agent, keeps each user's exchange in its own conversation (thread), and, for a function tool, runs the function with the given arguments and returns the output.
- The situationA chat client answers the first question well, but its answer to the follow-up "How much does it cost?" shows it does not know what "it" refers to. The code creates a fresh messages list with the system message and the current question on every turn.
- Step 1Recall that the model is stateless: it only sees what is in the current request.
- Step 2Create the messages list once, with the system message, before the loop.
- Step 3On each turn, append the user message, send the whole list, then append the reply as an assistant message.
- Step 4For long sessions, watch the token use and trim or summarise the oldest turns.
- Where questions turnReaching for a parameter to fix a prompt problem: temperature does not enforce a format, max tokens does not give the model memory, and neither keeps an assistant on topic. Those are jobs for the system message, the prompt and the conversation history.
- The takeawayConversation memory is the history the app sends; the service does not keep it for a plain chat request.
2.2Implement AI solutions for text and speech by using Foundry
Skills measured (Microsoft)
- Build a lightweight application that includes text analysis
- Respond to spoken prompts by using a deployed multimodal model
- Build a lightweight application by using Azure Speech in Foundry Tools
- Azure Language prebuilt text analysis: sentiment analysis (positive, negative or neutral per sentence, and positive, negative, neutral or mixed per document, with confidence scores), key phrase extraction (main topics), named entity recognition (people, locations, organizations, dates), PII detection with redacted text, language detection and summarization.
- A document with at least one positive and at least one negative sentence is labelled mixed; neutral means no clear opinion.
- Text analysis can also be done with a deployed generative model: put the text in the user message and state the task and the output format in the prompt.
- Spoken prompts: a deployed multimodal model that accepts audio can respond to a spoken question directly; audio is commonly sent as base64 data with its format in the user message, and the system message still guides the reply. The alternative is a pipeline: speech to text, a text model, then text to speech for a spoken answer.
- Azure Speech speech to text needs a configuration (resource details read securely and the recognition language), a recognizer and an audio source, the default microphone if none is set. Check the result's reason (recognised, no match, cancelled) before using its text.
- Real-time speech to text suits live audio; batch transcription suits large sets of stored recordings. Speech translation turns speech in one language into text or speech in another.
- Text to speech uses a configured neural voice and plays to the default speaker unless another output is set; SSML controls pronunciation, pauses, rate and pitch.
- The situationA kiosk must answer visitors' spoken questions aloud. Only a text-only chat model is deployed.
- Step 1Turn the visitor's speech into text with Azure Speech speech to text, checking the result's reason.
- Step 2Send the text, with a system message, to the chat model.
- Step 3Speak the reply with text to speech, using SSML if the brand wants a slower rate or pauses.
- Step 4Later, consider a multimodal model that accepts audio to remove the transcription step.
- Where questions turnMixing up the direction of speech services: speech to text listens, text to speech speaks. Settings such as the recognition language affect only recognition, and the voice name and SSML affect only synthesis.
- The takeawaySpoken prompts are handled either by a model that accepts audio or by a speech to text, model, text to speech pipeline.
2.3Implement AI solutions with computer vision and image-generation capabilities by using Foundry
Skills measured (Microsoft)
- Interpret visual input in prompts by using a deployed multimodal model
- Create new visual outputs by using generative models
- Build a lightweight application that includes vision capabilities
- A multimodal model deployed in Foundry accepts user messages whose content mixes text and images; the text part says what to look for and how to answer. Several images can go in one message for comparison.
- Images are sent as a URL the service can reach or as base64 data (a data URL), which suits private images.
- Prompt engineering applies to images: say exactly what to extract or describe and in what format, and name the audience when it matters.
- Multimodal models can misread fine details, small text or counts, so important results are checked by a person or by validation.
- Image generation models create new images from a descriptive text prompt with options such as the image size; specific prompts (subject, style, colours, composition) steer the result. Content filters can block harmful prompts and outputs, and people review generated images before publication.
- Azure Vision Image Analysis gives prebuilt, structured results: caption (one sentence, good for alt text), tags with confidence scores, object detection with bounding boxes, and OCR (Read) for printed and handwritten text.
- A lightweight vision app needs the endpoint, a credential kept out of the code, the image and the list of visual features; it often filters results by a confidence threshold. No training is needed for prebuilt features.
- The situationA photo app needs alt text for every image, and a separate feature where users ask open questions about a photo.
- Step 1For alt text, call Image Analysis with the caption feature and store the sentence.
- Step 2For open questions, send the photo and the user's question in one user message to a multimodal model.
- Step 3Keep the conversation history so follow-up questions about the same photo work.
- Step 4Add a review step for answers that drive decisions.
- Where questions turnChoosing an image generation model whenever a task involves images. Generation creates new pictures; describing, tagging, locating or reading an existing image is analysis, by Azure Vision or a multimodal model.
- The takeawayUse prebuilt analysis for consistent, structured outputs and a multimodal model for flexible questions and conversation.
2.4Implement AI solutions for information extraction by using Foundry
Skills measured (Microsoft)
- Extract information from documents and forms by using Azure Content Understanding in Foundry Tools
- Extract information from images by using Content Understanding
- Extract information from audio and video by using Content Understanding
- Build a lightweight application with information extraction capabilities by using Content Understanding
- Azure Content Understanding in Foundry Tools turns documents, forms, images, audio and video into structured output through analyzers; prebuilt analyzers cover common cases and custom analyzers use your own field schema.
- A field schema lists fields with a name, a type (such as string, number, date or boolean) and a description that guides what is returned.
- Field methods: extract copies a value found in the content (an invoice number, a total), generate produces a value from the content (a summary, a description, a suggestion) and classify picks one of listed categories (a document type, resolved or not).
- Documents and forms: fields such as vendor, dates and totals come back as structured data whatever the layout; use confidence scores to send uncertain values to human review.
- Images: fields can be read from photos (a price on a label, a meter reading as a number) or generated (a description of visible damage).
- Audio and video: Content Understanding transcribes speech, can label who spoke (speaker diarization), splits video into segments with descriptions and key frames, and fills the schema's fields, such as an issue summary or topics.
- A lightweight app creates the analyzer once, tests it on sample files, then calls it by ID for each file. Analysis is a long-running operation: submit, poll the operation until it succeeds or fails, then read the fields.
- The situationFabrikam wants the contract number, a one-sentence summary and the document type (contract, amendment or letter) from every incoming file.
- Step 1Define a custom analyzer with three fields: contract_number (string, extract), summary (string, generate) and document_type (classify with the three categories).
- Step 2Add a clear description to each field and test the analyzer on a few sample files.
- Step 3In the app, submit each file, poll until the operation succeeds, then read the fields.
- Step 4Send fields with low confidence to a person for review.
- Where questions turnReading the result straight after submitting the file. Content Understanding analysis is asynchronous, so an app that does not wait for the operation to succeed finds no fields.
- The takeawayThe schema's names, types, descriptions and methods decide what comes back; the app's job is to submit, wait and use the fields.
Key terms
- System message
- The instructions that set a model's role, tone, scope and format for a whole conversation.
- Model deployment
- A model from the Foundry model catalog made available in a project under a deployment name that apps call.
- Temperature
- A parameter that controls how random a model's token choices are; lower gives more consistent replies.
- Max tokens
- A parameter that caps how long a generated reply can be.
- Agent
- A model combined with instructions and tools, such as file search or code interpreter, that can take steps to complete a task.
- Conversation (thread)
- The record of one exchange between a user and an agent, which keeps its context across messages.
- Multimodal model
- A model that accepts more than one kind of input, such as text with images or audio.
- SSML
- Speech Synthesis Markup Language, which controls pronunciation, pauses, rate and pitch in text to speech.
- Analyzer
- A Content Understanding definition, prebuilt or custom, that turns content into structured output.
- Field schema
- The named, typed and described fields an analyzer returns, each with a method: extract, generate or classify.
Show the answer
File search with the guides uploaded answers from the documents, and a function tool lets the agent ask the app to look up warranty status, with the app running the function and returning the result. The off-topic answers are fixed in the agent's instructions, which should state the scope and how to decline other topics, then retested in the agent playground and checked with tracing and evaluation.
Built to Microsoft's study guide for Exam AI-901, skills measured as of April 15, 2026. The explanations, worked examples and traps are ExamDragon's own. Every source this path is built on.
