Your profile

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

Lesson 1 of 39
Next❯

Choose Models and Foundry Services for the Task

Module 1: Plan & Manage ⏱ 10 min read Updated

Your note

My notes for this lesson

Select any text in the lesson to highlight it or add a note. Saved in this browser.

    No highlights yet. Select a sentence in the lesson, then pick a colour or add a note.

    All my bookmarks and notes

    Reading settings

    For every lesson, saved in this browser.

    Text size
    Line spacing
    Font

    With IaaS you rent the virtual machine. Microsoft looks after the building, power and hardware; you patch the operating system.

    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 needed

    Exam 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.

    Azure portal: Choose models and Foundry Tools for each task Filter the catalog, compare models and find the right Foundry Tool.
    </> Embed

    Embed this simulation

    Free for trainers, teachers and bloggers. Paste this into your page:

    Loading the portal…

    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
    1. Start in Discover ➜ Model catalog. Filter by inference task and capabilities first, then by deployment option. Prices are illustrative and shown in your currency.
    2. A model card tells you what the model is for, its inputs, context window and limits. Select Compare to line up candidates.
    3. 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.
    4. 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.
    5. 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.

    😟 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
    🛠️ Solved with: Model catalog and Foundry Tools

    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

    NeedPickWhy
    Hard, multistep reasoning, planning, maths, codeReasoning model (o4-mini and similar)It thinks before answering. It uses a reasoning effort setting, not temperature.
    Everyday chat, summaries, tool callinggpt-4.1-class LLM or its mini versionGood balance of quality, speed and cost. Large context.
    Narrow, high-volume, latency-sensitive workSmall language model (Phi-4-mini-instruct)Cheap, fast, and easier to run at the edge.
    Photos, screenshots, chartsMultimodal model (gpt-4.1, gpt-4o, Phi-4-multimodal)Accepts image input. A text-only model returns an error.
    Audio reasoningAudio-capable model (gpt-4o-audio-preview)Hears tone and pace, not just words.
    Search by meaningEmbedding 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.

    JobFoundry Tool
    Fields and markdown from documents, images, audio, videoContent Understanding
    Speech to text, text to speech, speech translationAzure Speech
    Entities, PII, sentiment, summariesAzure Language
    Text translation with glossariesAzure Translator
    Image analysis and OCRAzure Vision
    Harmful content scoring and Prompt ShieldsAzure 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

    1. Collect 50 to 200 real inputs with the answers you’d accept.
    2. Run two or three candidates with the same prompt.
    3. Score with evaluators (groundedness, relevance, your own graders), and note cost and latency.
    4. 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

    Insurance

    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.
    Ready for more?The full lesson adds the technical explanation, when to use it, interview questions and revision notes.

    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.

    Question 1

    Question 1 of 5

    A company must label 20,000 short support tickets an hour at the lowest cost, and each label is one of eight fixed categories. Which option should you choose?

    Question 2

    Question 2 of 5

    An app sends product photos to a deployed model and receives an HTTP 400 error that says image input is not supported. What is the most likely cause?

    Question 3

    Question 3 of 5

    A finance team receives scanned supplier invoices in varied layouts. It needs vendor name, total and due date as structured fields, with no prompt maintenance.

    Which Foundry service should you use?

    Question 4

    Question 4 of 5

    An agent must answer employee questions from 3,000 internal policy documents and return citations. Which Foundry capability should you use to ground the agent?

    Question 5

    Question 5 of 5

    You are comparing two models that both appear suitable for a summarisation task. What should drive the final choice?

    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. 1.Which model type spends extra tokens thinking before it answers?Show

      A reasoning model.

    2. 2.Which model type suits high-volume, narrow tasks at low cost?Show

      A small language model.

    3. 3.Where do you check which inputs a model accepts?Show

      The model card in the catalog.

    4. 4.Which Foundry Tool pulls structured fields from documents, audio and video?Show

      Content Understanding.

    5. 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

    Studying with a friend? Send them this lesson

    It's free and needs no sign-up. Their progress saves in their own browser.

    Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges. Play ❯

    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.