All exams← All Azure AI Fundamentals (AI-900) notes

Generative AI & Azure OpenAI: Azure AI Fundamentals (AI-900) revision notes

Revision notes

What is generative AI?

Generative AI creates new content - text, images, code, audio - rather than just classifying or predicting from existing data.

Azure OpenAI Service gives you managed, enterprise-grade access to OpenAI's models (GPT, embeddings, DALL-E) inside your own Azure subscription, with Azure's security, networking and compliance wrapped around it.

Key model families

  • GPT models (e.g. GPT-4 class) - generate and understand natural language and code, used for chat, summarisation, writing, reasoning.
  • Embeddings models - turn text into numeric vectors for search, clustering and comparing meaning (used in RAG systems).
  • DALL-E models - generate images from text prompts.
  • Whisper - speech-to-text transcription and translation.

Prompts and prompt engineering

  • A prompt is the input you give the model; the completion is its output.
  • System message sets behaviour/persona/rules for the whole conversation.
  • Few-shot prompting gives examples in the prompt to steer output format and style - no retraining needed.
  • Zero-shot prompting asks the model to do a task with no examples at all.
  • Prompt engineering (wording, examples, structure) is the cheapest, fastest way to improve output quality - try this before fine-tuning.

Key generation parameters

  • Temperature (0-1 typically) - controls randomness; low = focused/deterministic, high = creative/varied.
  • Top P - nucleus sampling, alternative way to control randomness by limiting the probability mass considered.
  • Max tokens - caps the length of the response; a token is roughly 4 characters or 0.75 of a word in English.
  • Stop sequences - strings that tell the model to stop generating.

Grounding and responsible use

  • Base models can 'hallucinate' - producing plausible but false or unverifiable content - because they generate the statistically likely next token, not verified facts.
  • Grounding techniques (e.g. Retrieval Augmented Generation, RAG) reduce hallucination by feeding the model relevant, trusted data (like your own documents) at prompt time via Azure AI Search plus 'your data' features in Azure OpenAI Studio.
  • Fine-tuning trains a model further on your own labelled examples to change its style or specialise it for a task - used only when prompt engineering isn't enough.
  • Azure OpenAI includes built-in content filtering for harmful content, and Microsoft's Responsible AI principles (fairness, reliability & safety, privacy & security, inclusiveness, transparency, accountability) apply throughout.

Common exam trap

Don't confuse Azure OpenAI Service (specific OpenAI models via Azure) with Azure AI Studio / Azure AI Foundry (the broader platform for building generative AI apps, including model catalog beyond OpenAI). Also remember DALL-E is for image generation, not Whisper (that's speech) - the exam likes to mix these up.

Key facts

Flashcards

What does Azure OpenAI Service provide?
Managed, enterprise-grade access to OpenAI models such as GPT, embeddings, DALL-E and Whisper, inside your own Azure subscription.
tap to reveal
What is a prompt, and what is a completion?
A prompt is the input text given to the model; the completion is the text the model generates in response.
tap to reveal
What does the temperature parameter control?
Randomness of the output - low temperature gives focused, predictable answers, high temperature gives more varied, creative answers.
tap to reveal
Roughly how many characters is one token?
About 4 characters, or roughly 0.75 of a word in English.
tap to reveal
What does max tokens control?
The maximum length of the model's generated response (completion).
tap to reveal
What is few-shot prompting?
Including a few example input/output pairs directly in the prompt to guide the model's response, without retraining it.
tap to reveal
What is zero-shot prompting?
Asking the model to perform a task with no examples given in the prompt at all.
tap to reveal
What is hallucination in generative AI?
When a model generates plausible-sounding but false, made-up or unverifiable content.
tap to reveal
What is Retrieval Augmented Generation (RAG)?
A technique that grounds model responses by retrieving relevant trusted data (e.g. via Azure AI Search) and feeding it into the prompt, reducing hallucination.
tap to reveal
When should you use fine-tuning instead of prompt engineering?
Only when prompt engineering and examples alone can't achieve the needed style, accuracy or specialisation - fine-tuning trains the model further on your own labelled data.
tap to reveal
What does the DALL-E model do in Azure OpenAI Service?
Generates images from text prompts.
tap to reveal
What does the Whisper model do?
Transcribes and translates speech into text.
tap to reveal
What are embeddings used for?
Converting text into numeric vectors that represent meaning, enabling semantic search, clustering and similarity comparison.
tap to reveal
Name the six Microsoft Responsible AI principles.
Fairness, reliability & safety, privacy & security, inclusiveness, transparency, and accountability.
tap to reveal
What built-in safety feature does Azure OpenAI Service include?
Content filtering that helps detect and block harmful or inappropriate generated content.
tap to reveal
Practice questions

Generative AI & Azure OpenAI: 5 practice questions

Q1. What is the core function of a large language model (LLM) such as those available through Azure OpenAI?
  • A.  Translating text by looking up word pairs in a bilingual dictionary
  • B.  Running a symbolic rules engine that parses grammar to form sentences
  • C.  Predicting the most probable next token in a sequence based on patterns learned from training data
  • D.  Retrieving exact matches from a fixed database of pre-written answers
Show answer & explanation
✓ Answer: C. Predicting the most probable next token in a sequence based on patterns learned from training data
LLMs are trained on huge text corpora to learn statistical patterns of language, and they generate output by predicting the next most likely token given the preceding context. They do not retrieve fixed answers or rely on hand-coded grammar rules.
Q2. In the context of Azure OpenAI, what is a 'token'?
  • A.  An authentication key used to secure API calls
  • B.  A billing credit that expires after 30 days
  • C.  A label applied by content filtering to flag unsafe output
  • D.  A unit of text, such as a word or part of a word, that a model processes and prices by
Show answer & explanation
✓ Answer: D. A unit of text, such as a word or part of a word, that a model processes and prices by
Tokens are the chunks of text (words, subwords, or characters) that language models break input and output into for processing. Azure OpenAI usage and pricing are measured in tokens, not in authentication keys or content-filter labels.
Q3. A company wants to use Azure OpenAI but needs the data to stay within a specific Azure region and be governed by their existing Azure subscription and role-based access control. Which statement about Azure OpenAI Service is correct?
  • A.  Azure OpenAI Service cannot be integrated with Azure Active Directory (Microsoft Entra ID)
  • B.  Azure OpenAI Service requires data to be sent to OpenAI's own servers outside Azure
  • C.  Azure OpenAI Service provides OpenAI models with Azure's enterprise security, regional deployment options, and RBAC integration
  • D.  Azure OpenAI Service only runs on shared public infrastructure with no regional control
Show answer & explanation
✓ Answer: C. Azure OpenAI Service provides OpenAI models with Azure's enterprise security, regional deployment options, and RBAC integration
Azure OpenAI Service exposes OpenAI's models through Azure, giving customers Azure's enterprise-grade security, regional availability, virtual network integration, and Microsoft Entra ID-based role-based access control. Data processed stays within the Azure environment rather than being sent to OpenAI's own infrastructure.
Q4. What does 'prompt engineering' refer to in generative AI?
  • A.  Writing the underlying neural network code for a model
  • B.  The process of fine-tuning a model's weights using gradient descent
  • C.  Configuring the physical GPU infrastructure that hosts a model
  • D.  Designing and refining the input text given to a model to elicit a more useful or accurate response
Show answer & explanation
✓ Answer: D. Designing and refining the input text given to a model to elicit a more useful or accurate response
Prompt engineering is the practice of crafting inputs (instructions, examples, context) to guide a generative model toward producing the desired output, without changing the model's underlying weights. It is distinct from model training or infrastructure configuration.
Q5. Which of the following best describes 'grounding' when working with a generative AI application?
  • A.  Limiting the maximum number of tokens the model can generate
  • B.  Physically connecting the server hosting the model to an earth ground for safety
  • C.  Reducing the temperature parameter to zero so output is deterministic
  • D.  Providing the model with relevant, trusted source data (such as via retrieval) so its responses are based on that content rather than only its training data
Show answer & explanation
✓ Answer: D. Providing the model with relevant, trusted source data (such as via retrieval) so its responses are based on that content rather than only its training data
Grounding means supplying a model with specific, relevant data (often through retrieval-augmented generation) so its answers are anchored to that trusted content, which helps reduce hallucination. Temperature and token limits are separate generation parameters, not grounding techniques.
Test yourself
See the Azure AI Fundamentals (AI-900) page

More Azure AI Fundamentals (AI-900) topics