Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Revision pack

AI-103 cheat sheet

One sheet per exam area, made from the 39 lessons on this site. Print it, save it as a PDF, or press Listen and revise on a walk. Each line links back to its lesson if something doesn't make sense.

⏰ The last 30 minutes before the exam

Don't learn anything new now. Read this once, then put it away.

In the exam room

  • You have about 100 minutes for the questions. The pass mark is 700 on a scale of 1–1000, which isn't the same as 70% of questions right.
  • Answer every question. There's no penalty for a wrong guess, but a blank always scores zero.
  • Mark anything you're unsure of for review and move on. Come back at the end with fresh eyes.
  • If a section warns that you can't return to it, believe it. Review everything before you leave.
  • Read the last line of a long scenario first, so you know what you're looking for.
  • Watch for "least", "most cost-effective" and "minimise administrative effort". They decide which correct-looking option is the right one.

Look-alikes people mix up

Foundry Deployment Types: Global, Data Zone, Standard, Provisioned, Batch
“Data must remain in the EU” = Data Zone (or regional), never Global. “Predictable latency for constant high volume” = Provisioned. “Process 1 million documents overnight at the lowest cost” = Batch.
Foundry IQ Knowledge Base vs File Search vs Agent Memory
“Remember user preferences between sessions” = memory. “Search the documents the user uploads” = file search. “Ground on the company’s product manuals with citations” = knowledge base / Azure AI Search.
Multi-Agent Orchestration Patterns: Sequential, Concurrent, Handoff, Group Chat, Magentic
“A fixed pipeline, each agent builds on the last” = sequential. “Same input to several agents and combine” = concurrent. “Transfer the conversation to a specialist” = handoff. “A manager builds a plan and tracks tasks” = Magentic.
Prompt Engineering vs RAG vs Fine-Tuning
“Answer from our latest policy documents” = RAG. “Always reply in this exact format” = prompt first, fine-tune only if that fails. Facts that change weekly never belong in fine-tuning.
Generate, Edit or Understand? Vision Features in Foundry
“Change only the background” = edit with a mask. “Describe the photo for a screen reader” = multimodal model with an alt text prompt. “Same fields for every photo” = custom analyzer.
Image Harm Controls vs Prompt Shields vs a Custom Visual Policy
“Text in an uploaded image tells the model what to do” = indirect prompt injection. “Reject images with our competitor’s logo” = custom policy, not a built-in harm category.
Azure Translator vs LLM Translation in Foundry
“Translate 1 million messages cheaply and consistently” = Translator. “Keep a formal tone and keep numbers as digits” = LLM flow. “Brand name must not change” = dynamic dictionary.
Sentiment Analysis vs Model Tone Labels vs Content Safety
“Which part of the review was negative?” = opinion mining. “Block violent comments” = Content Safety threshold. “Hidden instructions in a document” = Prompt Shields.
Keyword vs Vector vs Hybrid vs Semantic Search in Azure AI Search
“Matches by meaning even with no shared words” = vector. “One request that combines full-text and vector results” = hybrid. “Reorders the top results and returns captions” = semantic ranker. The ranker never adds documents.
Azure AI Search vs Content Understanding: Which Do You Need?
“Extract fields with confidence from each invoice” = Content Understanding. “Search 40,000 policy pages with citations” = Azure AI Search. “Chunk by layout while indexing” = the Content Understanding skill in a skillset.

Domain 1: Plan & Manage (25–30% of the exam)

Choose Models and Foundry Services for the Task

Match the job to the smallest thing that passes your tests. A reasoning model (such as o4-mini) plans multistep problems. A small language model (such as Phi-4-mini) handles narrow, high-volume work cheaply. A multimodal model accepts images or audio as well as text. A Foundry Tool such as Content Understanding, Azure Speech or Azure Language does a fixed job with no prompt work. For the service: Foundry Models for generating, Foundry IQ on Azure AI Search for grounding and vector search, Foundry Agent Service for agent workflows. Check the model card (inputs, context window, regions, deployment types) and then your own test set.

  • Smallest model that passes your tests wins. Move up only when it fails.
  • Reasoning models for multistep problems, small models for narrow high-volume work, multimodal models for images and audio.
  • Foundry Tools do fixed jobs (documents, speech, language, vision) with predictable output.

🎯 Exam tip: "Multistep planning or maths" = a reasoning model.

⚠️ Watch out: Sending photos to a text-only model and getting a 400 error.

Retrieval, Indexing and Agent Memory Choices

Put curated company content in a Foundry IQ knowledge base on Azure AI Search, which can use keyword, vector, hybrid (best default) and semantic ranking, and agentic retrieval to plan sub-queries. Use file search for files a user uploads in a conversation. Use memory for what the agent learns about a person across sessions: user profile memory and chat summary memory, scoped per user. Plan indexing with indexers (pull) or the push API, chunking and integrated vectorization. Connect other tools with MCP, OpenAPI or functions. Knowledge answers "what's true here", memory answers "what do we know about this person".

  • Knowledge bases (Foundry IQ on Azure AI Search) hold curated company content and return cited passages.
  • Hybrid search with semantic ranking is the usual strong default. Pure vector misses exact terms.
  • File search covers files a user uploads in a conversation, without a separate index build.

🎯 Exam tip: "Exact codes and meaning-based matches" = hybrid search.

⚠️ Watch out: Using memory to store company policy, or a knowledge base to store personal preferences.

Foundry Infrastructure and Deployment Options

A Foundry resource (kind AIServices) holds model deployments, networking, keys and identity. Projects inside it separate teams and apps. For agents, the basic setup uses Microsoft-managed storage, and the standard setup keeps threads, files and vectors in your own Cosmos DB, Storage and Azure AI Search, so you control retention, encryption and networking. Deployment types: Global Standard (best throughput, data may be processed anywhere), Data Zone Standard (stays in the EU or US zone), Standard (one geography), Provisioned (reserved PTUs for steady latency) and Global Batch (cheaper, results within 24 hours).

  • One Foundry resource holds deployments, keys, networking and identity. Projects isolate teams and apps.
  • Standard agent setup puts agent data in your own Cosmos DB, Storage and AI Search. Basic uses managed storage.
  • Global = best capacity, any region. Data Zone = EU or US zone. Standard = one geography.

🎯 Exam tip: "Data must remain in the EU" = Data Zone (or regional Standard).

⚠️ Watch out: Choosing a Global deployment when a contract says data stays in the EU.

Configure Model and Agent Deployments

A model deployment pins a model name and version, a deployment type, capacity (tokens per minute, or PTUs), a version upgrade policy and a guardrail. Pin a version when behaviour must not change, and choose an upgrade option if you want newer defaults. An agent gets a new version every time its definition changes, so you can test one version, publish it, and roll back by pointing the endpoint at the earlier version. Apps call the project endpoint with the deployment name or the agent name, never the model name.

  • A deployment pins model, version, deployment type, capacity, upgrade policy and guardrail.
  • Code calls the deployment name, so the model behind it can change.
  • Pin the version when behaviour must be stable, and re-test before upgrading.

🎯 Exam tip: "Behaviour must not change until we approve" = pin the version, no auto upgrade.

⚠️ Watch out: Letting auto upgrade change a regulated app's model without re-running evaluations.

CI/CD for Foundry Projects

Keep the agent definition, prompts, evaluation set and Bicep in Git. A pipeline (GitHub Actions or Azure DevOps) signs in with workload identity federation (an OIDC federated credential on a managed identity or app registration), so no secret is stored. It deploys the infrastructure with Bicep to a dev project, runs an evaluation on a fixed test set as a gate, and only then promotes the same definition to test and prod projects, each with its own RBAC and approvals. Prod secrets don't exist; access is by role.

  • Agents, prompts, evaluation data and Bicep live in Git and flow through pull requests.
  • Federated credentials let a pipeline sign in without a stored secret.
  • An evaluation step is a release gate. Failing scores stop promotion.

🎯 Exam tip: "No secrets stored in the pipeline" = workload identity federation.

⚠️ Watch out: Storing a client secret in repository secrets when federation is available.

Quotas, Rate Limits, Scaling and Cost

Quota is tokens per minute (TPM) for each model, deployment type and region in a subscription. Each deployment takes a slice of it, and requests per minute (RPM) come with the slice (about 6 RPM per 1,000 TPM for OpenAI models). Go past the limit and the service answers HTTP 429 with a retry-after header. Handle it with exponential backoff and retry, split load across deployments or regions, use Provisioned throughput for steady load with spillover to a standard deployment for peaks, and control spend with token budgets, cost alerts, smaller models, shorter prompts and caching.

  • Quota is TPM per model, deployment type and region. Deployments take slices of it.
  • RPM comes with the TPM slice. Exceeding either gives HTTP 429.
  • Handle 429 with retry-after, exponential backoff and jitter.

🎯 Exam tip: "Requests fail with 429 at peak" = backoff and retry, more capacity, or spillover.

⚠️ Watch out: Retrying instantly in a tight loop, which makes throttling worse.

Monitor Models, Agents and Search Indexes

Use Azure Monitor metrics for requests, tokens, latency and errors, Application Insights for traces of every model and tool call, and continuous evaluation to score a sample of live answers for groundedness, relevance and safety, which is how you spot drift. Alert on content filter and guardrail events. For Azure AI Search, watch indexer run history and failed items, document counts, search latency, throttled queries and relevance (click-through, evaluation with test queries). When groundedness falls, check the index before you blame the model.

  • Azure Monitor gives metrics, Application Insights gives traces, continuous evaluation gives quality scores.
  • Drift shows up as falling groundedness or relevance. Check recent changes first.
  • Alert on safety and guardrail events, error rates and latency.

🎯 Exam tip: "Detect quality decline in production" = continuous evaluation.

⚠️ Watch out: Blaming the model when the index was stale.

Secure Foundry: Managed Identity, Keyless Auth and Private Networking

Use Microsoft Entra ID instead of keys. Give the app a managed identity and assign it the Foundry User role on the resource or project (least privilege), then disable local (key) authentication so a leaked key is useless. Close the front door with public network access: Disabled and add a private endpoint in your virtual network, backed by a private DNS zone. Use role policies (RBAC and Azure Policy) to keep it that way. In code, use DefaultAzureCredential and a token provider, not an API key.

  • Use Entra ID tokens through DefaultAzureCredential. Managed identities remove stored secrets.
  • Assign Foundry User at the narrowest scope that works. Owner and Contributor aren't for app access.
  • disableLocalAuth true makes keys useless. Public network access Disabled closes the internet door.

🎯 Exam tip: "No secrets in code" = managed identity with DefaultAzureCredential.

⚠️ Watch out: Disabling keys before the app is switched to Entra ID.

Content Filters, Guardrails and Risk Detection

A guardrail in Foundry is a set of controls. Each control combines a risk (hate, sexual, violence, self-harm, user prompt attacks, indirect attacks, protected material, PII), an intervention point (user input, tool call, tool response, output) and an action (annotate, or annotate and block), with a severity threshold for harm categories. Attach the guardrail to a model deployment or an agent. Prompt Shields catch jailbreaks (from the user) and indirect attacks (hidden in documents and tool results). Start strict, review what gets blocked, then tune, because a loose filter lets harm through and a tight one blocks real users.

  • A guardrail is a set of controls: risk, intervention point, action.
  • Intervention points are user input, tool call, tool response and output.
  • Prompt Shields cover jailbreaks and indirect attacks. Indirect attacks come from content, not the user.

🎯 Exam tip: "Hidden instructions in a web page or document" = indirect attack (Prompt Shields).

⚠️ Watch out: Checking user input only and ignoring tool responses.

Safety Evaluations, Tracing and Auditing

Use evaluators to score answers: quality (groundedness, relevance, coherence), safety (violence, hate and unfairness, self-harm, sexual, protected material) and agent evaluators (intent resolution, tool call accuracy, task adherence). Run the AI red teaming agent to attack the app before launch and report an attack success rate. Evaluator results include a reason, which gives explanations. For auditing, turn on tracing to Application Insights so every model call, tool call and approval is recorded, keep provenance metadata (source documents, model version, who approved) and use approval workflows for risky actions.

  • Evaluators score quality, safety and agent behaviour, with a reason for each score.
  • Tool call accuracy and task adherence are agent evaluators. Groundedness needs context.
  • The AI red teaming agent attacks before launch and reports an attack success rate.

🎯 Exam tip: "Is the answer supported by the retrieved text" = groundedness.

⚠️ Watch out: Running evaluators once and never in the pipeline or on live samples.

Govern Agent Behavior: Oversight, Constraints and Tool Access

Govern an agent with least privilege. Give it only the allowed tools it needs, set risky tools to require approval from a human (human-in-the-loop), and choose an oversight mode: fully supervised, approval for sensitive actions, or autonomous for low-risk work. Add a tool call guardrail to check what the agent sends, give the agent its own identity with narrow RBAC, and limit where a hosted agent can connect with network egress controls. Log every decision in traces. Prompts alone aren't a control, because a model can be talked out of its instructions.

  • Least privilege for agents: allowed tools, narrow identity, narrow data access.
  • Risky or irreversible tools require human approval. Read-only tools usually don't.
  • Enforce constraints outside the prompt. Prompts guide, controls enforce.

🎯 Exam tip: "A person must confirm before the action runs" = require approval (human-in-the-loop).

⚠️ Watch out: Putting safety rules only in the system prompt.

Domain 2: GenAI & Agents (30–35% of the exam)

Deploy and Call Models from Your App

You deploy a model in Microsoft Foundry, which creates a named deployment with a model version, a deployment type and capacity. Your app calls the deployment name, never the model name, through the project endpoint with AIProjectClient and DefaultAzureCredential. Choose a large or reasoning model for hard work, a small language model for cheap, high-volume work, a code model for programming tasks and a multimodal model when the input is an image or audio.

  • A deployment holds the model, version, deployment type and capacity.
  • Apps pass the deployment name in the model parameter.
  • The project endpoint plus DefaultAzureCredential gives keyless access.

🎯 Exam tip: "Cheapest model for simple, high-volume labelling" = small language model.

⚠️ Watch out: Passing the model name instead of the deployment name.

Retrieval-Augmented Generation (RAG) in an App

Retrieval-augmented generation (RAG) looks up your own content first and then asks the model to answer from it. You chunk documents, embed each chunk, store them in an Azure AI Search index, then at query time run a hybrid (keyword plus vector) search, put the top chunks in the prompt and ask for citations. Use the same embedding model for the index and the query, and tell the model to say it doesn't know when the sources don't cover the question.

  • RAG retrieves first, adds the chunks to the prompt, then generates.
  • Chunk size and overlap decide what retrieval can return.
  • Hybrid search combines keyword and vector queries.

🎯 Exam tip: "Answer from current company documents with citations" = RAG, not fine-tuning.

⚠️ Watch out: Embedding the query with a different model than the index.

Workflows, Tool-Augmented Flows and Multistep Reasoning

A workflow breaks one AI task into small steps you control, for example classify, extract, call a tool, draft, verify. Use structured outputs with a strict JSON schema between steps, give tool calls timeouts, bounded retries and a fallback, and check the result before anything is sent. Low temperature suits classification and extraction, and a reasoning model suits the one step that needs deep planning.

  • Give each step one job and check between steps.
  • Structured outputs make step outputs parseable.
  • Bound tool calls with timeouts and retries, then fall back safely.

🎯 Exam tip: "Code must parse the model reply" = structured outputs with a strict schema.

⚠️ Watch out: Assuming a tool will always answer.

Evaluate Models and Apps: Groundedness, Relevance and Safety

Evaluators score your app's answers on a fixed test dataset. Groundedness checks whether the answer is supported by the context, which finds fabrications. Relevance checks the answer addresses the question, coherence and fluency check the writing, and safety evaluators check harm and attacks. AI-assisted evaluators need a judge model deployment. Run the same dataset before and after each change so you can compare.

  • Groundedness finds claims the context does not support.
  • Relevance checks the answer addresses the query.
  • Safety evaluators check harm categories and indirect attacks.

🎯 Exam tip: "Answer contains details not in the documents" = groundedness.

⚠️ Watch out: Judging quality by a quick demo.

Foundry SDKs and Connectors

The Foundry SDK (azure-ai-projects) opens a project with AIProjectClient, using the project endpoint and DefaultAzureCredential. From it you get an OpenAI-compatible client, the project's deployments, agents and connections. A connection stores the target and authentication of another resource, such as Azure AI Search or Application Insights, so your code reads it by name instead of holding a URL or a key.

  • AIProjectClient takes the project endpoint and a credential.
  • get_openai_client() returns the client for model calls.
  • Connections hold targets and authentication for other resources.

🎯 Exam tip: "Read the Azure AI Search endpoint without hard-coding it" = project.connections.get(name).

⚠️ Watch out: Hard-coding service URLs and keys.

Design an Agent: Role, Goals, Threads and Tool Schemas

An agent is a model plus instructions, tools and a conversation. The instructions carry its role, goal and rules, including what to do when information is missing. Each tool has a name, a description and a JSON schema, and a strict schema with required parameters makes the agent ask instead of invent. A conversation keeps the messages for one chat, and every change to the agent creates a new version you can roll back to.

  • Instructions define role, goal and rules, including behaviour on missing data.
  • Tool name, description and schema decide when and how it is called.
  • Strict schemas with required parameters stop invented arguments.

🎯 Exam tip: "Agent invents arguments" = strict schema with required parameters and an instruction to ask.

⚠️ Watch out: Vague instructions with no rule for missing information.

Agents with Retrieval, Function Calling and Memory

Give an agent the tool that matches the need. Function calling reaches live data and actions, where the model asks and your code runs the function. File search and Azure AI Search ground answers on documents. OpenAPI and MCP tools call outside services. Memory stores facts about a user, scoped per user, so a new conversation next week still knows the preference. The conversation only holds one chat.

  • Functions reach live data and actions; your code runs them.
  • File search grounds on files; Azure AI Search on a curated index.
  • OpenAPI and MCP tools reach outside services.

🎯 Exam tip: "Live order status" = function calling.

⚠️ Watch out: Using memory for company documents.

Multi-Agent Orchestration

Multi-agent orchestration shares a job between specialist agents. In Microsoft Agent Framework you pick the pattern by who decides the next step: sequential (a fixed line), concurrent (parallel, then merged), handoff (the current agent passes control), group chat (a manager picks the next speaker) or Magentic (a manager plans and delegates open-ended work). Start with one agent and split only when instructions or tools start to collide.

  • Choose the pattern by who decides the next step.
  • Sequential is a fixed pipeline; concurrent fans out and merges.
  • Handoff moves control to the best agent for the conversation.

🎯 Exam tip: "Fixed order, each builds on the last" = sequential.

⚠️ Watch out: Using Magentic for a task with known steps.

Autonomous Agents with Safeguards and Approvals

Let an agent read freely, but mark write tools that change data or move money as approval required, so the run pauses until a person approves or rejects. Put hard limits in code for what nobody should approve, give the agent least-privilege tools and limits on steps and cost, and keep traces so an auditor can see who decided. The more autonomy you give, the more these safeguards matter.

  • Reads can run freely; writes with impact need approval.
  • Approval pauses the run until a decision is returned.
  • Hard limits in code hold even if an approver errs.

🎯 Exam tip: "Pause before money moves" = approval required on the tool.

⚠️ Watch out: Relying on the prompt to enforce a business limit.

Monitor, Evaluate and Debug Agents

Evaluate an agent by its whole run, not only its final text. Intent resolution asks if it understood the goal, tool call accuracy checks the tools and arguments, and task adherence checks it followed its instructions. Error analysis groups failing runs into causes, such as a made-up argument or a claimed action with no tool call, so you fix the cause and rerun the same dataset. In production, add monitoring and continuous evaluation on sampled live traffic.

  • Agent evaluators read the whole run, including tool calls.
  • Intent resolution, tool call accuracy and task adherence cover different failures.
  • Error analysis groups failures into causes.

🎯 Exam tip: "Called a tool with an argument the user never gave" = tool call accuracy.

⚠️ Watch out: Judging an agent only by its final text.

Prompt Engineering, Parameters and Self-Critique

Tune generation in two places. Prompts set role, rules, format and examples, and a few-shot example often fixes format faster than more rules. Parameters shape the sampling: a low temperature gives steady, factual wording, a high one gives variety, and max output tokens caps length, so a reply cut off with an incomplete status needs a higher cap. A self-critique loop drafts, checks against a checklist and revises once. Reasoning models use reasoning effort instead of temperature.

  • Instructions set role, audience, rules and length.
  • A few-shot example fixes format and tone quickly.
  • Low temperature for facts; higher for ideas.

🎯 Exam tip: "Consistent, factual output" = low temperature.

⚠️ Watch out: Changing temperature and top_p together.

Tracing, Token Analytics and Latency

Tracing records each agent run, model call and tool call as a span with a duration and token counts. Connect an Application Insights resource to the project, opt in to GenAI tracing, configure Azure Monitor and instrument the SDK, then read the spans to see latency by step and tokens by model. Recording message content is a separate switch and should stay off in production, because prompts and answers can contain personal data.

  • Spans show duration and tokens for each step.
  • Application Insights stores the traces.
  • Tracing is opt-in; content recording is a separate opt-in.

🎯 Exam tip: "Find the slowest step" = span durations in the trace.

⚠️ Watch out: Forgetting to opt in, then seeing no spans.

Orchestrate Multiple Models and Rules Engines

Don't send everything to the biggest model. A hybrid design tries rules first for answers code can decide exactly, a small language model for easy language work, and a large or reasoning model only for hard requests. A model router deployment can choose among models for you, or your own cascade can escalate when the small model is unsure. This lowers cost and latency, and you measure each route with evaluations and traces.

  • Rules first for exact answers.
  • Small models for simple, high-volume language work.
  • Large or reasoning models only when needed.

🎯 Exam tip: "Fixed policy limit" = rules engine.

⚠️ Watch out: Using a model for a lookup a table can answer.

Domain 3: Computer Vision (10–15% of the exam)

Generate and Edit Images

To generate an image, you send a prompt to a gpt-image deployment and choose the size, quality, number of images and output format. To edit an image, you send the picture, a prompt and, for a precise change, a mask: a PNG of the same size where the transparent area is the only part the model may change. The image comes back as base64, and a transparent background needs PNG.

  • Generation and edits use a gpt-image deployment, and your code sends the deployment name as the model.
  • Sizes are 1024x1024, 1024x1536 and 1536x1024. Quality is low, medium or high. n is 1 to 10.
  • Output format is PNG or JPEG. A transparent background needs PNG.

🎯 Exam tip: "Change only part of an image" = mask-based edit (transparent area).

⚠️ Watch out: Editing without a mask and expecting only one area to change.

Generate and Edit Video

A Sora 2 video is an asynchronous job: you create it with a prompt, a size (720x1280 or 1280x720) and a duration of 4, 8 or 12 seconds, poll the status, then download the video. An input reference image must match the video size and can't contain a face. To edit a finished video, remix it by its video ID with a short prompt that asks for one change.

  • Video generation is asynchronous: create, poll, download.
  • Sizes are 720x1280 and 1280x720. Durations are 4, 8 or 12 seconds.
  • The input reference must match the video size and can't include a human face.

🎯 Exam tip: "Edit a generated video" = remix with the video ID.

⚠️ Watch out: Holding a web request open until the video is ready.

Multimodal Image Understanding: Captions, Alt Text and Visual Q&A

A multimodal chat model such as gpt-4.1-mini reads images sent with your prompt, and the prompt decides the result: a concise or detailed caption, an answer to a visual question grounded in what's visible, or alt text that follows accessibility rules. One request can carry up to 10 images, and the detail setting (low, high, auto) trades cost and speed against small text.

  • Use a deployment whose model accepts image input, such as gpt-4.1-mini.
  • Images go in an image_url content part as a URL or base64 data URL.
  • Up to 10 images per request. Detail is low, high or auto.

🎯 Exam tip: "Short description for a thumbnail" = concise caption prompt.

⚠️ Watch out: Sending an image to a text-only deployment.

Content Understanding for Images and Video

Azure Content Understanding in Foundry Tools runs an analyzer on an image or video and returns the same structured fields every time. Start with a prebuilt analyzer such as prebuilt-imageSearch or prebuilt-videoSearch, or build a custom analyzer with classify and generate fields. For video, turn on segmentation to get scenes with their own fields, key frames and transcript. Pro mode adds reasoning across inputs and reference data.

  • Prebuilt analyzers include prebuilt-imageSearch and prebuilt-videoSearch.
  • A custom analyzer derives from a base such as prebuilt-image or prebuilt-video and defines a field schema.
  • Image and video fields use classify or generate. Extract is for documents.

🎯 Exam tip: "Same fields for every photo" = custom analyzer with a field schema.

⚠️ Watch out: Using the extract method on an image analyzer.

Responsible AI for Images and Video

Protect visual apps in three layers. Use guardrail image controls to classify hate, sexual, violence and self-harm content. Treat text inside images as untrusted data: scan it with Prompt Shields, say in the system message that it's never an instruction, and put approval on risky tools. Enforce your own rules, such as banned logos or a missing watermark, with a custom Content Understanding analyzer.

  • Guardrails classify hate, sexual, violence and self-harm in images with severity levels you set thresholds for.
  • Text in images is untrusted data and can carry an indirect prompt injection.
  • Defend with Prompt Shields, a data-only system message, least privilege and approvals.

🎯 Exam tip: "Instructions hidden in an uploaded image" = indirect prompt injection, use Prompt Shields.

⚠️ Watch out: Trusting a harm filter to catch hidden instructions.

Domain 4: Text & Speech (10–15% of the exam)

Extract Entities, Summaries and Structured JSON

Use Azure Language in Foundry Tools when you want fixed, predictable output: named entity recognition (people, places, dates, with confidence scores), PII redaction and summaries. Use a model deployment when you need your own fields. Ask for JSON mode and you only get valid JSON. Ask with structured outputs (a JSON schema with strict: true, every field required) and the reply follows your shape every time. For domain summaries such as compliance, don't train anything first: give the model a role, a checklist, a glossary and one example at temperature 0. For your own entity types at high volume, train custom NER.

  • Azure Language gives fixed categories, confidence scores and the same output for the same input.
  • Prebuilt NER can't know your own fields. Use custom NER or a model for those.
  • JSON mode means valid JSON only. Structured outputs with strict true means your schema.

🎯 Exam tip: "Reply must match a schema" = structured outputs, not JSON mode.

⚠️ Watch out: Thinking JSON mode guarantees the fields you asked for.

Sentiment, Tone and Sensitive Content Detection

Sentiment analysis in Azure Language returns positive, neutral, negative or mixed with confidence scores, and opinion mining ties each opinion to its target. It's cheap and steady but misses sarcasm, so ask a model for a tone label from an enum when tone matters. For harm, Azure Content Safety scores Hate, Sexual, Violence and Self-harm at severity 0, 2, 4 or 6, and you pick the block threshold. PII detection can redact only the categories your policy names. Prompt Shields checks the user prompt for jailbreaks and every document for hidden instructions.

  • Sentiment labels are positive, neutral, negative and mixed (mixed for the whole document), with confidence scores.
  • Opinion mining returns the target and the assessment together.
  • Sentiment misses sarcasm. A model with an enum tone label catches more.

🎯 Exam tip: "Which part of the review is negative?" = opinion mining.

⚠️ Watch out: Treating sentiment as a safety signal. It measures opinion, not harm.

Translate Text with Translator or a Language Model

Use Azure Translator in Foundry Tools when you want fast, consistent, per-character translation: it detects the source language, returns several target languages in one call, and keeps terms right with a dynamic dictionary (no training) or Custom Translator (trained on your sentence pairs). A multi-service resource needs the region sent with the key. Use an LLM translation flow when tone, context or formatting rules matter: you write them in plain words in the instructions. It costs more, can vary run to run, and should be tested with an evaluation set before release.

  • Translator returns many target languages from one request and can detect the source.
  • Dynamic dictionary needs no training. Custom Translator needs sentence pairs.
  • A multi-service resource needs the region header with the key.

🎯 Exam tip: "Brand name must stay unchanged, no training" = dynamic dictionary.

⚠️ Watch out: Calling Translator once per target language.

Speech to Text and Text to Speech for Agents

A voice agent is a loop you can swap piece by piece: speech to text turns the caller into words, the model or agent answers, and text to speech with a neural voice speaks the reply. SSML controls pauses, rate and pitch. When domain words come out wrong, try a phrase list first (no training). For many terms, accents or noisy lines, train a custom speech model and use its endpoint ID. For a live phone agent, Voice Live runs speech in, the model or agent, and speech out over one low-latency connection with noise suppression and turn detection built in.

  • One voice turn is speech to text, model or agent, text to speech.
  • Phrase list is the quick, no-training fix. Custom speech is for many terms, accents or noise.
  • A custom speech model is used by setting its endpoint ID in the SpeechConfig.

🎯 Exam tip: "A few words misheard, no training" = phrase list.

⚠️ Watch out: Training custom speech for two misheard words.

Speech Translation and Reasoning over Audio

Speech translation in Azure Speech recognises one spoken language and returns text in several target languages in one pass, and can speak the result with a voice name. Use it when you need transcripts, fixed languages and low cost. When the question is about how something was said (tone, emotion, pace, sounds), send the recording to an audio-capable model such as gpt-4o-audio-preview as an input_audio content part. A text-only deployment such as gpt-4.1-mini rejects audio with an error, so deploy an audio model or transcribe first.

  • Speech translation returns several target languages from one recognition pass.
  • A voice name on the translation config makes it speak the result.
  • Transcripts lose tone and pace. Audio-capable models keep them.

🎯 Exam tip: "Hindi speech to English and Tamil text" = speech translation.

⚠️ Watch out: Sending audio to a text-only deployment.

Domain 5: Information Extraction (10–15% of the exam)

Ingest and Index Content for RAG

To ingest content for RAG, an Azure AI Search (Foundry IQ) indexer reads files from a data source such as Blob Storage, runs a skillset (OCR, Text Split, an embedding model) and writes one search document per chunk into an index. Scanned pages only become searchable when the OCR skill receives images (imageAction: generateNormalizedImages). Use a managed identity for access, a schedule to keep the index current, and reset the indexer when you change the pipeline. Audio and video are analysed first (for example with Content Understanding), then their text is indexed.

  • An indexer needs a data source and an index. A skillset is optional but is where OCR, chunking and embeddings happen.
  • Chunk the text, then give each chunk its own search document with an index projection.
  • OCR needs imageAction = generateNormalizedImages, otherwise scans yield no text.

🎯 Exam tip: "Scanned documents are not searchable" = OCR skill plus generateNormalizedImages.

⚠️ Watch out: Forgetting imageAction, so scanned files are silently empty.

Semantic, Hybrid and Vector Search

Keyword search (BM25) matches the words you type. Vector search embeds the question and matches meaning. Hybrid runs both in one request and merges the lists with Reciprocal Rank Fusion (RRF), so synonyms and exact codes both work. The semantic ranker then rereads the top 50 results with a language model, returns a reranker score and captions, and needs a semantic configuration on the index. For grounding, hybrid plus semantic ranking is the usual best choice. The ranker can't find a document the first stage missed.

  • Keyword = tokens (BM25). Vector = meaning (embeddings, nearest neighbours). Hybrid = both, merged with RRF.
  • Semantic ranker reranks only the top 50 and returns captions, answers and a 0 to 4 reranker score.
  • Semantic ranking needs a semantic configuration on the index and the feature enabled on the service.

🎯 Exam tip: "Finds meaning with no shared words" = vector.

⚠️ Watch out: Embedding the query with a different model than the documents.

Enrich Content with Built-in and Custom Skills

A skillset in Azure AI Search is a chain of skills that enrich each document while an indexer runs. Built-in skills cover text (PII Detection, Key Phrase Extraction, Text Split, Entity Recognition), images (OCR, Image Analysis) and layout (the Content Understanding skill). A custom skill calls your own endpoint through the Web API skill. Each skill reads and writes nodes in an enrichment tree, and only what you map with output field mappings or index projections reaches the index.

  • A skillset is an ordered chain of skills. Order comes from the inputs and outputs, not from the list order alone.
  • Built-in skills cover text, images and layout. Custom skills call your HTTPS endpoint (Web API skill).
  • Skill outputs live in the enrichment tree until you map them to the index.

🎯 Exam tip: "Personal data must not be searchable" = PII Detection and index the masked text.

⚠️ Watch out: Computing an enrichment and never mapping it to an index field.

Connect Retrieval Pipelines to Agents and Workflows

Agents don't call an index directly. You create knowledge sources (such as a search index), group them in a knowledge base with a retrieval reasoning effort (minimal, low or medium), and give the agent the knowledge base as a tool through its MCP endpoint. The project's managed identity needs the Search Index Data Reader role on the search service, or the call fails with 403. Instructions tell the agent to cite sources and to say "I don't know" when nothing comes back. Workflows and apps call the same knowledge base through the retrieve API.

  • Agents call a knowledge base. The knowledge base holds knowledge sources and the retrieval settings.
  • Minimal effort has no model planning. Low and medium use a chat model to plan subqueries.
  • The agent reaches the knowledge base as an MCP tool, authenticated through a project connection.

🎯 Exam tip: "Agent calls search with no keys" = project managed identity plus Search Index Data Reader.

⚠️ Watch out: Granting a broad role such as Owner or Contributor when Search Index Data Reader is enough.

Extract Documents with Content Understanding

Azure Content Understanding in Foundry Tools turns documents, images, audio and video into Markdown and fields. A prebuilt analyzer (such as prebuilt-layout or prebuilt-documentSearch) works with no setup. A custom analyzer extends prebuilt-document with a field schema where each field uses a method: extract (text on the page), classify (a fixed list) or generate (the model writes it). Results include a confidence score and a source, so you can send low-confidence values to a person. It runs on your Foundry resource with your own model deployments.

  • Content Understanding is a Foundry Tool that runs on your Foundry resource with your own model deployments.
  • It handles documents, images, audio and video. Outputs are Markdown plus fields.
  • Prebuilt analyzers need no schema. Custom analyzers extend a base such as prebuilt-document.

🎯 Exam tip: "Clean text for RAG with tables and figures" = prebuilt-documentSearch Markdown.

⚠️ Watch out: Using generate for a value that is written on the page.

Install MSDEVBUILD Azure

Free · no account · works offline

Save the whole course for offline ›

Hi, I’m your Nimbus

Your study buddy. Pick what we do next.

MSDEVBUILD · Multi-Stack Dev Build

Sign in to MSDEVBUILD

One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.