Courseiva
Knowledge + Practice
CertificationsVendorsCareer RoadmapsLabs & ToolsStudy GuidesGlossaryPractice Questions
C
Courseiva

Free IT certification practice questions with explained answers for CCNA, CompTIA, AWS, Azure, Google Cloud, and more.

Certification Practice Questions

CCNA practice questionsSecurity+ SY0-701 practice questionsAWS SAA-C03 practice questionsAZ-104 practice questionsAZ-900 practice questionsCLF-C02 practice questionsA+ Core 1 practice questionsGoogle Cloud ACE practice questionsCySA+ CS0-003 practice questionsNetwork+ N10-009 practice questions
View all certifications →

Product

CertificationsCertification PathsExam TopicsPractice TestsExam Dumps vs Practice TestsStudy HubComparisons

Company

AboutContactEditorial PolicyQuestion Writing PolicyTrust Center

Legal

Privacy PolicyTerms of Service

Courseiva is a free IT certification practice platform offering original exam-style practice questions, detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics for Cisco, CompTIA, Microsoft, AWS, and other technology certifications.

© 2026 Courseiva. Courseiva is operated by JTNetSolutions Ltd. All rights reserved.

Courseiva is an independent certification practice platform and is not affiliated with, endorsed by, or sponsored by Cisco, Microsoft, AWS, CompTIA, Google, ISC2, ISACA, or any other certification vendor. Vendor names and certification marks are used only to identify the exams learners are preparing for.

← Techniques to Improve Generative AI Model Output practice sets

Generative AI Leader Techniques to Improve Generative AI Model Output • Complete Question Bank

Generative AI Leader Techniques to Improve Generative AI Model Output — All Questions With Answers

Complete Generative AI Leader Techniques to Improve Generative AI Model Output question bank — all 0 questions with answers and detailed explanations.

121
Questions
Free
No signup
Certifications/Generative AI Leader/Practice Test/Techniques to Improve Generative AI Model Output/All Questions
Question 1mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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?

Question 2hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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?

Question 3easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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?

Question 4mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A team is deploying a large language model for legal document summarization. They find the model occasionally omits critical legal clauses. Which improvement technique would be most effective?

Question 5hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A generative AI model for chatbot responses sometimes produces toxic language. The team wants to reduce toxicity without significantly affecting the model's helpfulness. Which approach is best?

Question 6easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A team notices their text generation model repeats phrases excessively. Which technique would most directly reduce repetition?

Question 7mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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?

Question 8hardmulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

A team is fine-tuning a large language model for medical advice. Which TWO techniques are most effective for improving the safety and reliability of the model's outputs?

Question 9mediummulti select
Read the full NAT/PAT explanation →

A team wants to reduce hallucinations in a question-answering model. Which THREE techniques should they consider?

Question 10easymulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

Which TWO techniques are commonly used to control the style and tone of a generative model's output?

Question 11hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

Refer to the exhibit. The team changed the generation parameters to reduce output variability. However, summaries now often repeat the same phrases. Which parameter change is most likely causing the repetition?

Exhibit

Refer to the exhibit.

```
# Model configuration before change
model = GenerativeModel("text-bison@002")
response = model.generate(
    prompt="Summarize the following article: ...",
    temperature=0.7,
    top_k=40,
    top_p=0.95
)
# After change
model = GenerativeModel("text-bison@002")
response = model.generate(
    prompt="Summarize the following article: ...",
    temperature=0.2,
    top_k=10,
    top_p=0.85
)
```
Question 12mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

Refer to the exhibit. The endpoint is experiencing high latency during traffic spikes. The team wants to improve response time by reducing queueing. Which change to the configuration would be most effective?

Exhibit

Refer to the exhibit.

```
# Vertex AI Endpoint configuration
{
  "model": "gemini-1.5-pro",
  "endpoint": "projects/my-project/locations/us-central1/endpoints/123456789",
  "deployedModel": {
    "modelVersion": "1",
    "minReplicaCount": 1,
    "maxReplicaCount": 5,
    "autoscalingMetricSpecs": [
      {
        "metricName": "custom.googleapis.com|genai|request_count",
        "target": 100
      }
    ]
  }
}
```
Question 13mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A data science team is fine-tuning a large language model using Vertex AI to generate marketing copy. They notice that the generated text is often repetitive and lacks creativity. Which technique should they apply to improve output diversity?

Question 14hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A team is using Vertex AI Pipelines to deploy a generative AI model for real-time inference. The model sometimes generates harmful content. They want to implement a safety filter that checks the output before returning it to the user, but they need to minimize latency. Which approach best balances safety and performance?

Question 15easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A developer is using the Gemini API to build a chatbot. They want the model to always respond in a friendly, professional tone. Which prompt engineering technique should they use?

Question 16mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A team is using a pre-trained language model to summarize legal documents. They find that summaries often miss key dates and parties involved. Which technique would most effectively improve factual accuracy?

Question 17hardmultiple choice
Read the full NAT/PAT explanation →

A company is deploying a generative AI model for customer support. They want to reduce hallucinations while maintaining fluency. They have a large dataset of previous support conversations. Which strategy should they prioritize?

Question 18easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A developer is using Vertex AI Studio to test prompts for a text generation model. They want the model to follow a specific output format (JSON). Which prompt engineering approach is most effective?

Question 19mediummulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

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

Question 20hardmulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

Which THREE approaches are effective for reducing bias in generative model outputs? (Choose three.)

Question 21hardmultiple choice
Read the full NAT/PAT 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?

Question 22mediummultiple choice
Read the full NAT/PAT explanation →

A media company is using Vertex AI's Imagen model to generate images for marketing campaigns. They have a set of prompts that describe desired scenes, but the generated images often contain artifacts such as distorted faces or unnatural lighting. The team has tried varying the prompt wording but the issues persist. They are using the default parameters (no modifications). They have a budget for additional compute resources and want to improve image quality without switching to a more expensive model. The team has access to a small set of high-quality images in the same style as their target outputs. What should the team do?

Question 23hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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?

Question 24easymultiple choice
Read the full NAT/PAT explanation →

A company notices that their AI chatbot occasionally generates incorrect information. Which technique can best reduce hallucinations without retraining?

Question 25mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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

Question 26hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A real-time customer support chatbot using Gemini is experiencing high latency. The team must maintain response quality while improving speed. Which technique should they implement?

Question 27easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A marketing company wants to fine-tune a generative AI model to adopt a specific brand voice. Which tuning method is most appropriate?

Question 28mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

Despite applying safety filters, a generative AI model still produces toxic outputs in some cases. Which additional technique should be applied?

Question 29hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A model generates responses that frequently repeat phrases or words. Which parameter adjustment is most likely to fix this?

Question 30easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

To ensure that a generative AI model uses the most current information from the web for answering user queries, which Vertex AI feature should be enabled?

Question 31mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

What is the primary purpose of a system instruction in the Gemini API?

Question 32hardmultiple choice
Read the full NAT/PAT explanation →

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

Question 33mediummulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

Which TWO techniques are effective for reducing bias in generative AI model outputs?

Question 34hardmulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

Which THREE are best practices for designing prompts for a generative AI model?

Question 35easymulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

Which TWO are advantages of using Retrieval-Augmented Generation (RAG) over fine-tuning?

Question 36mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

Refer to the exhibit. A team attempted to start a model tuning job but received the error 'Quota limit exceeded for tuning jobs in region us-central1'. What is the most appropriate action?

Exhibit

gcloud ai tuning-jobs create \
  --project=my-project \
  --region=us-central1 \
  --model=gemini-1.5-pro-001 \
  --tuned-model-display-name=test-tune \
  --training-data=gs://my-bucket/data.jsonl \
  --model-serving-regions=us-east1
Question 37hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

Refer to the exhibit. A Vertex AI endpoint configured with the above deployment is returning HTTP 429 (Too Many Requests) errors during peak traffic. The current CPU utilization reaches 80% consistently. What should the team adjust to resolve this?

Exhibit

{
  "dedicatedEndpoints": 1,
  "machineType": "n1-standard-2",
  "minReplicaCount": 1,
  "maxReplicaCount": 5,
  "scaleTarget": 0.5
}
Question 38easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

Refer to the exhibit. A user wants formal translations from a generative AI model, but the model outputs informal style inconsistently. Which prompt engineering technique would best ensure consistent formal translations?

Exhibit

User: Translate the following sentence to French: Hello, how are you?
Model: Bonjour, comment vas-tu?
Expected: Bonjour, comment allez-vous? (formal)
Question 39easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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?

Question 40mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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?

Question 41hardmultiple choice
Read the full NAT/PAT explanation →

A research lab is fine-tuning a large language model on a small dataset of medical records. They observe that the model overfits, memorizing specific patient details and producing outputs that violate privacy regulations. Which technique should they apply to improve generalization and reduce memorization?

Question 42easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A developer is using the Gemini API to generate code snippets. They notice the outputs often contain deprecated API calls. Which parameter adjustment or prompt strategy would most effectively encourage the model to use current APIs?

Question 43mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A company uses a text-to-image model to generate marketing visuals. The results often misinterpret the prompt, e.g., 'a red car' generates a blue car. Which technique should they try first to align the output with the prompt?

Question 44hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

An e-commerce company fine-tunes a model on customer reviews to generate product feedback summaries. They want to ensure the model does not reproduce toxic language from the training data. Besides filtering the training data, which additional technique is most effective at inference time?

Question 45easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A data scientist is using Vertex AI generative AI studio to create a chatbot. The chatbot gives inconsistent answers to similar questions. Which parameter should they adjust to make responses more consistent?

Question 46mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A developer uses the Gemini API to summarize long articles. The summaries often miss key points from the end of the article. Which technique specifically addresses this length-based loss of information?

Question 47hardmultiple choice
Read the full NAT/PAT explanation →

A healthcare startup fine-tunes a model to generate patient education materials. They want to ensure the model never gives medical advice, only information. They add a safety instruction, but the model sometimes still gives advice. What advanced technique should they apply?

Question 48easymulti select
Read the full NAT/PAT explanation →

A company is prompt engineering a model for customer support. They want to reduce hallucination (false information) in responses. Which TWO techniques are most effective? (Choose two.)

Question 49mediummulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

A developer is tuning a text-generation model for creative writing. They want the outputs to be more diverse and less repetitive. Which THREE parameters/changes can help? (Choose three.)

Question 50hardmulti select
Read the full NAT/PAT explanation →

A team is fine-tuning a model for a legal document summarization task. They need to ensure high accuracy and avoid hallucinations. Which TWO approaches should they combine? (Choose two.)

Question 51easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A developer is using Vertex AI PaLM 2 to generate product descriptions. The output is often too verbose and includes irrelevant details. Which technique should the developer apply?

Question 52mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A company wants to build a customer support chatbot that answers based on internal documentation. They use Vertex AI Search and want to ensure the model only uses retrieved documents. What should they do?

Question 53hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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?

Question 54mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A company uses Vertex AI PaLM for code generation. The code often contains security vulnerabilities. Which improvement should be applied?

Question 55hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

After fine-tuning a model on customer support data, the model starts using profanity. What is the most effective mitigation?

Question 56mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A team uses Vertex AI Generative AI Studio to tune a model via RLHF. After tuning, the model outputs are bland. What likely went wrong?

Question 57easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

Which technique allows a model to incorporate real-time data from external APIs?

Question 58hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A model generates biased output. Which technique is least effective?

Question 59mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

To improve factuality in generative AI, which is the best approach?

Question 60mediummulti select
Read the full NAT/PAT explanation →

A healthcare chatbot must avoid hallucinations. Which TWO techniques should the team implement? (Choose two.)

Question 61hardmulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

A financial analyst uses generative AI to summarize earnings reports. The summaries vary in style. Which THREE methods can improve consistency? (Choose three.)

Question 62mediummulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

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

Question 63mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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: {}
Question 64hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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"]
    }
  ]
}
Question 65easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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
  }
}
Question 66easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A company uses a generative AI model to answer customer queries. The model sometimes returns outdated information. Which technique should they apply to ensure responses rely on current data?

Question 67mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A developer deployed a large language model on Vertex AI for real-time chat. Users report slow response times. The model generates sentences one word at a time. Which optimization should be applied to reduce latency?

Question 68hardmultiple choice
Read the full NAT/PAT explanation →

A healthcare organization needs a generative AI model to answer medical questions using proprietary clinical guidelines. They have a large dataset of doctor-patient interactions. Should they fine-tune a pre-trained model or use Retrieval-Augmented Generation (RAG)?

Question 69easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A social media company uses a generative AI model to moderate user posts. The model occasionally allows offensive content. Which safety technique should be implemented?

Question 70mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A company uses a generative AI model to generate product descriptions. They notice variations in style and length across products. How can they enforce consistent formatting?

Question 71hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A streaming platform uses a large generative model for personalized content suggestions. Budget constraints require minimizing inference costs without significantly degrading quality. Which approach is most effective?

Question 72easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A user provides a long document as context for a question-answering task, but the model outputs irrelevant answers. What is the most likely cause?

Question 73mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A legal firm uses a generative AI to draft contracts. They want the output to follow a specific clause structure. Which technique should they use in the prompt?

Question 74hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A data scientist fine-tunes a model on a small proprietary dataset. After fine-tuning, the model repeats training examples verbatim. What is the most effective mitigation?

Question 75mediummulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

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

Question 76hardmulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

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

Question 77easymulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

Which THREE strategies should be combined to effectively reduce biased outputs in a generative AI model? (Choose three.)

Question 78hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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"}
    ]
  }
}
```
Question 79mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A team monitors their generative AI model on Vertex AI. They notice output quality declining. Which metric is most likely the root cause?

Exhibit

Refer to the exhibit.
```
Error: Model output quality has degraded over time.
Cloud Monitoring metrics show:
- Prediction latency stable
- Error rate less than 1%
- Input token count per request increasing 10% weekly
```
Question 80easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A developer uses a generative AI model with the system instruction shown. The response is correct but very brief. Which parameter adjustment could encourage more detail without losing accuracy?

Exhibit

Refer to the exhibit.
```
System Instruction: You are a helpful assistant.
Prompt: Tell me about the Eiffel Tower.
Response: The Eiffel Tower is located in Paris, France. It is 330 meters tall.
```
Question 81easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A company is using Vertex AI to generate customer support summaries from chat logs. They notice that the summaries sometimes include irrelevant details from the conversation. Which technique should they use to reduce irrelevant details?

Question 82mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A team is deploying a text generation model for legal document review. They observe that the model occasionally generates factually incorrect legal citations. Which approach best reduces this issue?

Question 83hardmultiple choice
Read the full NAT/PAT explanation →

An enterprise uses a fine-tuned PaLM 2 model for code generation. They want to ensure the generated code passes security audits. Which combination of techniques would be most effective?

Question 84easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A data scientist is using a large language model to generate product descriptions. The descriptions are often too verbose. Which parameter adjustment is most appropriate?

Question 85mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A chatbot built with Vertex AI PaLM API often provides outdated information about company policies because the training data is months old. Which approach should the team use?

Question 86hardmultiple choice
Read the full NAT/PAT explanation →

A research team is using a large language model to analyze medical research papers and generate summaries. They need to minimize hallucinations while retaining key details. They have access to a curated database of paper abstracts. Which approach is best?

Question 87easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A developer is using the Gemini API to generate creative marketing copy. They want the output to be more diverse and unexpected. Which parameter should they increase?

Question 88mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

After deploying a text-to-image model, the output images often contain distorted objects. The team suspects the prompt is too complex. Which prompt engineering technique should they try first?

Question 89hardmultiple choice
Read the full NAT/PAT explanation →

A company is using a fine-tuned LLM for generating financial reports. They need to ensure that the output complies with regulatory standards and does not include speculative content. Which combination of techniques should they implement?

Question 90easymulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

A team is using a language model for customer feedback analysis. They want to improve the accuracy of sentiment extraction. Which TWO techniques should they apply? (Choose two.)

Question 91mediummulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

A development team is integrating a large language model into a healthcare application. They need to reduce the risk of generating harmful medical advice. Which THREE measures should they implement? (Choose three.)

Question 92hardmulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

A company is using a large language model for automated translation of legal contracts. They find that the translations sometimes alter the meaning of specific clauses. Which TWO approaches would most effectively preserve the original meaning? (Choose two.)

Question 93easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A developer wants to improve the factual accuracy of the model's summaries. Based on the exhibit, what should they do?

Exhibit

Refer to the exhibit. The following is a partial output from 'gcloud ai models list' command:
---
MODEL_ID: 123456789 
DISPLAY_NAME: my-summary-model
MODEL_REGISTRY: vertex-ai
SUPPORT_ENGINE: False
GROUNDING_CONFIG: NONE
---
Question 94mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A user reports that the model's response to the same prompt varies significantly across different calls. Which parameter change would most likely reduce variability?

Exhibit

Refer to the exhibit. The following is a configuration block from a Vertex AI PaLM API request:
{
  "instances": [{"context": "You are a helpful assistant.", "messages": [{"author": "user", "content": "Explain quantum computing"}]}],
  "parameters": {
    "temperature": 0.9,
    "maxOutputTokens": 1000,
    "topK": 40,
    "topP": 0.95,
    "candidateCount": 1
  }
}
Question 95hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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.
Question 96easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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?

Question 97mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A developer is building a customer support chatbot using a large language model. The chatbot frequently generates plausible-sounding but incorrect answers to product questions. Which technique should be applied to improve factual accuracy?

Question 98hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A data scientist fine-tunes a generative image captioning model to describe medical images. The model outputs safe but very generic captions (e.g., 'An image of cells'). The goal is to produce more specific, clinically relevant descriptions. Which approach is most effective?

Question 99easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

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?

Question 100mediummultiple choice
Study the full Python automation breakdown →

A developer uses a code generation model to write Python functions. The output frequently contains syntax errors due to incorrect braces and indentation. Which technique should be used to produce syntactically valid code?

Question 101hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A law firm uses a generative model to analyze contracts and extract key clauses. The model often outputs irrelevant clauses or misses important ones. They want to improve the relevance of the outputs without retraining the entire model. Which approach is best?

Question 102easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A product team uses a translation model to convert English product descriptions into French. The model mixes formal and informal French dialects. Which simple prompt modification likely solves this?

Question 103mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A content generation model for e-commerce product descriptions repeats the same phrases across multiple descriptions (e.g., 'high-quality', 'best-in-class'). The team wants more varied and engaging output. Which parameter adjustment is most appropriate?

Question 104mediummulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

Which TWO techniques effectively reduce bias in generative model outputs? (Choose two.)

Question 105easymulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

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

Question 106hardmulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

Which THREE techniques are commonly used to improve the overall quality and coherence of generative model outputs? (Choose three.)

Question 107hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A large e-commerce company deploys a generative AI chatbot on Vertex AI for customer service. The chatbot is powered by a fine-tuned model on the company's historical support tickets. Despite high accuracy on training topics, the chatbot frequently gives irrelevant or off-topic answers when customers ask about new products or promotions. The company maintains a comprehensive product catalog and a knowledge base of current promotions. The chatbot's prompts include a system instruction to 'Answer based on your knowledge' and no other retrieval mechanism. The response time requirement is under 3 seconds. Which course of action should the team take?

Question 108hardmultiple choice
Read the full NAT/PAT explanation →

A healthcare startup uses a generative model fine-tuned on general medical literature to provide preliminary diagnostic suggestions from patient text. The model frequently misses rare diseases and sometimes suggests common conditions that are unlikely given the symptoms. The startup has a curated dataset of rare disease case reports and wants to improve the model’s sensitivity to rare conditions without sacrificing overall accuracy. They cannot afford to retrain the entire model from scratch. The model is deployed on Vertex AI Prediction with low latency requirement. Which approach should they take?

Question 109mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A marketing agency uses a generative AI model to create slogans for ad campaigns. The model outputs generic slogans like 'Quality you can trust' that lack originality. The agency has a library of past award-winning slogans and wants to generate more creative and brand-specific outputs. They have a requirement that the model must not produce slogans longer than 15 words. Which technique should they prioritize?

Question 110mediummultiple choice
Study the full Python automation breakdown →

A software development team builds an internal code assistant using a generative model. The assistant writes Python functions that often contain security vulnerabilities such as SQL injection or command injection. The team wants to mitigate these vulnerabilities without adding a manual review step for every code snippet, as that would slow development. They have access to a static analysis security scanner API. Which approach best addresses the vulnerabilities while maintaining developer velocity?

Question 111hardmultiple choice
Read the full NAT/PAT explanation →

A healthcare startup has fine-tuned a Vertex AI PaLM 2 model on a dataset of medical records to generate patient summaries. The model produces fluent text but occasionally fabricates diagnoses not present in the input. The team has already tried increasing the training data size by 20% and adjusting the temperature from 0.7 to 0.2, but hallucinations persist. The summaries must be factually accurate for regulatory compliance. What should the team do next?

Question 112mediummultiple choice
Read the full NAT/PAT explanation →

A retail company is deploying a generative AI chatbot on Vertex AI to provide product recommendations. The chatbot uses a base foundation model with no fine-tuning. Users report that the chatbot sometimes gives offensive or insensitive responses. The team must quickly implement safety controls without modifying the model. They also want to reduce irrelevant off-topic answers. Which combination of techniques should they apply?

Question 113easymultiple choice
Read the full NAT/PAT explanation →

A data scientist is using the Gemini API to generate product descriptions for an e-commerce site. The descriptions are often too verbose and include speculative claims that are not in the product specifications. The scientist wants to reduce hallucinations and control the length of the output without retraining the model. What should they do?

Question 114mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A financial services firm is using a foundation model on Vertex AI to generate investment summaries from quarterly reports. The summaries are accurate but often miss key financial metrics and trends. The team cannot afford to fine-tune the model frequently. Which technique should they use to improve the completeness and relevance of the summaries without modifying the model?

Question 115hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

An AI team is building a customer support chatbot for a telecom company using a fine-tuned LLM on Vertex AI. The model performs well on common issues but fails to answer correctly for rare or novel problems, often providing plausible-sounding but incorrect solutions. The team has a large corpus of internal troubleshooting documents. They want to minimize incorrect answers while keeping latency low. Which approach should they take?

Question 116easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A developer is using the Gemini API to generate creative product taglines. The taglines are often bland and uncreative. The developer wants more variety and novelty in the outputs. Which parameter adjustment would most effectively increase the diversity of the generated taglines?

Question 117mediummulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

A company is deploying a generative AI system that generates customer-facing emails. The system must ensure outputs are not toxic, biased, or harmful. Which TWO techniques are most effective for reducing toxicity in model outputs without significantly affecting performance?

Question 118easymultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A company uses a text generation model for customer support but notices it occasionally provides outdated information. Which technique should they implement to improve output accuracy?

Question 119mediummulti select
Read the full Techniques to Improve Generative AI Model Output explanation →

Which TWO techniques are most effective for improving the quality of a generative AI model's output when summarizing complex documents?

Question 120hardmultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

The exhibit shows the deployment configuration for a conversational AI model used in a finance application. Users report that responses are creative but often contain factually incorrect financial advice. Which parameter change would most improve factual accuracy?

Exhibit

Refer to the exhibit.

```json
{
  "model": "publishers/google/models/chat-bison@001",
  "endpoint": "us-central1-aiplatform.googleapis.com",
  "parameters": {
    "temperature": 0.9,
    "topP": 0.95,
    "maxOutputTokens": 256,
    "groundingConfig": {
      "sources": []
    }
  },
  "deployment": "production"
}
```
Question 121mediummultiple choice
Read the full Techniques to Improve Generative AI Model Output explanation →

A financial technology company has deployed a custom-tuned PaLM 2 model on Vertex AI to generate personalized investment recommendations for retail clients. The model was fine-tuned on a corpus of historical market data and advisory transcripts. Recently, the compliance team flagged that several recommendations contradicted SEC guidelines, and the model sometimes repeated prohibited statements from outdated training materials. The team has already implemented safety filters (e.g., blocking toxic content) and adjusted the model's system instructions to be more conservative. However, the issues persist. The model's deployment parameters are: temperature=0.4, top_p=0.9, max_output_tokens=500, and no grounding. The company must maintain compliance without significantly increasing latency. What should they do next?

Practice tests

Scored 10-question sessions with instant feedback and explanations.

Generative AI Leader Practice Test 1 — 10 Questions→Generative AI Leader Practice Test 2 — 10 Questions→Generative AI Leader Practice Test 3 — 10 Questions→Generative AI Leader Practice Test 4 — 10 Questions→Generative AI Leader Practice Test 5 — 10 Questions→Generative AI Leader Practice Exam 1 — 20 Questions→Generative AI Leader Practice Exam 2 — 20 Questions→Generative AI Leader Practice Exam 3 — 20 Questions→Generative AI Leader Practice Exam 4 — 20 Questions→Free Generative AI Leader Practice Test 1 — 30 Questions→Free Generative AI Leader Practice Test 2 — 30 Questions→Free Generative AI Leader Practice Test 3 — 30 Questions→Generative AI Leader Practice Questions 1 — 50 Questions→Generative AI Leader Practice Questions 2 — 50 Questions→Generative AI Leader Exam Simulation 1 — 100 Questions→

Practice by domain

Each domain maps to a weighted exam section. Focus on the domain where you are weakest.

Fundamentals of Generative AIBusiness Strategies for Generative AI SolutionsGoogle Cloud's Generative AI OfferingsTechniques to Improve Generative AI Model Output

Practice by scenario

Filter questions by type — troubleshooting, exhibit, drag-and-drop, PBQ, ACLs, OSPF, and more.

Browse scenarios→

Continue studying

All Techniques to Improve Generative AI Model Output setsAll Techniques to Improve Generative AI Model Output questionsGenerative AI Leader Practice Hub