Topic 2 of 10 · AI concepts
How generative AI models work, at AI-901 depth
A generative AI model writes by predicting what comes next, one small piece of text at a time. That single idea explains both its fluency and its habit of stating fluent nonsense, and AI-901 builds two skills on it in sub-area 1.2: describe how generative models work, and identify the right model for a job by its capabilities.
- ExamAI-901 (replaced AI-900 on June 30, 2026)
- Skill areaAI concepts · 40–45%
- Questions here12
- UpdatedOct 19, 2026
Fig. 1
Prediction, minus the mystique
A language model reads your prompt as tokens and writes its reply the same way, a token at a time, each one chosen from probability scores over its whole vocabulary and conditioned on everything before it. A reply of a few paragraphs is a few hundred of those choices. None of it involves the model knowing things in the way launch videos imply, and that turns out to be the most useful fact on this page.
The machinery underneath is on tokens, embeddings and transformers: embeddings hold meaning as lists of numbers, and the attention mechanism of the transformer decides which earlier tokens matter for the next one.
Fluency is what training rewards. Accuracy comes along only when the facts were in the training data or are in the prompt; where neither holds, you get a well-written answer that is wrong, usually called a hallucination or an ungrounded answer. Supplying source material in the prompt is the standard fix. The potential for harmful output is the other side of the same mechanism, and it is why responsible AI has a process written for generative systems.
Table 1
Generative or predictive?
| Point | Predictive machine learning | Generative AI |
|---|---|---|
| Output | A number or a label: a price, yes or no, a category | New content: text, code, an image, audio |
| Question it answers | How much? Which one? Is this unusual? | Write, draw or explain this |
| On AI-901 | Background only; the outline no longer lists it | Core of the concepts and Foundry skill areas |
Classic machine learning was a whole AI-900 skill area and is absent from the AI-901 outline. How predictive models learn from labeled examples is on supervised vs unsupervised learning; the topic as a whole stays on this site as machine learning basics, labeled as AI-900 material.
Map 1
Choosing a model by capability
The model catalog in Microsoft Foundry holds several kinds of model, and many of them are capable. Questions in this skill name a job; you name the kind of model whose input and output fit it.
| Job | Capability needed | Kind of model |
|---|---|---|
| Answer open questions in a staff chat tool, in several languages | Text in, text out | Large language model |
| Rewrite error messages into plain language inside a product, within a tight latency budget | Fast, narrow task | Small language model |
| Read a chart screenshot and explain the trend in it | Image and text in | Multimodal model |
| Produce banner artwork from a one-line description | Text in, image out | Image generation model |
| Group thousands of survey comments by what they mean | Text in, vectors out | Embedding model |
| Compare two versions of a contract clause and lay out each difference with its consequence | Multistep reasoning | Reasoning model |
Trap
A chat model is the wrong pick for “make a picture,” and an embedding model is the wrong pick for “talk to the customer.” Options in this skill are often a real, strong model that does a different job. Compare what goes in and what has to come out before comparing anything else.
Worksheet
Worksheet on model behavior
Some items ask what happens inside a model; others give you a job and four kinds of model. When two options both sound able, the input and output usually settle it.
Questions come in batches of five. Pick an answer for each, then evaluate the batch: notes on all four options open under every question.
Accuracy by batch
0 evaluated · 0 right · 12 to go
Batch 1 questions 1–5
01
How does a large language model produce its response to a prompt?
Your label —The notes on all four options open when this batch is evaluated.
Answer: A
- Correct: the model predicts a probable next token, adds it to the sequence, and repeats until the sequence ends.
- There is no answer database inside the model; it generates new text from patterns learned in training.
- A plain model call doesn't browse; live search happens only if an application adds a retrieval tool.
- Hand-written rules are an older approach; LLMs learn language patterns from huge amounts of text.
02
A retailer has two projects: estimating next month's sales for each store, and drafting replies to customer emails. How are these best described?
Your label —The notes on all four options open when this batch is evaluated.
Answer: C
- A forecast is a predicted number, not new content; calling everything with an output generative blurs the line.
- This reverses the two: forecasting a number is regression, and composing text is generation.
- Correct: a sales forecast predicts a value from past data, while an email draft is newly generated text.
- Generative models learn from data too, so training on history doesn't make the email drafting predictive.
03
An assistant states a refund rule in a confident, well-written paragraph, but the rule does not exist in the company's policy. What best explains this?
Your label —The notes on all four options open when this batch is evaluated.
Answer: B
- Low temperature makes output more predictable; it neither causes nor prevents made-up facts.
- Correct: the model produces likely-sounding text, and nothing in a plain call checks it against the actual policy.
- A larger context window lets the model take in more text; it doesn't make the model invent rules.
- Content filters block harmful categories of content; they don't rewrite answers or add new facts.
04
A company wants a model that runs on employees' laptops and phones to tag short notes by topic, at low cost. Which kind of model fits best?
Your label —The notes on all four options open when this batch is evaluated.
Answer: C
- A frontier model is costly and heavy for short notes, and it usually runs in the cloud rather than on a phone.
- Image generation models create pictures from prompts; tagging text needs a language model.
- Correct: a compact model handles a narrow, well-defined task and can run on modest hardware at lower cost.
- Reasoning models spend extra time and compute on multistep problems, which a simple tagging task doesn't need.
05
A home-repair app lets users snap a photo of a broken part and ask, in their own words, what it is and how to replace it. Which kind of model should the app call to answer?
Your label —The notes on all four options open when this batch is evaluated.
Answer: D
- A text-only model can read the question but has no way to interpret the photo.
- Image generation models create new pictures from prompts; they don't explain what an existing photo shows.
- Embedding models turn input into vectors for similarity search; they don't write answers.
- Correct: a multimodal model takes the photo and the typed question together and can answer about what the picture shows.
0 of 5 labeled
Batch 2 questions 6–10
06
A developer adds an embedding model to a document search app. What does that model contribute?
Your label —The notes on all four options open when this batch is evaluated.
Answer: B
- Writing answers is a chat model's job; an embedding model only returns vectors.
- Correct: embeddings place similar meanings close together, which is what similarity search relies on.
- Reading text from scanned images is OCR, a vision capability, not something an embedding model does.
- Hand-written sorting rules involve no learned model at all; embeddings capture meaning learned in training.
07
A team needs a model to plan multistep schedules and check its own math before answering. A reasoning model scores best in their tests. What trade-off should the team expect?
Your label —The notes on all four options open when this batch is evaluated.
Answer: C
- Reasoning models are offered as cloud deployments in the catalog; nothing ties them to on-device use.
- Catalog models are pretrained and answer once deployed; fine-tuning is optional customization.
- Correct: the extra thinking that helps with planning and math adds latency and token usage.
- That reverses the trade-off: reasoning models are typically slower, and they handle long, multistep problems.
08
A model's documentation lists the size of its context window. What does that figure describe?
Your label —The notes on all four options open when this batch is evaluated.
Answer: A
- Correct: the window caps how much input plus generated output the model can handle in a single request.
- Models don't keep conversations between requests; apps resend history, and it has to fit in the window.
- Training data is vastly larger than any context window; the two figures measure different things.
- Requests per minute is a deployment rate limit, set separately from the model's context window.
09
Which statement correctly contrasts pretraining with fine-tuning?
Your label —The notes on all four options open when this batch is evaluated.
Answer: A
- Correct: the base model learns broadly first, then fine-tuning adjusts it with a narrower, task-specific dataset.
- This swaps the two: the broad internet-scale data comes first, and your own data comes in fine-tuning.
- Neither happens per request; pretraining comes first, and fine-tuning is an optional later training run.
- Fine-tuning changes weights too; adding examples to a prompt without training is prompt engineering.
10
Which of these scenarios is NOT an example of generative AI?
Your label —The notes on all four options open when this batch is evaluated.
Answer: D
- Writing code from a description creates new content, a common generative AI scenario.
- A summary is newly written text based on the transcript, so this is generative AI.
- Generating caption text for an image is generative AI, typically done with a multimodal model.
- Correct: labeling a transaction as likely fraud is classification; the system predicts a label rather than creating content.
0 of 5 labeled
Batch 3 questions 11–12
11
A team needs one narrow, well-defined capability, such as translating product descriptions, with predictable results and no prompt design. According to Microsoft's model-selection guidance, what may suit them better than picking a general model from the catalog?
Your label —The notes on all four options open when this batch is evaluated.
Answer: B
- Reasoning models add latency and cost for multistep problems, the opposite of what a simple, predictable task needs.
- Correct: for a well-defined task, a Foundry Tool's prebuilt models give predictable performance and quick results without custom modeling.
- Fine-tuning a general model is custom modeling with training data, more effort than this narrow need calls for.
- Embeddings and vector search help find similar content; they don't translate text.
12
Which statement about the Microsoft Foundry model catalog is accurate?
Your label —The notes on all four options open when this batch is evaluated.
Answer: A
- Correct: the catalog spans many providers, and teams choose the model that best fits each task.
- OpenAI models are one part of the catalog; partner and community models are listed as well.
- There are many models with different strengths, not one model that Microsoft adjusts for each job.
- Open models are only part of it, and catalog models can be deployed to Foundry endpoints rather than self-hosted.
0 of 2 labeled
Where this topic connects
Choosing the kind of model is half of sub-area 1.2. Deploying it and setting its parameters is the other half, on Foundry models and deployments. Deciding whether a business problem needs generative AI at all, or text analysis, vision or extraction instead, is AI workloads.
Once the vocabulary holds, the AI-901 practice test mixes this topic with the rest of the concepts skill area, which Microsoft weights at 40–45% of the exam (AI-901 study guide, skills measured as of April 15, 2026).