Question 378 of 500
Techniques to Improve Generative AI Model OutputmediumMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is to implement retrieval-augmented generation (RAG) with a product database. RAG ensures factual accuracy by dynamically retrieving verified product specifications from a trusted external source at inference time, grounding the model’s output in authoritative data rather than relying on its potentially outdated or hallucinated parametric memory. On the Google Cloud Generative AI Leader exam, this scenario tests your understanding of how to mitigate hallucination and maintain factual consistency in enterprise applications, often appearing as a contrast to fine-tuning or prompt engineering alone. A common trap is assuming fine-tuning will embed all facts permanently, but RAG is superior for dynamic, query-specific accuracy because it accesses live data. Memory tip: think “RAG = Real-time Access to Ground-truth” to remember it retrieves facts on the fly rather than memorizing them.

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.

A company uses a generative model to produce product descriptions. The descriptions are factually inconsistent with the product specs. Which technique would best ensure factual accuracy?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "best"

    Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

Question 1mediummultiple choice
Full question →

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 retrieval-augmented generation (RAG) with product database

Retrieval-augmented generation (RAG) is the best technique because it dynamically retrieves relevant, up-to-date product specifications from a trusted database at inference time, grounding the model's output in verified facts. This directly addresses factual inconsistency by ensuring the generated description is based on authoritative source data rather than relying solely on the model's parametric memory.

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.

  • Enhance the system prompt with product details

    Why it's wrong here

    Prompts are not guaranteed to be followed accurately.

  • Implement retrieval-augmented generation (RAG) with product database

    Why this is correct

    RAG grounds generation in factual data.

    Clue confirmation

    The clue word "best" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Lower the temperature to 0.0

    Why it's wrong here

    Zero temperature reduces variability but does not ensure factual correctness.

  • Fine-tune the model on product descriptions

    Why it's wrong here

    Fine-tuning may not cover all products and can still hallucinate.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the misconception that prompt engineering alone (Option A) or deterministic sampling (Option C) can solve factual grounding issues, when in reality they do not provide external knowledge retrieval to correct hallucinations.

Detailed technical explanation

How to think about this question

RAG works by embedding the user query and retrieving the top-k relevant document chunks from a vector database (e.g., using cosine similarity on embeddings from a model like text-embedding-ada-002), then concatenating them into the prompt as context. A subtle behavior is that the retrieval quality depends heavily on the embedding model and chunking strategy; poor chunking can lead to missing critical specs, causing the model to still hallucinate. In a real-world scenario, a product database with frequent updates (e.g., new SKUs or revised specifications) benefits from RAG because it avoids the cost and latency of continuous fine-tuning.

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.

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.

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 retrieval-augmented generation (RAG) with product database — Retrieval-augmented generation (RAG) is the best technique because it dynamically retrieves relevant, up-to-date product specifications from a trusted database at inference time, grounding the model's output in verified facts. This directly addresses factual inconsistency by ensuring the generated description is based on authoritative source data rather than relying solely on the model's parametric memory.

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.

Are there clue words in this question I should notice?

Yes — watch for: "best". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

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 →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

2 more ways this is tested on Generative AI Leader

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A company is using a generative AI model to generate product descriptions. They notice the outputs often include factual inaccuracies about product specifications. Which technique would best address this issue without modifying the model's architecture?

easy
  • A.Implement a Retrieval-Augmented Generation (RAG) pipeline that retrieves product specs from a database
  • B.Decrease the temperature parameter to 0.1
  • C.Increase the max output tokens to 1024
  • D.Use few-shot prompting with 5 examples of correct descriptions

Why A: Retrieval-Augmented Generation (RAG) is the correct technique because it grounds the model's output in factual, up-to-date product specifications retrieved from an external database. This directly addresses factual inaccuracies without modifying the model's architecture, as the model generates text based on retrieved context rather than relying solely on its parametric knowledge.

Variation 2. A healthcare company is using a fine-tuned version of PaLM 2 on Vertex AI to generate clinical notes from doctor-patient conversations. The model was fine-tuned on a dataset of 10,000 de-identified transcripts and corresponding notes. During testing, the generated notes are grammatically correct and well-structured, but they often contain subtle inaccuracies: for example, they might mention a medication that was not discussed, or omit a key symptom. The team has already tried increasing the training epochs and adjusting learning rates, with minimal improvement. They need a solution that can be implemented quickly to improve factual accuracy without retraining the entire model. The team has access to a large archive of verified clinical notes and a small set of recent conversation-to-note pairs that have been manually reviewed and corrected. The inference pipeline currently uses a single call to the model with the conversation transcript as input. What should the team do?

hard
  • A.Implement retrieval-augmented generation (RAG) by retrieving similar verified notes from the archive and providing them as context in the prompt.
  • B.Decrease the temperature to 0.1 to reduce randomness and force the model to stick to the input.
  • C.Use prompt engineering to instruct the model to only include information explicitly mentioned in the conversation.
  • D.Add a human-in-the-loop step to review and correct every generated note before use.

Why A: Option A is correct because retrieval-augmented generation (RAG) directly addresses the core issue of factual inaccuracy without retraining. By retrieving verified clinical notes similar to the current conversation from the archive and injecting them as context in the prompt, the model gains access to ground-truth examples that anchor its output to factual details. This approach leverages the team's existing archive and small set of corrected pairs to provide relevant, accurate context, improving precision without modifying the model's weights.

Last reviewed: Jun 30, 2026

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.

Loading comments…

Sign in to join the discussion.

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.