Choose Models and Foundry Services for the Task
30-second answer
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.
Simulate it » No Azure account neededExam objective: 1.1.1 Choose an appropriate model for each task, including LLMs, small language models, multimodal models and Foundry Tools. 1.1.2 Choose the appropriate Foundry services for generative tasks, grounding, vector search, agent workflows or multimodal processing. (Skills measured as of April 16, 2026)
Simulations
Feel it before you read it. No account needed, nothing leaves this page.
Start in <strong>Discover ➜ Model catalog</strong>. Filter by <strong>inference task</strong> and <strong>capabilities</strong> first, then by deployment option. Prices are illustrative and shown in your currency.
👆 Click the glowing item in the portal to continue
Read the steps as text
- Start in Discover ➜ Model catalog. Filter by inference task and capabilities first, then by deployment option. Prices are illustrative and shown in your currency.
- A model card tells you what the model is for, its inputs, context window and limits. Select Compare to line up candidates.
- The leaderboard compares quality, cost and throughput on public benchmarks. Then test the top two on your own data: benchmarks don't know your tickets.
- Foundry Tools are prebuilt AI services. Pick one when you need predictable, structured output, such as fields from an invoice, a transcript or masked PII.
- Match the job to the smallest thing that does it well. Then deploy it in Models + endpoints.
🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.
🖱️ Drag to rotate · scroll or pinch to zoom
Pick the right model or tool
A router in your app sends each job to the cheapest thing that does it well: a reasoning model for multistep problems, a small language model for high-volume labelling, a multimodal model for photos, and a Foundry Tool such as Content Understanding for invoices.
🤔 What happens if…
Read this tour as text
- Pick the right model or tool. A router in your app sends each job to the cheapest thing that does it well: a reasoning model for multistep problems, a small language model for high-volume labelling, a multimodal model for photos, and a Foundry Tool such as Content Understanding for invoices.
- Where an agent gets its facts. Curated company content lives in a Foundry IQ knowledge base on Azure AI Search. Files a user drops into the chat go to file search. What the agent learns about the user across sessions goes to memory (user profile, chat summary).
- Resource, projects and deployment types. One Foundry resource holds deployments, networking and keys. Projects inside it isolate teams. Global deployments may process anywhere, Data Zone stays in the EU or US zone, Standard stays in one region. The standard agent setup keeps threads, files and vectors in your own Cosmos DB, Storage and AI Search.
- Configure deployments and agent versions. A deployment pins a model, a model version, a deployment type, capacity (TPM) and a guardrail. An agent gets a new version every time you change it; the endpoint serves the version you choose, so you can roll back.
- CI/CD with an evaluation gate. The agent definition, prompts and Bicep live in Git. The pipeline signs in with workload identity federation (no secret), runs an evaluation on a test set, and only then promotes from dev to test to prod projects.
- Quotas, 429s, spillover and budgets. Quota is tokens per minute per model, per region, per deployment type. Each deployment gets a slice; RPM comes with it. Go over and you get HTTP 429 with a retry-after header. Provisioned throughput can spill over to a standard deployment, and a cost control can stop a project at its token budget.
- Monitor models, agents and search. Azure Monitor metrics show requests, tokens, latency and errors. Application Insights holds traces, and continuous evaluation scores a sample of live answers for groundedness and safety. For Azure AI Search, watch indexer runs, document counts, search latency and throttled queries.
- Keyless and private. The app uses a managed identity and Microsoft Entra ID tokens, with the Foundry User role on the resource. Local (key) auth is turned off. Public network access is disabled and a private endpoint in your VNet is the only way in.
- Guardrails at four intervention points. A guardrail is a set of controls: a risk (hate, violence, prompt attacks, indirect attacks, protected material, PII), the intervention point (user input, tool call, tool response, output) and the action (annotate, or annotate and block).
- Evaluate, red team and trace. Evaluators score answers: groundedness, relevance, coherence, safety, and agent ones like tool call accuracy and task adherence. The AI red teaming agent attacks before launch. Traces in Application Insights record every model call, tool call and approval for audit.
- Govern what the agent may do. Give the agent only the tools it needs (allowed tools), make risky tools require approval from a human, let the tool call guardrail check what it sends, and limit where a hosted agent can connect with network egress controls.
Contoso's support agent has four jobs and a memory problem. Pick the right model or Foundry Tool for each job, build a knowledge base for policy answers, and fix an agent that forgets its customers.
🎓 Education-only simulation. Your lab is saved in this browser, so you can leave and continue later.
😟 THE PROBLEM
Every request goes to the biggest model, the bill is huge and invoices still come out wrong.
😊 THE SOLUTION
Send each job to the smallest model or Foundry Tool that passes your tests.
- Hard multistep questions✓ A reasoning model
- Thousands of simple labels✓ A small language model
- Fields from invoices✓ Content Understanding
Start with a question
Would you send a courier on a motorbike to deliver one envelope across the road, or ask a lorry?
Priya runs support engineering at Contoso. Last month the team sent every request to the biggest model they could find. Tickets got labelled, contracts got reviewed, invoices got read. It worked, and the bill was alarming.
The fix wasn’t a cleverer prompt. It was sending each job to the cheapest thing that does it well. Some jobs needed a thinker. Some needed a fast, cheap labeller. Some didn’t need a language model at all.
Explain it like I’m 10
The technical explanation
The model families you’ll choose between
| Need | Pick | Why |
|---|---|---|
| Hard, multistep reasoning, planning, maths, code | Reasoning model (o4-mini and similar) | It thinks before answering. It uses a reasoning effort setting, not temperature. |
| Everyday chat, summaries, tool calling | gpt-4.1-class LLM or its mini version | Good balance of quality, speed and cost. Large context. |
| Narrow, high-volume, latency-sensitive work | Small language model (Phi-4-mini-instruct) | Cheap, fast, and easier to run at the edge. |
| Photos, screenshots, charts | Multimodal model (gpt-4.1, gpt-4o, Phi-4-multimodal) | Accepts image input. A text-only model returns an error. |
| Audio reasoning | Audio-capable model (gpt-4o-audio-preview) | Hears tone and pace, not just words. |
| Search by meaning | Embedding model (text-embedding-3-small) | Turns text into vectors for retrieval. |
Read the model card before you design: supported inputs, context window, capabilities (tool calling, structured outputs, reasoning), the regions and the deployment types it can use. Model availability changes often, so check the catalog the week you build.
When a Foundry Tool beats a model
Foundry Tools give you a fixed job through an API, often with a fixed price and output shape.
| Job | Foundry Tool |
|---|---|
| Fields and markdown from documents, images, audio, video | Content Understanding |
| Speech to text, text to speech, speech translation | Azure Speech |
| Entities, PII, sentiment, summaries | Azure Language |
| Text translation with glossaries | Azure Translator |
| Image analysis and OCR | Azure Vision |
| Harmful content scoring and Prompt Shields | Azure Content Safety |
Use a model when you need reasoning, free-form output, or a task the tool can’t do. Many solutions use both: Content Understanding reads the invoice, a model decides what to do with it.
Choosing the Foundry service for the task
- Generate text, images, code: Foundry Models (a deployment of a model in your Foundry resource).
- Ground answers on your data and search by meaning: Foundry IQ knowledge bases on Azure AI Search (keyword, vector, hybrid, semantic ranking).
- Run an agent with tools and conversation state: Foundry Agent Service.
- Process documents, audio, video: Content Understanding.
- Many agents or steps with approvals: workflows in Foundry (covered in domain 2).
Test before you commit
- Collect 50 to 200 real inputs with the answers you’d accept.
- Run two or three candidates with the same prompt.
- Score with evaluators (groundedness, relevance, your own graders), and note cost and latency.
- Pick the smallest model that clears your bar. Write down why, so the next change is a decision and not a guess.
Architect level Why 'best model' isn't a thing
A quality index averages many public tests. Your support tickets, your policies and your languages aren’t those tests. A model that’s second on the leaderboard can be first on your data. That’s why the test set matters more than the ranking, and why you re-run it when a new model version arrives.
Real-world business scenario
Contoso Insurance (fictional)
- The problem
- Every request, from simple claim labelling to scanned medical forms, went to one large model. Costs climbed and the forms came back with missing fields.
- What they used
- Phi-4-mini-instruct for claim labelling, o4-mini for the few complex coverage questions, Content Understanding for the scanned forms, and gpt-4.1-mini with a Foundry IQ knowledge base for policy answers.
- Why that choice
- Each job went to the cheapest option that passed a test set built from real claims. Content Understanding returned the form fields in a fixed shape, which the old prompt never did.
- The result
- The monthly model bill fell by more than half, and the form field error rate dropped enough that manual rechecking stopped.
When to use it and when not to
✓ Use it when…
- The workload mixes easy high-volume jobs with a few hard ones.
- A fixed job (documents, speech, PII) already has a Foundry Tool.
- You can build a test set from real inputs and rerun it when models change.
✕ Think twice when…
- You choose by leaderboard rank and never test your own data.
- You use one big model for everything because it is simpler to wire.
- You prompt a general model to do a job a tool does with a stable output.
↔ Alternatives to consider
- A model router in your app that sends each request to the cheapest model that fits.
- Fine-tuning a small model when prompting a large one is too costly at volume.
- Distillation to teach a small model from a large one on your own examples.
Test yourself with exercises
5 original practice questions in the AI-103 style. Pick your answers, then check them. You will see why each option is right or wrong. Score 75% or more and this topic is marked complete.
Interview preparation
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why not use the biggest model for everything?
Model answer
It costs more, it's slower, and most jobs don't need it. I'd start with the smallest model that passes my test set, and only move up when it fails. A labelling job on a small language model can cost a fraction of the same job on a reasoning model.
Intermediate When do you pick a Foundry Tool instead of a model?
Model answer
When the job is fixed and well defined: extract fields from invoices, transcribe speech, detect PII, translate text. The tool gives a predictable output shape and price, and there's no prompt to maintain. I'd use a model when the task needs reasoning, or custom output that the tool can't give.
Experienced developer How do you compare two candidate models fairly?
Model answer
I build a test set from real inputs with expected answers, run both models with the same prompt, and score with evaluators for quality, plus cost and latency. The catalog's quality index is a starting point, but my data decides. I also check the model card for input types, context window, region and deployment type, because a great model I can't deploy in my region is no use.
Scenario A bank needs to summarise 200,000 emails a night, answer a few hard legal questions a day and read scanned cheques. What do you choose?
Model answer
Three different things. A small or mini model for the email summaries, because volume is high and the task is narrow. A reasoning model for the legal questions, because they're few and hard. Content Understanding for the cheques, because it reads documents into fields without prompt work.
Quick revision
Key points
- 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.
- The model card shows inputs, context window, regions and deployment types. Check it before you design.
- Foundry IQ on Azure AI Search grounds answers, and Foundry Agent Service runs agent workflows.
Important terminology
- Reasoning model
- A model that spends extra tokens thinking through a problem before it answers. Better at multistep tasks, slower and more expensive per answer. Reasoning models take a reasoning effort setting instead of temperature.
- Small language model (SLM)
- A compact model, such as Phi-4-mini, that is cheap and fast and good enough for narrow tasks like labelling or short answers.
- Multimodal model
- A model that accepts more than text, such as images or audio, so one call can describe a photo or reason over a recording.
- Foundry Tools
- Prebuilt AI services in Foundry (Content Understanding, Azure Speech, Azure Language, Azure Vision, Translator and more) that do a fixed job through an API.
- Model card
- The catalog page for a model. It lists supported inputs, context window, capabilities, regions and deployment options, plus benchmark scores.
- Foundry IQ
- The knowledge layer in Foundry. A knowledge base on Azure AI Search that agents query for grounded, cited answers.
Common mistakes
- Sending photos to a text-only model and getting a 400 error.
- Choosing by benchmark score alone and never testing on your own data.
- Prompting a large model to do what Content Understanding or Azure Language already does.
Exam tips
- "Multistep planning or maths" = a reasoning model.
- "Thousands of simple labels, low cost" = a small language model.
- "Fields from invoices, forms, audio or video" = Content Understanding.
- "Answer from our documents with citations" = Foundry IQ (Azure AI Search), not a bigger model.
Five quick revision questions
-
1.Which model type spends extra tokens thinking before it answers?Show
A reasoning model.
-
2.Which model type suits high-volume, narrow tasks at low cost?Show
A small language model.
-
3.Where do you check which inputs a model accepts?Show
The model card in the catalog.
-
4.Which Foundry Tool pulls structured fields from documents, audio and video?Show
Content Understanding.
-
5.What should decide between two models that both look suitable?Show
Your own test set, plus cost and latency.
Official references
Finished this lesson? Tick it off. Your progress is saved in this browser.
Next up: Retrieval, Indexing and Agent Memory Choices
Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges.