Courseiva
Implement generative AI solutionsmediumMultiple ChoiceObjective-mapped

AI-102 Implement generative AI solutions Practice Question

You are developing a solution that uses Azure Document Intelligence to extract data from invoices and then uses Azure OpenAI to summarize the extracted data. The solution occasionally produces summaries that omit key fields like the invoice total. What should you do to improve accuracy?

⚠ Common exam trap

Many candidates assume that model size or parameter tuning (temperature, max_tokens) is the primary fix for content omission, when in fact prompt engineering—specifically structured prompts with explicit field requests—is the correct solution for ensuring specific data is included in the output.

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 a structured prompt that explicitly requests each field and provide examples

The issue is that the summarization prompt lacks explicit instructions for which fields to include. By defining a structured prompt that explicitly requests each key field (e.g., invoice total, date, vendor) and providing examples, you guide the Azure OpenAI model to consistently extract and include those fields in the summary, reducing omission errors. This approach leverages prompt engineering to improve output reliability without changing model parameters or size.

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 temperature to 0 to make the output more deterministic

    Why it's wrong here

    Temperature 0 reduces randomness but doesn't enforce completeness.

  • Use a larger model like GPT-4 instead of GPT-3.5

    Why it's wrong here

    A larger model may still omit fields if not instructed properly.

  • Increase the max_tokens parameter

    Why it's wrong here

    More tokens allow longer output but don't guarantee inclusion of specific fields.

  • Define a structured prompt that explicitly requests each field and provide examples

    Why this is correct

    Structured prompt with explicit requests improves adherence to required fields.

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 →

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.