Courseiva

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 teaches style and tone through weight updates, but it cannot guarantee rigid structural rules such as a bullet list, and it is costly and slow for a formatting requirement. It is tempting because fine-tuning is the standard answer for consistent output style, and it would be correct if the model needed to adopt a specialised writing voice or domain vocabulary.

  • ✓

    Set a system message with explicit formatting instructions.

    Why this is correct

    A system message sets persistent instructions that the model applies across every completion, so formatting rules such as the bullet list of features are followed consistently in each generated language. This satisfies the constraint of consistent formatting without repeating instructions per request.

  • ✗

    Increase the max_tokens parameter to allow longer outputs.

    Why it's wrong here

    Raising max_tokens only extends the permitted response length; it does not instruct the model to emit a bullet list, so formatting compliance remains unenforced. It is tempting because truncated outputs often omit trailing sections, and increasing the limit would be correct when valid responses are being cut off mid-sentence.

  • ✗

    Adjust the temperature parameter to a lower value.

    Why it's wrong here

    Lowering temperature reduces randomness in word selection but does not impose a structural template, so bullet lists can still be omitted. It is tempting because deterministic output feels controllable, and it would be correct when the requirement is stable, repeatable phrasing rather than a specific layout.

About these practice questions

Courseiva writes every AI-102 question from scratch — 761 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 →

How Courseiva writes practice questions · Editorial policy

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.