Generative AI Leader Practice Question: Techniques to Improve Generative AI Model Output
A logistics company built a Gemini-powered assistant that answers driver questions about routes and hours-of-service rules. The assistant performs well on common questions but produces fabricated regulatory citations when asked about rare edge cases. The team has a curated set of correct answers for these edge cases and wants the model to adopt that behavior reliably. Which approach best fits?
⚠ Common exam trap
The trap here is believing that narrowing sampling with topP or enlarging the context window will fix factual errors, when those knobs do not teach the model new domain answers.
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
✓
Apply supervised fine-tuning on the curated edge-case examples to teach the desired response pattern.
Supervised fine-tuning uses the curated input-output pairs to adjust the model's weights so it reliably reproduces correct edge-case answers, which is the intended use of labeled examples. Prompt stuffing, sampling controls, and larger context windows do not durably change behavior for rare inputs.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Apply supervised fine-tuning on the curated edge-case examples to teach the desired response pattern.
Why this is correct
Supervised fine-tuning is designed to teach a model a specific input-to-output behavior using labeled examples. With a curated set of correct edge-case answers, tuning adjusts the model so it reproduces the desired citation style and content, which is more reliable than describing the behavior in a prompt for rare cases.
- ✗
Lower the topP value so the model only considers the most likely tokens and avoids fabricating citations.
Why it's wrong here
TopP narrows the sampling pool to probable tokens, which can reduce wildness but does not teach correct regulatory content. The model can still assign high probability to a plausible but wrong citation. Sampling controls shape fluency and diversity, not domain accuracy, so they cannot substitute for examples of correct answers.
- ✗
Add the curated answers to the system instruction and rely on the model to generalize.
Why it's wrong here
System instructions shape behavior but are limited by context length and by the model's tendency to follow broad guidance inconsistently on rare inputs. Cramming many edge-case answers into an instruction is brittle and does not durably change behavior; it also consumes context that could hold the actual user question.
- ✗
Increase the model's context window by switching to a long-context variant and pasting the full regulations.
Why it's wrong here
A larger context window allows more source text, but it does not guarantee the model will use it correctly, and pasting entire regulations on every request raises cost and latency. The team already has curated answers, so a behavior-shaping method is more efficient than raw document stuffing.
Go deeper
Related to this question
About these practice questions
This Generative AI Leader question is part of Courseiva's 1,008-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Google Cloud exam blueprint
This Generative AI Leader practice question is part of Courseiva's free Google Cloud 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 Generative AI Leader exam.