Courseiva

Google Cloud Generative AI Leader Generative AI Leader (Generative AI Leader) — Questions 301375

683 questions total · 10pages · All types, answers revealed

Page 4

Page 5 of 10

Page 6
301
MCQhard

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

A.Increase the maximum output tokens to allow the model to generate more detailed summaries.
B.Implement a RAG pipeline using Vertex AI Search to retrieve relevant medical documents before generation.
C.Add more few-shot examples to the prompt for each generation.
D.Switch the base model to Gemini 1.5 Pro without additional changes.
AnswerB

RAG provides grounded, up-to-date context, reducing hallucinations significantly.

Why this answer

Implementing a Retrieval-Augmented Generation (RAG) pipeline with Vertex AI Search grounds the model's output in retrieved, authoritative medical documents. This directly addresses the root cause of hallucination—the model's reliance on its parametric memory—by providing factual context at inference time, which is far more effective for regulatory compliance than adjusting generation parameters or training data size alone.

Exam trap

The trap here is that candidates often assume adjusting model parameters (temperature, tokens) or switching models will fix hallucinations, when in fact the core issue is the lack of external knowledge grounding, which only RAG or similar retrieval-based techniques can reliably address for factual accuracy.

How to eliminate wrong answers

Option A is wrong because increasing maximum output tokens does not improve factual accuracy; it only allows the model to generate longer text, which can actually increase the opportunity for hallucinations. Option C is wrong because adding more few-shot examples to the prompt does not prevent the model from fabricating diagnoses; few-shot learning guides style and format but does not ground the model in external, verifiable facts. Option D is wrong because switching the base model to Gemini 1.5 Pro without additional changes does not solve the hallucination problem; all large language models can fabricate information when relying solely on their training data, and the underlying issue of factual grounding remains unaddressed.

302
MCQeasy

Which Google Cloud service is specifically designed for generating code from natural language descriptions?

A.Codey
B.Imagen
C.Chirp
D.Gemini
AnswerA

Codey is a family of models specialized for code generation, completion, and chat.

Why this answer

Codey is the correct answer because it is Google Cloud's foundational code generation model, specifically designed to accept natural language prompts and produce source code in various programming languages. It powers features like code completion, code generation, and chat-based code assistance within Vertex AI, directly addressing the requirement of generating code from natural language descriptions.

Exam trap

The trap here is that candidates may confuse Gemini's broad multimodal capabilities with the specific, dedicated code generation service (Codey), leading them to select Gemini because it can also generate code, but the question asks for the service 'specifically designed' for that purpose.

How to eliminate wrong answers

Option B (Imagen) is wrong because Imagen is a text-to-image generation model, not a code generation model; it converts natural language descriptions into images. Option C (Chirp) is wrong because Chirp is a speech-to-text and speech recognition model, focused on transcribing audio, not generating code. Option D (Gemini) is wrong because while Gemini is a multimodal model capable of code generation, it is a broader foundation model for general-purpose tasks, not the service specifically designed and optimized for code generation from natural language; Codey is the dedicated service for that purpose.

303
MCQmedium

A startup with $500k in seed funding wants to integrate GenAI into their SaaS product for automated report generation. They have 2 ML engineers and expect 10,000 monthly users initially. They estimate that using a foundation model API (e.g., Gemini) will cost $0.10 per 1K tokens, and each report uses about 5K tokens. Alternatively, they could fine-tune an open-source model on their domain data, estimated at $50k for compute and $20k for engineering time, with inference cost of $0.02 per 1K tokens on a dedicated endpoint. Which approach is more cost-effective over the first 12 months assuming 50,000 reports per month?

A.Use the foundation model API because it has lower upfront cost
B.Use a combination of both depending on report complexity
C.Build a custom model from scratch
D.Fine-tune the open-source model because it has lower per-report cost
AnswerD

Fine-tuning the open-source model is more cost-effective. The total cost over 12 months is $70,000 upfront plus ($0.02 per 1K tokens × 5K tokens per report × 50,000 reports per month × 12 months) = $70,000 + $60,000 = $130,000. The API approach costs $0.10 per 1K tokens × 5K tokens × 50,000 reports × 12 = $300,000. Fine-tuning is significantly cheaper at scale.

Why this answer

The total cost of fine-tuning over 12 months is $70,000 upfront plus ($0.02 per 1K tokens × 5K tokens per report × 50,000 reports per month × 12 months) = $70,000 + $60,000 = $130,000. The API approach costs $0.10 per 1K tokens × 5K tokens × 50,000 reports × 12 = $300,000. Fine-tuning is significantly cheaper at scale despite the upfront investment.

Exam trap

This question tests the principle of total cost of ownership (TCO). Candidates often focus solely on the lower upfront cost of an API service without projecting the per-unit costs over the expected usage volume. The key insight is that the per-report cost difference (5x lower for fine-tuning) multiplies by the number of reports, making the initial investment worthwhile.

How to eliminate wrong answers

Option A is wrong because it ignores the per-report cost at scale; the API's $0.10 per 1K tokens leads to $3M over 12 months, far exceeding the fine-tuning total of $670k. Option B is wrong because a combination approach would not reduce costs—using the API for complex reports still incurs high per-token costs, and the problem does not specify complexity tiers that would justify splitting workloads. Option C is wrong because building a custom model from scratch requires massive data, compute, and engineering resources (often millions of dollars), far beyond the $500k seed funding and small team, making it impractical for a startup.

304
MCQeasy

A marketing team wants to generate multiple versions of ad copy for A/B testing. They need consistent brand tone across all outputs. Which prompt engineering technique is most effective?

A.Use a zero-shot prompt with a detailed description of the brand voice
B.Use a system instruction that says 'Be consistent'
C.Include few-shot examples of previous ad copy that match the desired tone
D.Set the temperature to 0.0 to eliminate randomness
AnswerC

Few-shot examples provide concrete patterns for the model to emulate, leading to consistent tone.

Why this answer

Providing few-shot examples (sample outputs with the desired tone) is the most direct way to enforce consistency. Zero-shot gives no guidance; system instructions help but are less effective than examples for tone consistency. Temperature settings control randomness.

305
Multi-Selecthard

An organization is building a search application using Vertex AI Vector Search. They have encoded their documents into embeddings and want to retrieve the most similar documents for a query. Which TWO actions are required to set up a Vector Search index?

Select 2 answers
A.Specify embedding dimension size in the index config.
B.Deploy the index to the IndexEndpoint.
C.Train a custom embedding model.
D.Download the query embeddings to local storage.
E.Create an IndexEndpoint resource.
AnswersB, E

Deployment makes the index available for querying.

Why this answer

Deploying the index to an IndexEndpoint is a required step to make the Vector Search index available for online queries. Without deployment, the index exists only as a metadata resource and cannot serve similarity search requests. The deployment binds the index to a specific endpoint, allocating machine resources for real-time inference.

Exam trap

The trap here is that candidates confuse the index creation steps with the deployment steps, thinking that merely creating the index resource is sufficient for querying, when in fact deployment to an IndexEndpoint is mandatory for online serving.

306
MCQeasy

A data scientist is building a text generation model and wants to evaluate bias using diverse test sets. Which Google AI Principle is directly relevant to this practice?

A.Avoid creating or reinforcing unfair bias
B.Be built and tested for safety
C.Incorporate privacy design principles
D.Be socially beneficial
AnswerA

This principle mandates testing for bias with representative data.

Why this answer

The principle of avoiding creating or reinforcing unfair bias directly calls for evaluating and mitigating bias, including using diverse test sets.

307
MCQhard

A data scientist wants to train a large transformer model from scratch on custom data. They anticipate the training will require thousands of TPU-v5e chips for several weeks. Which Google Cloud infrastructure component is designed for this scale?

A.TPU v5e Pod slice (e.g., 256-chip pod)
B.BigQuery ML
C.Single TPU v5e device
D.Compute Engine with A100 GPU clusters
AnswerA

TPU v5e Pods are designed for large-scale distributed training with fast inter-chip interconnects.

Why this answer

A is correct because a TPU v5e Pod slice (e.g., a 256-chip pod) is specifically designed for large-scale distributed training, providing high-bandwidth inter-chip interconnect (ICI) and collective communication optimizations that enable efficient scaling across thousands of chips for weeks-long training runs. This infrastructure component is purpose-built for the massive parallelism and fault tolerance required when training large transformer models from scratch on custom data.

Exam trap

The trap here is that candidates may confuse a single TPU device (Option C) with a Pod slice, not realizing that 'thousands of chips for several weeks' explicitly requires the multi-chip pod architecture with high-speed interconnects, not just a single accelerator.

How to eliminate wrong answers

Option B is wrong because BigQuery ML is a serverless machine learning service for running SQL-based ML models on structured data in BigQuery, not a hardware infrastructure component designed for large-scale distributed training of transformer models. Option C is wrong because a single TPU v5e device lacks the memory capacity, compute power, and inter-chip connectivity needed to train a large transformer model requiring thousands of chips over several weeks. Option D is wrong because while Compute Engine with A100 GPU clusters can be used for training, the question specifically asks for the Google Cloud infrastructure component designed for this scale, and TPU v5e Pod slices are Google's optimized solution for large-scale transformer training, offering superior inter-chip bandwidth and scaling efficiency compared to GPU clusters.

308
MCQmedium

A company wants to build a proof-of-concept generative AI application quickly. They have limited ML expertise and need to test multiple foundation models with different prompts. Which Vertex AI tool should they use?

A.Vertex AI Studio
B.Vertex AI Agent Builder
C.Model Garden
D.Vertex AI Training
AnswerA

Vertex AI Studio provides a no-code interface to experiment with prompts and models, ideal for quick prototyping.

Why this answer

Vertex AI Studio is designed for rapid prototyping with prompt design, model testing, and evaluation without requiring coding. Model Garden is for browsing models but not for interactive testing. Agent Builder is for building agents.

Custom training is for production.

309
MCQmedium

You are the AI lead at an e-commerce company that uses a generative model to write product descriptions from images and key attributes. The model is a multimodal transformer that encodes both image and text (attributes) and decodes a description. Recently, your team deployed a new version of the image encoder that uses a more powerful backbone (ViT-L instead of ViT-B). After deployment, the generated descriptions became longer but often include irrelevant visual details (e.g., background objects) and occasionally misrepresent the product's main features. The model was fine-tuned on the same dataset as before. The descriptions from the old model were concise and focused. What is the most likely cause of the degradation and the best fix?

A.The decoder is now too small relative to the encoder; reduce the encoder's hidden size or increase the decoder's capacity.
B.The new encoder produces less discriminative features; replace it with an older version.
C.Lower the decoder's temperature to reduce diversity and hallucination.
D.The powerful encoder introduces overfitting to the training images; continue fine-tuning with additional loss terms that penalize description of irrelevant details (e.g., using attention regularization).
AnswerD

Attention regularization forces the model to focus on product-relevant regions.

Why this answer

The more powerful ViT-L encoder captures richer, high-resolution features, including background details, which the decoder then amplifies into longer, less focused descriptions. This is a form of overfitting to irrelevant visual patterns in the training images, not to the labels. Adding attention regularization (e.g., penalizing attention weights on non-salient regions) forces the model to focus on product-relevant features, restoring conciseness and accuracy without reverting to the weaker encoder.

Exam trap

Google Cloud often tests the misconception that a more powerful encoder always improves performance, when in fact it can introduce overfitting to irrelevant features, and the fix is not to downgrade the encoder but to add regularization that guides attention to salient regions.

How to eliminate wrong answers

Option A is wrong because the decoder's capacity is not inherently too small; the issue is that the encoder now provides a richer but noisier representation, and simply resizing encoder/decoder dimensions does not address the root cause of attending to irrelevant details. Option B is wrong because replacing the encoder with an older version would discard the potential benefits of ViT-L (e.g., better attribute recognition) and is a regression, not a fix; the problem is not that features are less discriminative but that they are too detailed and unfocused. Option C is wrong because lowering temperature reduces randomness in token sampling but does not prevent the decoder from faithfully reproducing irrelevant visual details that the encoder already extracted; it would only make the output more deterministic, not more concise or accurate.

310
MCQeasy

What is the primary purpose of the temperature parameter when generating text with an LLM?

A.It sets the maximum number of tokens in the response
B.It controls the randomness or creativity of the output
C.It determines the number of most likely tokens considered at each step
D.It sets the cumulative probability threshold for token selection
AnswerB

Temperature scales the logits before sampling; higher values produce more diverse outputs.

Why this answer

Temperature controls the randomness of token selection. Higher temperature increases creativity, lower temperature makes outputs more deterministic.

311
MCQmedium

A company wants to use Google DeepMind's advances in protein structure prediction to accelerate drug discovery. Which DeepMind achievement is most relevant to this goal?

A.AlphaFold
B.WaveNet
C.AlphaCode
D.AlphaGo
AnswerA

AlphaFold predicts protein structures, directly applicable to drug discovery.

Why this answer

AlphaFold solves protein structure prediction, a key enabler for drug discovery. AlphaGo is for board games, AlphaCode for programming, and WaveNet for audio.

312
MCQhard

A healthcare organization needs to process sensitive patient data (PHI) using Google Cloud's Natural Language API for entity extraction. They require HIPAA compliance and data isolation within Google's infrastructure. What is the minimum configuration they must enable?

A.Sign a HIPAA Business Associate Agreement (BAA) with Google Cloud and enable VPC Service Controls
B.Use the Healthcare API instead of Natural Language API
C.Enable CMEK for the Natural Language API and use a private IP address
D.Deploy the Natural Language API in a Google-managed project and use a shared VPC
AnswerA

A signed BAA is mandatory for HIPAA compliance, and VPC Service Controls provide data isolation and prevent data exfiltration.

Why this answer

To use Cloud AI APIs with HIPAA compliance and data isolation, the customer must sign a BAA and use VPC Service Controls to prevent data exfiltration.

313
MCQhard

A company has a large dataset of proprietary documents and wants to build a Q&A system using a foundation model without exposing the documents to the model. Which approach is most appropriate?

A.Use RAG with Vertex AI Vector Search and embeddings
B.Use a zero-shot model with context in prompt
C.Fine-tune the model on the documents
D.Use prompt engineering to instruct the model
AnswerA

RAG retrieves documents at query time without training on them.

Why this answer

Retrieval-Augmented Generation (RAG) with Vertex AI Vector Search allows the system to retrieve relevant document chunks via embeddings without exposing the full documents to the foundation model. The model only sees the retrieved context in the prompt, ensuring proprietary data remains isolated and not used for training or memorization.

Exam trap

Google Cloud often tests the misconception that fine-tuning or prompt engineering can solve data privacy concerns, when in reality RAG is the only approach that keeps proprietary documents isolated from the model's training and inference pipeline.

How to eliminate wrong answers

Option B is wrong because a zero-shot model with context in the prompt still requires the entire document content to be included in the prompt, which exposes the proprietary data to the model and may exceed token limits. Option C is wrong because fine-tuning the model on the documents would directly expose the proprietary data to the model during training, risking memorization and data leakage. Option D is wrong because prompt engineering alone cannot retrieve specific information from a large dataset; it only instructs the model on how to respond, not where to find the data.

314
Multi-Selectmedium

Which TWO options are benefits of using Vertex AI Model Garden compared to using raw pre-trained models from external sources? (Choose two.)

Select 2 answers
A.Lower cost compared to using generic APIs
B.Ability to fine-tune models on custom data
C.Integration with Vertex AI tools like evaluation and monitoring
D.Simplified deployment and scaling with Vertex AI endpoints
E.Guaranteed data privacy and no data sharing
AnswersC, D

Native integration with Vertex AI ecosystem.

Why this answer

Vertex AI Model Garden is deeply integrated with the Vertex AI ecosystem, providing native access to tools like Vertex AI Evaluation for model performance assessment and Vertex AI Monitoring for drift detection and observability. This integration eliminates the need for custom pipelines to connect external models with these managed services, streamlining the MLOps workflow.

Exam trap

Google Cloud often tests the distinction between inherent platform benefits (like integration and managed deployment) versus features that are not exclusive to Model Garden (like fine-tuning or cost), leading candidates to mistakenly select options that are generally true for any model but not unique advantages of Model Garden.

315
MCQhard

A developer is using the Vertex AI Gemini API to generate email drafts. They notice that the cost is higher than expected. Which cost optimization strategy is MOST effective?

A.Use a higher temperature to generate more creative drafts
B.Use a smaller model like Gemini Nano instead of Gemini Pro
C.Increase the max output tokens to reduce the number of requests
D.Cache common prompt prefixes so that the model reuses computation
AnswerD

Prompt caching reduces input token processing for repeated prefixes, lowering cost.

Why this answer

Caching repeated prompt prefixes reduces tokens processed per request. Batching requests can also reduce cost, but caching is more impactful for repetitive tasks.

316
Multi-Selecthard

Which THREE capabilities are provided by Vertex AI Agent Builder? (Choose three.)

Select 3 answers
A.Automated model hyperparameter tuning.
B.Integration with Dialogflow CX for conversational flows.
C.Support for multimodal (text, image, video) input processing in agents.
D.Creating custom agents with memory and tool integration.
E.Built-in grounding with Google Search to improve answer accuracy.
AnswersB, D, E

Agent Builder can leverage Dialogflow CX for advanced conversational design.

Why this answer

Vertex AI Agent Builder integrates with Dialogflow CX to enable the design of sophisticated conversational flows, including state management, conditional logic, and multi-turn interactions. This allows developers to build agents that can handle complex dialogues with branching paths, leveraging Dialogflow CX's visual flow builder and fulfillment capabilities within the Vertex AI ecosystem.

Exam trap

The Generative AI Leader exam often tests the distinction between Vertex AI Agent Builder's core capabilities (like Dialogflow CX integration, custom agents with memory/tools, and grounding with Google Search) and features that belong to other Vertex AI services, such as hyperparameter tuning in Vertex AI Training or multimodal support that excludes video in the agent builder context.

317
MCQhard

A healthcare startup needs to generate synthetic patient records for research. They require accurate output that adheres to medical syntax and semantics, and they must be able to explain why the model produces certain outputs for regulatory compliance. Which combination of techniques should they use?

A.Use RAG with a vector store of medical literature
B.Supervised fine-tuning on a large medical corpus, followed by RLHF
C.Use Gemini in a zero-shot prompt with a strict system instruction
D.Apply LoRA adapter fine-tuning with a small medical dataset
AnswerB

Supervised fine-tuning adapts the model to medical knowledge, and RLHF helps align outputs with desired behavior and can improve the model's ability to explain its reasoning.

Why this answer

Supervised fine-tuning on medical data adapts the model to the domain, while RLHF aligns outputs with human preferences and can improve interpretability. LoRA is efficient but doesn't directly help with explainability. RAG is for knowledge retrieval, not explainability.

In-context learning may not be reliable enough for regulatory compliance.

318
MCQeasy

Refer to the exhibit. What is the most likely cause of this error?

A.The user does not have the required IAM role
B.The model is too large
C.The network is down
D.The project ID is incorrect
AnswerA

The error is a permission denial, meaning the user's IAM roles do not include 'aiplatform.models.upload'.

Why this answer

The error shown in the exhibit is an HTTP 403 Forbidden response, which indicates that the server understood the request but refuses to authorize it. In Google Cloud, this is most commonly caused by the user's identity lacking the necessary IAM role or permission to call the specific API or access the resource. Even if the project ID is correct and the network is functional, a missing IAM role (e.g., `aiplatform.user` or `roles/aiplatform.user`) will result in this exact error.

Exam trap

Google Cloud often tests the distinction between authentication (who you are) and authorization (what you can do), and the trap here is that candidates confuse a 403 Forbidden with a 404 Not Found or a network error, leading them to pick 'The project ID is incorrect' or 'The network is down' instead of recognizing the IAM permission failure.

How to eliminate wrong answers

Option B is wrong because model size does not cause an HTTP 403 error; a model that is too large would typically result in a 413 Payload Too Large or a resource-exhausted error, not an authorization failure. Option C is wrong because a network outage would produce a connectivity error (e.g., timeout, DNS resolution failure, or HTTP 502/503), not a 403 Forbidden response which requires a successful TCP connection and HTTP request to reach the server. Option D is wrong because an incorrect project ID would cause a 404 Not Found or a 400 Bad Request (e.g., 'Project not found'), not a 403 Forbidden; the 403 specifically indicates the request was received and the project exists, but the caller lacks authorization.

319
MCQmedium

A developer is using Vertex AI Gemini API for a chatbot. The chatbot sometimes outputs harmful content. What is the best first step to mitigate this?

A.Fine-tune the model on curated safe data
B.Add a human-in-the-loop review
C.Use safety filters and safety settings in the API request
D.Switch to a smaller model
AnswerC

Safety settings directly filter harmful content at inference time.

Why this answer

The Vertex AI Gemini API provides built-in safety filters and configurable safety settings (e.g., `safety_settings` parameter with categories like `HARM_CATEGORY_HARASSMENT` and thresholds like `BLOCK_ONLY_HIGH`) that allow developers to block harmful outputs at inference time without retraining. This is the fastest and most direct first step to mitigate harmful content, as it requires no additional infrastructure or model modification.

Exam trap

Google Cloud often tests the misconception that the first step to mitigate harmful content is to fine-tune the model, when in reality the immediate, low-cost, and recommended first step is to leverage the API's built-in safety filters and settings.

How to eliminate wrong answers

Option A is wrong because fine-tuning on curated safe data is a resource-intensive, secondary step that does not address immediate harmful outputs during inference and may not cover all edge cases of harmful content. Option B is wrong because adding a human-in-the-loop review introduces latency and cost, and is a reactive measure rather than a proactive first step to block harmful content at the API level. Option D is wrong because switching to a smaller model does not inherently reduce harmful outputs; smaller models can still generate harmful content and may have reduced capabilities for safe response generation.

320
MCQmedium

A company wants to use GenAI to automate customer support. They have a large knowledge base. Which approach maximizes ROI in the first 6 months?

A.Deploy a general-purpose chatbot without customization
B.Use a pre-built conversational AI platform with Retrieval-Augmented Generation (RAG)
C.Build a custom LLM from scratch using their data
D.Fine-tune a foundation model on historical support tickets
AnswerB

A pre-built platform with RAG allows rapid deployment and leverages existing knowledge base, maximizing ROI in the short term.

Why this answer

Maximizes ROI in the first 6 months because it leverages a pre-built conversational AI platform integrated with Retrieval-Augmented Generation (RAG). RAG allows the model to dynamically retrieve relevant information from the existing knowledge base at inference time, providing accurate, context-aware responses without the need for costly retraining or custom model development. This approach balances rapid deployment, low upfront investment, and high accuracy, making it the most cost-effective solution for automating customer support quickly.

Exam trap

Google Cloud often tests the misconception that fine-tuning is always the best way to incorporate proprietary data, but the trap here is that fine-tuning does not provide real-time access to a dynamic knowledge base and is far more resource-intensive than RAG, which is the optimal strategy for rapid, cost-effective deployment in customer support scenarios.

How to eliminate wrong answers

Option A is wrong because deploying a general-purpose chatbot without customization would rely solely on the model's pre-trained knowledge, which lacks access to the company's specific knowledge base, leading to frequent hallucinations and incorrect answers that degrade customer trust and require extensive human oversight. Option C is wrong because building a custom LLM from scratch using their data is prohibitively expensive (often millions of dollars) and time-consuming (typically 12+ months), far exceeding the 6-month ROI window and requiring massive computational resources and specialized ML teams. Option D is wrong because fine-tuning a foundation model on historical support tickets alone does not incorporate the live knowledge base; it only adapts the model to past conversation patterns, which may become stale or miss updated information, and still requires significant compute and data preparation costs without the real-time retrieval capability that RAG provides.

321
MCQhard

A retail company has deployed a customer support chatbot using Vertex AI Agent Builder. The chatbot is configured with a knowledge base stored in BigQuery (user manuals) and Cloud Storage (product images). The agent uses a Gemini 1.5 Pro model for response generation. Users report that the chatbot frequently gives incorrect answers and sometimes does not reference the knowledge base at all. Logs show high latency (average response time > 10 seconds) and many responses are generic or hallucinated. The agent's grounding configuration currently uses the default settings. The development team is considering the following actions: A) Switch to a smaller model like Gemini 1.5 Flash to reduce latency. B) Increase the context window of the model to allow more knowledge base content. C) Enable Vertex AI Search for grounding and configure a search aggregation strategy that retrieves relevant documents from the knowledge base. D) Fine-tune the Gemini model with the company's historical chat logs to improve domain-specific responses. Which action should the team take FIRST to address the issues?

A.Switch to a smaller model like Gemini 1.5 Flash to reduce latency.
B.Enable Vertex AI Search for grounding and configure a search aggregation strategy that retrieves relevant documents from the knowledge base.
C.Increase the context window of the model to allow more knowledge base content.
D.Fine-tune the Gemini model with the company's historical chat logs to improve domain-specific responses.
AnswerB

This directly improves retrieval accuracy and ensures the model references the knowledge base, addressing both hallucination and latency (by retrieving only relevant content).

Why this answer

The core issue is that the chatbot is not grounding its responses in the provided knowledge base, leading to hallucinations and generic answers. Enabling Vertex AI Search for grounding directly addresses this by forcing the model to retrieve and cite relevant documents from BigQuery and Cloud Storage before generating a response. This is the foundational step to fix the accuracy problem, as no amount of model tuning or context window expansion will help if the model is not consulting the correct data sources.

Exam trap

The trap here is that candidates often confuse latency reduction or model tuning as the primary fix, when the real root cause is the lack of a grounding mechanism to force the model to use the enterprise knowledge base.

How to eliminate wrong answers

Option A is wrong because switching to a smaller model like Gemini 1.5 Flash might reduce latency but does not solve the fundamental problem of the chatbot not referencing the knowledge base; it could even worsen accuracy. Option C is wrong because increasing the context window does not force the model to use the knowledge base; without proper grounding, the model will still hallucinate or ignore the provided content. Option D is wrong because fine-tuning on historical chat logs would only teach the model to mimic past agent behavior, which includes the same incorrect and ungrounded responses; it does not establish a mechanism to retrieve and cite the current knowledge base.

322
Multi-Selecthard

A research lab is planning to train a massive protein folding model similar to AlphaFold. They want to use Google Cloud infrastructure and tools. Which THREE components are most relevant?

Select 3 answers
A.Cloud TPU pods
B.Cloud Vision API
C.Vertex AI Pipeline
D.Google AI Studio
E.Google DeepMind collaboration
AnswersA, C, E

TPU pods are ideal for large-scale training of scientific models.

Why this answer

Cloud TPU pods are specifically designed for large-scale machine learning workloads like protein folding, offering high-throughput matrix operations essential for training models similar to AlphaFold. They provide the massive parallel compute power needed for training deep neural networks on protein structure prediction tasks, which require processing large datasets and complex 3D spatial relationships.

Exam trap

The trap here is that candidates may confuse Google's pre-built AI services (like Vision API or AI Studio) with the specialized infrastructure needed for training custom large-scale models, overlooking that TPU pods are the core compute resource for such workloads.

323
MCQeasy

A product manager wants to communicate the limitations of a new generative AI feature to stakeholders. According to Google's People + AI Guidebook, what is the BEST approach?

A.Highlight only the successful use cases to build excitement
B.Provide clear examples of the AI's capabilities and failure modes
C.Promise that future versions will overcome all limitations
D.Share a technical paper detailing the model architecture
AnswerB

Transparency about both strengths and weaknesses builds trust and helps users apply the AI appropriately.

Why this answer

The People + AI Guidebook emphasizes setting appropriate expectations by clearly communicating what the AI can and cannot do.

324
MCQhard

A financial institution wants to use generative AI to generate personalized investment advice. They face strict regulatory requirements on explainability and bias. Which approach should they take?

A.Use a foundation model with prompt engineering
B.Use a custom model trained from scratch
C.Use a RAG system with curated proprietary data
D.Use a closed-source model with vendor lock-in
AnswerC

Enables control, explainability, and bias auditing.

Why this answer

A Retrieval-Augmented Generation (RAG) system allows the financial institution to ground generative AI outputs in curated, proprietary data sources (e.g., regulatory guidelines, client risk profiles, historical performance). This approach enhances explainability by enabling traceable citations back to specific documents, and reduces bias by controlling the data fed to the model, which is critical for meeting strict regulatory requirements like GDPR or SEC rules on algorithmic fairness.

Exam trap

Google Cloud often tests the misconception that prompt engineering alone can solve domain-specific compliance needs, when in reality RAG is required to ground outputs in curated, auditable data for regulated industries.

How to eliminate wrong answers

Option A is wrong because prompt engineering alone on a foundation model does not guarantee explainability or bias control; the model may still generate outputs based on its pre-trained, opaque weights, making it impossible to trace advice to specific regulatory or proprietary data. Option B is wrong because training a custom model from scratch requires massive amounts of labeled, unbiased data and computational resources, and still risks hidden biases in the training process, while also lacking the built-in retrieval mechanism for transparent, auditable citations. Option D is wrong because a closed-source model with vendor lock-in limits the institution's ability to audit the model's internal logic, customize bias mitigation, or ensure compliance with evolving regulations, as the vendor controls all updates and data handling.

325
MCQmedium

A company fine-tunes a text model on internal HR policies. After deployment, the model sometimes outputs sensitive employee information. What is the most likely cause?

A.The fine-tuning dataset contained personally identifiable information that was not removed.
B.The model was not trained with reinforcement learning from human feedback (RLHF).
C.The model has insufficient parameters to generalize properly.
D.The prompt engineering was too verbose and included misleading instructions.
AnswerA

Models can memorize training data; including sensitive information leads to leakage.

Why this answer

The most likely cause is that the fine-tuning dataset contained personally identifiable information (PII) that was not properly scrubbed. During fine-tuning, the model learns patterns and memorizes specific sequences from the training data. If the dataset includes sensitive employee records, the model can reproduce that information verbatim when prompted, leading to data leakage.

This is a well-known risk in fine-tuning, as models can overfit to rare or unique examples in the training set.

Exam trap

Google Cloud often tests the misconception that RLHF or prompt engineering can fix data leakage issues, but the trap here is that the root cause is always the training data itself—no amount of post-hoc alignment or prompt tweaking can prevent the model from reproducing memorized sensitive content.

How to eliminate wrong answers

Option B is wrong because RLHF is a technique used to align model outputs with human preferences, not to prevent memorization of training data; it does not address the root cause of data leakage from the fine-tuning dataset. Option C is wrong because insufficient parameters would typically cause underfitting or poor generalization, not the exact reproduction of sensitive information; memorization is more likely with larger models that have higher capacity to store training examples. Option D is wrong because verbose or misleading prompt engineering might degrade output quality but cannot cause the model to output specific employee data that was not present in its training or fine-tuning data; the model can only generate information it has learned.

326
MCQmedium

A financial institution wants to deploy a generative AI solution for contract analysis. They need to ensure compliance with regulations. Which approach is best?

A.Deploy a large open-source model fine-tuned on public legal documents
B.Use a general-purpose pre-trained model with no modifications to minimize risk
C.Fine-tune a model on a curated dataset of past contracts and implement human-in-the-loop review
D.Implement retrieval-augmented generation (RAG) with the company's legal document database
AnswerC

Fine-tuning on relevant data improves accuracy, and human review catches any regulatory violations before finalization.

Why this answer

Best because fine-tuning on a curated dataset of past contracts ensures the model learns domain-specific language and compliance patterns, while human-in-the-loop review provides a critical safety net for regulatory adherence. This combination directly addresses the need for accuracy and accountability in contract analysis, where errors can have legal consequences.

Exam trap

Google Cloud often tests the misconception that retrieval-augmented generation (RAG) alone is sufficient for domain-specific compliance, when in fact it requires fine-tuning or strict validation to prevent misinterpretation of retrieved legal texts.

How to eliminate wrong answers

Option A is wrong because deploying a large open-source model fine-tuned on public legal documents introduces risks from unvetted, potentially outdated or jurisdictionally inappropriate data, and lacks the controlled curation needed for compliance. Option B is wrong because a general-purpose pre-trained model with no modifications will lack the specialized knowledge of contract law, regulatory terms, and clause structures, leading to high error rates and non-compliance. Option D is wrong because retrieval-augmented generation (RAG) with the company's legal document database, while useful for grounding responses, does not inherently train the model on compliance patterns and still requires careful prompt engineering and validation to avoid hallucinations in critical contract analysis.

327
Multi-Selectmedium

A data scientist is documenting a new dataset for a generative AI project. According to the Responsible AI toolkit, which TWO elements should they include in a Datasheet for Datasets?

Select 2 answers
A.The model architecture used to collect the data
B.The demographic composition of the data subjects
C.The hyperparameters of the model that will process the data
D.The intended use cases and limitations
E.The cost of acquiring the dataset
AnswersB, D

Demographic information helps identify potential biases.

Why this answer

The Responsible AI toolkit's Datasheet for Datasets framework requires documenting the demographic composition of data subjects to identify potential biases and ensure fairness. This transparency allows downstream users to assess whether the dataset may lead to discriminatory outcomes in generative AI models, aligning with responsible AI principles.

Exam trap

The Generative AI Leader exam often tests the distinction between dataset documentation (Datasheet for Datasets) and model documentation (Model Cards), so candidates mistakenly include model-specific details like architecture or hyperparameters instead of dataset-focused elements.

328
MCQmedium

A company is evaluating whether to build a custom fine-tuned model for code generation or use a pre-built API like Gemini API. The code generation needs to follow the company's internal coding standards. Which consideration is MOST important in deciding to build vs buy?

A.Pre-built APIs may not generate code that adheres to internal standards without extensive prompting
B.Pre-built APIs are always cheaper than fine-tuned models
C.Fine-tuned models have lower latency than pre-built APIs
D.Data privacy is easier to achieve with pre-built APIs
AnswerA

A fine-tuned model can be trained on internal codebases to enforce standards, whereas a pre-built API requires careful prompt engineering and may not be consistent.

Why this answer

Fine-tuning allows the model to learn company-specific coding standards, which pre-built APIs cannot guarantee. Cost and latency are secondary; data privacy is important but can be addressed with both options.

329
MCQeasy

A developer wants to generate product descriptions from a list of features using Vertex AI. Which model type is best suited for this task?

A.An embedding model (e.g., textembedding-gecko@001).
B.A chat model (e.g., chat-bison@001).
C.A text generation model (e.g., text-bison@001).
D.A code generation model (e.g., code-bison@001).
AnswerC

Text generation models are ideal for generative tasks from prompts.

Why this answer

Text-bison@001 is a dedicated text generation model optimized for tasks like summarization, translation, and content creation from structured inputs. It can take a list of features as a prompt and generate coherent, descriptive product descriptions without needing conversational context or code-specific outputs.

Exam trap

The trap here is that candidates may confuse 'text generation' with 'chat' or 'embedding' models, assuming any generative model can handle the task, but Vertex AI separates these by specialization, and the exam tests awareness of which model class is purpose-built for non-conversational, non-code text creation.

How to eliminate wrong answers

Option A is wrong because embedding models like textembedding-gecko@001 are designed to convert text into numerical vectors for similarity search or clustering, not for generating new text. Option B is wrong because chat models like chat-bison@001 are optimized for multi-turn conversational interactions, not for single-turn structured generation tasks like producing descriptions from a feature list. Option D is wrong because code generation models like code-bison@001 are specialized for generating programming code, not natural language product descriptions.

330
Multi-Selecthard

A healthcare startup is building a GenAI application that answers patient queries based on medical literature. They need to ensure factual accuracy and compliance with healthcare regulations. Which TWO strategies should they use? (Choose 2)

Select 2 answers
A.Rely on few-shot prompting with example Q&A pairs
B.Fine-tune the model on medical literature
C.Implement a response schema for structured JSON output
D.Use RAG Engine with a curated medical knowledge base
E.Use Grounding with Google Search to verify facts
AnswersD, E

RAG retrieves answers from a controlled set of medical documents, ensuring sources are authoritative and up-to-date.

Why this answer

Grounding with Google Search improves factual accuracy by basing answers on verified search results. A response schema for structured output is not directly about accuracy. RAG with a curated medical knowledge base ensures answers come from trusted sources.

Few-shot prompting alone is insufficient. Fine-tuning on medical data is not selected because two correct options are already chosen.

331
MCQmedium

A developer receives the above JSON response from a Vertex AI PaLM API call for a medical advice application. What should the developer be most concerned about?

A.The safety score is very low (0.01)
B.The deployed model ID is not recognized
C.The output falls under the 'health' category, which may require compliance with regulations
D.The prediction content is incorrect
AnswerC

Health-related outputs need careful review.

Why this answer

The JSON response includes a 'category' field with the value 'health', which triggers stringent regulatory compliance requirements such as HIPAA in the US or GDPR in Europe. For a medical advice application, the developer must ensure data handling, model transparency, and output validation meet these legal standards, as failure could result in severe penalties. The PaLM API's safety attributes and category labels are designed to flag such sensitive domains, making compliance the primary concern over other technical issues.

Exam trap

Google Cloud often tests the misconception that low safety scores or incorrect content are the primary risks, when in fact regulatory compliance for sensitive categories like 'health' is the most critical and non-obvious concern that developers must address first.

How to eliminate wrong answers

Option A is wrong because a safety score of 0.01 is not inherently concerning; it may indicate low confidence in the safety assessment rather than actual unsafe content, and the PaLM API uses separate blocking thresholds (e.g., safety_settings) to filter harmful outputs. Option B is wrong because the deployed model ID (e.g., 'text-bison@001') is a standard identifier for the PaLM model version, and unrecognized IDs typically cause API errors or fallback behavior, not a primary concern for a valid response. Option D is wrong because the prediction content's correctness is a secondary validation issue that can be addressed through prompt engineering or post-processing, whereas regulatory compliance is a non-negotiable legal requirement that must be handled before deployment.

332
Multi-Selectmedium

A data scientist is selecting a base model for generating Python code. Which TWO factors are most important to consider?

Select 2 answers
A.Model's license (proprietary vs open-source).
B.Model's performance on coding benchmarks like HumanEval.
C.Model's support for multiple programming languages.
D.Model's training data recency.
E.Model's parameter count (size).
AnswersA, B

License determines usage rights and compliance.

Why this answer

The model's license determines whether the generated code can be used in commercial products without violating copyright or requiring attribution. Proprietary models may impose restrictions on output usage, while open-source models (e.g., CodeLlama, StarCoder) offer more flexibility for enterprise deployment. This is critical for compliance and intellectual property management in production environments.

Exam trap

Google Cloud often tests the misconception that larger parameter counts or broader language support are more important than licensing and benchmark performance, leading candidates to overlook the legal and functional constraints of deploying a code generation model in a business context.

333
MCQhard

A company is using Vertex AI for multimodal generative AI to analyze images and text. They need to ensure that the model's outputs are auditable and can be traced back to the input data. Which feature should they enable?

A.Vertex AI Feature Store
B.Vertex AI Experiments
C.Cloud Logging
D.Vertex AI Model Monitoring with Explainable AI
AnswerD

Model Monitoring with Explainable AI provides attribution and traceability.

Why this answer

Vertex AI Model Monitoring with Explainable AI provides feature attributions that map model predictions back to specific input features (e.g., pixels in images or tokens in text). This creates an auditable trail by quantifying how each input contributed to the output, enabling traceability for compliance and debugging. The other options lack the direct input-to-output attribution required for auditability.

Exam trap

The trap here is that candidates confuse operational logging (Cloud Logging) or experiment tracking (Vertex AI Experiments) with the specific need for input-to-output attribution, which only Explainable AI provides for auditability.

How to eliminate wrong answers

Option A is wrong because Vertex AI Feature Store is a centralized repository for storing, serving, and sharing feature data, but it does not provide per-prediction attribution or traceability from model outputs back to specific inputs. Option B is wrong because Vertex AI Experiments tracks training runs, hyperparameters, and metrics, but it focuses on model development history, not on explaining individual inference outputs. Option C is wrong because Cloud Logging captures operational logs (e.g., API calls, errors) but does not generate feature-level explanations or attributions that link a specific output to its input data.

334
MCQhard

A multinational corporation uses Vertex AI to fine-tune a language model on proprietary customer data. They want to ensure that the fine-tuned model does not inadvertently memorize and regurgitate sensitive customer information. Which approach is most effective?

A.Regularly audit the model by prompting it with known sensitive phrases
B.Apply differential privacy techniques during fine-tuning
C.Use a smaller model to reduce memorization capacity
D.Train the model with a higher learning rate to reduce overfitting
AnswerB

Differential privacy provides a formal guarantee against memorization.

Why this answer

Differential privacy during training limits memorization by adding noise, making it much harder for the model to leak sensitive data from the training set.

335
MCQhard

A financial institution deploys a generative AI chatbot for customer inquiries. They must comply with the EU AI Act, which classifies their use as high-risk. What is a mandatory requirement under the Act?

A.Register the AI system with the European Data Protection Board (EDPB)
B.Obtain a CE marking for the training dataset
C.Retain logs of system behavior and human oversight for traceability
D.Conduct an annual bias audit using an external auditor
AnswerC

The EU AI Act mandates that high-risk AI systems keep logs to ensure traceability and allow for post-market monitoring.

Why this answer

The EU AI Act requires that high-risk AI systems maintain detailed technical documentation and logs for traceability and conformity assessment.

336
MCQhard

A company has fine-tuned a foundation model on proprietary data. During evaluation, they find the model performs well on seen examples but poorly on unseen but similar tasks. What is the problem?

A.Underfitting
B.Catastrophic forgetting
C.Distribution shift
D.Domain shift between fine-tuning and deployment
AnswerD

Domain shift causes poor generalization to similar but different tasks.

Why this answer

The model performs well on seen examples (fine-tuning distribution) but poorly on unseen but similar tasks (deployment distribution), which is a classic symptom of domain shift. This occurs when the fine-tuning data does not fully represent the deployment environment, causing the model to fail on inputs that differ in subtle but systematic ways from the training distribution. The model has not generalized to the target domain despite being well-fitted to the source domain.

Exam trap

Google Cloud often tests the distinction between distribution shift (a broad category) and domain shift (a specific type), so candidates mistakenly pick 'distribution shift' without recognizing that the question explicitly describes a domain mismatch between fine-tuning and deployment.

How to eliminate wrong answers

Option A is wrong because underfitting would cause poor performance on both seen and unseen examples, not good performance on seen examples alone. Option B is wrong because catastrophic forgetting refers to a model losing previously learned knowledge when fine-tuned on new data, but here the model retains performance on seen examples, indicating no forgetting occurred. Option C is wrong because distribution shift is a broad term that includes domain shift, but the specific scenario described—good performance on seen tasks but poor on similar unseen tasks—is precisely domain shift between fine-tuning and deployment, not a general covariate or label shift.

337
MCQeasy

A company is deciding between building a custom fine-tuned model vs. using a pre-built API for a document summarization task. The documents contain domain-specific jargon. Which factor STRONGLY favors using a pre-built API with prompt engineering?

A.The need to handle highly specialized industry terminology
B.The need for the model to learn a unique writing style from past summaries
C.The need to keep all data on-premises for security compliance
D.The requirement for low initial development cost and fast time-to-market
AnswerD

Pre-built APIs require no training, making them cheaper and faster to deploy, which is a strong advantage when speed and cost matter.

Why this answer

Using a pre-built API with prompt engineering eliminates the need for expensive model training infrastructure and specialized ML expertise, enabling rapid deployment at low initial cost. For a document summarization task, prompt engineering can leverage the API's existing capabilities without custom fine-tuning, making it ideal when speed and budget are primary constraints.

Exam trap

Google often tests the misconception that prompt engineering can fully replace fine-tuning for domain adaptation, when in reality prompt engineering is limited by context window size and cannot permanently encode specialized knowledge or writing styles.

How to eliminate wrong answers

Option A is wrong because handling highly specialized industry terminology actually favors fine-tuning, as pre-built APIs may lack domain-specific vocabulary and require additional prompt engineering that cannot fully capture nuanced jargon. Option B is wrong because learning a unique writing style from past summaries requires the model to internalize patterns through training data, which is a core strength of fine-tuning, not prompt engineering that only provides temporary context. Option C is wrong because keeping data on-premises for security compliance strongly favors building a custom model, as pre-built APIs typically require data to be sent to external servers, violating data residency requirements.

338
MCQmedium

A developer is using Vertex AI to deploy a generative AI model. They need to ensure that prompts and responses are logged for compliance but also want to minimize data retention. Which configuration is BEST?

A.Enable logging of both prompts and responses with a short retention period (e.g., 30 days)
B.Disable logging entirely to minimize data retention
C.Log everything indefinitely for maximum compliance
D.Log only prompts but not responses
AnswerA

Logs both sides and purges after retention period, balancing compliance and minimization.

Why this answer

Vertex AI allows you to enable logging of both prompts and responses for compliance auditing, while configuring a short retention period (e.g., 30 days) directly minimizes data retention. This balances regulatory requirements with data minimization principles, as Vertex AI's logging configuration supports setting retention policies via Cloud Logging or the Model Registry.

Exam trap

The trap here is that candidates often assume disabling logging entirely is the best way to minimize data retention, overlooking that compliance mandates require logging, so the correct approach is to enable logging with a short retention period rather than eliminating logs.

How to eliminate wrong answers

Option B is wrong because disabling logging entirely violates compliance requirements that mandate audit trails for generative AI interactions, as many regulations (e.g., GDPR, HIPAA) require logging of AI system inputs and outputs. Option C is wrong because logging everything indefinitely maximizes data retention, which contradicts the goal of minimizing data retention and may violate data minimization principles under privacy regulations. Option D is wrong because logging only prompts without responses creates an incomplete audit trail, failing to capture the model's output for compliance review, which is often required for accountability and bias detection.

339
MCQeasy

A social media platform wants to use generative AI to moderate harmful content. They need to detect hate speech, violence, and sexual content. Which Google Cloud service provides pre-built filters for these categories?

A.Natural Language API with content moderation
B.Dialogflow CX
C.Vertex AI Matching Engine
D.Cloud Vision API
AnswerA

Natural Language API's content moderation feature can detect harmful text categories.

Why this answer

Google Cloud's Natural Language API includes content moderation models that can detect categories like hate speech, violence, and sexual content.

340
MCQhard

A company is running a GenAI proof-of-concept (PoC) for internal document Q&A. The PoC shows high latency and cost. The team suspects they are using an unnecessarily large model for the task. What is the BEST action to optimize?

A.Disable grounding and rely solely on the model's internal knowledge
B.Increase the batch size for requests
C.Switch to a smaller model from Vertex AI Model Garden
D.Fine-tune the existing model on the company's documents
AnswerC

Model Garden provides access to many model sizes; testing a smaller, faster model can reduce latency and cost.

Why this answer

Switching to a smaller model from Vertex AI Model Garden directly addresses the root cause of high latency and cost: an unnecessarily large model. Smaller models have fewer parameters, requiring less compute per inference, which reduces both response time and operational expense while often being sufficient for domain-specific tasks like internal document Q&A.

Exam trap

Google often tests the misconception that fine-tuning or disabling features like grounding can solve performance issues, when the real bottleneck is model size and compute efficiency.

How to eliminate wrong answers

Option A is wrong because disabling grounding removes the ability to retrieve and cite actual document content, forcing the model to rely on its internal knowledge which may be outdated or incorrect for company-specific documents, and does not address model size or latency. Option B is wrong because increasing batch size improves throughput for bulk processing but does not reduce per-request latency or cost for interactive Q&A; it may even increase memory pressure and latency for real-time use cases. Option D is wrong because fine-tuning the existing large model on company documents can improve answer relevance but does not reduce the model's parameter count or inference cost; it may actually increase latency if the fine-tuned model is still large and requires additional serving infrastructure.

341
Multi-Selectmedium

A company is deploying a generative AI system for resume screening. They want to ensure fairness and avoid bias. Which TWO actions should they take? (Choose 2)

Select 2 answers
A.Evaluate the model's decisions across gender and ethnicity groups using a diverse test set
B.Ensure training data is representative of the candidate population
C.Apply SynthID watermarking to all generated decisions
D.Remove protected attributes like gender and race from training data
E.Use a larger model to improve accuracy
AnswersA, B

Bias evaluation across demographic groups is essential to detect unfair bias.

Why this answer

Evaluating bias with diverse test sets and ensuring representative training data are key steps to mitigate bias, as per Google's AI Principles.

342
MCQhard

A data scientist is using Vertex AI RAG Engine to build a question-answering system over a large corpus of technical manuals. Users report that answers are often verbose and include irrelevant details. Which configuration change is MOST likely to improve answer conciseness?

A.Increase the chunk size of documents in the index
B.Use a different embedding model for retrieval
C.Decrease the number of retrieved documents (k) in the retrieval step
D.Increase the max output token limit
AnswerC

Reducing k limits the context, forcing the model to focus on the most relevant snippets, leading to more concise answers.

Why this answer

RAG Engine allows tuning the number of retrieved documents (k). Reducing k limits the context, encouraging concise answers. Changing chunk size might affect relevance but not directly conciseness.

Embedding model type affects retrieval quality. Increasing max output tokens would worsen verbosity.

343
MCQmedium

A company is building a legal document review assistant using Gemini 1.5 Pro. They want to ensure the model can handle large documents of up to 500 pages in a single prompt. Which feature of Gemini 1.5 Pro is MOST important for this requirement?

A.Temperature
B.Top-k sampling
C.Fine-tuning
D.Large context window
AnswerD

Gemini 1.5 Pro supports up to 1 million tokens, enabling processing of hundreds of pages in a single prompt.

Why this answer

Gemini 1.5 Pro has a large context window (up to 1 million tokens), allowing it to process large documents. Temperature, top-k, and fine-tuning do not directly address context length.

344
Multi-Selecthard

A team is evaluating generative AI models for a content moderation system. Which THREE metrics are most important to assess?

Select 3 answers
A.Percentage of outputs flagged by safety filters.
B.Cost per million tokens.
C.Inference latency under expected load.
D.BLEU score against human-written moderation guidelines.
E.Precision and recall on a test set of moderated content.
AnswersA, C, E

Indicates how often the model generates unsafe content.

Why this answer

Safety filters are a primary mechanism for detecting and blocking harmful or policy-violating content in generative AI outputs. In a content moderation system, the percentage of outputs flagged by these filters directly measures the model's tendency to produce unsafe content, which is critical for maintaining platform safety and compliance.

Exam trap

Google Cloud often tests the distinction between metrics that measure model performance on the task (safety, accuracy) versus metrics that measure operational or linguistic qualities (cost, BLEU), leading candidates to mistakenly include cost or BLEU as primary assessment criteria for content moderation.

345
Multi-Selecthard

Which THREE of the following are key considerations when deploying a generative AI model in a production environment with strict latency requirements? (Choose three.)

Select 3 answers
A.Deploy the largest model variant available to ensure highest quality.
B.Implement speculative decoding to generate candidate tokens with a smaller draft model and verify with the large model.
C.Use model quantization (e.g., int8) to reduce precision and speed up matrix multiplications.
D.Cache the key-value caches from previous decoding steps to avoid redundant computation.
E.Increase the inference batch size to maximize GPU utilization.
AnswersB, C, D

Speculative decoding significantly reduces time per token.

Why this answer

Speculative decoding uses a smaller, faster draft model to generate candidate tokens, which are then verified by the large model in parallel. This reduces the number of sequential autoregressive steps, significantly lowering latency while maintaining output quality.

Exam trap

Google Cloud often tests the distinction between latency and throughput, so the trap here is that candidates confuse batch size (which improves throughput) with latency reduction, or assume larger models always yield better performance without considering inference speed.

346
MCQmedium

A company is using a generative AI model to automatically screen job applications. They want to ensure the model does not discriminate based on gender or ethnicity. Which of the following actions should they take as part of responsible AI?

A.Use a more powerful model to improve accuracy, as bias decreases with better performance
B.Blindly apply a fairness algorithm without understanding the context
C.Remove all demographic data from the training set to prevent the model from learning biases
D.Evaluate the model's hiring decisions for disparate impact across gender and ethnicity
AnswerD

Evaluating outcomes for disparate impact helps identify and address bias.

Why this answer

Evaluating the model's decisions for disparate impact using protected attributes is a key step in detecting and mitigating unfair bias.

347
MCQmedium

A company wants to build a customer service chatbot that answers questions about their internal policy documents. The documents are updated monthly, and the team cannot afford to retrain a model each time. Which approach is MOST appropriate?

A.Use a larger foundation model with a longer context window and paste all documents into each prompt
B.Fine-tune a base LLM on the policy documents monthly
C.Train a custom model from scratch on the policy documents each month
D.Use Retrieval-Augmented Generation (RAG) with the policy documents indexed in a vector store
AnswerD

RAG retrieves relevant document chunks at query time, ensuring the chatbot always answers from the latest uploaded documents without any model retraining.

Why this answer

RAG (Retrieval-Augmented Generation) allows the LLM to retrieve relevant document sections at inference time, so knowledge stays current without retraining. The other options either require expensive retraining for each update or lack document grounding.

348
MCQhard

A global company deploying gen AI across multiple regions needs to minimize latency and comply with data sovereignty. What architecture should they adopt?

A.Single global deployment with CDN
B.Multi-region deployment with Vertex AI
C.Use a third-party API
D.On-premises deployment only
AnswerB

Multi-region deployment with Vertex AI allows serving models from multiple regions, reducing latency for users worldwide and ensuring data stays within jurisdiction boundaries, complying with data sovereignty.

Why this answer

Multi-region deployment with Vertex AI (option B) is correct because it allows serving models in close proximity to users across different regions, reducing latency while complying with data sovereignty requirements. Option A (single global deployment with CDN) is incorrect because a single deployment may violate data residency laws and CDN does not address compute locality for model inference. Option C (third-party API) is incorrect because relying on external APIs may not provide the necessary control over data placement and may introduce additional compliance risks.

Option D (on-premises only) is incorrect because it is costly, limits scalability, and may not be feasible for global reach.

349
MCQmedium

You are an ML engineer at a retail company. You have deployed a generative AI model on Vertex AI to generate product descriptions. The model uses a custom container and is deployed to a single endpoint. Recently, you noticed that inference latency has increased significantly during peak hours, causing timeouts. You have checked the logs and found that the CPU utilization on the deployed instances is consistently above 90% during peak hours. The model is currently deployed with a single machine type (n1-standard-4) and no scaling. You need to reduce latency without incurring excessive cost. What should you do?

A.Optimize the model using quantization and reduce the number of replicas
B.Switch to batch prediction instead of online prediction
C.Change the machine type to n1-standard-8 and enable autoscaling with min replicas=1, max replicas=5
D.Add a GPU accelerator to the existing machine
AnswerC

More CPU and autoscaling handle peak load efficiently.

Why this answer

Upgrading to a larger machine (n1-standard-8) provides more CPU cores to handle the increased inference workload, while enabling autoscaling (min=1, max=5) allows the deployment to dynamically add replicas during peak hours to distribute the load and reduce latency. This combination addresses the high CPU utilization without over-provisioning during off-peak times, thus controlling cost.

Exam trap

The trap here is that candidates often assume adding a GPU (Option D) is always the best way to reduce inference latency, but for CPU-bound models with high utilization, scaling out with more replicas and a larger CPU machine is more cost-effective and directly addresses the bottleneck.

How to eliminate wrong answers

Option A is wrong because quantization reduces model size and can improve latency, but reducing the number of replicas would worsen the bottleneck by decreasing capacity, not help with high CPU utilization. Option B is wrong because batch prediction is designed for asynchronous, non-real-time processing and does not solve online inference latency during peak hours; it would change the use case entirely. Option D is wrong because adding a GPU accelerator to the existing n1-standard-4 machine would not address the CPU bottleneck (inference is CPU-bound in this scenario) and would increase cost unnecessarily without guaranteed latency improvement for a CPU-bound model.

350
MCQmedium

A company is rolling out a generative AI tool to employees. To ensure successful adoption, they plan to provide training and identify early adopters. Which change management practice is MOST critical early in the rollout?

A.Set up a dedicated help desk for AI tool issues
B.Conduct mandatory training for all employees before launch
C.Identify and train AI champions who can support their teams
D.Monitor usage metrics for the first month
AnswerC

Champions provide peer support and drive adoption more effectively.

Why this answer

Identifying AI champions who can advocate and help peers is crucial for organic adoption. Training all employees at once is less effective. Monitoring usage is important but later.

Setting up a help desk is reactive.

351
MCQhard

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

A.Add grounding sources, such as "EnterpriseSearch" or "Web"
B.Lower temperature to 0.1
C.Increase topP to 1.0
D.Increase maxOutputTokens to 1024
AnswerA

Grounding forces the model to base responses on real data, directly improving factual accuracy.

Why this answer

Adding grounding sources like EnterpriseSearch or Web provides the model with access to authoritative, up-to-date financial data, which directly reduces hallucinations by anchoring responses in verified facts rather than relying solely on the model's parametric knowledge. This is the most effective technique for improving factual accuracy in a domain where correctness is critical.

Exam trap

The Generative AI Leader exam often tests the misconception that adjusting sampling parameters (temperature, topP) can fix factual accuracy issues, when in reality those parameters only control output randomness and diversity, not the truthfulness of the underlying knowledge.

How to eliminate wrong answers

Option B is wrong because lowering temperature to 0.1 makes the model more deterministic and less creative, but it does not introduce new factual information; it only reduces randomness in token selection, which cannot fix incorrect knowledge baked into the model. Option C is wrong because increasing topP to 1.0 includes all possible tokens in the sampling pool, which actually increases the chance of selecting less likely and potentially incorrect tokens, harming factual accuracy. Option D is wrong because increasing maxOutputTokens to 1024 allows longer responses but does not improve the correctness of the content; it may even amplify errors by generating more text based on the same flawed internal knowledge.

352
MCQmedium

A healthcare startup needs to process medical claims and extract structured data (e.g., patient name, procedure codes, amounts) from scanned PDF forms. They require HIPAA compliance and prefer a pre-built Google Cloud service. Which service should they use?

A.Cloud Vision API with OCR
B.Vertex AI AutoML Tables
C.Document AI Healthcare API with the Claims processor
D.Natural Language AI with entity extraction
AnswerC

Document AI is HIPAA-eligible and offers a pre-trained Claims processor for medical claim forms.

Why this answer

The Document AI Healthcare API with the Claims processor is a pre-built, HIPAA-compliant Google Cloud service specifically designed to extract structured data (e.g., patient name, procedure codes, amounts) from scanned medical claim forms. It leverages specialized machine learning models trained on healthcare documents, ensuring accurate parsing of fields like CPT codes and ICD-10 codes while meeting regulatory requirements.

Exam trap

The trap here is that candidates often confuse general OCR services (like Cloud Vision API) with domain-specific document processors, overlooking that HIPAA compliance and pre-built healthcare form parsing require a specialized service like Document AI Healthcare API rather than a generic text extraction tool.

How to eliminate wrong answers

Option A is wrong because Cloud Vision API with OCR only extracts raw text from images without understanding the document structure or healthcare-specific fields, and it lacks built-in HIPAA compliance for protected health information (PHI). Option B is wrong because Vertex AI AutoML Tables is for tabular data prediction (e.g., regression or classification on structured datasets), not for extracting structured data from scanned PDF forms. Option D is wrong because Natural Language AI with entity extraction is designed for analyzing unstructured text (e.g., clinical notes) and cannot process scanned PDF forms or extract structured fields like procedure codes from document layouts.

353
MCQhard

A media company is using a generative AI model to create video captions. The model is deployed on Vertex AI with autoscaling. During peak hours, they observe high latency and request timeouts. Which action would most effectively address this issue?

A.Optimize the prompt to reduce output length
B.Reduce the maximum number of replicas to limit resource usage
C.Switch to a GPU-based machine type for faster inference
D.Increase the minimum number of replicas in the autoscaling configuration
AnswerD

Higher minimum replicas reduce cold starts and improve latency during traffic spikes.

Why this answer

Increasing the minimum number of replicas ensures that during peak hours, the model already has a baseline of warm instances ready to handle requests, reducing cold-start latency and preventing timeouts. Autoscaling can take time to spin up new replicas, so a higher minimum replica count directly mitigates the latency spike by pre-provisioning capacity.

Exam trap

The trap here is that candidates confuse performance optimization (faster inference per request) with capacity planning (ensuring enough concurrent replicas), leading them to choose GPU upgrades or prompt tweaks instead of addressing the autoscaling configuration.

How to eliminate wrong answers

Option A is wrong because optimizing the prompt to reduce output length may lower per-request compute time but does not address the root cause of insufficient concurrent serving capacity during traffic spikes. Option B is wrong because reducing the maximum number of replicas would cap the autoscaler's ability to add instances, worsening the bottleneck and increasing timeouts. Option C is wrong because switching to a GPU-based machine type can accelerate inference per request but does not solve the scaling issue; it may even increase cold-start time and cost without guaranteeing enough replicas to handle peak load.

354
MCQhard

A financial services company wants to use Vertex AI Grounding with enterprise data to power a regulatory compliance chatbot. They have strict data residency requirements: data must remain in the EU. What should they do?

A.Enable Data Residency by selecting a EU region during data store creation
B.Use a VPN to the US region
C.Convert data to private tokens
D.Use a Vertex AI endpoint in a European region
AnswerA

Data stores for grounding are region-specific; selecting EU ensures data stays in EU.

Why this answer

Vertex AI Grounding with enterprise data requires a data store, and when creating that data store in Vertex AI Search, you can select a EU region (e.g., europe-west1) to enforce data residency. This ensures all indexed enterprise data and grounding operations remain within the EU, satisfying strict regulatory requirements. The data store region determines where the data is stored and processed, independent of the Vertex AI endpoint region used for model inference.

Exam trap

The trap here is that candidates often confuse the Vertex AI endpoint region (for model inference) with the data store region (for enterprise data), assuming that selecting a European endpoint automatically ensures data residency, but the data store region must be explicitly set to a EU location.

How to eliminate wrong answers

Option B is wrong because using a VPN to the US region does not change where the data is physically stored or processed; data would still leave the EU, violating data residency requirements. Option C is wrong because converting data to private tokens does not address data residency; tokens are still derived from the original data and processed in the region where the service runs, and Vertex AI Grounding does not support tokenization for residency control. Option D is wrong because a Vertex AI endpoint in a European region only controls where the model inference runs, not where the enterprise data store is located; the data store could still be created in a non-EU region, causing data to leave the EU.

355
MCQeasy

Which Google DeepMind technology can be used to embed an invisible watermark into AI-generated images to help identify their origin?

A.SynthID
B.TensorFlow Privacy
C.PAIR Explorables
D.What-If Tool
AnswerA

SynthID embeds invisible watermarks into AI-generated images and audio.

Why this answer

SynthID is Google DeepMind's tool for watermarking AI-generated content. The other options are unrelated.

356
Multi-Selecthard

A company is deploying a generative AI application that must comply with GDPR. They need to ensure user data is not used for model training and that responses do not contain personal data. Which THREE measures should they implement?

Select 3 answers
A.Use prompt engineering to instruct the model not to output personal data
B.Implement output filtering with a PII detection API (e.g., DLP)
C.Set temperature to 0 to ensure deterministic outputs
D.Configure data retention policies to prevent Google from using prompts for model improvement
E.Use a dedicated model instance to avoid data mixing with other customers
AnswersB, D, E

Post-processing redacts personal data from responses, reducing compliance risk.

Why this answer

Data retention policies prevent storing user data for training; output filtering redacts personal data; using a dedicated instance isolates the model from other tenants. Prompt engineering is not reliable for compliance.

357
MCQhard

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

A.Incorrect prompt format
B.Low temperature setting
C.Insufficient training epochs
D.Overfitting to training data
AnswerD

Model memorizes training examples, losing generalization.

Why this answer

Overfitting to training data causes the model to memorize specific code patterns and syntax from the training set without learning the underlying logic or functional requirements. This results in syntactically correct outputs that fail to generalize to new, unseen coding tasks, producing functionally wrong code despite proper syntax.

Exam trap

Google Cloud often tests the misconception that syntactically correct but functionally wrong code is caused by prompt or temperature issues, when in fact it is a classic sign of overfitting where the model memorizes syntax without understanding logic.

How to eliminate wrong answers

Option A is wrong because incorrect prompt format typically leads to malformed or irrelevant outputs, not syntactically correct but functionally wrong code; the model would likely produce gibberish or off-topic responses. Option B is wrong because low temperature setting reduces randomness and makes outputs more deterministic, which would actually improve syntactic correctness and consistency, not cause functional errors. Option C is wrong because insufficient training epochs would result in underfitting, where the model fails to learn even basic syntax and produces incomplete or incoherent code, not syntactically correct but functionally wrong outputs.

358
MCQeasy

A data science team wants to run a machine learning model directly on data stored in BigQuery without moving the data to a separate environment. Which Google Cloud service should they use?

A.Vertex AI Training
B.Cloud Dataproc
C.Google AI Studio
D.BigQuery ML
AnswerD

BigQuery ML allows users to build and run ML models using SQL directly on BigQuery data, no data export needed.

Why this answer

BigQuery ML enables creating and executing ML models using standard SQL queries directly on data in BigQuery, eliminating data movement.

359
Multi-Selectmedium

Which THREE are best practices for responsible deployment of generative AI in a customer-facing application?

Select 3 answers
A.Implement human-in-the-loop review for sensitive outputs
B.Train the model on all available data to maximize coverage
C.Implement content filters to block inappropriate outputs
D.Use only small models to reduce risk
E.Conduct regular bias and fairness audits
AnswersA, C, E

Human review adds accountability and error correction.

Why this answer

Human-in-the-loop (HITL) review ensures that sensitive outputs—such as those involving protected health information (PHI), personally identifiable information (PII), or high-stakes decisions—are vetted by a human before reaching the customer. This mitigates the risk of harmful or biased generations that automated guardrails might miss, aligning with responsible AI principles like accountability and safety.

Exam trap

Google Cloud often tests the misconception that 'more data is always better' or that 'smaller models are safer,' when in fact responsible deployment hinges on data quality, continuous monitoring, and layered safeguards rather than model size or data volume alone.

360
MCQeasy

Refer to the exhibit. A company has this IAM policy on a Vertex AI project. Alice complains she cannot create a new model. What is the most likely reason?

A.She needs the roles/aiplatform.modelUser role
B.She needs the roles/aiplatform.admin role
C.She needs the roles/aiplatform.modelAdmin role
D.She needs the roles/aiplatform.modelCreator role
AnswerB

Admin role has full access, including model creation.

Why this answer

The IAM policy shown in the exhibit likely grants only basic permissions (e.g., roles/aiplatform.user) which do not include the ability to create models. The roles/aiplatform.admin role provides full administrative access, including model creation, deletion, and management across the Vertex AI project. Without this role, Alice lacks the necessary aiplatform.models.create permission, which is why she cannot create a new model.

Exam trap

Google Cloud often tests the misconception that there is a specific 'modelCreator' or 'modelAdmin' role, when in fact Vertex AI uses a flat admin role (roles/aiplatform.admin) for all create/delete operations, and candidates confuse custom role names with predefined ones.

How to eliminate wrong answers

Option A is wrong because roles/aiplatform.modelUser only grants read-only access to models (e.g., deploy and predict), not create permissions. Option C is wrong because roles/aiplatform.modelAdmin does not exist as a predefined role in Vertex AI; the correct role for model administration is roles/aiplatform.admin. Option D is wrong because roles/aiplatform.modelCreator is not a predefined IAM role in Vertex AI; model creation is covered by roles/aiplatform.admin or custom roles with aiplatform.models.create permission.

361
MCQhard

A legal team wants to use GenAI to review contracts and highlight risky clauses. They need the AI to consistently follow a specific classification taxonomy. The team has a small set of labeled examples (500 contracts). Which approach yields the BEST accuracy for this use case?

A.Prompt engineer a large foundation model with few-shot examples in Vertex AI Studio
B.Use the RAG Engine to retrieve similar clauses and ask the model to classify
C.Fine-tune a base model using the labeled examples in Vertex AI
D.Use a larger foundation model without fine-tuning and rely on its pre-trained knowledge
AnswerC

Fine-tuning adapts the model to the specific classification task and taxonomy, achieving higher accuracy with limited examples.

Why this answer

Fine-tuning a base model on the labeled examples teaches the model the specific taxonomy with high accuracy, even with a small dataset. Prompt engineering alone may be inconsistent. Larger model without fine-tuning may not adhere to taxonomy.

RAG is for retrieval, not classification.

362
MCQeasy

Which tool from Google's Responsible AI toolkit is designed to document the intended use, performance, and limitations of a machine learning model?

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

Model Cards document model purpose, performance, and limitations.

Why this answer

Model Cards are the correct tool because they are specifically designed to document the intended use, performance metrics, and limitations of a machine learning model. This standardized documentation format, introduced by Google, provides transparency by detailing evaluation results across different conditions, intended use cases, and known biases, which is essential for responsible AI deployment.

Exam trap

The Generative AI Leader exam often tests the distinction between tools that document datasets (Datasheets for Datasets) versus tools that document models (Model Cards), leading candidates to confuse the two when the question specifically asks about documenting a machine learning model.

How to eliminate wrong answers

Option A is wrong because PAIR Explorables are interactive articles and visualizations designed to help people understand and explore concepts in machine learning and AI, not to document a model's intended use, performance, and limitations. Option B is wrong because Datasheets for Datasets are focused on documenting the characteristics, collection process, and intended uses of datasets, not the machine learning model itself. Option C is wrong because the People + AI Guidebook is a set of design guidelines and patterns for building human-centered AI products, not a documentation tool for model specifications and limitations.

363
MCQmedium

After fine-tuning a foundation model on company emails, the model outputs confidential information. What is the most likely cause?

A.The prompt is too vague
B.The model is too large
C.The fine-tuning dataset was not anonymized
D.Overfitting to the training data leading to memorization
AnswerC

Unanonymized data can be memorized and reproduced by the model.

Why this answer

The most likely cause of a fine-tuned model outputting confidential information is that the fine-tuning dataset contained sensitive data that was not anonymized. During fine-tuning, the model learns patterns and can memorize specific sequences, including confidential details like names, addresses, or proprietary information, which it then reproduces in responses. This is a well-known data leakage risk in fine-tuning workflows.

Exam trap

Google Cloud often tests the distinction between a model's inherent behavior (like overfitting) and the root cause in the data pipeline, so candidates mistakenly choose overfitting (Option D) instead of recognizing that the dataset itself was the source of the confidential information.

How to eliminate wrong answers

Option A is wrong because a vague prompt may lead to irrelevant or generic outputs, but it does not directly cause the model to output specific confidential information that was not present in the training data. Option B is wrong because model size (number of parameters) does not inherently cause memorization of confidential data; memorization is a function of training data exposure and fine-tuning methodology, not model scale alone. Option D is wrong because while overfitting can lead to memorization, the root cause is the presence of unanonymized confidential data in the fine-tuning dataset; overfitting is a symptom, not the primary cause, and the question asks for the 'most likely cause'.

364
MCQhard

A healthcare provider wants to use generative AI to automatically draft clinical notes from doctor-patient conversations. They must comply with HIPAA and ensure patient data privacy. Which strategy best meets their requirements?

A.Outsource note generation to a third-party HIPAA-compliant vendor
B.Use Google Cloud Healthcare API integrated with Vertex AI
C.Deploy a custom model on-premises with strict access controls
D.Use a public LLM with a data anonymization pipeline
AnswerB

The Healthcare API is HIPAA-compliant and allows secure AI processing.

Why this answer

Google Cloud Healthcare API with Vertex AI provides a HIPAA-compliant, managed environment that integrates generative AI capabilities directly with healthcare data. The Healthcare API enforces data residency, access controls, and audit logging, while Vertex AI allows fine-tuning or using foundation models without exposing PHI to public endpoints. This combination ensures patient data privacy and regulatory compliance without requiring on-premises infrastructure.

Exam trap

Google Cloud often tests the misconception that on-premises deployment (Option C) is always the most secure choice, but the trap here is that cloud-native HIPAA-compliant services like Google Cloud Healthcare API can offer superior security, compliance, and scalability when properly configured with BAAs and data residency controls.

How to eliminate wrong answers

Option A is wrong because outsourcing to a third-party vendor introduces additional risk of data exposure during transmission and requires extensive Business Associate Agreements (BAAs) and due diligence, which may not fully align with the provider's direct control over privacy. Option C is wrong because deploying a custom model on-premises, while secure, is often cost-prohibitive and lacks the scalability and managed compliance features of cloud-native solutions like Google Cloud Healthcare API, which already handles HIPAA requirements. Option D is wrong because using a public LLM with a data anonymization pipeline is risky; anonymization is not foolproof and can be reversed via re-identification attacks, and public LLMs typically do not offer HIPAA-compliant data processing guarantees, violating privacy requirements.

365
MCQmedium

A healthcare company needs to generate synthetic medical images for research while ensuring compliance with patient privacy regulations. Which Google Cloud generative AI service should they use?

A.Codey for code generation
B.Chirp for speech recognition
C.Imagen on Vertex AI
D.Gemini 1.5 Pro with multimodal prompting
AnswerC

Imagen is purpose-built for text-to-image generation and can be deployed securely on Vertex AI with compliance controls.

Why this answer

Imagen on Vertex AI is Google's image generation service that can create synthetic images and offers controls for responsible AI and data governance.

366
MCQhard

A legal firm wants to automate contract analysis. They need to extract key clauses (e.g., termination, indemnification) from scanned PDFs. The team expects high accuracy and must maintain data privacy. Which combination of services is most suitable?

A.Use AutoML Tables to train a classification model on text features
B.Use Document AI for OCR and Vertex AI with a custom fine-tuned model for clause extraction
C.Use Gemini API directly with a prompt to analyze PDFs
D.Use AppSheet to create a form for manual entry and then use BigQuery ML
AnswerB

Document AI extracts text from scans; a fine-tuned model on Vertex AI provides high accuracy and data stays in Google Cloud.

Why this answer

Document AI performs OCR and extracts text from scanned PDFs; Vertex AI with a custom fine-tuned model provides high accuracy for clause extraction while keeping data within the customer's project.

367
Multi-Selecthard

Which THREE factors should be considered when selecting a foundation model for a generative AI application in a regulated industry?

Select 3 answers
A.Transparency of the model's training data and sources
B.Support for data residency and sovereignty requirements
C.Latency and throughput requirements
D.Size of the model in terms of parameters
E.Bias and fairness evaluation results
AnswersA, B, E

Regulated industries require understanding of data provenance to ensure compliance.

Why this answer

In regulated industries (e.g., healthcare, finance), transparency of training data and sources is critical for compliance with regulations like GDPR or HIPAA. Without knowing the provenance and composition of the training data, an organization cannot audit for prohibited content, verify consent, or ensure the model does not inadvertently expose sensitive information. This transparency directly impacts the ability to perform due diligence and meet legal obligations for data usage.

Exam trap

Google Cloud often tests the misconception that technical performance metrics (like latency or parameter count) are primary selection criteria for regulated industries, when in fact governance factors like transparency, data residency, and bias evaluation are the non-negotiable requirements.

368
MCQmedium

A developer is using the Gemini API to generate product descriptions. They want the output to be more focused and less random. Which parameter adjustment would BEST achieve this?

A.Decrease top-p to 0.1
B.Decrease temperature to 0.2
C.Increase top-k to 100
D.Increase temperature to 1.5
AnswerB

Lowering temperature reduces randomness, making the model more deterministic and focused on high-probability tokens.

Why this answer

Lowering temperature makes the model more deterministic and focused. Top-k and top-p control sampling but are secondary; raising temperature increases randomness.

369
Multi-Selectmedium

An enterprise is evaluating whether to build a custom fine-tuned model or use a pre-built API for code generation. Which three factors should they consider in the build vs. buy decision? (Choose THREE)

Select 3 answers
A.Data privacy and security requirements
B.Number of developer seats in the organization
C.Compatibility with on-premises legacy systems
D.Level of customization needed for the organization's coding standards
E.Availability of pre-built models for the specific programming language
AnswersA, D, E

If code contains proprietary logic, a custom model deployed within VPC may be necessary.

Why this answer

The three key factors in the build vs. buy decision for code generation are: data privacy and security requirements (build may be needed for IP-sensitive code), level of customization needed for the organization's coding standards (build offers more control), and availability of pre-built models for the specific programming language (buy may be faster if a suitable model exists). Factors like number of developer seats and on-premises legacy compatibility are not primary considerations for this decision.

370
MCQmedium

During a proof-of-concept for a GenAI document summarization tool, the team wants to evaluate whether the summaries are accurate and retain key information before scaling. Which evaluation approach is most appropriate for this stage?

A.Measure latency and cost as the primary evaluation metrics
B.Deploy to all users and collect feedback via a survey
C.Run an A/B test with a small user group and have domain experts manually review a sample of summaries for accuracy
D.Use ROUGE scores exclusively to compare summaries against human-written ones
AnswerC

A/B testing with manual expert review provides reliable quality assessment before broader rollout.

Why this answer

A/B testing with manual review by domain experts provides qualitative and quantitative feedback on accuracy and completeness, which is crucial for a pilot. Automated metrics alone may not capture business relevance.

371
Multi-Selectmedium

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

Select 3 answers
A.Fine-tune the model on a curated factual dataset
B.Use retrieval-augmented generation (RAG)
C.Apply prompt engineering with specific instructions to cite sources
D.Reduce the number of tokens in output
E.Increase the temperature parameter
AnswersA, B, C

Fine-tuning on factual data improves accuracy.

Why this answer

Fine-tuning on a curated factual dataset directly adjusts the model's weights to prioritize accurate, domain-specific knowledge, reducing the likelihood of generating unsupported or hallucinated content. This technique anchors the model's output in verified data, making it more reliable for question-answering tasks.

Exam trap

Google Cloud often tests the misconception that reducing output length or increasing randomness (temperature) can improve factual accuracy, when in reality these parameters control style and creativity, not truthfulness.

372
MCQeasy

A startup is building a customer service chatbot that generates responses in real-time. They want the model to have up-to-date information on the latest product catalog but cannot afford frequent fine-tuning. Which technique should they use to inject current data into the model without retraining?

A.Rely on the model's zero-shot capabilities to infer product details.
B.Use retrieval-augmented generation (RAG) to fetch relevant documents from a vector database at inference time.
C.Craft detailed system prompts that include the entire product catalog in the prompt.
D.Fine-tune the base model weekly on the latest product catalog.
AnswerB

RAG enables the model to access external, up-to-date information without retraining.

Why this answer

Retrieval-Augmented Generation (RAG) is the correct technique because it allows the chatbot to fetch the most current product catalog entries from an external vector database at inference time, without requiring any model retraining. This keeps responses grounded in up-to-date information while avoiding the cost and latency of frequent fine-tuning.

Exam trap

Google Cloud often tests the distinction between in-context learning (via RAG or prompt engineering) and parametric knowledge (via fine-tuning), trapping candidates who think that simply adding more data to the prompt is scalable or that zero-shot inference can substitute for external retrieval.

How to eliminate wrong answers

Option A is wrong because zero-shot capabilities rely solely on the model's pre-existing knowledge, which cannot incorporate new or updated product catalog details without retraining. Option C is wrong because crafting detailed system prompts with the entire product catalog would exceed the model's context window limits and incur high token costs, making it impractical for real-time inference. Option D is wrong because fine-tuning weekly is expensive, time-consuming, and contradicts the requirement to avoid frequent retraining; it also risks catastrophic forgetting of previously learned information.

373
MCQmedium

An ML engineer sees the above deployment output. The business wants to reduce inference cost. Which action should they take?

A.Use a larger model
B.Change to a lower-cost machine type
C.Deploy to multiple regions
D.Increase traffic split
AnswerB

Using a smaller machine type reduces per-request compute cost.

Why this answer

Switching to a lower-cost machine type directly reduces the per-request compute cost without altering the model architecture or inference logic. This is a common cost-optimization strategy in cloud-based ML deployments, where instance types (e.g., from GPU to CPU or from a larger to a smaller GPU) can be selected based on latency and throughput requirements, provided the model fits within the machine's memory and compute constraints.

Exam trap

Google Cloud often tests the misconception that 'more resources' (larger model, more regions) always improves performance, but here the business goal is cost reduction, so the correct action is to downsize infrastructure while maintaining acceptable quality.

How to eliminate wrong answers

Option A is wrong because using a larger model increases both memory footprint and compute operations per inference, which raises cost and latency—the opposite of the business goal. Option C is wrong because deploying to multiple regions adds infrastructure overhead, data transfer costs, and management complexity, increasing rather than reducing inference cost. Option D is wrong because increasing traffic split (e.g., routing more requests to a shadow or canary deployment) does not reduce cost; it may increase resource utilization or require additional compute capacity.

374
MCQeasy

A company is evaluating whether to build a custom generative AI solution from scratch or use a pre-built API from a cloud provider. Which factor most strongly supports the build-from-scratch approach?

A.The team has limited machine learning expertise.
B.Speed to market is the top priority.
C.Minimizing initial development cost is critical.
D.The solution requires deep integration with proprietary data and unique domain-specific outputs.
AnswerD

Custom models can be fine-tuned on proprietary data for unique needs.

Why this answer

Building a custom generative AI solution from scratch is most strongly supported when deep integration with proprietary data and unique domain-specific outputs is required. Pre-built APIs are typically trained on general data and may not capture the nuances of specialized domains, whereas a custom model can be fine-tuned or trained from scratch on proprietary datasets to achieve higher accuracy and relevance for unique business needs.

Exam trap

The trap here is that candidates may confuse 'minimizing cost' (Option C) with long-term total cost of ownership, but The Generative AI Leader exam specifically tests the immediate strategic driver for build vs. buy, which is the need for proprietary data integration and unique outputs.

How to eliminate wrong answers

Option A is wrong because limited ML expertise would favor using a pre-built API to avoid the complexity of model training, infrastructure management, and hyperparameter tuning. Option B is wrong because speed to market is a key advantage of pre-built APIs, which offer immediate access to generative capabilities without the months of development required for a custom solution. Option C is wrong because minimizing initial development cost typically favors pre-built APIs, which have lower upfront investment compared to the significant costs of data preparation, compute resources, and specialized talent needed for building from scratch.

375
MCQmedium

A data scientist is trying to get online predictions from a Vertex AI endpoint but receives the error shown. What is the most likely cause?

A.The region in the request does not match the endpoint region
B.The model has not been deployed to the specified endpoint
C.The endpoint ID is incorrect
D.The model ID is incorrect
AnswerB

The error message directly states the model is not deployed to the endpoint.

Why this answer

The error indicates that the model is not deployed to the endpoint. In Vertex AI, an endpoint is a resource that hosts one or more deployed models. If a model has not been deployed to the endpoint, any prediction request to that endpoint will fail with a 'model not found' or similar error, even if the endpoint ID and region are correct.

Exam trap

Google Cloud often tests the distinction between endpoint existence and model deployment, where candidates confuse a valid endpoint ID with the requirement that a model must be explicitly deployed to that endpoint before predictions can be served.

How to eliminate wrong answers

Option A is wrong because if the region in the request did not match the endpoint region, the error would typically be a 'region mismatch' or 'not found' error at the API routing level, not a model deployment error. Option C is wrong because an incorrect endpoint ID would result in a '404 Not Found' or 'endpoint not found' error, not a model deployment error. Option D is wrong because the model ID is not directly used in the prediction request to an endpoint; the endpoint routes to the deployed model, so an incorrect model ID would not cause this specific error unless the model was never deployed.

Page 4

Page 5 of 10

Page 6

All pages