Question 365 of 500
Techniques to Improve Generative AI Model OutputmediumMultiple SelectObjective-mapped

Quick Answer

The correct answer is implementing retrieval-augmented generation (RAG) and fine-tuning on a domain-specific curated dataset. RAG improves factual accuracy by grounding the model’s outputs in an external, verifiable knowledge base at inference time, allowing it to retrieve and cite authoritative sources rather than relying on potentially outdated or hallucinated internal knowledge. Fine-tuning, on the other hand, adjusts the model’s weights using a high-quality, curated dataset specific to a domain, teaching it to produce factually correct responses by reinforcing accurate patterns and reducing reliance on its broad pre-training distribution. On the Google Cloud Generative AI Leader exam, this question tests your understanding of how to mitigate hallucinations and enhance reliability in production systems—a common trap is confusing prompt engineering or temperature tuning with these more structural fixes. Remember the mnemonic “RAG retrieves, fine-tune refines” to keep both techniques distinct and recall their complementary roles in boosting factual accuracy.

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.

Which TWO techniques can help improve the factual accuracy of a language model's outputs? (Choose two.)

Question 1mediummulti select
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

Fine-tune on a domain-specific curated dataset.

Fine-tuning on a domain-specific curated dataset (C) directly adjusts the model's weights using high-quality, verified examples, teaching it to produce factually correct outputs for that domain. This reduces hallucinations by grounding the model in accurate, relevant data rather than relying solely on its pre-training distribution.

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.

  • Decrease the max output tokens.

    Why it's wrong here

    Shorter outputs don't guarantee accuracy.

  • Increase the temperature parameter.

    Why it's wrong here

    Higher temperature increases randomness, not accuracy.

  • Fine-tune on a domain-specific curated dataset.

    Why this is correct

    Fine-tuning adapts the model to domain facts.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Implement retrieval-augmented generation (RAG).

    Why this is correct

    RAG provides factual context from external sources.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Use top-k random sampling.

    Why it's wrong here

    Random sampling does not improve factuality.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the misconception that adjusting decoding parameters (like temperature, top-k, or max tokens) can improve factual accuracy, when in reality these only control output style, length, or randomness, not the correctness of the underlying information.

Trap categories for this question

  • Command / output trap

    Shorter outputs don't guarantee accuracy.

Detailed technical explanation

How to think about this question

Retrieval-augmented generation (RAG) works by embedding a query, retrieving relevant documents from a vector database (e.g., using cosine similarity on embeddings from models like text-embedding-ada-002), and then injecting those documents into the prompt context so the LLM generates answers grounded in external knowledge. Fine-tuning modifies the model's parameters via supervised learning on a curated dataset, effectively memorizing domain-specific facts and patterns, which is particularly useful when the domain knowledge is static or proprietary. Both techniques address the root cause of factual inaccuracy—lack of reliable source grounding—but through different mechanisms: RAG provides dynamic retrieval, while fine-tuning embeds knowledge into the model's weights.

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: Fine-tune on a domain-specific curated dataset. — Fine-tuning on a domain-specific curated dataset (C) directly adjusts the model's weights using high-quality, verified examples, teaching it to produce factually correct outputs for that domain. This reduces hallucinations by grounding the model in accurate, relevant data rather than relying solely on its pre-training distribution.

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 →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

4 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 developer wants to improve the factual accuracy of the model's summaries. Based on the exhibit, what should they do?

easy
  • A.Enable the support engine.
  • B.Increase the model's context window.
  • C.Configure grounding with a knowledge base.
  • D.Re-train the model with a dataset of facts.

Why C: Option A is correct because GROUNDING_CONFIG is NONE, so enabling grounding with a knowledge base would allow the model to retrieve factual information. Option B (enable support engine) is a different feature. Option C (re-train) is possible but more resource-intensive. Option D (increase context window) does not directly improve factual accuracy.

Variation 2. A team wants to improve the factual accuracy of their chatbot responses regarding internal company policies. What is the most effective approach?

medium
  • A.Use few-shot prompting with example Q&A pairs
  • B.Increase the model's maximum tokens
  • C.Fine-tune the model on policy documents
  • D.Use RAG with Vertex AI Search indexing the policies

Why D: RAG with Vertex AI Search retrieves current policy documents, providing authoritative context. Fine-tuning may not capture frequent updates, and other options do not integrate live knowledge.

Variation 3. Which TWO techniques are most effective for improving factual accuracy in a generative AI model's responses? (Choose two.)

medium
  • A.Retrieval-Augmented Generation (RAG) with curated datasets.
  • B.Increasing the model's temperature to 1.5.
  • C.Grounding with a trusted knowledge base.
  • D.Using longer system prompts with multiple instructions.
  • E.Fine-tuning on a large corpus of general text.

Why A: Grounding and RAG both provide external authoritative sources to enhance factual accuracy. Fine-tuning on general data doesn't guarantee accuracy, and increasing temperature hurts accuracy. Prompt engineering is helpful but not as robust as retrieval-based methods.

Variation 4. Which TWO methods are most effective for improving factual accuracy in a language model's responses? (Choose two.)

easy
  • A.Use prompt engineering to instruct the model to rely on provided facts.
  • B.Decrease the temperature to make responses more deterministic.
  • C.Increase top-k sampling to consider a wider range of tokens.
  • D.Replace the model with a smaller, more focused model.
  • E.Implement Retrieval-Augmented Generation (RAG) with a trusted knowledge base.

Why A: Options A and C are correct. A: prompt engineering with specific instructions can guide the model to be more careful. C: RAG retrieves verified information from external sources, reducing hallucination. B is wrong because increasing top-k introduces randomness. D is wrong because decreasing temperature makes output more deterministic but not necessarily accurate. E is wrong because using a smaller model tends to reduce factual accuracy due to limited knowledge.

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.