StudyToCert

All certifications / Azure AI Fundamentals / Lessons

Microsoft Certified: Azure AI Fundamentals AI-900 · Domain 5: Generative AI workloads on Azure

Prompt engineering: system messages, user prompts, few-shot examples and clear instructions

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

A prompt is the message you send to an AI model to tell it what you want. Prompt engineering just means writing that message well. Chat models usually get two kinds of message: a background note that sets the rules for the whole conversation, called the system message, and the actual question from the person, called the user prompt. Think of hiring a temporary worker: you first explain their job and the house rules, then you hand them each task. Good prompts are specific about what you want, how long it should be and what shape it should take. Showing a few examples of the answer you want, called few-shot prompting, is often the quickest way to get consistent results.

Dev on the e-commerce team at Northgate Outfitters has a problem. The product-review classifier he built on a chat model was supposed to tag each review as Sizing, Quality, Shipping, Price or Other. Instead, the dashboard shows forty different labels, including "Fit issues", "Too small, sad" and an entire paragraph explaining the customer's feelings. The product owner asks whether they need to retrain the model, buy a bigger one or give up. Dev suspects the model is fine and the instructions are the problem. Before anyone spends money, what could he change in the prompt itself to get exactly five clean labels back?

A prompt is everything you send a generative model to get a response. Prompt engineering is the practice of designing prompts that produce accurate, relevant and consistently formatted output. It is the cheapest and fastest way to improve a generative AI app, because it changes nothing about the model itself and needs no training data or extra infrastructure. For that reason, AI-900 treats it as the first thing to try, before grounding with your own data or fine-tuning a model.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Azure AI Fundamentals for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Azure AI Fundamentals study plan