- A
Increase the LoRA rank to 32 and fine-tune the model for additional epochs on a curated subset of reports that focus on concise and accurate summaries.
Why wrong: This would require additional training and may not guarantee reduction in verbosity; it also does not address real-time factual accuracy because fine-tuning on static data cannot correct errors from outdated or missing information.
- B
Implement a retrieval-augmented generation (RAG) pipeline that queries a vector database of verified financial data, and apply constrained decoding with a maximum token limit and a repetition penalty.
This directly improves factual accuracy by grounding outputs in retrieved evidence and reduces verbosity through decoding constraints, without retraining.
- C
Switch to a larger pre-trained model (e.g., PaLM 2 or GPT-4) and use the same fine-tuning data with higher rank LoRA to improve capability, then rely on the larger model's inherent accuracy.
Why wrong: Moving to a larger model is costly and time-consuming; it may still produce verbose output and factual errors without additional mechanisms like RAG.
- D
Experiment with higher temperature (e.g., 0.9) and lower top-k (e.g., 20) to encourage more diverse and concise outputs, and add a post-processing step to truncate summaries to 200 words.
Why wrong: Higher temperature typically increases randomness and verbosity, contradicting the goal. Post-processing truncation may cut off important information and does not fix factual inaccuracies.
Generative AI Leader Practice Question: Techniques to Improve Generative AI Model Output
This Generative AI Leader practice question tests your understanding of techniques to improve generative ai model output. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
You are a Generative AI architect at a large financial services firm. The firm has deployed a custom large language model (LLM) fine-tuned on proprietary financial reports to assist analysts in generating quarterly earnings summaries. The model is hosted on Vertex AI using a dedicated endpoint with autoscaling enabled. Recently, the model's output has exhibited two issues: (1) occasional factual inaccuracies about specific financial figures, and (2) a tendency to produce overly verbose and repetitive text in the summaries, sometimes exceeding the desired length of 200 words. The team has already tried adjusting the temperature parameter from 0.7 to 0.2 and increased the top-k sampling from 40 to 50, but the problems persist. The model's training data includes over 10,000 financial reports, and the fine-tuning process used low-rank adaptation (LoRA) with rank 16. The production environment uses a batch size of 1 for inference. You need to recommend a course of action that most directly addresses both the factual accuracy and verbosity issues without requiring a full retraining of the model. Which approach should you take?
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
Implement a retrieval-augmented generation (RAG) pipeline that queries a vector database of verified financial data, and apply constrained decoding with a maximum token limit and a repetition penalty.
Option B is correct because it directly addresses both issues without retraining. A RAG pipeline grounds the model's outputs in verified financial data, eliminating factual inaccuracies. Constrained decoding with a maximum token limit and repetition penalty directly curbs verbosity and repetition, which temperature and top-k adjustments failed to fix.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Increase the LoRA rank to 32 and fine-tune the model for additional epochs on a curated subset of reports that focus on concise and accurate summaries.
Why it's wrong here
This would require additional training and may not guarantee reduction in verbosity; it also does not address real-time factual accuracy because fine-tuning on static data cannot correct errors from outdated or missing information.
- ✓
Implement a retrieval-augmented generation (RAG) pipeline that queries a vector database of verified financial data, and apply constrained decoding with a maximum token limit and a repetition penalty.
Why this is correct
This directly improves factual accuracy by grounding outputs in retrieved evidence and reduces verbosity through decoding constraints, without retraining.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Switch to a larger pre-trained model (e.g., PaLM 2 or GPT-4) and use the same fine-tuning data with higher rank LoRA to improve capability, then rely on the larger model's inherent accuracy.
Why it's wrong here
Moving to a larger model is costly and time-consuming; it may still produce verbose output and factual errors without additional mechanisms like RAG.
- ✗
Experiment with higher temperature (e.g., 0.9) and lower top-k (e.g., 20) to encourage more diverse and concise outputs, and add a post-processing step to truncate summaries to 200 words.
Why it's wrong here
Higher temperature typically increases randomness and verbosity, contradicting the goal. Post-processing truncation may cut off important information and does not fix factual inaccuracies.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Google Cloud often tests the misconception that adjusting hyperparameters like temperature or top-k can fix factual accuracy and verbosity, when in reality these issues stem from the model's lack of external knowledge and lack of output constraints, which require architectural changes like RAG and constrained decoding.
Trap categories for this question
Command / output trap
Moving to a larger model is costly and time-consuming; it may still produce verbose output and factual errors without additional mechanisms like RAG.
Detailed technical explanation
How to think about this question
RAG works by embedding user queries and retrieving relevant chunks from a vector database (e.g., using cosine similarity on embeddings from a model like text-embedding-004), then prepending those chunks to the prompt as context. Constrained decoding can be implemented via logit manipulation (e.g., setting a repetition penalty of 1.2 and a max_tokens parameter of 200) to enforce output structure without retraining. In production, this approach is common for financial applications where accuracy is critical and latency is acceptable with efficient retrieval.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Techniques to Improve Generative AI Model Output — study guide chapter
Learn the concepts, then practise the questions
- →
Techniques to Improve Generative AI Model Output practice questions
Targeted practice on this topic area only
- →
All Generative AI Leader questions
500 questions across all exam domains
- →
Google Cloud Generative AI Leader Generative AI Leader study guide
Full concept coverage aligned to exam objectives
- →
Generative AI Leader practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related Generative AI Leader practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Fundamentals of Generative AI practice questions
Practise Generative AI Leader questions linked to Fundamentals of Generative AI.
Business Strategies for Generative AI Solutions practice questions
Practise Generative AI Leader questions linked to Business Strategies for Generative AI Solutions.
Google Cloud's Generative AI Offerings practice questions
Practise Generative AI Leader questions linked to Google Cloud's Generative AI Offerings.
Techniques to Improve Generative AI Model Output practice questions
Practise Generative AI Leader questions linked to Techniques to Improve Generative AI Model Output.
Generative AI Leader fundamentals practice questions
Practise Generative AI Leader questions linked to Generative AI Leader fundamentals.
Generative AI Leader scenario practice questions
Practise Generative AI Leader questions linked to Generative AI Leader scenario.
Generative AI Leader troubleshooting practice questions
Practise Generative AI Leader questions linked to Generative AI Leader troubleshooting.
Practice this exam
Start a free Generative AI Leader practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this Generative AI Leader question test?
Techniques to Improve Generative AI Model Output — This question tests Techniques to Improve Generative AI Model Output — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Implement a retrieval-augmented generation (RAG) pipeline that queries a vector database of verified financial data, and apply constrained decoding with a maximum token limit and a repetition penalty. — Option B is correct because it directly addresses both issues without retraining. A RAG pipeline grounds the model's outputs in verified financial data, eliminating factual inaccuracies. Constrained decoding with a maximum token limit and repetition penalty directly curbs verbosity and repetition, which temperature and top-k adjustments failed to fix.
What should I do if I get this Generative AI Leader question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 30, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.