Courseiva

Google Cloud Generative AI Leader Generative AI Leader (Generative AI Leader) — Questions 301–375

1008 questions total · 14 pages · All types, answers revealed

Page 4

Page 5 of 14

Page 6
301
MCQhard

An organization is deploying a summarization model on Vertex AI and needs to ensure that the model's responses are consistent and avoid hallucinations. They have a labeled dataset of source documents and human-written summaries. Which approach would best align the model with their quality requirements?

A.Deploy the model with a larger max_output_tokens
B.Use prompt engineering with few-shot examples
C.Increase the temperature to 0.9
D.Perform supervised fine-tuning using their labeled dataset
AnswerD

Supervised fine-tuning adjusts the model's weights using paired source documents and human-written summaries, directly teaching the desired output distribution. This satisfies the consistency and hallucination-reduction constraint, unlike prompt engineering or retrieval, which cannot reliably shape response style.

Why this answer

Supervised fine-tuning (D) directly optimizes the model's weights using the labeled dataset of source documents and human-written summaries, which teaches the model to produce consistent, factual outputs and reduces hallucinations. This approach aligns the model's behavior with the specific quality requirements by learning from ground-truth examples, unlike prompt engineering or parameter adjustments that do not modify the underlying model.

Exam trap

The trap here is that candidates often overestimate the power of prompt engineering or parameter tweaks, mistakenly believing they can achieve the same level of reliability as fine-tuning, when in fact only supervised fine-tuning directly modifies the model to internalize the labeled data's quality standards.

How to eliminate wrong answers

Option A is wrong because increasing max_output_tokens only extends the length limit of the response, which does not improve consistency or reduce hallucinations—it may actually allow the model to generate more unverified content. Option B is wrong because prompt engineering with few-shot examples provides in-context guidance but does not permanently adjust the model's weights; it is less reliable for ensuring consistent, hallucination-free outputs across diverse inputs compared to fine-tuning. Option C is wrong because increasing temperature to 0.9 increases randomness in token selection, which amplifies variability and the risk of hallucinations, directly opposing the goal of consistency.

302
MCQmedium

A logistics company wants an AI agent that answers driver questions about delivery procedures, can look up a shipment's live status through an internal REST API, and can escalate to a dispatcher when it cannot resolve an issue. Which Google Cloud offering is purpose-built for assembling this kind of agent?

A.Cloud Dataflow with a streaming pipeline for shipment events
B.Vertex AI Feature Store for serving driver profile attributes
C.Vertex AI Agent Builder with tools and a connected data store
D.Cloud Scheduler jobs that poll the shipment API and email updates
AnswerC

Vertex AI Agent Builder is designed to compose conversational agents that combine grounded knowledge from data stores with tools that call external systems such as the internal REST API, and it supports escalation flows. It directly matches the requirement for procedure answers, live shipment lookups and handoff to a dispatcher within one managed agent framework.

Why this answer

An agent framework is needed when a solution must converse, ground answers in internal knowledge and invoke external systems through tools. Vertex AI Agent Builder provides those capabilities natively, including data store grounding and tool calls, plus escalation handling. Data pipelines, feature serving and scheduled jobs each solve adjacent problems but cannot assemble an interactive, tool-using agent on their own.

Exam trap

The trap here is confusing a data or feature platform that supplies information to an agent with the agent framework itself that manages dialogue, grounding and tool calls.

303
MCQmedium

A financial institution is deploying a generative AI model to recommend investment strategies. They must ensure the model's outputs are explainable to clients and regulators. Which approach BEST meets this requirement?

A.Apply differential privacy to the training data
B.Aggregate model outputs across multiple runs to reduce variance
C.Use a larger model with more parameters to improve accuracy
D.Implement chain-of-thought prompting and cite sources for each recommendation
AnswerD

Chain-of-thought prompting exposes the model's intermediate reasoning steps, while source citations ground each recommendation in verifiable evidence. Together these satisfy the explainability constraint by letting clients and regulators trace how a strategy was derived, rather than receiving an opaque conclusion. This directly addresses the financial institution's regulatory transparency obligation.

Why this answer

Explainability in GenAI can be achieved by grounding outputs in verifiable sources and showing the reasoning process. Chain-of-thought reasoning provides step-by-step logic, making recommendations auditable.

304
MCQeasy

A marketing team wants to generate product descriptions for 1000 new items. They need consistent brand voice and the ability to review and edit outputs before publishing. Which approach is most suitable?

A.Use the Gemini API with grounding in Google Search to ensure factual accuracy
B.Deploy a customer service chatbot in Vertex AI Agent Builder to generate descriptions
C.Use the Gemini API with a few-shot prompt that includes examples of the desired brand voice
D.Build a custom fine-tuned model on past product descriptions
AnswerC

Few-shot prompting supplies concrete examples of the desired brand voice within the prompt, steering the model toward consistent tone across all 1000 descriptions. The API returns editable text, satisfying the requirement for human review before publishing.

Why this answer

Using the Gemini API with a few-shot prompt that includes examples of the desired brand voice is the most suitable approach because few-shot prompting guides the model to produce consistent tone and style without the cost and time of fine-tuning. It also allows human review and editing before publishing, matching the requirement for oversight.

Exam trap

Generative AI Leader often tests the misconception that fine-tuning is required for style consistency, when few-shot prompting is sufficient and more cost-effective for moderate-scale generation tasks.

How to eliminate wrong answers

Option A is wrong because grounding in Google Search ensures factual accuracy, not brand voice consistency, and is unnecessary for generating product descriptions. Option B is wrong because a customer service chatbot in Vertex AI Agent Builder is designed for conversational support, not batch content generation. Option D is wrong because fine-tuning a custom model is costly, time-consuming, and overkill for 1000 items when few-shot prompting achieves the same consistency.

305
MCQmedium

A healthcare organization is developing a generative AI system to assist doctors with clinical decision support. They are concerned about regulatory compliance (e.g., HIPAA) and potential liability. What is the most important business strategy to mitigate these risks?

A.Limit the system to non-critical administrative tasks only.
B.Use an open-source model to avoid vendor lock-in and reduce costs.
C.Fully automate the system to reduce human error.
D.Implement a human-in-the-loop review process with clear accountability for AI-generated recommendations.
AnswerD

Human-in-the-loop review keeps a licensed clinician as the accountable decision-maker, so AI output informs rather than determines care. This satisfies the stem's regulatory and liability constraints: HIPAA compliance and malpractice exposure remain with the clinician, and Microsoft Entra ID can enforce role-based access to the review workflow.

Why this answer

A human-in-the-loop (HITL) review process ensures that all AI-generated recommendations are verified by a qualified clinician before action, directly addressing HIPAA accountability requirements and reducing liability by maintaining a clear chain of responsibility. This strategy aligns with regulatory frameworks that mandate human oversight for high-risk clinical decisions, as the AI system itself cannot be held liable under current laws.

Exam trap

A common misconception in generative AI is that full automation reduces errors and liability, whereas in regulated healthcare environments, removing human oversight actually increases legal exposure and violates compliance mandates like HIPAA.

How to eliminate wrong answers

Option A is wrong because limiting the system to non-critical administrative tasks avoids the core regulatory and liability risks of clinical decision support, but it also forfeits the primary value of generative AI in healthcare—assisting with complex diagnoses—and does not mitigate risks for the intended use case. Option B is wrong because using an open-source model does not inherently address HIPAA compliance or liability; in fact, it may introduce additional risks such as lack of guaranteed data privacy controls, support for regulatory audits, or indemnification against model errors. Option C is wrong because fully automating the system removes human oversight, which is a direct violation of HIPAA's 'minimum necessary' and accountability standards, and increases liability by making the organization solely responsible for any AI-driven errors without a fallback mechanism.

306
MCQhard

A company is building a generative AI application that will generate marketing copy. They want to ensure that the content does not contain hate speech, violence, sexual content, or dangerous instructions. Which Google Cloud feature should they enable?

A.Configure safety filters and custom content controls in Vertex AI
B.Use the People + AI Guidebook to design prompts
C.Enable Model Card generation in Vertex AI
D.Implement a human review loop for all outputs
AnswerA

Vertex AI safety filters screen prompts and responses against configurable harm categories — hate speech, violence, sexual content and dangerous instructions — while custom content controls block organisation-specific terms. This directly satisfies the requirement to prevent prohibited material appearing in generated marketing copy.

Why this answer

Vertex AI provides safety filters and custom content controls that can be configured to block hate speech, violence, sexual content, and dangerous instructions. These filters are applied to both prompts and responses, allowing developers to enforce content policies. This is the most direct and automated way to ensure generated content meets safety requirements.

Exam trap

The trap is confusing documentation or manual processes with actual technical controls; candidates might pick human review or guidebooks, but the question asks for a Google Cloud feature to enable.

How to eliminate wrong answers

Option B is wrong because the People + AI Guidebook is a design resource for human-centered AI, not a technical feature to filter content. Option C is wrong because Model Card generation documents model metadata and performance, but does not filter or block harmful content. Option D is wrong because a human review loop is a manual process and not a Google Cloud feature; while it can be part of a workflow, it is not the primary automated solution.

307
MCQeasy

A marketing team wants to generate product descriptions using generative AI. They need to ensure factual accuracy and avoid hallucinations. Which approach should they use?

A.Use a code generation model to generate structured descriptions.
B.Fine-tune the model on all product descriptions using supervised learning.
C.Implement a retrieval augmented generation (RAG) system that retrieves product facts from a database.
D.Use a large language model with detailed prompt instructions to be accurate.
AnswerC

RAG grounds generation in retrieved product facts, so the model conditions its output on authoritative database content rather than parametric memory alone. This directly satisfies the factual accuracy and hallucination-avoidance constraint, since responses are anchored to verifiable source data instead of plausible-sounding invention.

Why this answer

Retrieval Augmented Generation (RAG) is the correct approach because it grounds the model's output in verifiable, external data sources. By retrieving product facts from a database in real-time, the system ensures that the generated descriptions are based on accurate information, directly mitigating the risk of hallucination. This method combines the generative power of an LLM with a retrieval step that provides factual context, making it ideal for applications where precision is critical.

Exam trap

Google Cloud often tests the misconception that detailed prompting alone (Option D) is sufficient to guarantee factual accuracy, when in reality, without external knowledge retrieval, the model can still generate plausible but incorrect information.

How to eliminate wrong answers

Option A is wrong because code generation models are designed to produce structured code or data formats, not to ensure factual accuracy in natural language product descriptions; they lack a retrieval mechanism to verify facts. Option B is wrong because fine-tuning on all product descriptions using supervised learning can embed training data biases and does not prevent hallucination on unseen or updated product facts; it also requires extensive labeled data and retraining for each change. Option D is wrong because while detailed prompt instructions can guide the model, they do not provide a mechanism to access or verify external facts; the model may still hallucinate based on its parametric knowledge, which can be outdated or incorrect.

308
MCQhard

A data science team wants to run a large-scale transformer training job with custom model architectures. They need the highest compute density for a multi-node job and want to minimize inter-node communication latency. Which Google Cloud infrastructure is BEST suited for this workload?

A.A single TPU v5e VM with multiple accelerators
B.A cluster of A100 GPU VMs connected via standard networking
C.TPU v4 Pod slices with high-speed inter-chip interconnect
D.Cloud Run jobs with GPU acceleration
AnswerC

TPU v4 Pod slices link thousands of chips through a dedicated high-speed inter-chip interconnect, delivering the densest multi-node compute with minimal inter-node latency. This directly satisfies the stem's demand for maximum compute density and reduced communication overhead during large-scale transformer training.

Why this answer

TPU v4 Pod slices provide the highest compute density for multi-node transformer training by using a custom 3D torus interconnect with 800 Gbps per chip bandwidth, which minimizes inter-node communication latency far below what standard networking can achieve. This architecture is specifically designed for large-scale model parallelism, making it ideal for custom transformer architectures that require frequent all-reduce and collective communication operations.

Exam trap

The trap here is that candidates often assume GPU clusters with standard networking (Option B) are sufficient for multi-node training, underestimating how drastically inter-node latency impacts scaling efficiency for transformer models with large parameter counts.

How to eliminate wrong answers

Option A is wrong because a single TPU v5e VM, while powerful, is limited to a single host and cannot scale to multi-node training without incurring network latency between separate TPU hosts. Option B is wrong because A100 GPU VMs connected via standard networking (e.g., 100 Gbps Ethernet) introduce significant inter-node latency compared to TPU Pods' dedicated high-speed interconnects, which are optimized for synchronous training. Option D is wrong because Cloud Run jobs are serverless and designed for stateless, short-lived tasks, not for large-scale, multi-node distributed training with custom model architectures that require persistent, high-bandwidth inter-node communication.

309
MCQmedium

A company needs to fine-tune a foundation model on Vertex AI for a custom text classification task with only 500 labeled examples. They want to minimize cost while achieving high accuracy. What is the MOST cost-effective approach?

A.Fine-tune the foundation model using full fine-tuning on the entire dataset.
B.Use model distillation to train a smaller student model.
C.Use Vertex AI LLM-based evaluation to compare multiple large models and select the best one.
D.Design prompts with few-shot examples and test it with the available data.
AnswerD

Few-shot prompting exploits the foundation model's in-context learning, requiring no weight updates or training compute. With only 500 labelled examples, fine-tuning risks overfitting and incurs Vertex AI training costs, so prompt design satisfies the cost-minimisation constraint while testing accuracy against held-out data.

Why this answer

The most cost-effective because it leverages prompt engineering with few-shot examples, which requires no training or infrastructure costs. With only 500 labeled examples, a well-designed prompt can often achieve high accuracy for custom text classification without the expense of fine-tuning or model distillation on Vertex AI.

Exam trap

The trap here is that candidates often assume fine-tuning or distillation is always necessary for custom tasks, overlooking that prompt engineering with few-shot examples can be highly effective and cost-efficient for small datasets.

How to eliminate wrong answers

Option A is wrong because full fine-tuning on only 500 examples is computationally expensive and may lead to overfitting, especially for a large foundation model, making it cost-inefficient. Option B is wrong because model distillation requires training a smaller student model using a larger teacher model, which involves significant compute and data costs, and is not justified for a small dataset. Option C is wrong because using Vertex AI LLM-based evaluation to compare multiple large models incurs high inference costs and does not directly solve the classification task; it is an evaluation step, not a deployment approach.

310
MCQmedium

A retail company wants to use GenAI to generate product descriptions. They have a small team of data scientists. What is the most efficient approach?

A.Collect more data for several months before starting
B.Train a model from scratch using their product data
C.Use a foundation model API with prompt engineering and few-shot examples
D.Buy a proprietary model from a startup
AnswerC

A foundation model API with prompt engineering and few-shot examples avoids training or hosting costs, letting a small data science team deliver results quickly. Fine-tuning or building custom models would demand far more data, compute and specialist effort than the scenario's limited team can sustain.

Why this answer

Using a foundation model API with prompt engineering and few-shot examples is the most efficient approach for a small team. It leverages pre-trained models (e.g., GPT-4, Claude) via API calls, requiring no infrastructure or training data, while prompt engineering and few-shot examples allow the model to adapt to the company's product catalog with minimal effort and cost.

Exam trap

Google Cloud often tests the misconception that more data or custom training is always better, but the trap here is that candidates overlook the efficiency and sufficiency of foundation model APIs with prompt engineering for small teams with limited data and compute resources.

How to eliminate wrong answers

Option A is wrong because collecting more data for several months delays deployment unnecessarily; foundation models already have broad language understanding and can generate product descriptions with minimal domain-specific data via few-shot prompting. Option B is wrong because training a model from scratch is computationally expensive, requires large labeled datasets, and demands deep ML expertise, which is inefficient for a small team with limited resources. Option D is wrong because buying a proprietary model from a startup introduces vendor lock-in, potential licensing costs, and may not offer the flexibility or rapid iteration that API-based foundation models provide.

311
Multi-Selecthard

A company wants to deploy a generative AI application that must comply with both Google's AI Principles and the EU AI Act. Which THREE practices should they adopt?

Select 3 answers
A.Use the largest possible model for best accuracy
B.Use data minimization and purpose limitation to respect privacy
C.Implement human oversight for high-risk decisions
D.Deploy safety filters to block harmful content
E.Disable logging to minimize data retention
AnswersB, C, D

Data minimisation and purpose limitation restrict processing to what is necessary and compatible with the stated aim, satisfying GDPR-aligned privacy expectations under the EU AI Act and Google's privacy principle of collecting only what is needed.

Why this answer

Option B is correct because data minimization and purpose limitation are core privacy principles aligned with both Google's AI Principles (which emphasize privacy by design) and the EU AI Act's data governance requirements for high-risk AI systems. Option C is correct because the EU AI Act mandates human oversight for high-risk AI systems, and Google's AI Principles require meaningful human control over consequential decisions. Option D is correct because deploying safety filters to block harmful content directly supports Google's AI Principle of avoiding creating or reinforcing unfair bias and harm, and aligns with the EU AI Act's requirements for accuracy, robustness, and cybersecurity.

Option A is incorrect because using the largest possible model does not inherently ensure compliance with either framework and may increase energy use and risk without addressing governance obligations. Option E is incorrect because disabling logging undermines transparency, traceability, and accountability, which are explicitly required by the EU AI Act and expected under Google's responsible AI practices.

Exam trap

A common misconception is that 'bigger models are always better' or that 'disabling logging reduces compliance risk.' In reality, both practices conflict with the transparency, accountability, and risk management requirements of the EU AI Act and Google's AI Principles.

312
MCQhard

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?

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.
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.
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.
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.
AnswerB

RAG grounds generation in verified figures retrieved from a vector database, correcting factual inaccuracies without retraining, while constrained decoding enforces the 200-word ceiling and penalises repetition, directly resolving verbosity. Temperature and top-k tuning cannot fix hallucinated figures or enforce length limits.

Why this answer

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.

Exam trap

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.

How to eliminate wrong answers

Option A is wrong because increasing LoRA rank and fine-tuning on a curated subset still relies on the model's parametric memory, which is prone to hallucination and does not guarantee factual accuracy; it also requires retraining, contradicting the 'no full retraining' constraint. Option C is wrong because switching to a larger model does not inherently solve factual inaccuracies (larger models can still hallucinate) and requires full retraining or significant adaptation, violating the constraint. Option D is wrong because higher temperature (0.9) increases randomness, likely worsening factual inaccuracies, and lower top-k (20) reduces diversity, which may not fix verbosity; post-processing truncation does not address the root cause of repetition or inaccuracy.

313
MCQmedium

A company is building a chatbot that must answer questions based on a large internal knowledge base that is updated weekly. They want to avoid retraining the model frequently. Which technique should they use?

A.Use Retrieval-Augmented Generation (RAG) with a vector database
B.Use prompt engineering to instruct the model to ignore outdated information
C.Increase the model's context window and include all documents in the prompt
D.Fine-tune the model weekly on the updated knowledge base
AnswerA

RAG retrieves relevant passages from the vector database at query time and supplies them as context, so weekly knowledge base updates only require re-indexing rather than retraining. This satisfies the constraint of avoiding frequent model retraining while keeping answers current.

Why this answer

RAG retrieves relevant documents at inference time, keeping answers up-to-date without retraining. Fine-tuning would require frequent retraining; prompt engineering alone cannot incorporate new knowledge.

314
MCQhard

You are a data scientist at a financial institution. You are using Vertex AI to fine-tune a large language model (LLM) for generating financial reports. You have prepared a dataset of 10,000 examples. During fine-tuning, you notice that the training loss is decreasing steadily, but the validation loss is increasing after 5 epochs. The model's generated reports on the validation set contain many factual errors and nonsensical statements. You suspect overfitting. You have limited compute budget and need to improve generalization. What should you do?

A.Increase the learning rate
B.Increase the number of training epochs to 20
C.Add more training examples from a public dataset
D.Implement early stopping with a patience of 2 epochs
AnswerD

Early stopping halts training once validation loss stops improving, directly countering the divergence observed after 5 epochs. With patience of 2, it preserves the best-generalising checkpoint rather than the final overfitted weights, improving generalisation without extra compute — satisfying the limited-budget constraint.

Why this answer

Early stopping with a patience of 2 epochs is the correct approach because it directly addresses overfitting by halting training when the validation loss fails to improve for a specified number of epochs. This preserves the model's generalization ability without requiring additional compute or data, which aligns with the limited budget constraint. In Vertex AI, early stopping is a built-in hyperparameter tuning strategy that monitors validation metrics and stops the job to prevent further degradation.

Exam trap

The trap here is that candidates often confuse overfitting with underfitting and choose to add more data or increase epochs, failing to recognize that the validation loss increasing while training loss decreases is the classic sign of overfitting, which requires a regularization technique like early stopping.

How to eliminate wrong answers

Option A is wrong because increasing the learning rate would make the optimizer take larger steps, which can cause the loss to diverge or oscillate, worsening the overfitting and factual errors. Option B is wrong because increasing the number of training epochs to 20 would continue training on the same data, likely exacerbating overfitting as the validation loss is already increasing after 5 epochs. Option C is wrong because adding more training examples from a public dataset may introduce domain mismatch or noise, and it does not address the immediate overfitting issue; it also requires additional compute and data curation resources, contradicting the limited budget constraint.

315
MCQmedium

A media company needs to generate short video clips from text prompts for a marketing campaign. They want to use a Google Cloud service that can create videos up to 8 seconds long, 720p resolution, and can be accessed via Vertex AI. Which Google Cloud generative AI offering should they use?

A.Imagen on Vertex AI
B.Gemini on Vertex AI
C.Chirp on Vertex AI
D.Veo on Vertex AI
AnswerD

Veo on Vertex AI is Google Cloud's generative AI model for video generation from text prompts. It supports creating videos up to 8 seconds at 720p resolution, matching the scenario's requirements. It is accessible via Vertex AI, making it the correct choice for generating short video clips for marketing.

Why this answer

Veo on Vertex AI is specifically built for video generation from text, supporting up to 8-second 720p clips, which aligns with the media company's need for short marketing videos. Other models like Imagen, Gemini, or Chirp serve different modalities and cannot produce video outputs.

Exam trap

The trap here is assuming that Gemini, as a multimodal model, can generate video, but it only processes video inputs and does not output video.

316
Multi-Selecthard

A law firm wants to use generative AI to analyze contracts and extract key clauses. They need high accuracy and the ability to handle diverse contract formats. Which three steps should they take in their proof-of-concept (PoC) phase? (Choose THREE)

Select 3 answers
A.Use few-shot prompting with examples of desired clause extraction
B.Implement a human-in-the-loop review process for extracted clauses
C.Test on a diverse set of 50-100 contracts covering common variations
D.Deploy a pre-built contract analysis API without customization
E.Train a custom model from scratch using all historical contracts
AnswersA, B, C

Few-shot examples guide the model to produce consistent, structured outputs.

Why this answer

Few-shot prompting provides the model with specific examples of desired clause extraction, guiding it to produce accurate outputs without requiring fine-tuning. This technique is efficient for a proof-of-concept because it leverages the model's existing capabilities while adapting to the task through in-context learning, which is critical for handling diverse contract formats with high accuracy.

Exam trap

The Generative AI Leader exam often tests the misconception that a proof-of-concept should aim for a production-ready solution immediately, leading candidates to choose options like D (pre-built API) or E (custom training) instead of focusing on iterative, low-cost validation steps like few-shot prompting and human review.

317
MCQeasy

Which Google Cloud tool allows you to document the intended use, training data, and evaluation results of a machine learning model to promote transparency?

A.PAIR Explorables
B.Model Cards
C.Datasheets for Datasets
D.People + AI Guidebook
AnswerB

Model Cards provide a structured, standardised document recording a model's intended use, training data, evaluation results, and limitations. This satisfies the transparency requirement by giving stakeholders the context needed to understand performance and appropriate deployment boundaries.

Why this answer

Model Cards are designed to provide transparent documentation of ML models, including intended use, training data, and evaluation results.

318
Multi-Selectmedium

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

Select 2 answers
A.Apply adversarial debiasing during training or fine-tuning.
B.Increase the temperature parameter to introduce more variability.
C.Use a larger model with more parameters.
D.Fine-tune on a dataset with balanced representation across groups.
E.Reduce max output tokens to limit the model's expression.
AnswersA, D

Adversarial debiasing trains a discriminator to detect protected-attribute predictions from the model's representations while the generator learns to defeat it, directly penalising biased internal representations during training or fine-tuning rather than only filtering outputs afterwards.

Why this answer

Adversarial debiasing (A) directly reduces bias by training the model to minimize an adversary's ability to predict protected attributes from the model's outputs, forcing the model to learn representations that are invariant to those attributes. Fine-tuning on a balanced dataset (D) corrects representation bias by ensuring the model sees equal examples across groups, preventing overfitting to majority patterns. Both techniques actively address the root causes of bias in training data or model behavior.

Exam trap

A common misconception is that randomness (temperature) or model size alone can fix bias, when in fact these parameters do not address the systematic skew in training data or model representations.

319
MCQhard

A media company wants to build a multi-modal generative app that accepts text, image, and video inputs and produces summaries. The app must handle variable-length videos up to 10 minutes. Which architecture is most scalable and cost-effective?

A.Use a pipeline to split videos into short clips, extract key frames, and process with Gemini 1.5 Pro (with context caching) to generate summaries.
B.Use Video Intelligence API to generate video captions, then feed captions to a text model.
C.Convert all inputs to text descriptions and use a text-only model.
D.Deploy a single Vertex AI endpoint with a model that can ingest multi-modal data directly.
AnswerA

Correct. Splitting videos into short clips and extracting key frames reduces computational load and token usage, while Gemini 1.5 Pro's context caching efficiently handles variable-length videos by reusing processed context across requests. This balance of scalability and cost-effectiveness is ideal for multi-modal summarization.

Why this answer

Option A is the most scalable and cost-effective because it preprocesses variable-length videos by splitting them into short clips and extracting key frames, reducing token usage and computational load. Gemini 1.5 Pro's context caching further improves efficiency by reusing processed context across requests. Option B loses visual context and adds an extra API, reducing accuracy and scalability.

Option C discards multi-modal information entirely. Option D is less practical for variable-length videos because directly ingesting raw video into a single endpoint without preprocessing can lead to high token costs and latency, especially for videos up to 10 minutes.

Exam trap

A common misconception is that a single multi-modal endpoint is inherently scalable for any input size. In practice, directly ingesting raw, variable-length video without preprocessing (such as splitting into clips and extracting key frames) can cause high token costs and latency. A pipeline approach with context caching is more practical and cost-effective for variable-length multi-modal inputs.

How to eliminate wrong answers

Option B is wrong because using Video Intelligence API to generate captions and then feeding them to a text model loses visual and temporal information from the video, such as scene transitions and non-verbal cues, which degrades summary quality. Option C is wrong because converting all inputs (images, videos) to text descriptions discards multi-modal richness, forcing a text-only model to infer visual details, which is inaccurate and inefficient for variable-length videos. Option D is wrong because deploying a single Vertex AI endpoint with a multi-modal model directly ingesting raw data would be computationally expensive and unscalable for 10-minute videos, as it requires processing every frame without optimization, leading to high latency and cost.

320
Multi-Selectmedium

What are THREE best practices for responsible generative AI deployment?

Select 3 answers
A.Monitor model performance and data drift over time
B.Maximize model size for best accuracy
C.Maintain human oversight for critical decisions
D.Implement content filters to block harmful or biased outputs
E.Avoid fine-tuning the model to preserve original capabilities
AnswersA, C, D

Continuous monitoring helps detect degradation and ensures the model remains reliable.

Why this answer

Continuous monitoring of model performance and data drift is essential for maintaining the reliability and safety of generative AI systems. Data drift occurs when the statistical properties of input data change over time, which can degrade model accuracy and introduce unintended biases. Regular monitoring allows teams to detect these shifts early and retrain or adjust the model to sustain responsible behavior.

Exam trap

Google Cloud often tests the misconception that bigger models are always better, but the trap here is that responsible AI deployment focuses on safety, fairness, and reliability rather than raw performance metrics like model size.

321
MCQmedium

A startup is building a multimodal application that allows users to upload a photo of a plant and ask questions about its care. They want to use Google Cloud generative AI services. Which combination of services is MOST suitable?

A.Use Cloud Vision API to extract text from the image, then send that text to a text‑only model
B.Use Vertex AI Agent Builder with a text‑only model and ignore the image
C.Use Gemini on Vertex AI with a prompt that includes the image and the user’s question
D.Use Imagen to generate a description of the plant, then feed that description to a text model
AnswerC

Gemini on Vertex AI is natively multimodal, accepting image and text in a single prompt, so the plant photo and question are processed together. This satisfies the requirement for one Google Cloud service handling both modalities without separate vision and language pipelines.

Why this answer

Gemini on Vertex AI natively supports multimodal inputs, allowing the model to directly process the uploaded plant image alongside the user's care question in a single prompt. This eliminates the need for intermediate text extraction or image description generation, providing the most accurate and context-aware response for the application's requirements.

Exam trap

Google often tests the misconception that multimodal tasks require separate vision and language models chained together, when in fact a single multimodal model like Gemini can handle both modalities natively, offering superior accuracy and simplicity.

How to eliminate wrong answers

Option A is wrong because Cloud Vision API extracts text from images (e.g., OCR), not plant characteristics like species or health, and sending that text to a text-only model loses visual context critical for plant care advice. Option B is wrong because Vertex AI Agent Builder with a text-only model ignores the image entirely, making it impossible to answer questions based on the plant's visual appearance. Option D is wrong because Imagen is a text-to-image generation model, not an image-to-text description model; using it to generate a description would be technically incorrect and inefficient, and feeding that description to a text model introduces potential information loss and latency.

322
MCQeasy

An engineer is testing a generative AI application using the Gemini API. They receive a 400 error with message 'INVALID_ARGUMENT: text has been blocked.' What is the most likely cause?

A.The specified Gemini model version does not exist
B.The input text was flagged by a safety filter
C.The API key is invalid
D.The API quota has been exceeded
AnswerB

A 400 INVALID_ARGUMENT with 'text has been blocked' indicates the request content tripped Gemini's safety filters, which screen prompts and responses for harmful categories. The input was rejected before generation, so no model output was produced.

Why this answer

The 400 error with 'INVALID_ARGUMENT: text has been blocked' indicates that the input text was rejected by Gemini's safety filters before any model processing occurred. These filters evaluate content against categories like hate speech, harassment, or sexually explicit material, and when triggered, they block the request at the API gateway level, returning this specific error message.

Exam trap

In Google Cloud's Gemini API, a 400 'INVALID_ARGUMENT: text has been blocked' error indicates that the input was rejected by safety filters before processing. Candidates often confuse this with authentication (invalid API key) or quota errors, which return different error codes (e.g., 403 or 429). Understanding the specific error message and its association with Gemini's safety settings is key.

How to eliminate wrong answers

Option A is wrong because a non-existent model version would return a 404 'NOT_FOUND' error, not a 400 'INVALID_ARGUMENT' error. Option C is wrong because an invalid API key would result in a 401 'UNAUTHENTICATED' or 403 'PERMISSION_DENIED' error, not a 400 error. Option D is wrong because exceeding API quota would return a 429 'RESOURCE_EXHAUSTED' error, not a 400 'INVALID_ARGUMENT' error.

323
MCQmedium

A logistics company stores delivery exception reports as PDFs in a Cloud Storage bucket. An analyst needs to ask natural-language questions across all the reports and receive answers with citations to the source pages, with minimal development work. Which Google Cloud capability should the analyst use?

A.BigQuery ML with a remote Gemini model
B.Vertex AI Pipelines orchestrating a custom document parser
C.Cloud Vision API batch annotation of the PDFs
D.Vertex AI Search with a data store grounded on the Cloud Storage documents
AnswerD

Vertex AI Search can ingest documents from Cloud Storage into a data store, index them, and answer natural-language queries with grounding and citations back to the source content. It is a managed retrieval-augmented generation capability, so the analyst gets cited answers across many PDFs with minimal development work, exactly matching the requirement.

Why this answer

Vertex AI Search ingests documents directly from Cloud Storage, builds a managed index, and returns natural-language answers grounded in those documents with citations to source pages. The alternatives all require substantial custom development: Pipelines orchestrates custom code, BigQuery ML needs the data loaded and parsed, and Cloud Vision only extracts raw text and features without answering questions.

Exam trap

The trap here is equating document text extraction with question answering; OCR or annotation services produce raw content, but only a grounded search capability delivers cited answers over the corpus.

324
Multi-Selecteasy

A data analyst wants to use Gemini for Google Workspace to assist with Sheets. Which two capabilities does Duet AI in Sheets provide? (Choose TWO)

Select 2 answers
A.Generate formula suggestions based on natural language descriptions
B.Classify and tag data in columns automatically
C.Apply conditional formatting rules based on patterns
D.Create charts from images pasted into the sheet
E.Write custom Apps Script code automatically
AnswersA, B

Users can describe what they want, and Duet AI suggests the formula.

Why this answer

Duet AI in Sheets can interpret natural language descriptions of desired calculations and automatically generate the corresponding formula. This leverages Gemini's language understanding to translate user intent into spreadsheet functions, significantly reducing the need to manually recall or construct complex formulas.

Exam trap

The trap here is that candidates may confuse Duet AI's formula suggestion capability with broader automation features like custom scripting or image-based chart creation, which are not supported in the current Duet AI for Sheets implementation.

325
MCQmedium

A team set a budget alert for their GenAI API usage at $10,000. They received the alert with current spend of $12,500. Which business action is most appropriate as a first step?

A.Pause all non-critical use cases immediately
B.Switch to a cheaper model provider
C.Review usage patterns and optimize prompt lengths and frequencies
D.Increase the budget by 50% to $15,000
AnswerC

Overspend already occurred, so the immediate business step is analysing which workloads drove the excess and trimming token-heavy prompts and call frequency. This addresses the stem's budget breach directly, since prompt length and request volume are the primary cost drivers for GenAI API consumption.

Why this answer

The first step in responding to a budget overrun should be to analyze usage patterns and optimize prompt lengths and frequencies. This approach identifies inefficiencies (e.g., unnecessarily verbose prompts, excessive retries) that directly reduce token consumption and cost without disrupting critical operations. It aligns with the principle of cost optimization before making architectural or policy changes.

Exam trap

Google Cloud often tests the misconception that immediate cost-cutting actions (like pausing or switching models) are the best first step, when in fact data-driven analysis and optimization should precede any operational or financial changes.

How to eliminate wrong answers

Option A is wrong because pausing all non-critical use cases is a reactive, blunt measure that may disrupt business processes and does not address the root cause of cost overruns; it should be considered only after analysis shows specific non-critical usage is the primary driver. Option B is wrong because switching to a cheaper model provider without understanding current usage patterns risks degrading output quality or compatibility, and may not address inefficiencies like prompt bloat or high-frequency calls. Option D is wrong because increasing the budget without investigating the overrun ignores the underlying issue and can lead to uncontrolled spending; it is a financial workaround, not a cost management strategy.

326
Multi-Selecthard

A software company is using Vertex AI to build a generative AI application that creates code snippets from natural language descriptions. They want to improve the model's performance on their specific coding style and libraries. Which two techniques should they use? (Choose two.)

Select 2 answers
A.Deploy the model on a larger GPU to increase generation speed.
B.Use Vertex AI Model Evaluation to compare different models and select the best one.
C.Increase the model's temperature setting to encourage more creative code.
D.Use prompt engineering with few-shot examples of the desired code style.
E.Fine-tune the Gemini model on a dataset of code snippets and descriptions.
AnswersD, E

Prompt engineering with few-shot examples provides the model with concrete instances of the desired output format and style. This guides the model to generate code that matches the company's conventions without retraining, and it is a correct, efficient technique for customization.

Why this answer

Fine-tuning on a custom dataset and using few-shot prompt engineering are both effective ways to adapt a generative model to a specific coding style. Fine-tuning provides deep customization, while few-shot prompting offers a lightweight alternative. Together, they can significantly improve the relevance and accuracy of generated code.

Exam trap

The trap here is assuming that infrastructure changes like larger GPUs or evaluation tools can customize model behavior, when in fact they do not affect the model's learned patterns.

327
MCQmedium

A media company is using a generative AI model to create summaries of news articles. They notice that the summaries sometimes include information not present in the original articles, leading to factual errors. They want to reduce the likelihood of such hallucinations. Which approach should they take?

A.Decrease the top-k parameter to limit the vocabulary used in the summary.
B.Increase the temperature parameter to encourage more creative outputs.
C.Use a smaller model with fewer parameters to limit the amount of information it can generate.
D.Provide the article text as context in the prompt and instruct the model to only use that information.
AnswerD

By including the article text in the prompt and explicitly instructing the model to base its summary only on that content, you ground the model's response in the provided source. This technique, often called grounding or context conditioning, significantly reduces hallucinations because the model is constrained to the given text. It is a best practice for summarization tasks.

Why this answer

Hallucinations occur when a model generates plausible but unsupported information. To mitigate, you can ground the model by providing the source text in the prompt and instructing it to rely solely on that text. This constrains the model's output to the given context, reducing the chance of introducing external or fabricated details.

This is a standard technique in generative AI for summarization.

Exam trap

The trap here is assuming that adjusting model parameters like temperature or top-k can eliminate hallucinations, when grounding with source context is the effective method.

328
Multi-Selectmedium

A company is planning an iterative rollout of a GenAI assistant for sales teams. They want to maximize adoption and minimize disruption. Which TWO change management practices should they prioritize? (Choose two.)

Select 2 answers
A.Provide hands-on training sessions and documentation
B.Disable the legacy system immediately after GenAI launch
C.Roll out to all employees simultaneously to create urgency
D.Identify AI champions in the sales team to pilot the tool first
E.Set a mandatory usage target for each sales rep
AnswersA, D

Training reduces confusion and helps employees use the tool effectively.

Why this answer

Hands-on training and documentation directly address the learning curve and anxiety associated with adopting a GenAI assistant, ensuring users understand how to interact with the model effectively (e.g., prompt engineering basics, interpreting outputs) and reducing friction. This practice aligns with the iterative rollout strategy by providing staged support, which maximizes adoption through competence and confidence rather than coercion.

Exam trap

The Generative AI Leader exam often tests the misconception that aggressive mandates or full-scale rollouts create urgency and speed adoption, but in GenAI contexts, they actually increase resistance and risk of failure due to the need for trust calibration and iterative refinement of model behavior.

329
MCQmedium

A software team is using a generative AI model to write code snippets. They want to control the model's creativity and ensure it produces consistent, deterministic output for the same prompt. Which parameter should they adjust?

A.Top-p (nucleus sampling)
B.Top-k sampling
C.Maximum output tokens
D.Temperature
AnswerD

Setting temperature to zero makes the model select the most likely next token at each step, producing deterministic output for the same prompt. This is ideal for code generation where consistency is important. Temperature directly controls randomness, making it the correct choice.

Why this answer

Temperature controls the randomness of token selection. Setting it to zero makes the model choose the highest-probability token each time, yielding deterministic output for the same prompt. Top-p, top-k, and max tokens do not provide the same level of determinism.

Exam trap

The trap here is thinking that top-p or top-k alone can produce fully deterministic output, when only temperature zero does.

330
MCQmedium

A research team wants to generate high-quality images from text descriptions for a marketing campaign. They need the ability to edit specific regions of generated images while preserving the rest. Which Google Cloud AI service should they use?

A.Gemini 1.5 Pro with image input
B.Codey on Vertex AI
C.Veo on Vertex AI
D.Imagen on Vertex AI
AnswerD

Imagen on Vertex AI supports inpainting and mask-based editing, letting the team regenerate only specified regions while the surrounding pixels stay untouched. That satisfies the requirement to edit specific areas of text-generated marketing images without altering the rest.

Why this answer

Imagen on Vertex AI is Google Cloud's text-to-image generation service, and it supports advanced editing capabilities such as inpainting and outpainting, which allow specific regions of an image to be edited while preserving the rest. This directly matches the research team's requirement for high-quality image generation with region-specific editing.

Exam trap

Generative AI Leader often tests the distinction between image understanding (Gemini), image generation/editing (Imagen), and video generation (Veo) — candidates who pick Gemini for image generation confuse multimodal understanding with generative image creation.

How to eliminate wrong answers

Option A is wrong because Gemini 1.5 Pro with image input is a multimodal model for understanding and analyzing images, not a dedicated high-quality image generation and editing service. Option B is wrong because Codey on Vertex AI is focused on code generation and completion, not image generation. Option C is wrong because Veo on Vertex AI is a video generation model, not an image generation and editing tool.

331
MCQeasy

A small marketing agency wants to quickly experiment with prompts for Gemini to draft social media posts, without writing code or provisioning infrastructure. They need a Google Cloud console experience for iterating on prompts and comparing model outputs. Which offering should they use?

A.BigQuery ML
B.Gemini for Google Workspace
C.Vertex AI Pipelines
D.Vertex AI Studio
AnswerD

Vertex AI Studio provides a console-based environment for designing, testing, and comparing prompts across Gemini models without writing code. It lets the agency iterate quickly on social post drafts and view outputs side by side, which matches the need for rapid experimentation with no infrastructure provisioning. This is the intended low-friction entry point for prompt work in Google Cloud.

Why this answer

Vertex AI Studio is the console-based workspace for prompt design, model comparison, and rapid prototyping with Gemini. It requires no coding or infrastructure setup, making it ideal for a marketing team that wants to experiment with social post drafts. The other choices are pipeline orchestration, SQL-based modeling, or office productivity tools that do not offer interactive prompt experimentation.

Exam trap

The trap here is conflating any Gemini access with prompt engineering capability, when only Vertex AI Studio provides the console playground for iterating and comparing prompts.

332
MCQmedium

During a proof-of-concept, a team notices that their GenAI-powered meeting summarizer occasionally includes hallucinated details. They want to improve summary accuracy before production. Which action would be most effective?

A.Upgrade to a larger model
B.Provide the meeting transcript as context in the prompt
C.Decrease the temperature to 0.0
D.Use few-shot prompting with example summaries
AnswerB

Grounding the model in the actual meeting transcript supplies the factual source material, so summaries are generated from retrieved content rather than parametric memory. This retrieval-augmented approach directly reduces fabricated details, satisfying the accuracy constraint better than prompt wording tweaks.

Why this answer

Providing the meeting transcript as context grounds the model in factual data, reducing hallucinations. Few-shot prompting may help, but the primary issue is lack of source material. Adjusting temperature is less impactful.

Switching to a larger model without context may not help.

333
Multi-Selectmedium

A company is evaluating Google Cloud's generative AI offerings for enterprise use. Which TWO considerations are most important when selecting the right model deployment option?

Select 2 answers
A.Data residency
B.Developer preference
C.Model size
D.Latency requirements
E.Training time
AnswersA, D

Data residency determines where inference and stored prompts physically reside, satisfying legal and regulatory constraints on cross-border processing. For enterprises in regulated sectors, this governs whether a deployment option is permissible at all, independent of model quality or cost.

Why this answer

Data residency (A) is a critical consideration because enterprise deployments must comply with regional and regulatory requirements, and Google Cloud's Vertex AI lets you pin model endpoints and data processing to specific locations such as us-central1 or europe-west4 to satisfy sovereignty and compliance mandates. Latency requirements (D) are equally important because the deployment option determines network proximity and serving characteristics — for example, a regional endpoint close to users or a provisioned throughput configuration reduces round-trip time, which directly affects real-time generative AI application performance. Together, residency and latency drive the choice between options like global vs. regional endpoints, on-demand vs. provisioned throughput, and Vertex AI vs.

Gemini API. Developer preference (B) is subjective and does not determine the correct deployment architecture for enterprise compliance or performance needs. Model size (C) is a model characteristic rather than a deployment-selection criterion, since Vertex AI abstracts the underlying infrastructure.

Training time (E) is irrelevant to deployment selection because it concerns the model-building phase, not how the model is served in production.

Exam trap

A common misconception is that model size or training time are deployment considerations, when in fact they are model development concerns, not factors for selecting a deployment option.

334
Multi-Selectmedium

What are THREE benefits of using embedding models in a Retrieval Augmented Generation (RAG) system?

Select 3 answers
A.They compress text into dense vectors for efficient retrieval.
B.They allow the model to generate new training data automatically.
C.They enable semantic similarity search beyond keyword matching.
D.They reduce the need for fine-tuning the generator model.
E.They provide deterministic outputs for the same query.
AnswersA, C, D

Embedding models map text to fixed-length dense vectors, so retrieval compares compact numeric representations rather than raw passages. This satisfies the RAG requirement for fast, scalable nearest-neighbour lookup across a large corpus, letting the retriever fetch relevant context efficiently before generation.

Why this answer

Option A is correct because embedding models transform text into dense, fixed-length vector representations that can be indexed (e.g., in a vector database) and compared via distance metrics like cosine similarity, making retrieval fast and scalable. Option C is correct because embeddings capture semantic meaning, so a query can match documents that are conceptually related even when they share no exact keywords, which is the core advantage over lexical/BM25 keyword search. Option D is correct because a RAG pipeline supplies relevant context at inference time through retrieval, so the generator can answer domain-specific questions without being fine-tuned on that domain's data.

Option B is not a benefit of embedding models, since they do not generate training data; that is a separate capability of generative models. Option E is not correct because embedding models produce continuous vectors and retrieval is similarity-based, so outputs are not guaranteed to be deterministic across queries or runs.

Exam trap

Google Cloud often tests the misconception that embedding models are used for generating training data or ensuring deterministic outputs, when in fact their primary role is semantic compression and similarity-based retrieval, while output determinism is controlled by the generator model's parameters, not the embedding model.

335
MCQmedium

A healthcare company is building a chatbot to answer patient queries using Vertex AI Agent Builder. They want to ensure the chatbot only uses approved medical references and does not generate unverified advice. How should they configure the agent?

A.Set up grounding with a private data store containing verified medical documents
B.Enable strict safety filters to block any medical advice
C.Increase the temperature parameter to get more diverse responses
D.Use Vertex AI Model Monitoring to track answer accuracy
AnswerA

Grounding the agent with a private data store restricts responses to verified medical documents, preventing unverified advice. This satisfies the requirement that the chatbot only use approved references, since grounding anchors generation to retrieved source content rather than the model's parametric knowledge.

Why this answer

Vertex AI Agent Builder supports grounding with private data stores, which allows the agent to restrict its responses to only the information contained in the verified medical documents. This ensures the chatbot does not generate unverified advice by grounding its outputs in a trusted, curated dataset rather than relying on the model's general training data.

Exam trap

Google often tests the misconception that safety filters or monitoring tools can replace the need for explicit grounding in a private data store, when in fact only grounding ensures the model's output is strictly limited to approved content.

How to eliminate wrong answers

Option B is wrong because strict safety filters block all medical advice, which would prevent the chatbot from answering any queries at all, rather than controlling the source of the advice. Option C is wrong because increasing the temperature parameter makes responses more random and diverse, which is the opposite of what is needed for a controlled, fact-based medical chatbot. Option D is wrong because Vertex AI Model Monitoring tracks answer accuracy over time but does not prevent the model from generating unverified advice at inference time; it is a monitoring tool, not a grounding mechanism.

336
Multi-Selecteasy

Which TWO statements are true about generative AI models?

Select 2 answers
A.They are typically pre-trained on large datasets.
B.They are deterministic by design.
C.They always produce the same output for the same input.
D.They can generate new content not seen in training.
E.They require no data for training.
AnswersA, D

Pre-training on large datasets is the defining characteristic of generative models: self-supervised learning over billions of tokens or images builds the broad statistical patterns later fine-tuned for specific tasks. This satisfies the stem's requirement for a true statement about how such models are typically built.

Why this answer

Option A is correct because generative AI models such as large language models and diffusion models undergo a pre-training phase on massive, broad datasets (e.g., web text, images) before any fine-tuning or alignment, which is what gives them general-purpose capabilities. Option D is correct because these models learn the underlying probability distribution of the training data and can sample from it to produce novel outputs—new sentences, images, or code—that were not present verbatim in the training set. Option B is incorrect because generative models are inherently stochastic; sampling steps such as temperature, top-k, or top-p introduce randomness, so they are not deterministic by design.

Option C is incorrect for the same reason: with non-zero temperature or random sampling, the same input can yield different outputs across runs. Option E is incorrect because training data is essential—without a corpus to learn from, the model would have no parameters or distribution to generate from.

Exam trap

Google Cloud often tests the misconception that generative AI models are deterministic and always produce the same output for the same input, when in fact they are probabilistic by design, especially at non-zero temperature settings.

337
Multi-Selectmedium

A company wants to use GenAI to create a knowledge base assistant that can answer questions from internal documentation. They need the assistant to always have access to the latest documents without retraining. Which TWO services should they combine? (Choose 2)

Select 2 answers
A.Vertex AI Pipelines
B.Vertex AI Agent Builder
C.Vertex AI Model Garden
D.Duet AI in Google Docs
E.Vertex AI Vector Search
AnswersB, E

Vertex AI Agent Builder orchestrates the assistant, grounding responses in retrieved documents via its RAG pipeline. This satisfies the no-retraining constraint because updated documents are indexed and retrieved at query time rather than baked into model weights.

Why this answer

Vertex AI Agent Builder (B) is correct because it provides the orchestration and grounding layer for building conversational search and RAG-style assistants over enterprise content, letting the agent retrieve from a connected data store at query time rather than relying on model retraining. Vertex AI Vector Search (E) is correct because it supplies the scalable nearest-neighbor index that stores embeddings of the internal documents and returns the most relevant chunks for each question, so newly added or updated documents can be indexed and served immediately. Together they satisfy the requirement that the assistant always accesses the latest documents without retraining, since retrieval happens dynamically against the vector index.

Vertex AI Pipelines (A) is for orchestrating ML workflows such as training, tuning, and batch processing, not for serving up-to-date document retrieval to an assistant. Vertex AI Model Garden (C) is a catalog for discovering and deploying foundation models, which does not by itself provide document indexing or retrieval. Duet AI in Google Docs (D) is an end-user writing assistant inside Docs and cannot serve as the retrieval backend for a custom knowledge base assistant.

Exam trap

Generative AI Leader often tests the confusion between model fine-tuning and retrieval-augmented generation; candidates may think retraining is needed for updated documents, but the correct approach is to combine an agent framework with a vector search service for dynamic retrieval.

338
MCQhard

A machine learning engineer is defining a Vertex AI pipeline for model evaluation using the JSON representation shown. The pipeline fails with an error that the 'eval_dataset' parameter is missing. What is the issue?

A.The component 'comp-model-eval' does not accept 'eval_dataset' as input
B.The 'project' parameter should be a pipeline input, not a constant
C.The runtimeConfig parameter values must be strings, not references
D.The pipeline spec does not declare 'eval_dataset' as a pipeline input parameter
AnswerD

Vertex AI pipelines resolve parameters declared in the pipeline spec's inputs section; a value passed at runtime cannot bind to an undeclared name. Because 'eval_dataset' never appears as a pipeline input parameter, the component's reference fails resolution, producing the missing-parameter error.

Why this answer

The pipeline fails because the JSON representation of the Vertex AI pipeline does not include 'eval_dataset' in the `pipelineSpec.root.inputDefinitions.parameters` section. Without declaring it as a pipeline input parameter, the pipeline runtime cannot resolve the reference to `inputs.eval_dataset` in the component's arguments, causing the missing parameter error.

Exam trap

In Google Vertex AI pipelines, a common trap is confusing the component's input definition with the pipeline's input parameter declaration. The pipeline must explicitly declare all inputs in `pipelineSpec.root.inputDefinitions.parameters`, not just in the component spec.

How to eliminate wrong answers

Option A is wrong because the error indicates the parameter is missing, not that the component rejects it; the component definition likely does accept 'eval_dataset' as an input, but the pipeline spec fails to pass it. Option B is wrong because the 'project' parameter can be a constant or a pipeline input depending on design; making it a pipeline input is not required to fix the missing 'eval_dataset' error. Option C is wrong because runtimeConfig parameter values can be references (e.g., pipeline inputs) as long as those inputs are declared; the error is about a missing declaration, not a type mismatch.

339
MCQmedium

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?

A.Fine-tune the model on a dataset of legal summaries with annotated key entities.
B.Use top-p sampling with a low p value.
C.Increase the temperature parameter.
D.Use chain-of-thought prompting.
AnswerA

Fine-tuning on annotated legal summaries teaches the model domain-specific entity patterns — dates and party names — adjusting weights to prioritise those tokens during generation. This directly targets the factual omissions, unlike prompt engineering or retrieval alone.

Why this answer

Fine-tuning on a dataset of legal summaries with annotated key entities directly teaches the model to recognize and reproduce critical factual elements like dates and parties. This supervised learning approach adjusts the model's weights to prioritize entity extraction and accurate generation, which is the most effective method for improving factual accuracy in domain-specific tasks.

Exam trap

Google Cloud often tests the misconception that inference-time parameters (temperature, top-p) or prompting strategies can substitute for targeted training, when in fact only fine-tuning with domain-specific annotated data reliably improves factual accuracy for structured entities.

How to eliminate wrong answers

Option B is wrong because top-p sampling with a low p value restricts the vocabulary to a small set of high-probability tokens, which can reduce creativity but does not address factual accuracy or entity recall—it may even omit rare but important entities. Option C is wrong because increasing the temperature parameter adds randomness to token selection, which typically reduces factual consistency and can lead to hallucinated or missing details. Option D is wrong because chain-of-thought prompting improves reasoning steps for multi-step tasks but does not inherently enforce factual accuracy for specific entities; it relies on the model's existing knowledge, which may still miss key dates and parties without targeted training.

340
MCQhard

A company is piloting a GenAI code review assistant. Developers report that the assistant often suggests incorrect or insecure code snippets. The team wants to improve the assistant's reliability before expanding the pilot. Which approach should they prioritize?

A.Use RAG to retrieve code snippets from a database of known vulnerabilities
B.Increase the model's temperature parameter to generate more diverse suggestions
C.Switch to a larger foundation model without additional tuning
D.Fine-tune the base model on a curated dataset of secure code review examples
AnswerD

Fine-tuning on curated secure code review examples adapts the model's weights to the security-review domain, directly reducing the incorrect and insecure suggestions that undermine the pilot. This targets the reliability constraint in the stem more effectively than prompt tweaks, which cannot durably embed secure coding patterns.

Why this answer

Fine-tuning on a curated dataset of secure code review examples directly addresses the assistant's tendency to suggest incorrect or insecure code by adapting the model's behavior to the specific patterns and standards of secure coding. Unlike retrieval or parameter adjustments, this approach modifies the model's weights to prioritize security and correctness in its outputs, making it the most effective method for improving reliability in a targeted domain.

Exam trap

Google exams often test the misconception that adding more data (via RAG) or increasing model size (larger foundation model) automatically improves output quality, when in fact targeted fine-tuning on domain-specific, high-quality data is required to correct systematic errors in generative outputs.

How to eliminate wrong answers

Option A is wrong because RAG retrieves code snippets from a database of known vulnerabilities, which would surface insecure examples rather than correct ones, potentially worsening the assistant's suggestions. Option B is wrong because increasing the temperature parameter makes the model more random and less deterministic, which would increase the likelihood of generating diverse but even less reliable and more insecure code. Option C is wrong because switching to a larger foundation model without tuning does not guarantee improved security or correctness; larger models can still produce insecure code if not specifically aligned with secure coding practices, and they may introduce higher latency and cost without addressing the root cause.

341
MCQmedium

A support team is using a generative AI model to answer customer questions from an internal knowledge base. They notice that when the same question is asked twice, the model sometimes gives different answers, and occasionally includes details not found in the knowledge base. They want to reduce variability and keep responses closer to the source content. Which action should they take?

A.Increase the temperature parameter to encourage more creative responses.
B.Decrease the temperature parameter and ground responses with retrieved knowledge base content.
C.Switch to a larger model without changing the prompt or parameters.
D.Increase the maximum output tokens so the model has more room to explain its reasoning.
AnswerB

Lowering temperature reduces randomness so repeated prompts produce more consistent answers, while grounding with retrieved internal content constrains the model to the provided facts. Together they address both symptoms: variable wording and invented details. This is the standard approach for support assistants that must stay faithful to an approved knowledge base.

Why this answer

Reducing temperature makes sampling more deterministic, so identical prompts tend to yield consistent answers. Grounding the model with retrieved knowledge base passages supplies authoritative context and reduces hallucinated details. Used together, these changes directly target both observed issues: inconsistent responses and content not present in the source material.

Exam trap

The trap here is thinking a bigger model or longer output solves hallucination, when the real levers are sampling temperature and providing grounded source content.

342
MCQmedium

A data scientist observes that their text generation model frequently uses gender stereotypes when generating job descriptions. Which responsible AI practice should be applied FIRST to address this issue?

A.Fine-tune the model on a dataset with more male-dominated job descriptions
B.Apply SynthID watermarking to the generated content
C.Increase the number of safety filters to block all gender-related content
D.Evaluate the model's outputs for bias using a diverse test set that includes gender-neutral prompts
AnswerD

Measuring bias first establishes whether and where stereotypes appear, using gender-neutral prompts across a diverse test set. This diagnostic step precedes mitigation, since debiasing, prompt engineering or fine-tuning cannot be validated without baseline evidence identifying the specific stereotyped outputs to correct.

Why this answer

The first step in addressing model bias is to evaluate and measure the bias using a diverse, representative test set. This diagnostic step identifies the specific types and severity of gender stereotypes before any mitigation technique is applied, ensuring that subsequent interventions are targeted and effective. Without this evaluation, any corrective action risks being misapplied or introducing new biases.

Exam trap

Google often tests the principle that evaluation must precede mitigation, tempting candidates to jump to a corrective action (like fine-tuning or filtering) without first diagnosing the problem.

How to eliminate wrong answers

Option A is wrong because fine-tuning on more male-dominated job descriptions would reinforce, not reduce, gender stereotypes by amplifying the existing skew in the training data. Option B is wrong because SynthID watermarking is a technique for tracking AI-generated content provenance, not for detecting or mitigating bias in model outputs. Option C is wrong because blocking all gender-related content is an overly aggressive filter that would remove legitimate, neutral gender references and degrade the model's utility, while failing to address the underlying bias in the model's learned representations.

343
MCQmedium

A financial services firm is deploying a generative AI model to answer customer questions about investment products. They need to ensure that the model's responses comply with regulatory requirements and do not provide personalized financial advice. Which approach should they take?

A.Use a system prompt that instructs the model to avoid giving personalized advice and to include disclaimers.
B.Fine-tune the model on a dataset of compliant financial conversations.
C.Deploy the model with a high temperature to encourage diverse responses.
D.Limit the model's responses to a predefined set of FAQs.
AnswerA

A system prompt sets the overall behavior and constraints for the model. By instructing the model to avoid personalized advice and include disclaimers, the firm can enforce compliance at the prompt level. This is a flexible and immediate way to guide the model's responses without modifying the model itself.

Why this answer

Using a system prompt is an effective way to set guardrails for the model's behavior. By explicitly instructing the model to avoid personalized financial advice and to include necessary disclaimers, the firm can help ensure compliance with regulations. This approach is flexible and can be updated as regulations change, unlike fine-tuning which requires retraining.

Exam trap

The trap here is assuming that fine-tuning is necessary for compliance, when in fact a well-designed system prompt can enforce behavioral constraints more directly and flexibly.

344
MCQhard

A company wants to ensure only authorized users can deploy gen AI models. The current policy allows all users in the domain. What is the best practice to restrict deployment?

A.Remove the binding
B.Add more roles
C.Add condition to restrict deployment
D.Use organizational policies
AnswerC

Conditions in IAM allow policies like requiring a specific IP range or MFA for deployment actions.

Why this answer

Adding a condition to restrict deployment (e.g., using IAM conditions in Google Cloud's attribute-based access control) allows you to limit model deployment to only authorized users based on attributes like user role, project, or resource tags. This is the best practice because it enforces fine-grained access control without removing existing permissions or adding unnecessary roles, directly addressing the requirement to restrict deployment while maintaining existing user access.

Exam trap

Google Cloud often tests the misconception that organizational policies (Option D) are the catch-all for access control, but they are designed for resource-level governance (e.g., disabling service creation), not for user-specific deployment restrictions, which require IAM conditions.

How to eliminate wrong answers

Option A is wrong because removing the binding (e.g., an IAM policy binding or role assignment) would revoke all deployment permissions for all users, which is too restrictive and would break legitimate use cases. Option B is wrong because adding more roles does not inherently restrict deployment; it only grants additional permissions, potentially widening the attack surface and violating the principle of least privilege. Option D is wrong because organizational policies (e.g., organization policies in GCP or Azure Policy) are typically used for compliance and governance at the resource hierarchy level, not for fine-grained, user-specific deployment restrictions; they lack the granularity to target individual authorized users.

345
MCQmedium

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.Apply reinforcement learning from human feedback (RLHF)
B.Increase the amount of training data
C.Lower the top_k sampling value
D.Increase the temperature parameter
AnswerA

Reinforcement learning from human feedback directly optimises the model against human preference rankings, aligning outputs with helpfulness rather than politeness alone. This satisfies the stem's constraint of improving response quality without sacrificing helpfulness, since reward signals penalise unhelpful replies and reinforce substantive ones during fine-tuning.

Why this answer

RLHF directly addresses the misalignment between the model's training objective (e.g., predicting the next token) and the desired outcome (helpful, not just polite). By using human feedback to train a reward model, the system learns to optimize for response quality and helpfulness, reducing sycophantic or overly polite but uninformative outputs.

Exam trap

Google Cloud often tests the misconception that hyperparameter tuning (temperature, top_k) or more data alone can fix alignment issues, when in fact only RLHF directly optimizes for human-judged helpfulness and quality.

How to eliminate wrong answers

Option B is wrong because simply increasing training data does not correct the model's tendency toward polite but unhelpful responses; it may reinforce existing patterns without addressing alignment. Option C is wrong because lowering top_k sampling reduces diversity by restricting token choices to the top k most likely tokens, which can make responses even more generic and less helpful, not more substantive. Option D is wrong because increasing the temperature parameter increases randomness in token selection, which can lead to less coherent or more erratic responses, not more helpful ones.

346
MCQeasy

A marketing team wants to use a generative AI model to create product descriptions from a short list of features. They need the output to be creative but also follow a specific brand voice. Which approach should they take?

A.Use prompt engineering with a foundation model, providing examples of the desired tone and style.
B.Fine-tune a foundation model on a large dataset of existing product descriptions.
C.Deploy the model without any customization and rely on its default output.
D.Train a custom model from scratch using the team's product catalog.
AnswerA

Prompt engineering allows the team to guide the model's output by including instructions and examples in the prompt, achieving the desired creativity and brand voice without training. This is efficient and flexible, enabling quick iteration. Foundation models like Gemini are designed to follow such prompts effectively.

Why this answer

Prompt engineering is the most suitable approach because it allows the team to specify the desired tone, style, and content directly in the prompt. By providing examples and clear instructions, they can steer the foundation model to produce creative yet on-brand descriptions. This method is fast, cost-effective, and requires no model training.

Exam trap

The trap here is assuming that any customization requires fine-tuning or training, overlooking the power of prompt engineering for style adaptation.

347
MCQhard

A company is using a fine-tuned LLM for generating technical support responses. After deployment, they notice that the model sometimes produces incorrect but plausible-sounding answers (hallucinations). They have a large repository of verified technical manuals. Which technique would BEST reduce hallucinations while minimizing the need for additional training?

A.Increase the temperature parameter to make the model more conservative
B.Use a larger base model with a longer context window
C.Fine-tune the model again with a larger dataset of verified responses
D.Implement RAG by indexing the verified manuals and retrieving relevant sections during inference
AnswerD

RAG grounds generation in retrieved passages from the verified manuals, so the model conditions its output on authoritative text rather than parametric memory alone. This reduces plausible-sounding fabrications while requiring only indexing, not additional training.

Why this answer

RAG with the verified manuals as the knowledge base allows the model to ground its responses in authoritative sources without retraining. Fine-tuning might still hallucinate if the data is insufficient. Prompt engineering alone cannot eliminate hallucinations.

Using a larger context window may help but is not as reliable as RAG.

348
Multi-Selecteasy

Which THREE components are core to a typical Retrieval Augmented Generation (RAG) system?

Select 3 answers
A.Classifier
B.Vector database
C.Embedding model
D.Rewriter
E.Large language model
AnswersB, C, E

A vector database stores embedded representations of source documents and performs similarity search, retrieving the passages most relevant to the incoming query. This retrieved context is then supplied to the language model, grounding its response in external knowledge and satisfying RAG's requirement for accurate, up-to-date retrieval beyond the model's training data.

Why this answer

In a typical RAG system, the vector database (B) is core because it stores embedded representations of documents and enables efficient similarity search to retrieve relevant context for a query. The embedding model (C) is also essential, as it converts both the source documents and the user query into dense vector representations that allow semantic matching. The large language model (E) is the third core component, since it consumes the retrieved context along with the query to generate a grounded, natural-language answer.

By contrast, a classifier (A) and a rewriter (D) are optional add-ons sometimes used for query routing or query reformulation, but they are not fundamental building blocks of a standard RAG pipeline.

Exam trap

Google Cloud often tests the distinction between core mandatory components (embedding model, vector DB, LLM) and optional auxiliary components (classifier, rewriter, reranker) to see if candidates understand the minimal viable RAG architecture versus extended pipelines.

349
Multi-Selecteasy

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

Select 2 answers
A.Adjusting the temperature
B.Modifying the top_k value
C.Fine-tuning on a dataset with desired style
D.Prompt engineering with style instructions
E.Changing the top_p value
AnswersC, D

Fine-tuning adapts the model to a specific style.

Why this answer

Fine-tuning on a dataset that embodies the desired style directly adjusts the model's weights, making it consistently produce outputs with that specific tone and style. This is a fundamental technique for customizing generative models, as it teaches the model the exact patterns, vocabulary, and stylistic nuances present in the training data.

Exam trap

Google Cloud often tests the distinction between sampling parameters (temperature, top_k, top_p) that control output randomness and diversity versus training or conditioning techniques (fine-tuning, prompt engineering) that directly influence style and tone, leading candidates to incorrectly select sampling parameters as style-control methods.

350
MCQmedium

A media company is using a generative AI model to create short video scripts. They notice that the model sometimes produces content that is factually incorrect or nonsensical. Which term best describes this phenomenon?

A.Hallucination
B.Bias
C.Underfitting
D.Overfitting
AnswerA

Hallucination refers to a generative AI model producing confident but incorrect or nonsensical information. In this scenario, the model generates factually incorrect script content, which is a classic example of hallucination. This occurs because the model predicts likely sequences without grounding in verified facts, leading to plausible-sounding errors.

Why this answer

Hallucination is the term for generative AI producing incorrect or nonsensical information that appears confident. In this scenario, the model's factually incorrect script content is a direct example. Other options like overfitting, bias, or underfitting describe different issues and do not capture the specific problem of generating false but plausible text.

Exam trap

The trap here is conflating hallucination with bias or overfitting, which are distinct issues with different causes and mitigations.

351
MCQeasy

A developer is configuring a Vertex AI Agent Builder agent to use grounding. They receive the following error when calling the API: `404 Not Found: Data store resource not found.` What is the most likely cause?

A.The data store was just created and is not yet propagated
B.The agent is not authenticated to access the data store
C.The data store has not been created in the specified project
D.The grounding configuration is missing required permissions
AnswerC

Grounding requires an existing Vertex AI Search data store to retrieve from. If the API call references a data store ID that does not exist in the specified project, the request fails immediately, since there is no index to query for grounding content.

Why this answer

The error message indicates that the data store resource cannot be found in the specified Google Cloud project. Vertex AI Agent Builder requires the data store to exist and be fully provisioned in the same project as the agent before grounding can be configured. If the data store ID or project ID is incorrect, or the data store has not been created, the API will return a 'not found' error.

Exam trap

This exam often tests the distinction between resource existence errors and permission errors; the trap here is that candidates confuse a 'not found' error (404) with an authentication or permission error (403/401), leading them to select options B or D instead of recognizing the missing resource.

How to eliminate wrong answers

Option A is wrong because a newly created data store propagates within seconds to minutes, and the API would return a 'resource not ready' or 'propagation in progress' error, not a 'not found' error. Option B is wrong because authentication errors (e.g., missing IAM permissions) produce a 403 Forbidden or 401 Unauthorized response, not a 'not found' error. Option D is wrong because missing permissions for grounding configuration would result in a permissions error (403), not a resource-not-found error.

352
MCQhard

A bank is piloting a Gemini-powered assistant that summarizes internal audit reports. Compliance requires that prompts and responses never leave the company's chosen Google Cloud region, that customer-managed encryption keys protect data at rest, and that no data is used to improve Google's models. Which combination of Vertex AI capabilities should the team configure to meet these requirements?

A.Vertex AI with CMEK enabled and a VPC Service Controls perimeter, relying on the perimeter to guarantee regional data processing.
B.Vertex AI with a global endpoint, default Google-managed encryption keys, and a prompt instruction telling the model not to retain any input.
C.Gemini accessed through AI Studio with billing enabled, plus a Cloud Armor policy restricting access to the bank's IP ranges.
D.Vertex AI with data residency controls, CMEK through Cloud KMS, and the documented data governance guarantee that customer data is not used to train Google's foundation models.
AnswerD

Vertex AI supports selecting a region for processing and storage, integrates with Cloud KMS so customer-managed encryption keys protect data at rest, and its terms state that customer data is not used to improve Google's foundation models. Together these three controls directly satisfy the residency, encryption, and no-training requirements the bank's compliance team imposed.

Why this answer

Meeting all three compliance constraints requires regional processing for residency, Cloud KMS customer-managed keys for encryption at rest, and reliance on Vertex AI's data governance commitments that customer data is not used to train Google's foundation models. Network or prompt-level controls cannot substitute for these platform-level guarantees.

Exam trap

The trap here is treating VPC Service Controls or prompt instructions as substitutes for data residency configuration and model training guarantees, which they are not.

353
MCQeasy

A retail company wants to build an internal assistant that answers employee HR policy questions using their existing policy documents, without exposing sensitive data to external APIs. They need a managed Google Cloud service that supports retrieval-augmented generation (RAG) and integrates with their existing data in Cloud Storage. Which Google Cloud service should they use?

A.Document AI
B.Dialogflow CX
C.Cloud Natural Language API
D.Vertex AI Search and Conversation
AnswerD

Vertex AI Search and Conversation is a managed Google Cloud service designed to build enterprise search and conversational AI applications with RAG. It ingests documents from Cloud Storage, BigQuery, and other sources, and provides grounding to reduce hallucinations, all within Google Cloud's secure environment. This matches the requirement for an internal assistant using existing policy documents without exposing data externally.

Why this answer

Vertex AI Search and Conversation is the only Google Cloud service listed that provides a managed RAG solution for building conversational assistants grounded in enterprise documents. It securely integrates with Cloud Storage and other data sources, enabling the company to deploy an internal HR assistant without exposing sensitive data externally.

Exam trap

The trap here is assuming that any conversational AI service can ground responses in enterprise documents, when only Vertex AI Search and Conversation provides native RAG integration.

354
MCQeasy

A sales team wants to use Gemini for Google Workspace to draft emails in Gmail. Which feature should they enable to generate full email drafts from a brief prompt?

A.Translate
B.Smart Reply
C.Help me write
D.Smart Compose
AnswerC

Help me write generates complete draft content in Gmail from a short prompt, producing full emails the sales team can then refine. This directly satisfies the stem's requirement to generate full email drafts from a brief prompt within Gemini for Google Workspace.

Why this answer

'Help me write' is the specific Gemini for Google Workspace feature designed to generate full email drafts from a brief prompt. It leverages the underlying large language model to compose complete, context-aware email content, unlike features that only suggest short phrases or replies.

Exam trap

The trap here is that candidates often confuse 'Smart Compose' (which only suggests short text completions) with the full-draft generation capability of 'Help me write', leading them to select the wrong feature.

How to eliminate wrong answers

Option A is wrong because 'Translate' is a language translation feature, not a generative drafting tool; it converts existing text from one language to another. Option B is wrong because 'Smart Reply' only suggests short, pre-generated response phrases (e.g., 'Yes, sounds good') based on the email content, not full drafts from a prompt. Option D is wrong because 'Smart Compose' provides inline word and phrase suggestions as you type, but does not generate a complete email draft from a brief prompt.

355
MCQeasy

A marketing team is using a generative AI model to create ad copy. They notice that the outputs are often too creative and sometimes include exaggerated claims. They want to reduce creativity and make the outputs more predictable and factual. Which parameter should they adjust?

A.Max output tokens
B.Top-p
C.Top-k
D.Temperature
AnswerD

Temperature directly controls the randomness of the model's predictions. Lowering the temperature makes the model more deterministic and less creative, which is exactly what the team needs to reduce exaggerated claims and make outputs more predictable and factual. It is the most straightforward parameter to adjust for this purpose.

Why this answer

Temperature is the parameter that scales the logits before softmax, directly affecting the probability distribution of the next token. A lower temperature makes the distribution sharper, so the model chooses more likely tokens, resulting in more predictable and less creative outputs. This aligns with the team's goal of reducing exaggerated claims and increasing factual consistency.

Exam trap

The trap here is confusing temperature with other sampling parameters like top-p or top-k, which also affect randomness but are not the primary control for creativity.

356
MCQmedium

A media company wants to generate short video clips from text prompts for social media ads. The creative team needs a managed Google Cloud service that produces video from descriptive prompts and offers controls for aspect ratio and duration, without managing GPU infrastructure. Which offering should they use?

A.Vertex AI Chirp
B.Vertex AI Veo
C.Vertex AI Imagen
D.Cloud Vision API
AnswerB

Veo is Google's generative video model available through Vertex AI, capable of producing short video clips from text prompts with controls over characteristics such as aspect ratio and duration. Because it is offered as a managed model on Vertex AI, the creative team avoids provisioning or managing GPUs. This directly matches the requirement to generate video from descriptive prompts in a managed fashion.

Why this answer

The team needs prompt-driven video generation delivered as a managed service, which is what Veo on Vertex AI provides, including controls over clip attributes and no infrastructure management. Imagen produces still images, Chirp targets speech, and Cloud Vision API analyzes existing images, so none of the alternatives can generate video content for the social ad campaign.

Exam trap

The trap here is assuming any Google generative media model produces video, when Imagen is image-only and Veo is the model purpose-built for text-to-video generation.

357
MCQeasy

According to Google's AI Principles, AI systems should be 'accountable to people.' What does this principle primarily require?

A.AI systems should always have a human monitor present during operation
B.The AI system should be able to explain all its decisions to end users
C.Organizations should provide avenues for feedback and recourse when AI systems cause harm
D.AI systems should be designed to maximize shareholder value
AnswerC

Google's accountability principle requires mechanisms ensuring AI systems remain answerable to those affected, so providing feedback channels and recourse when harm occurs directly satisfies this. It addresses the human-oversight dimension rather than transparency, safety or fairness alone, making organisations responsible for remediating real-world impacts their systems produce.

Why this answer

Google's AI principle of being 'accountable to people' means that AI systems should be subject to human oversight, and organizations should provide mechanisms for feedback, appeal, and redress when AI causes harm. This includes having clear lines of responsibility and the ability to challenge AI decisions. Providing avenues for feedback and recourse is a direct manifestation of accountability.

Exam trap

Generative AI Leader often tests the confusion between accountability and explainability, leading candidates to choose 'explain all decisions' when the question asks about accountability and recourse.

How to eliminate wrong answers

Option A is wrong because while human oversight is important, the principle does not require a human monitor to be physically present at all times; it requires accountability structures. Option B is wrong because explainability is a separate principle (be interpretable), not the primary requirement of accountability. Option D is wrong because maximizing shareholder value is a business objective, not an ethical AI principle, and can conflict with accountability.

358
MCQeasy

A small marketing agency with 10 employees is exploring generative AI to create personalized ad copy for their clients. They have a limited budget of $5,000 per month and no in-house machine learning expertise. The CEO wants to have a working prototype within two weeks to show to a potential client. The agency's data is sensitive and cannot be shared with unauthorized third parties. Which strategy should they pursue?

A.Hire a team of data scientists to fine-tune an open-source model
B.Use a third-party platform that requires on-premise deployment
C.Build a custom foundation model from scratch using their client data
D.Use Google's Generative AI Studio with pre-trained models via API
AnswerD

Pre-trained models accessed via API deliver a working prototype within the two-week deadline, requiring no in-house machine learning expertise and fitting the $5,000 monthly budget. Sensitive client data stays within the agency's control rather than being used to train third-party models.

Why this answer

Google's Generative AI Studio provides pre-trained models via API, allowing the agency to quickly prototype personalized ad copy without needing in-house ML expertise. This approach respects the $5,000 budget (API usage is cost-effective for small-scale prototyping), meets the two-week timeline (no training required), and ensures data privacy by using Google Cloud's data governance controls (data is not shared with unauthorized third parties).

Exam trap

Google Cloud often tests the misconception that building or fine-tuning a model from scratch is the only way to achieve customization, when in fact pre-trained APIs with prompt engineering or lightweight fine-tuning can meet business constraints like budget, timeline, and expertise.

How to eliminate wrong answers

Option A is wrong because hiring a team of data scientists to fine-tune an open-source model would exceed the $5,000 monthly budget and the two-week timeline, and the agency lacks the in-house expertise to manage such a team. Option B is wrong because requiring on-premise deployment contradicts the agency's lack of ML expertise and limited budget; on-premise solutions typically involve high upfront costs and ongoing maintenance. Option C is wrong because building a custom foundation model from scratch is prohibitively expensive (often millions of dollars), requires vast amounts of data and compute resources, and cannot be completed within two weeks or within a $5,000 budget.

359
MCQhard

A company is deploying a generative AI application that must comply with GDPR's right to explanation. The application must be able to justify its decisions. Which model or approach provides the MOST inherent interpretability?

A.Use Gemini 1.5 Pro with a system prompt asking for explanations
B.Use a smaller, simpler model that is inherently more interpretable, such as a logistic regression or decision tree
C.Use Retrieval-Augmented Generation (RAG) to ground responses in source documents
D.Use PaLM 2 with prompt engineering to provide step-by-step reasoning
AnswerB

Logistic regression and decision trees expose their decision logic directly through coefficients or split rules, so each prediction can be traced and justified to a regulator. This satisfies GDPR's right to explanation, which opaque deep generative models cannot provide inherently.

Why this answer

Smaller, simpler models are inherently more interpretable. Large black-box models (Gemini, PaLM) are difficult to explain. RAG improves factual grounding but not interpretability of the model's reasoning.

Prompting does not make the model's internal logic transparent.

360
MCQmedium

A security team wants to prevent prompt injection attacks on their generative AI application hosted on Vertex AI. Which best practice should they implement?

A.Use a custom model instead of a foundation model
B.Disable all logging
C.Use a private endpoint
D.Implement input validation and output filtering
AnswerD

Input validation strips or neutralises injected instructions before they reach the model, while output filtering catches unsafe or manipulated responses. Together they directly counter prompt injection, satisfying the security team's requirement to prevent attacks on the Vertex AI application.

Why this answer

Prompt injection attacks exploit the model's inability to distinguish between user instructions and untrusted input. Implementing input validation (e.g., sanitizing special characters or known injection patterns) and output filtering (e.g., using a classifier to detect and block malicious responses) directly mitigates this risk by controlling what the model processes and returns. On Vertex AI, this can be enforced via custom safety attributes or integration with services like Cloud DLP for data loss prevention.

Exam trap

The trap here is that candidates confuse network-level security controls (like private endpoints) with application-layer security controls, assuming that restricting network access alone can prevent content-based attacks like prompt injection.

How to eliminate wrong answers

Option A is wrong because using a custom model does not inherently prevent prompt injection; the vulnerability exists in any model that processes untrusted input, regardless of whether it is a foundation model or a custom model. Option B is wrong because disabling logging removes visibility into attack attempts and compliance auditing, but does not prevent the injection itself; logging is a detection mechanism, not a prevention control. Option C is wrong because a private endpoint (e.g., Private Service Connect) secures network traffic by keeping it within a VPC, but it does not inspect or sanitize the content of prompts or outputs, leaving the application vulnerable to injection attacks at the application layer.

361
Multi-Selectmedium

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

Select 2 answers
A.Providing few-shot examples of ideal summaries
B.Using a larger, more capable model (e.g., PaLM 2 instead of PaLM)
C.Increasing max output length significantly
D.Setting top_p to 0.1
E.Adjusting temperature to 0.8
AnswersA, B

Few-shot examples steer the model by conditioning it on concrete input-output pairs, so it infers the desired summary structure, length and tone directly from the prompt. This satisfies the stem's demand for higher output quality on complex documents without retraining, unlike prompt-only instructions that leave format ambiguous.

Why this answer

Option A is correct because few-shot prompting supplies the model with concrete examples of the desired summary format, style, and level of detail, which conditions the model to reproduce that structure and improves fidelity when summarizing complex documents. Option B is correct because a larger, more capable model such as PaLM 2 has greater capacity to comprehend long, intricate documents and generate more accurate, coherent summaries than a smaller predecessor like PaLM. Option C is not appropriate because increasing max output length only allows longer responses; it does not improve summary quality and can even encourage verbosity rather than conciseness.

Option D is not appropriate because setting top_p to 0.1 sharply narrows nucleus sampling, reducing diversity and making the output more rigid without addressing summarization quality. Option E is not appropriate because raising temperature to 0.8 increases randomness, which tends to introduce inaccuracies and inconsistency rather than improve the quality of document summaries.

Exam trap

A common misconception is that increasing output length or adjusting sampling parameters like top_p and temperature universally improves output quality, when in fact these parameters must be tuned carefully for the specific task and can degrade summary quality if misapplied.

362
MCQeasy

What is the fundamental difference between a foundation model and a fine-tuned model?

A.A foundation model is pre-trained on a large, diverse corpus; a fine-tuned model is adapted from a foundation model on a specific domain or task
B.Foundation models only generate text; fine-tuned models can generate images
C.Foundation models are open-source; fine-tuned models are proprietary
D.Foundation models require no inference infrastructure; fine-tuned models do
AnswerA

The axis of difference is training provenance: a foundation model is pre-trained from scratch on a broad, diverse corpus, whereas a fine-tuned model starts from that foundation and is further adapted on domain- or task-specific data, shifting its behaviour toward the target use case.

Why this answer

A foundation model is pre-trained on broad data for general tasks, while a fine-tuned model is further trained on a specific dataset to specialize for a particular use case.

363
Multi-Selectmedium

A team is designing prompts for a generative AI model to summarize legal documents. They want to improve the quality and relevance of the summaries. Which two prompt engineering best practices should they follow? (Choose two.)

Select 2 answers
A.Keep the prompt as short as possible to avoid confusing the model.
B.Include a few examples of well-written summaries in the prompt.
C.Ask the model to think step by step before providing the summary.
D.Provide clear and specific instructions about the desired summary length and focus.
E.Use the highest possible temperature setting to encourage creativity.
AnswersB, D

Few-shot prompting with examples demonstrates the desired format and style, helping the model generalize. For legal summaries, examples can show how to extract key clauses and maintain neutrality. This technique improves consistency and accuracy without fine-tuning, making it a best practice for specialized tasks.

Why this answer

Clear instructions and few-shot examples are proven prompt engineering techniques that enhance output quality. They reduce ambiguity and guide the model toward the desired format and content. Other options like high temperature or step-by-step reasoning are not appropriate for precise summarization tasks.

Exam trap

The trap here is thinking that creative settings or minimal prompts improve specialized tasks like legal summarization.

364
MCQeasy

A company wants to deploy a chatbot for customer support. To comply with the AI Principle of being 'accountable to people', which practice should they implement?

A.Provide human review for high-stakes decisions made by the chatbot
B.Allow the chatbot to escalate all conversations to human agents
C.Ensure the chatbot can override human agents' decisions
D.Disable logging of chatbot interactions to protect user privacy
AnswerA

Human review for high-stakes decisions directly satisfies accountability by ensuring a person remains answerable for consequential outcomes, rather than the chatbot operating unchecked. This mechanism aligns with Microsoft's accountability principle, which requires meaningful human oversight and governance of AI systems, particularly where errors could materially affect customers.

Why this answer

Providing human oversight for high-stakes decisions ensures accountability, aligning with Google's AI Principle that AI systems should be accountable to people.

365
MCQmedium

A company wants to evaluate the ROI of their GenAI content creation tool. Which metric is LEAST useful for assessing productivity gains?

A.Volume of content produced per week
B.Average time to create a piece of content
C.Content uniqueness score compared to competitors
D.Reduction in time from draft to final approval
AnswerC

ROI for a content creation tool hinges on time saved, output volume, and cost per asset. Content uniqueness versus competitors measures differentiation, not internal productivity, so it contributes least to assessing productivity gains from the GenAI tool.

Why this answer

Content uniqueness score compared to competitors is a measure of originality or differentiation, not a direct metric for productivity gains. Productivity in GenAI content creation focuses on efficiency and throughput, such as volume, speed, and cycle time reduction, not competitive benchmarking.

Exam trap

Google often tests the distinction between productivity metrics (efficiency/throughput) and quality or differentiation metrics, leading candidates to mistakenly select a quality metric like uniqueness as relevant to productivity gains.

How to eliminate wrong answers

Option A is wrong because volume of content produced per week directly measures output quantity, a core productivity metric for GenAI tools that automate generation. Option B is wrong because average time to create a piece of content directly measures efficiency gains, a primary productivity indicator. Option D is wrong because reduction in time from draft to final approval measures workflow acceleration, a key productivity benefit of GenAI in content pipelines.

366
MCQeasy

A marketing team is using Google Cloud's Vertex AI Studio to generate product descriptions. They want the model to produce output in a very specific JSON format so it can be parsed by their downstream application. Which feature should they use to reliably constrain the model's output to that structure?

A.Adding a system instruction that says 'output JSON'
B.Controlled generation with a response schema
C.Increasing the temperature parameter to 1.0
D.Setting the top-P parameter to 0
AnswerB

Controlled generation lets you supply a response schema (for example, an OpenAPI-style schema) that the model must follow, guaranteeing the output is valid JSON matching the defined fields. This directly addresses the need for a reliably parseable structure without post-processing, and it is a native capability in Vertex AI Studio for Gemini models.

Why this answer

Constrained decoding through a response schema forces the model's tokens to conform to a predefined structure, so the output is guaranteed to be valid JSON with the expected fields. Prompt-level instructions and sampling parameters only influence content probabilistically and cannot guarantee parseable structure. For integration with downstream systems that require strict formatting, the schema-based approach is the only reliable choice.

Exam trap

The trap here is assuming that simply instructing the model to 'return JSON' in a prompt is sufficient to guarantee valid, parseable output.

367
MCQhard

A media company is deploying a generative AI application that must handle bursts of traffic while keeping costs predictable. They want to pay only for the compute resources actually consumed and avoid managing infrastructure. Which Google Cloud option best matches these requirements for serving a foundation model?

A.Host the model on Cloud Run with a GPU-enabled container
B.Use Vertex AI's pay-as-you-go, on-demand model serving endpoints
C.Reserve a fixed number of dedicated prediction nodes in Vertex AI
D.Provision a dedicated GPU cluster on Compute Engine with autoscaling node pools
AnswerB

On-demand serving bills per request or per token and automatically handles capacity, so bursts are absorbed without pre-provisioning and there is no infrastructure to manage. This aligns with both predictable, consumption-based cost and the desire to avoid operational burden. It is the standard serverless path for serving foundation models on Google Cloud.

Why this answer

On-demand serving in Vertex AI charges based on actual consumption and scales automatically, so traffic bursts are handled without provisioning capacity in advance. This satisfies both the cost predictability and the no-infrastructure-management requirements. Dedicated nodes and self-managed clusters bill for reserved capacity regardless of use, and container platforms reintroduce operational responsibilities that the company wants to avoid.

Exam trap

The trap here is equating autoscaling with pay-per-use, when autoscaled clusters still charge for provisioned capacity during idle periods.

368
MCQmedium

A company wants to ground Gemini responses with real-time Google Search results to improve accuracy of current events. Which feature enables this?

A.BigQuery ML
B.Vertex AI Vector Search
C.Gemini API function calling
D.Google Search grounding
AnswerD

Google Search grounding connects Gemini to live Google Search results, injecting current web data into the model's context to improve factual accuracy on recent events. This satisfies the stem's requirement for real-time grounding, unlike static training data or retrieval from private corpora.

Why this answer

Google Search grounding connects Gemini to live search results to reduce hallucinations and provide up-to-date information.

369
Multi-Selectmedium

Which TWO factors are most critical when deciding to build a custom GenAI model vs. using a pre-built API? (Select two.)

Select 2 answers
A.Availability of in-house ML talent
B.Need for domain-specific knowledge
C.Number of layers in the model
D.Brand reputation of the model provider
E.Volume of expected inference requests
AnswersA, B

Building a custom model requires significant ML expertise; without it, using an API is more practical.

Why this answer

Building a custom GenAI model requires specialized machine learning expertise, including proficiency in frameworks like PyTorch or TensorFlow, experience with distributed training (e.g., using Horovod or DeepSpeed), and the ability to fine-tune architectures like transformers. Without in-house ML talent, the organization cannot effectively manage data curation, hyperparameter tuning, or model evaluation, making a pre-built API the more viable choice. This factor directly determines whether the organization has the technical capacity to undertake custom development.

Exam trap

Google Cloud often tests the distinction between strategic business factors (like in-house talent and domain specificity) versus operational or vendor-related details (like model layers, brand reputation, or request volume) to see if candidates can separate high-level decision drivers from low-level implementation concerns.

370
MCQhard

A data scientist is fine-tuning a large language model for a legal document summarization task. The dataset contains only 500 examples, and the model must not forget its general language capabilities. Which fine-tuning method is most suitable?

A.Retraining the model from scratch on the legal dataset
B.Adapter-based fine-tuning using LoRA
C.In-context learning with a few examples in the prompt
D.Full fine-tuning of all model parameters
AnswerB

LoRA freezes the pretrained weights and injects small trainable low-rank matrices into the attention layers, updating only a fraction of parameters. With just 500 examples, this drastically reduces overfitting risk and preserves the model's general language capabilities, unlike full fine-tuning which would catastrophically forget them.

Why this answer

With only 500 examples and a requirement to preserve general language capabilities, parameter-efficient fine-tuning via LoRA adapters is ideal. LoRA freezes the base model weights and trains small low-rank matrices injected into attention layers, so the model retains its pretrained knowledge while learning the legal summarization task. It also dramatically reduces GPU memory and training time versus full fine-tuning.

Exam trap

Generative AI Leader often tests the misconception that 'fine-tuning' always means updating all weights; candidates miss that LoRA is a fine-tuning method, not a prompting technique, and confuse it with in-context learning.

How to eliminate wrong answers

Option A is wrong because retraining from scratch on 500 examples would catastrophically overfit and discard the pretrained general language capabilities the task requires. Option C is wrong because in-context learning does not modify model weights and is not fine-tuning; it also cannot reliably encode a specialized legal summarization style across many documents. Option D is wrong because full fine-tuning updates all parameters, risks catastrophic forgetting of general language ability, and is impractical with only 500 examples and typical GPU budgets.

371
MCQeasy

An organization wants to ensure their generative AI application does not produce toxic or harmful content. Which Vertex AI feature should they implement?

A.Safety filters and content moderation
B.Explainable AI
C.AutoML
D.Model Monitoring
AnswerA

Safety filters and content moderation apply configurable thresholds that block or flag harmful categories such as hate speech, harassment and dangerous content in both prompts and responses, directly enforcing the requirement that the application not emit toxic output.

Why this answer

Safety filters and content moderation in Vertex AI allow organizations to define and enforce policies that block or flag toxic, harmful, or inappropriate content generated by the model. This feature uses pre-built and customizable classifiers to evaluate prompts and responses against safety attributes (e.g., hate speech, harassment, sexually explicit content) before returning them to the user, directly addressing the requirement to prevent harmful outputs.

Exam trap

Google Cloud often tests the distinction between features that *analyze* model behavior (like Explainable AI or Model Monitoring) versus features that *actively enforce* safety policies (like Safety Filters), leading candidates to confuse monitoring or interpretability tools with content moderation controls.

How to eliminate wrong answers

Option B (Explainable AI) is wrong because it focuses on interpreting model predictions (e.g., feature attributions) rather than blocking toxic content; it provides transparency but no active content filtering. Option C (AutoML) is wrong because it automates model training and deployment for custom ML tasks, not content moderation or safety enforcement. Option D (Model Monitoring) is wrong because it tracks model performance and drift over time (e.g., prediction skew, data drift), not real-time content safety checks on individual outputs.

372
MCQeasy

A company wants to ensure that AI-generated images can be traced back to their origin to prevent misuse. Which Google technology provides invisible watermarking for AI-generated content?

A.Datasheets for Datasets
B.SynthID
C.Model Cards
D.People + AI Guidebook
AnswerB

SynthID embeds imperceptible watermarks directly into AI-generated pixels, surviving common edits and transformations. This lets Google's detection tooling verify whether an image originated from a generative model, satisfying the requirement to trace AI-generated images back to their origin and deter misuse.

Why this answer

SynthID is Google DeepMind's technology for embedding invisible watermarks into AI-generated images, audio, text, and video.

373
Multi-Selectmedium

A fintech company is deploying a generative AI system that offers investment advice. To comply with regulations and Google's AI Principles, they need to ensure appropriate human oversight and transparency. Which two actions should they take? (Choose two.)

Select 2 answers
A.Use only synthetic data for training to avoid privacy issues
B.Allow the AI to execute trades automatically without human intervention
C.Require a human advisor to review and approve all AI-generated recommendations
D.Develop and publish a Model Card that describes the model's limitations and intended use
E.Disable logging of all interactions to maximize user privacy
AnswersC, D

Human-in-the-loop review places a qualified adviser between the model's output and the client, catching erroneous or unsuitable recommendations before they take effect. This delivers the human oversight the stem demands for regulated investment advice, aligning with Google's AI Principles on accountability and responsible deployment.

Why this answer

Option C is correct because requiring a human advisor to review and approve all AI-generated recommendations directly implements the human oversight (human-in-the-loop) that Google's AI Principles and financial regulations demand for high-stakes advice, ensuring accountability before any recommendation reaches a client. Option D is correct because a Model Card is the standard transparency artifact that documents a model's intended use, limitations, performance, and ethical considerations, giving regulators and users the visibility needed to understand and trust the system. Option A is not required here: synthetic data can help with privacy but does not by itself provide human oversight or transparency, and it may even reduce real-world representativeness.

Option B is wrong because fully automated trade execution removes the human oversight the scenario explicitly requires and could violate fiduciary and regulatory obligations. Option E is wrong because disabling logging destroys the audit trail needed for transparency, accountability, and regulatory review, and it does not enhance meaningful privacy in a compliant manner.

374
MCQmedium

A logistics company wants to build a generative AI application that answers employee questions about internal HR policies. The company's policy documents are already stored in Google Drive and must stay synchronized automatically as they are edited. The team has limited ML engineering resources and prefers a managed, low-code path. Which Google Cloud approach should they choose?

A.Use the Gemini API with a long system prompt that pastes the full text of every HR policy document into each request.
B.Create a Vertex AI Search application with a data store connected to the Google Drive folder, then ground Gemini responses on that data store.
C.Deploy Gemini on a Compute Engine VM with an attached GPU and write a custom retrieval pipeline that polls the Drive API for changes.
D.Export the Drive documents to Cloud Storage, then train a custom Gemini model from scratch on those files using Vertex AI Training.
AnswerB

Vertex AI Search supports connecting a data store directly to Google Drive as a federated or indexed source, so document edits are picked up without manual re-uploading. Grounding Gemini on that data store gives the HR assistant accurate, cited answers with minimal ML engineering effort, matching both the synchronization and low-code requirements.

Why this answer

Grounding Gemini on a Vertex AI Search data store connected to Google Drive satisfies both constraints: it keeps answers tied to the latest policy documents automatically, and it delivers a managed, low-code experience. The other approaches either require custom ML work, break synchronization, or scale poorly as the document set grows.

Exam trap

The trap here is assuming that generative answers require fine-tuning or custom model training, when grounding on a managed search data store is the intended low-effort pattern.

375
MCQeasy

A marketing team wants to use a generative AI model to create dozens of unique social media captions for a new product launch. They need the outputs to vary in tone and wording each time they run the prompt, while staying on topic. Which model parameter should they adjust to directly control this variability?

A.Top-P
B.Top-K
C.Max output tokens
D.Temperature
AnswerD

Temperature controls the randomness of token selection during generation. A higher temperature increases the likelihood of less probable tokens being chosen, which produces more diverse and creative outputs. For generating varied social media captions from the same prompt, increasing temperature is the correct adjustment to introduce controlled variability while keeping the model on topic.

Why this answer

Temperature is the parameter that scales the logits before sampling, directly controlling how random or deterministic the model's token choices are. Increasing temperature makes the model more likely to pick less probable words, yielding more varied and creative captions. The other parameters influence sampling or output length but do not provide the same direct control over variability.

Exam trap

The trap here is confusing sampling strategies like Top-K or Top-P with the parameter that directly scales randomness, which is temperature.

Page 4

Page 5 of 14

Page 6