Courseiva
Implement Generative AI And Agentic SolutionsmediumMultiple ChoiceObjective-mapped

AI-103 Implement Generative AI And Agentic Solutions Practice Question

You need to ensure that your agent's response is formatted as valid JSON. How should you approach this?

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

Define the JSON schema in the system prompt instructions.

Using structured outputs or defining the schema in the system prompt is the standard way to enforce output formats in LLMs.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Set the temperature to 0.5.

    Why it's wrong here

    Temperature doesn't control output format.

  • Use an external library to convert text to JSON.

    Why it's wrong here

    This happens after generation, it's better to force the model to output the correct format initially.

  • Ask the user to request JSON.

    Why it's wrong here

    This is not a reliable developer-controlled solution.

  • Define the JSON schema in the system prompt instructions.

    Why this is correct

    Explicit instructions on formatting guide the model to follow the required structure.

About these practice questions

One of 510 original AI-103 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official Microsoft exam blueprint

This AI-103 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-103 exam.