How generative AI models work and choosing a model: AI-901 study notes and practice questions
What to know about How generative AI models work and choosing a model for the AI-901 exam, from the Identify AI concepts and capabilities domain (42% of the exam guide), then 3 free questions to test it. Part of the AI-901 study guide.
This topic is about knowing what kind of model a scenario needs. You are not asked to memorize model version names, which change often. Think “a chat-enabled GPT model” rather than a specific release.
How a generative language model works
A generative language model is trained on a very large amount of text. It works on tokens, which are words or word fragments (a long word may be split into several tokens). Given a prompt, which is the input, it predicts the next token again and again, and the result is the completion. The model’s learned parameters are its weights.
Related model types
Embeddings models turn text into vectors, so that texts with similar meaning are close together. They power similarity search and are not chat models.
Multimodal models accept more than text, such as images or audio, as input.
Reasoning models spend extra effort thinking before they answer, and often expose a setting for how much.
Image and video generation models create pictures or clips from a text prompt.
Audio models support speech in and speech out in real time.
Fine-tuning means training a pretrained model further on a smaller labeled data set for a specific task.
Choosing a model in Microsoft Foundry
The Foundry model catalog lists thousands of models from Microsoft, OpenAI, Anthropic, Meta and others. Some are sold directly by Azure, and others come from partners and the community.
Need
Look for
Chat, drafting, summarizing
A chat-enabled language model
Multi-step problems
A reasoning model
Questions about a picture
A multimodal model
Create an image
A text-to-image model
Semantic search
An embeddings model
Voice conversation
An audio or real-time model
Also weigh cost and latency (smaller “mini” models are cheaper and faster), context size, and whether the model is available and has quota in your region.
Common traps
Using an embeddings model to chat. Embeddings return vectors, not text.
Assuming the biggest model is best. A smaller model is often the right answer when cost or speed matters.
Confusing fine-tuning with prompting. Fine-tuning changes the model with new training data. Prompting changes only the input.
A hotel group's guest-review chatbot is billed by the amount of text it processes. The finance team asks why a long review costs more than a short one.
The developers explain that a generative language model splits text into smaller units before it processes the text.
Which description of these units is correct?
Choose one answer.
AA. A token is always one complete word, so a review's cost depends only on its number of words.
BB. A token is a word or word fragment, so a term such as hamburger can split into several tokens.
CC. A token is a numeric vector that captures the meaning of a sentence for similarity search.
DD. A token is a fixed slice of audio, so long reviews cost more to transcribe into text.
Show the answer and explanation
Answer: B
A. Wrong: Tokens are often whole words, but they are also word fragments, so one word can be several tokens. A complete-word rule misses that and would give the wrong cost estimate.
B. Right: Correct. Generative models read text as tokens, which are whole words or word fragments, and an uncommon word can be split into several pieces. Usage is counted in tokens, so longer reviews use more of them. Learn more: Introduction to AI concepts (opens in a new tab)
C. Wrong: That describes an embedding, which turns text into a vector so that meanings can be compared. Embeddings are not the units a chat model reads and generates one at a time.
D. Wrong: A fixed slice of audio is not the unit a text model works with, and the scenario involves written reviews rather than recordings. Text models count words or word fragments as tokens.
Explanation
Generative language models work on tokens, which are words or word fragments, and predict one token at a time. Usage and context limits are measured in tokens, so a longer review contains more tokens and costs more. Embeddings are a different thing: they are numeric vectors used to compare meaning.
A retail company is building a product finder that uses a generative model and a search index. Its architects are reviewing four terms from the design document.
Each term describes one part of how the model processes text, what it learned or how it is adapted.
Match each term to its description.
Match each item to one answer. An answer can be used more than once, and some may not be used.
Items
Token
Embedding
Model weights
Fine-tuning
Answers
AA. A numeric vector that places a product description near similar descriptions so they can be searched by meaning.
BB. Further training of a pretrained model on a smaller set of labeled examples for one specific task.
CC. A word or word fragment that the model reads and then predicts one step at a time.
DD. The learned numeric parameters that hold what the model picked up during its training.
Show the answer and explanation
Correct matches
Token: C. A word or word fragment that the model reads and then predicts one step at a time.
Embedding: A. A numeric vector that places a product description near similar descriptions so they can be searched by meaning.
Model weights: D. The learned numeric parameters that hold what the model picked up during its training.
Fine-tuning: B. Further training of a pretrained model on a smaller set of labeled examples for one specific task.
About each answer
A. Embeddings turn text into vectors, so descriptions with similar meaning sit close together, which is what semantic search relies on. They are not the units a chat model generates one at a time, so they do not describe a token.
B. Fine-tuning starts from a model that is already trained and adjusts its weights with task-specific labeled data. It is the process that adapts the model, rather than the learned values themselves or the units text is split into.
C. Tokens are the units a generative model reads and predicts, and they are usually whole words or word fragments. They are what usage is counted in, which is why this description matches the first term.
D. Model weights are the parameters a model learns during training, and they store what it knows. Fine-tuning adjusts these weights, but the weights themselves are the learned values rather than the training process.
Explanation
A token is the unit a generative model reads and predicts, and an embedding is a vector used to compare meaning. Model weights are the parameters learned in training, and fine-tuning further trains a pretrained model on specialized labeled data, which adjusts those weights. Keeping the four terms apart separates how text is processed from how a model is adapted.
A university writing center wants a chatbot that answers students' questions about photos of handwritten worksheets they upload. The answers must be written text, and the center wants the lowest cost per request that still reads the images well.
Which type of model should the center deploy in its Microsoft Foundry project?
Choose one answer.
AA. A text embedding model, because it turns the worksheet photos into vectors for similarity search.
BB. An image generation model, because it can create new images from the students' questions.
CC. A text-to-speech voice model, because it can read the worksheet answers aloud to each student.
DD. A smaller multimodal chat model that accepts image input and returns text answers at lower cost.
Show the answer and explanation
Answer: D
A. Wrong: Embedding models take text as input and return vectors for comparison, not written answers to questions. They cannot produce the explanations the students need, so this choice misses the requirement.
B. Wrong: Image generation models output pictures, but the students need written answers about their worksheets. Generating images does not meet the requirement, even though the input is visual.
C. Wrong: Text-to-speech converts existing text into audio. It does not understand the uploaded photos or write the answers, so it cannot meet the requirement on its own.
D. Right: A multimodal model accepts images as well as text and returns written answers, which matches the request. A smaller model in that family is usually cheaper per request, which suits the center's budget.
Explanation
The chatbot must read photos and reply in text, which is the capability of a multimodal chat model. Choosing a smaller model in that family keeps the cost per request low while still reading the images well. Embedding, image generation and speech models each handle a different input or output.
Want more on How generative AI models work and choosing a model? The 5 full-length practice sets have 15 more How generative AI models work and choosing a model questions, 225 in all, none of them in the free exam. One payment of $9.99 $6.99, no subscription. Get the practice sets →
Study How generative AI models work and choosing a model