AI-900 Practice Question: Describe features of generative AI workloads on Azure
What is 'zero-shot prompting' and how does it work?
⚠ Common exam trap
Watch out — candidates often confuse 'zero-shot' with 'zero errors' or 'zero time,' when in fact it specifically means zero examples in the prompt, relying solely on the model's pre-trained knowledge.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Asking the model to perform a task without any examples, relying on pre-trained knowledge
Zero-shot prompting refers to instructing a generative AI model to perform a task without providing any examples in the prompt. The model relies entirely on its pre-trained knowledge—gained from vast datasets during training—to interpret the instruction and generate a relevant response. This is a core capability of large language models (LLMs) like GPT-4, enabling them to generalize to unseen tasks without task-specific fine-tuning.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Running the model for zero seconds to test if the API connection works
Why it's wrong here
Zero-shot prompting has nothing to do with execution time; the 'zero' refers to the number of examples included in the prompt. Running a model for zero seconds would only check API connectivity or latency, which is a diagnostic action, not a text-generation technique. This option incorrectly maps a timing concept onto a prompt-design concept.
- ✓
Asking the model to perform a task without any examples, relying on pre-trained knowledge
Why this is correct
Zero-shot prompting means giving the model only the task instruction and no input-output examples, so it must rely entirely on knowledge captured during pretraining. For well-known tasks such as sentiment classification, the model can infer the expected behavior from the instruction alone. This is the standard definition of zero-shot inference.
- ✗
Prompting the model to generate a response with zero errors or hallucinations
Why it's wrong here
The 'zero' in zero-shot prompting refers to the number of demonstrations in the prompt, not to an expectation of zero errors or hallucinations. Even with a well-formed zero-shot prompt, large language models can produce factually incorrect or fabricated content because they generate probabilistically. Error-free output is a quality aspiration, not a property of this prompting technique.
- ✗
A technique that removes all instructions from the prompt to test raw model behaviour
Why it's wrong here
Zero-shot prompting still includes a clear, task-specific instruction; it simply omits examples of desired input-output pairs. Removing all instructions to observe raw model behavior is closer to testing the model's default continuation, not zero-shot prompting. A zero-shot prompt actively directs the model toward a task, whereas an instruction-free prompt does not.
Go deeper
Related to this question
Learn chapter
Machine Learning Core Concepts
Key term
Azure OpenAI Service
Azure OpenAI Service is a cloud platform from Microsoft that lets developers use powerful artificial intelligence models, like GPT-4, to build applications that can understand and generate human-like text, code, images, and more.
Key term
Model
In IT and AI, a model is a trained mathematical representation that learns patterns from data to make predictions or decisions.
About these practice questions
Courseiva writes every AI-900 question from scratch — 985 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AI-900 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-900 exam.