Domain 5 of 5 · Chapter 1 of 2

Generative AI Solutions

What generative AI is, and how an LLM actually produces an answer

One filter decides every "is this generative AI?" question on the exam: is the output freshly composed content (a drafted email, a generated image, a conversational answer) or a fixed prediction like a number, a class, or a bounding box? That single test is what the Identify features of generative AI solutions objective rewards. The cheat-sheet above frames generative AI as one of the AI-900 workload categories; this section pins down the mechanics by name, so a stem can quote any one of them and you still place it in the larger picture.

Generative AI answers "compose something new," not "what is this?"

The other AI-900 workloads return a fixed result: a classification model answers "which category is this?", a regression model answers "what number?", and a computer-vision model returns a label or a bounding box. Generative AI instead produces new, original content (natural-language text, code, images, or audio) in response to an input. Microsoft Learn frames it directly: generative AI powers applications that can create content, answer questions, and assist with tasks[1]. Typical generative tasks are summarizing a report, drafting or rewriting an email, answering a question conversationally, or generating an image from a description. The single mental filter for the exam: if the output is brand-new content, it is generative AI; if the output is a number, a class, or a box, it is predictive AI.

LLMs and the transformer architecture

Text-based generative AI is driven by large language models (LLMs) and their smaller relations, small language models (SLMs). Microsoft Learn describes them as models that encapsulate the linguistic and semantic relationships between the words and phrases in a vocabulary[2], so the model can reason over natural-language input and generate relevant responses. LLMs are built on the transformer architecture, which Microsoft describes as consisting of two "blocks": an encoder block that creates the embeddings by applying a technique called attention[2] (embeddings being the numeric vectors that capture each token's meaning) and a decoder layer that uses the embeddings calculated by the encoder to determine the next most probable token in a sequence[2]. The crucial conceptual point: an LLM does not look up an answer. Microsoft says LLMs are trained to generate completions based on prompts[2] and likens them to a super-powerful example of the predictive text feature on many cellphones[2], it predicts the most probable next token, over and over. That probabilistic mechanism explains both the model's fluency and why its output is not guaranteed to be factually correct.

Tokens are the atomic unit, not whole words

Although humans think in words, LLMs operate on tokens. Microsoft Learn notes that while we tend to think of language in terms of words, LLMs break down their vocabulary into tokens[2], and that tokens include words, but also sub-words (like the "un" in "unbelievable" and "unlikely"), punctuation, and other commonly used sequences of characters[2]. The first step in training is to break the training text into these distinct tokens and assign a unique integer identifier to each one[2], building a vocabulary of hundreds of thousands of tokens[2]. Because the model consumes the prompt and produces its completion as sequences of tokens, token count, not word count, is the atomic unit the exam expects you to recognize. (Turning those tokens into the meaning-capturing embeddings introduced above, via attention, is worth knowing by name but is a level of depth AI-900 only touches lightly.)

Prompts in, completions out

The input/output contract is the most exam-portable fact here. Microsoft Learn states plainly: a prompt is simply the input you give to an LLM to get a response[3], and the model responds to a prompt with a completion[3]. There are two kinds of prompt: system prompts that set the behavior and tone of the model, and any constraints it should adhere to[3], and user prompts that elicit a response to a specific question or instruction[3]. The system prompt is normally set by the application; the user prompt is what a person types. Keep "prompt" (input) and "completion" (output) crisply apart, the exam tests that pairing directly. Pulling the pieces together, the figure below traces the path from prompt to completion: the prompt is split into tokens, the encoder turns them into embeddings using attention, and the decoder reads those embeddings to predict the next most probable token, looping one token at a time until the completion is assembled.

From prompt to completion, one token at a timePromptthe inputTokenssub-word unitsEncoderembeddings via attentionEmbeddingsmeaning vectorsDecoderpredicts next probable tokenCompletionthe outputrepeat per token
An LLM turns a prompt into a completion: tokens become embeddings via attention in the encoder, then the decoder predicts one token at a time.

Copilots, grounding with RAG, and responsible generative AI

Knowing what an LLM is gets you halfway; the AI-900 blueprint also expects you to recognize how generative AI is delivered (copilots), how it is made trustworthy on your data (grounding via RAG), and how its specific risks are managed (responsible generative AI). These three ideas are the back half of "features of generative AI solutions."

Copilots wrap the prompt-and-completion loop into everyday apps

A copilot is an AI-powered assistant that embeds the prompt-to-completion loop inside the tools people already use. Microsoft 365 Copilot, for example, brings generative AI into Word, Excel, Outlook, and Teams so users can draft, summarize, and create content without leaving the app. To keep a conversation coherent, copilots and chat assistants often keep track of the conversation history and include summarized versions of it in subsequent prompts[3], giving the model ongoing context to build on across turns. For the exam, recognize a copilot as the user-facing packaging of an LLM, not a different kind of model.

Prompt quality is a lever you control

Because a completion is generated from the prompt, the prompt materially changes the result. Microsoft's guidance is concrete: be clear and specific[3] (explicit instructions beat vague language), add context[3] (topic, audience, format), use examples[3] of the style you want, and ask for structure[3] such as bullet points or tables. The exam-portable point: better results often come from a better prompt, not a bigger model.

Grounding with retrieval augmented generation (RAG)

An LLM only knows what was in its training data, so it cannot answer about your private documents or recent facts, and, generating probabilistically, it can produce confident but wrong answers (commonly called hallucinations). Grounding fixes the knowledge gap. Microsoft Learn describes retrieval augmented generation (RAG) as an approach that involves retrieving information, like documents or emails, and using it to augment the prompt with relevant data[3], so that the response generated by the model is then grounded in the information that was provided[3]. The canonical example: an expenses assistant first retrieves the relevant section of the company expenses policy, adds it to the prompt alongside the user's question, and the model answers from that supplied context rather than guessing. Recognize RAG as the answer whenever a stem says the assistant must reflect internal, organization-specific, or up-to-date information.

Responsible generative AI: harms and layered mitigation

Because generative AI creates content, it carries heightened responsible-AI concerns. Microsoft frames the work as four stages applied after the initial planning of a solution. Microsoft Learn organizes it as planning the solution, then map potential harms, measure potential harms, mitigate potential harms, and manage (operate) a responsible solution[4], i.e. map, measure, mitigate, and manage, the four stages the exam shorthand names. Mitigation itself is applied in layers, not one place: the model[5] itself, a safety system with content filters, the system message and grounding data that steer and constrain the model, and the user experience (the application UI and documentation). The takeaway for AI-900: generative AI does not replace responsible-AI thinking, it intensifies it, and the mitigation is a stack rather than a single switch.

Mitigation layers (a stack, not a single switch)User experienceapplication UI and documentationSystem message and groundingsteer and constrain the modelSafety systemcontent filtersModelthe model itselflayered, not one switch
The four mitigation layers stacked from the model up: model, safety system, system message and grounding, and user experience. Safeguards layer rather than relying on one.

Exam-pattern recognition: reading AI-900 generative-AI stems

Generative-AI questions on AI-900 follow a handful of repeatable shapes. Naming the pattern lets you answer on recognition under time pressure instead of recall. Each pattern below pairs the stem signal with the right answer and the distractor that is built to look right.

Pattern 1: "Is this generative AI?", decided by the output type

The stem describes a task and asks which AI workload it is. The deciding clue is the kind of output:

  • Summarize a document, draft/rewrite text, generate code, answer questions conversationally, create an imagegenerative AI (the output is new content).
  • Predict a number (price, demand) → regression; assign a category (spam/not-spam, sentiment) → classification; detect objects / read a form → computer vision or document intelligence. These are not generative AI because the output is a fixed prediction, not composed content.

The classic distractor labels a summarization or chat task as "classification" or "NLP analysis." It is wrong because nothing is being categorized, something new is being written.

Pattern 2: "Which component / term?", the vocabulary chain

The stem quotes one mechanism and asks you to name it, or offers four terms and asks which fits. Anchor on the chain tokens → embeddings → transformer (encoder/decoder + attention) → prompt → completion:

  • "The unit an LLM breaks text into"token (not "word", that is the built-in trap, since humans think in words).
  • "The architecture LLMs are built on"transformer.
  • "The input you give the model"prompt; "the model's response"completion. Swapping these two is the most common distractor.
  • "Sets the model's behavior and constraints"system prompt, versus the user prompt that asks the specific question.

Pattern 3: "The assistant must use our private/recent data", grounding with RAG

When a stem says responses must reflect internal documents, company policy, or current facts the model was never trained on, the answer is grounding / retrieval augmented generation (RAG), retrieve the relevant data and add it to the prompt. The distractor proposes "retrain the model" or "fine-tune on the documents," which AI-900 treats as heavier and unnecessary for simply supplying current context; RAG is the lightweight, exam-correct move. A second distractor says "just ask the base model," which is wrong because the model has no knowledge of private or recent data.

Pattern 4: "Why is the answer wrong / made up?", the probabilistic-generation limitation

The stem describes the model returning a fluent but factually incorrect or invented answer and asks for the cause or the fix. The cause is that the model generates the next token probabilistically rather than retrieving a verified fact, a hallucination. The fix is grounding (RAG) to supply real data and/or responsible-AI mitigations (content filters, a clear system message, human review). A distractor that says "the model is broken / needs more training data" misses the point: fluent-but-wrong output is an inherent property of generative models, mitigated by grounding and guardrails, not a defect cured by more of the same training.

Pattern 5: "What's a feature/benefit vs a limitation/risk of generative AI?", the balanced pair

Some stems ask you to pick a true capability (creates original text/code/images, summarizes, answers conversationally, powers copilots in everyday apps) or a true limitation/risk (can produce confident but inaccurate output, lacks knowledge of private or recent data, can generate offensive or biased content, is non-deterministic). The trap pairs a real capability with an overstated claim like "always factually accurate" or "gives the same answer every time", both false, because generation is probabilistic. When a stem frames generative AI as deterministic, auditable, or guaranteed-correct, that option is wrong; those are properties of a deterministic program or a conventional predictive model, not an LLM. (Naming the specific Azure services that host generative AI, Azure OpenAI, Azure AI Foundry, the model catalog, is the separate Azure GenAI services subtopic; this section is about the concepts, not the SKUs.)

AspectTraditional (predictive) AIGenerative AI
Primary outputA fixed prediction: number, class label, or bounding boxNew original content: text, code, image, or audio
Question it answers"What is this?" / "What number?""Compose or create something new"
Core modelRegression, classification, clustering, or vision/NLP modelsLarge language model (LLM) on a transformer architecture
Typical inputStructured data, an image, or text to be analyzedA natural-language prompt
Example taskPredict house price; flag negative sentimentDraft an email; summarize a report; answer a question

Sharp facts the exam loves — give these one last read before exam day.

Cheat sheet

Sharp facts the exam loves — scan these before test day.

Generative AI produces new content, not a fixed prediction

Generative AI is the AI category that produces new, original content (natural-language text, code, images, or audio) in response to an input, rather than returning a fixed prediction. The exam filter: brand-new content (summarize, draft, rewrite, answer conversationally, generate an image) is generative AI; a number, a class label, or a bounding box is predictive AI.

Trap Treating image classification or object detection as generative because it involves images. Those emit a label or box, not new content, so they are predictive AI.

20 questions test this
LLMs (and smaller SLMs) power text-based generative AI

Text-based generative AI runs on large language models (LLMs) and their more compact relations, small language models (SLMs). These models encapsulate the linguistic and semantic relationships between the words and phrases in a vocabulary, letting them reason over natural-language input and generate relevant responses.

Trap Assuming only large language models can generate text and SLMs cannot. Small language models are compact relations of LLMs that also generate text-based content.

2 questions test this
LLMs are built on the transformer architecture

LLMs are built on the transformer architecture, which has two blocks: an encoder that creates embeddings by applying a technique called attention, and a decoder that uses those embeddings to determine the next most probable token in a sequence. Recognizing transformer as the architecture behind LLMs, and attention as the technique inside the encoder, is a discrete AI-900 fact.

Trap Naming a neural-network type like CNN or RNN as the LLM architecture. The AI-900 answer is the transformer.

3 questions test this
An LLM predicts the next token, it doesn't look up an answer

An LLM generates completions by repeatedly predicting the most probable next token (Microsoft frames it as a super-powerful version of a phone's predictive text) rather than retrieving a stored answer. This probabilistic next-token mechanism explains both the model's fluency and why its output is not guaranteed to be factually correct.

Trap Assuming an LLM stores and looks up facts like a database. It predicts tokens, which is why it can sound confident yet be wrong.

3 questions test this
LLMs operate on tokens, not whole words

LLMs break their vocabulary into tokens (words, but also sub-words such as the un in unbelievable and unlikely, punctuation, and other common character sequences), each assigned a unique integer identifier. Modern LLM vocabularies hold hundreds of thousands of tokens, and token count, not word count, is the unit by which usage is measured.

Trap Equating one token with one word when estimating usage. A token can be a sub-word, punctuation, or character sequence, so token count and word count differ.

5 questions test this
A prompt is the input; a completion is the output

A prompt is simply the input you give to an LLM to get a response (a question, a command, or a comment), and the model responds to a prompt with a completion. Keep the pair crisply apart: the prompt is what goes in, the completion is what comes out.

Trap Swapping the terms and calling the model's output the prompt. The input is the prompt, the generated output is the completion.

10 questions test this
System prompt sets behavior; user prompt asks the question

Prompts come in two kinds. A system prompt is set by the application to define the model's behavior, tone, and any constraints it must adhere to (e.g. "You're a helpful assistant that responds in a cheerful, friendly manner"). A user prompt elicits a response to a specific question or instruction and is typically what a person types; the model answers the user prompt while obeying the system prompt.

Trap Assuming the user (not the application) sets the system prompt. The application defines the system prompt to constrain the model.

6 questions test this
A copilot is the app packaging of an LLM, not a new model type

A copilot is an AI-powered assistant that embeds the prompt-to-completion loop inside everyday tools. Microsoft 365 Copilot, for example, brings generative AI into apps like Word, Excel, Outlook, and Teams. Recognize a copilot as the user-facing packaging of an LLM, not a distinct kind of model.

Trap Treating a copilot as a distinct type of model rather than an application that surfaces an underlying LLM inside everyday tools.

Apps re-feed summarized conversation history into each prompt

To keep a multi-turn conversation consistent and relevant, generative AI apps keep track of the conversation history and include summarized versions of it in subsequent prompts. That supplies ongoing context so the model interprets each new question in relation to what was said before.

Trap Assuming the model itself remembers earlier turns. The application supplies continuity by re-feeding summarized history into each new prompt.

2 questions test this
Prompt quality, not just model size, drives completion quality

Because a completion is generated from the prompt, a better prompt materially changes the result. Microsoft's prompt-engineering guidance: be clear and specific, add context (topic, audience, format), use examples of the desired style, and ask for structure such as bullet points, tables, or numbered lists. Better results often come from a better prompt, not a bigger model.

Trap Reaching for a larger model to improve a weak result when clearer, more specific prompting is the cheaper and often more effective lever.

1 question tests this
Use RAG to ground answers in private or recent data

An LLM only knows its training data, so it can't answer about private documents or recent facts on its own. Retrieval augmented generation (RAG) retrieves relevant information (documents, emails, policy pages) and uses it to augment the prompt, so the response is grounded in the supplied data. RAG is the exam-correct answer whenever a stem needs internal, organization-specific, or up-to-date information.

Trap Reaching for fine-tuning when the need is current or organization-specific facts. That re-trains style/behavior, whereas RAG injects the actual data at prompt time.

10 questions test this
Hallucinations are inherent to probabilistic generation

Because generation is probabilistic, an LLM can produce confident but factually wrong or invented answers, commonly called hallucinations. This is an inherent property of generative models, not a defect cured by more training; the mitigations are grounding (RAG) to supply real data plus responsible-AI guardrails such as content filters and human review.

Trap Assuming more training data eliminates hallucinations. They stem from probabilistic generation, so the fix is grounding and guardrails, not retraining.

2 questions test this
Responsible generative AI follows map, measure, mitigate, manage

Because it creates content, generative AI intensifies responsible-AI concerns. Microsoft frames a lifecycle of mapping (identifying) potential harms, measuring potential harms, mitigating potential harms, and managing (operating) a responsible solution. The exam shorthand is map, measure, mitigate, manage.

5 questions test this
Mitigation is applied across four layers, not one switch

Responsible generative-AI harm mitigation is a layered approach, not a single switch. Microsoft applies it across four layers: the Model itself, a Safety System with content filters and prompt shields, the System message and grounding that steer and constrain the model (including RAG), and the User experience (application UI input/output validation and transparent documentation).

Trap Believing content filters alone make a solution safe. The safety system is only one of four layers, alongside model choice, system message/grounding, and UX.

1 question tests this
Foundation models are pretrained broadly, then adapted per task

A foundation model (the basis of an LLM) gains broad, general-purpose language capability by being pretrained on enormous volumes of largely unlabeled text from many sources such as books and websites. That broad pretraining lets one model be adapted to many downstream tasks through prompting or fine-tuning, without retraining from scratch for each task.

Trap Assuming a foundation model is trained from scratch on labeled data for one specific task. It is pretrained broadly on largely unlabeled text and then adapted to many tasks.

4 questions test this
Multimodal models accept more than one input type

A multimodal generative AI model accepts and reasons over multiple input types (such as text and images) in the same prompt, and returns a natural-language response. This is what lets a user upload a photo and ask questions about its contents; the Azure OpenAI example is GPT-4o, which integrates text and images in a single model.

Trap Picking a text-only model and bolting on a separate image classifier when one multimodal model like GPT-4o reasons over text and images together in a single prompt.

5 questions test this
Match the scenario to the right Responsible AI principle

Microsoft's six Responsible AI principles map to distinct concerns: fairness = minimize bias so the model doesn't produce discriminatory outputs; reliability and safety = account for probabilistic models being fallible; privacy and security = keep training data and models from exposing personal information; inclusiveness = don't exclude users (e.g. captions for hearing-impaired users); transparency = make users aware they're interacting with AI and explain its limitations; accountability = people and organizations stay responsible, with governance and human sign-off.

4 questions test this

Also tested in

References

  1. Fundamentals of Generative AI
  2. Understanding language models
  3. Using language models with prompts and completions
  4. Plan a responsible generative AI solution
  5. Mitigate potential harms