Courseiva

Generative AI Leader · topic practice

Techniques to Improve Generative AI Model Output practice questions

This domain covers how to steer, ground, and stabilize generative model output on Google Cloud. Questions present a symptom (inconsistent answers, hallucinated facts, ignored prompts, unsafe text) and ask you to pick the right control: temperature and sampling parameters, grounding with Vertex AI Search or your own data, tuning, and safety filters.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Techniques to Improve Generative AI Model Output

What the exam tests

What to know about Techniques to Improve Generative AI Model Output

Diagnose the symptom, then choose the matching control: lower temperature for consistency, grounding with Vertex AI Search or your data for factual accuracy, fine-tuning for style and domain behavior, and safety filters plus system instructions for harmful content. Getting the symptom-to-technique mapping right is the key skill.

Choosing temperature, top-p, and top-k values to control randomness versus determinism in Vertex AI model responses

Using grounding with Vertex AI Search and your own data to make Gemini outputs factually tied to source documents

Applying supervised fine-tuning and reinforcement learning from human feedback to adapt model behavior to a domain

Configuring Vertex AI safety filters, thresholds, and system instructions to block toxic or off-policy output

Watch out for

Common Techniques to Improve Generative AI Model Output exam traps

  • ▸Assuming a higher temperature improves factual accuracy; it increases variability, while grounding and lower temperature reduce hallucination
  • ▸Thinking fine-tuning alone guarantees safety; toxic training data can still surface without filtering and safety settings
  • ▸Confusing prompt engineering fixes with grounding: rewording a prompt rarely corrects outputs that contradict product specs or source data

Practice set

Techniques to Improve Generative AI Model Output questions

20 questions · select your answer, then reveal the explanation

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?

For a document summarization task, a team wants to produce concise summaries without losing key information. Which combination of techniques is most effective?

A travel company fine-tuned a language model on customer chat logs to provide travel recommendations. After deployment, they receive complaints that the model sometimes generates inappropriate or offensive content. What is the most effective approach to improve output safety while preserving overall performance?

A team deployed a fine-tuned model for code generation. After training, the model produces syntactically correct but functionally wrong code. What is the most likely cause?

A team notices the RAG pipeline sometimes retrieves irrelevant documents. Which THREE improvements should they consider? (Choose three.)

Refer to the exhibit. A team runs 'gcloud ai models list --filter=displayName:qa-chat-v1' and sees the output. The model was tuned using supervised fine-tuning (SFT) but shows 'state: DEPLOYING' for days. What is the most likely issue?

Exhibit

Model ID: 1234567890
Display Name: qa-chat-v1
State: DEPLOYING
Errors: []
Training Pipeline: projects/123/locations/us-central1/trainingPipelines/abc
Evaluation Metrics: {}

Refer to the exhibit. A team's IAM policy for Vertex AI includes the following binding. They can deploy models but cannot create tuning jobs. Which statement is true?

Exhibit

{
  "bindings": [
    {
      "role": "roles/aiplatform.user",
      "members": ["user:dev@example.com"]
    },
    {
      "role": "roles/aiplatform.modelUser",
      "members": ["user:dev@example.com"]
    }
  ]
}

Refer to the exhibit. A data scientist sends a prediction request to a text generation model with the following parameters and receives repetitive output. Which parameter should be changed?

Exhibit

{
  "instances": [{"prompt": "Write a poem about AI."}],
  "parameters": {
    "temperature": 0.0,
    "maxOutputTokens": 256,
    "topP": 1.0,
    "topK": 40
  }
}

Which TWO techniques can help reduce latency for a real-time generative AI application? (Choose two.)

A team configures a Vertex AI prediction request as shown. Users report that the model sometimes produces incoherent or off-topic responses despite moderate settings. What is the most likely cause?

Exhibit

Refer to the exhibit.
```
{
  "model": "gemini-1.5-pro",
  "parameters": {
    "temperature": 0.9,
    "topK": 40,
    "topP": 0.95,
    "maxOutputTokens": 256,
    "safetySettings": [
      {"category": "HARM_CATEGORY_DANGEROUS_CONTENT", "threshold": "BLOCK_MEDIUM_AND_ABOVE"}
    ]
  }
}
```

A developer is building a chatbot for a medical application that discusses sensitive health topics. The chatbot consistently gets its outputs blocked. What should the developer do?

Exhibit

Refer to the exhibit. The following is an error log snippet from a Vertex AI generative AI deployment:
ERROR: Response blocked due to safety filter: Blocked categories: [VIOLENCE, SEXUAL]. Input tokens: 150. Output tokens: 0.
A developer is building a chatbot for a medical application that discusses sensitive health topics. The chatbot consistently gets its outputs blocked.

A company deploys a sentiment analysis model to classify customer reviews. The model consistently returns overly positive sentiment for all reviews, even when reviews contain negative feedback. Which technique would best resolve this issue?

A team uses a generative model to summarize lengthy legal documents. The summaries are accurate but often exceed the target length of 200 words, varying widely. Which simple adjustment should be applied to ensure consistent output length?

A team is using a generative AI model to create personalized email campaigns. They find that the emails sometimes include inappropriate jokes or offensive language. Which TWO techniques can help mitigate this issue? (Choose two.)

A retail company uses Gemini on Vertex AI to answer customer questions about its return policy. Agents report that answers are accurate but often miss the 30-day window detail buried in a long policy PDF that is passed in each request. The team wants the model to reliably ground its answers in that document. Which approach should they take?

A developer is using the Gemini API to build an application that generates SQL queries from natural language questions. The generated queries sometimes have syntax errors. They want to ensure the output is always valid SQL. Which approach is most effective?

A hospital's patient-education team uses a generative AI model to produce discharge instructions. Clinicians report that the model sometimes omits the required warning about drug interactions even though the source notes contain it. They want to reliably increase the chance the warning appears in every relevant output. Which technique is most appropriate?

A team is building a generative AI model for customer support. They notice the model often produces overly polite but unhelpful responses. Which technique would best improve response quality without sacrificing helpfulness?

A generative AI model for code generation sometimes produces syntactically incorrect code. The team wants to reduce syntax errors without retraining the entire model. Which approach is most effective?

A company uses a text-to-image model to generate marketing visuals. The outputs often contain distorted human faces. Which technique is most likely to improve face generation?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Techniques to Improve Generative AI Model Output sessions

Start a Techniques to Improve Generative AI Model Output only practice session

Every question in these sessions is drawn from the Techniques to Improve Generative AI Model Output domain — nothing else.

Related practice questions

Related Generative AI Leader topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the Generative AI Leader exam test about Techniques to Improve Generative AI Model Output?
Diagnose the symptom, then choose the matching control: lower temperature for consistency, grounding with Vertex AI Search or your data for factual accuracy, fine-tuning for style and domain behavior, and safety filters plus system instructions for harmful content. Getting the symptom-to-technique mapping right is the key skill.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Techniques to Improve Generative AI Model Output questions in a focused session?
Yes — the session launcher on this page draws every question from the Techniques to Improve Generative AI Model Output domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other Generative AI Leader topics?
Use the topic links above to move to related areas, or go back to the Generative AI Leader question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the Generative AI Leader exam covers. They are not copied from any real exam or dump site.