AI-102 Implement generative AI solutions Practice Question
You are developing a generative AI solution that uses Azure OpenAI Service. The solution must generate product descriptions in multiple languages. You need to ensure that the model consistently follows specific formatting rules, such as including a bullet list of features. Which strategy should you use?
⚠ Common exam trap
Microsoft often tests the misconception that fine-tuning is the only way to enforce output structure, when in fact system messages provide a lightweight, zero-shot alternative for formatting control.
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
✓
Set a system message with explicit formatting instructions.
System messages in Azure OpenAI Service allow you to set persistent instructions that guide the model's behavior across the entire conversation. By including explicit formatting rules—such as requiring a bullet list of features—in the system message, you enforce consistent output structure without retraining the model. This approach is efficient, cost-effective, and directly leverages the API's design for controlling response format.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Fine-tune the model with a dataset containing formatted examples.
Why it's wrong here
Fine-tuning is overkill and not needed for simple formatting.
- ✓
Set a system message with explicit formatting instructions.
Why this is correct
System messages define behavior and formatting guidelines for the model.
- ✗
Increase the max_tokens parameter to allow longer outputs.
Why it's wrong here
max_tokens controls length, not format.
- ✗
Adjust the temperature parameter to a lower value.
Why it's wrong here
Temperature affects randomness, not formatting rules.
Go deeper
Related to this question
About these practice questions
Courseiva writes every AI-102 question from scratch — 945 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-102 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-102 exam.