Courseiva

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

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

Page 5

Page 6 of 10

Page 7
376
MCQmedium

A developer wants to build a RAG application using Vertex AI. Which vector database is natively integrated with Vertex AI for storing embeddings?

A.Firestore
B.Vertex AI Vector Search
C.Cloud SQL
D.Bigtable
AnswerB

Vector Search is purpose-built for storing and querying embeddings.

Why this answer

Vertex AI Vector Search is the native vector database integrated with Vertex AI for storing and querying embeddings. It is purpose-built for high-dimensional vector similarity search, enabling efficient retrieval in RAG applications without requiring external infrastructure.

Exam trap

Google Cloud often tests the misconception that any database can store embeddings equally well, but the key differentiator is native vector indexing and ANN search support, which only Vertex AI Vector Search provides among the listed options.

How to eliminate wrong answers

Option A is wrong because Firestore is a NoSQL document database designed for storing structured data, not optimized for vector similarity search or embedding storage. Option C is wrong because Cloud SQL is a relational database service (MySQL, PostgreSQL, SQL Server) that lacks native vector indexing and similarity search capabilities required for RAG. Option D is wrong because Bigtable is a wide-column NoSQL database for large-scale analytical workloads, not designed for low-latency vector similarity queries.

377
MCQmedium

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

A.Batch multiple user queries together.
B.Deploy the model with more accelerators.
C.Enable prompt caching to reuse previous queries.
D.Use streaming responses to start output earlier.
AnswerD

Streaming sends tokens as they are generated, reducing the wait for the full response.

Why this answer

Streaming responses allow the model to send tokens to the client as they are generated, rather than waiting for the full sequence to complete. This reduces perceived latency significantly in real-time chat, as users see the first word appear almost immediately, even though the total generation time remains similar.

Exam trap

The trap here is that candidates often confuse throughput optimization (batching or more accelerators) with latency reduction, failing to recognize that streaming directly minimizes the time users wait for the first visible output in real-time scenarios.

How to eliminate wrong answers

Option A is wrong because batching multiple user queries together increases latency for individual requests, as the system waits to accumulate enough queries before processing, which is counterproductive for real-time chat. Option B is wrong because deploying with more accelerators improves throughput and total generation speed, but does not address the fundamental issue of word-by-word generation latency; the model still outputs one token at a time, and the user must wait for the full response. Option C is wrong because prompt caching reuses previous queries to avoid recomputation, but this optimization targets repeated or similar prompts, not the latency of generating a new response token-by-token.

378
MCQmedium

A company wants to build a chatbot that answers questions based on internal documents. Which approach is most appropriate?

A.Use a pre-trained model without any customizations
B.Train a custom model from scratch
C.Fine-tune a model on the documents
D.Use a prompt with the documents in the context
AnswerD

This is the core of RAG: provide relevant documents in the prompt to ground the model's answers.

Why this answer

Retrieval-Augmented Generation (RAG) allows the chatbot to dynamically include relevant internal documents in the prompt context without modifying the underlying model. This approach leverages the pre-trained model's language understanding while grounding answers in specific, up-to-date internal data, avoiding the cost and latency of fine-tuning or retraining.

Exam trap

Google Cloud often tests the misconception that fine-tuning is the only way to incorporate proprietary data, but RAG is the most appropriate for dynamic, retrieval-based Q&A because it avoids retraining and keeps the model's knowledge current.

How to eliminate wrong answers

Option A is wrong because a pre-trained model without customization lacks access to the company's internal documents, leading to hallucinated or generic answers not grounded in proprietary data. Option B is wrong because training a custom model from scratch is computationally prohibitive and unnecessary; it requires massive labeled datasets and resources, whereas RAG achieves the same goal with far less effort. Option C is wrong because fine-tuning on documents teaches the model to memorize specific content, which is inefficient for large, frequently updated document sets and risks catastrophic forgetting, whereas RAG keeps the model static and retrieves fresh context per query.

379
MCQhard

An enterprise customer needs to ensure that all data sent to the Gemini API is not used by Google for model improvement and must support a HIPAA BAA. Which access tier should they use?

A.Google AI Studio (free tier)
B.Vertex AI (enterprise tier)
C.Gemini API via Google Workspace
D.Gemini API via API key (developer tier)
AnswerB

Enterprise tier provides data isolation, no training on customer data, and HIPAA BAA.

Why this answer

Vertex AI for enterprise offers data isolation, no use of customer data for training, and HIPAA BAA. Google AI Studio and Gemini API (developer) do not provide these guarantees.

380
MCQhard

A data scientist wants to generate photorealistic images of products from text descriptions for an e-commerce catalog. The images must be brand-consistent and avoid generating distorted product features. Which Google Cloud generative AI service should they use?

A.Veo
B.Imagen
C.Chirp
D.Gemini Pro Vision
AnswerB

Imagen is Google's text-to-image diffusion model, built for creating realistic, high-fidelity images from prompts, with features for brand consistency.

Why this answer

Imagen is Google's text-to-image model that produces high-quality, photorealistic images. It is designed for brand consistency and safe image generation.

381
MCQhard

A team is building a medical diagnosis assistant using a foundation model. To comply with regulations, they need to ensure the model does not make up facts. What is the best approach?

A.Use a small model to hallucinate less
B.Use grounding with Vertex AI Search
C.Reduce temperature to 0
D.Fine-tune on medical journals
AnswerB

Grounding provides verifiable citations and reduces fabrication.

Why this answer

Grounding with Vertex AI Search is the best approach because it connects the foundation model's outputs to a verifiable, curated knowledge base, ensuring factual accuracy and compliance with regulations that prohibit hallucination. By retrieving information from a trusted source (e.g., medical databases) in real time, the model can cite evidence and avoid generating unverified claims.

Exam trap

Google Cloud often tests the misconception that reducing temperature or using a smaller model can eliminate hallucination, when in fact only grounding with external, verifiable data sources can reliably prevent fact fabrication in high-stakes domains.

How to eliminate wrong answers

Option A is wrong because using a smaller model does not inherently reduce hallucination; smaller models have less capacity and may actually hallucinate more due to limited training data and weaker reasoning. Option C is wrong because reducing temperature to 0 makes the model deterministic but does not prevent it from generating plausible-sounding but false information; it still relies on its parametric knowledge, which can be incomplete or outdated. Option D is wrong because fine-tuning on medical journals alone does not guarantee factual accuracy; the model may memorize and reproduce errors, and it cannot dynamically verify facts against a live, authoritative source.

382
MCQhard

A company wants to generate a video from a text description using Google Cloud. Which service is designed for this?

A.Codey
B.Chirp
C.Imagen
D.Veo
AnswerD

Veo is Google's text-to-video generation model.

Why this answer

Veo is Google Cloud's generative AI model specifically designed for creating high-quality videos from text or image prompts. It leverages advanced diffusion and transformer architectures to generate coherent video sequences, making it the correct choice for text-to-video generation.

Exam trap

The trap here is that candidates often confuse Imagen (text-to-image) with Veo (text-to-video), assuming any generative visual model can handle video, but Google Cloud explicitly separates these capabilities into distinct services.

How to eliminate wrong answers

Option A is wrong because Codey is Google's model for code generation and chat, not video creation. Option B is wrong because Chirp is a speech-to-text and text-to-speech model, focused on audio processing. Option C is wrong because Imagen is a text-to-image model, capable of generating static images but not video sequences.

383
MCQhard

A media company uses generative AI to produce personalized news summaries. They notice that summaries occasionally contain factual errors and biased language. What business strategy should they implement to address these issues while maintaining user engagement?

A.Disable personalization and serve generic summaries to all users.
B.Allow users to flag errors and manually correct summaries in real-time.
C.Implement a human review layer for high-risk topics and use automated fact-checking for all content, with a feedback loop for model improvement.
D.Replace AI with entirely human-written summaries.
AnswerC

This ensures accuracy and allows continuous improvement.

Why this answer

It balances accuracy and engagement by combining automated fact-checking with human review for high-risk topics. This hybrid approach reduces factual errors and biased language while maintaining the personalization that drives user engagement. The feedback loop continuously improves the model, addressing root causes rather than just symptoms.

Exam trap

Google Cloud often tests the misconception that either full automation or full human oversight is the only solution, when the correct answer is a hybrid approach that leverages the strengths of both AI and human judgment.

How to eliminate wrong answers

Option A is wrong because disabling personalization eliminates the core value proposition of generative AI for news summaries, likely reducing user engagement significantly without addressing the underlying model flaws. Option B is wrong because allowing real-time manual corrections by users is impractical at scale, introduces latency, and does not prevent errors from reaching users in the first place; it also lacks a systematic feedback mechanism for model improvement. Option D is wrong because replacing AI with entirely human-written summaries is cost-prohibitive, slow, and defeats the purpose of using generative AI for scalability and personalization.

384
MCQeasy

A marketing team wants to generate product descriptions using a text generation model on Vertex AI. They need consistent output style across all descriptions, including tone and length. They have a small set of 10 high-quality example descriptions that capture the desired style. The team has limited ML expertise and wants a quick solution that does not require model retraining. Which approach should they use?

A.Use a pre-built template with no model input.
B.Fine-tune the model on a large external dataset of product descriptions.
C.Use few-shot prompting with the examples in the prompt.
D.Set the temperature to 0.9 to maximize creativity.
AnswerC

Few-shot prompting directly leverages examples to achieve consistent style without retraining.

Why this answer

Few-shot prompting is the correct approach because it allows the team to inject the desired style, tone, and length directly into the prompt using the 10 high-quality examples, without any model retraining. This technique leverages the in-context learning capability of large language models on Vertex AI, enabling consistent output from a small set of demonstrations. It is ideal for teams with limited ML expertise as it requires only prompt engineering, not fine-tuning or infrastructure changes.

Exam trap

Google Cloud often tests the misconception that higher temperature always improves output quality, but the trap here is that temperature controls randomness, not consistency, so candidates may incorrectly choose Option D without understanding that low temperature is required for reproducible style and length.

How to eliminate wrong answers

Option A is wrong because a pre-built template with no model input cannot generate dynamic, context-aware product descriptions; it produces static text that lacks the flexibility and nuance of a generative model. Option B is wrong because fine-tuning on a large external dataset would require significant ML expertise, data preparation, and compute resources, contradicting the requirement for a quick solution without model retraining. Option D is wrong because setting temperature to 0.9 maximizes randomness and creativity, which is the opposite of what is needed for consistent output style; a lower temperature (e.g., 0.2) would be more appropriate for deterministic, reproducible results.

385
MCQeasy

A data scientist wants to generate realistic product images for an online catalog using Google Cloud's generative AI. Which service should they use?

A.Imagen on Vertex AI
B.Codey API for code generation
C.Gemini API with text-to-text prompts
D.Vertex AI Model Garden without a specific model
AnswerA

Imagen is purpose-built for image generation.

Why this answer

Imagen on Vertex AI is Google Cloud's specialized service for generating high-quality, photorealistic images from text prompts. It is built on diffusion models and is directly designed for image generation tasks, making it the correct choice for creating product images for an online catalog.

Exam trap

The trap here is that candidates may confuse the general-purpose Gemini API (which can handle multimodal inputs) with a dedicated image generation service, overlooking that Gemini's text-to-text mode does not generate images, while Imagen is purpose-built for that task.

How to eliminate wrong answers

Option B is wrong because Codey API is designed for code generation, not image generation; it uses models specialized in programming languages and cannot produce visual outputs. Option C is wrong because Gemini API with text-to-text prompts is optimized for text-based tasks like summarization or question answering, not for generating images; while Gemini can process images, its primary text-to-text mode does not generate visual content. Option D is wrong because Vertex AI Model Garden is a repository of pre-trained models and frameworks, but without selecting a specific model like Imagen, it cannot directly generate images; it requires explicit model selection and configuration.

386
Multi-Selectmedium

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

Select 2 answers
A.Increasing model size to learn more patterns
B.Training on diverse and representative datasets
C.Relying solely on post-hoc filters
D.Using adversarial debiasing methods during fine-tuning
E.Limiting the model to only factual prompts
AnswersB, D

Correct: Diverse data helps reduce biased associations.

Why this answer

Training on diverse and representative datasets directly reduces sampling bias and coverage gaps in the training distribution, which are primary sources of stereotypical or skewed outputs. By ensuring the model sees balanced examples across demographics, contexts, and edge cases, it learns more equitable representations and reduces the likelihood of generating biased content.

Exam trap

Google Cloud often tests the misconception that increasing model size or adding post-hoc filters is sufficient to mitigate bias, when in reality these approaches fail to address the root causes of bias in training data and model representations.

387
MCQhard

A financial institution deploys a chatbot using Gemini Pro in Vertex AI. Compliance requires logging all user inputs and model outputs for audit. Which approach meets this requirement?

A.Capture logs via Cloud Monitoring
B.Enable Vertex AI Endpoint request-response logging
C.Use Cloud Logging sink with a filter for Vertex AI requests
D.Enable Vertex AI Model Registry logging
AnswerB

This captures every request and response for the deployed model, meeting audit requirements.

Why this answer

Vertex AI Endpoint request-response logging captures both the user's input prompt and the model's generated output, which is precisely what compliance auditing requires. This feature logs the exact payloads sent to and received from the deployed model, ensuring a complete audit trail without additional configuration.

Exam trap

The trap here is that candidates confuse Cloud Logging sinks or Cloud Monitoring with the specific Vertex AI feature that must be explicitly enabled on the endpoint, assuming that default logging captures request-response payloads when it does not.

How to eliminate wrong answers

Option A is wrong because Cloud Monitoring is designed for metrics, alerts, and dashboards, not for capturing detailed request-response payloads for audit compliance. Option C is wrong because a Cloud Logging sink with a filter can only export logs that already exist; it does not enable the capture of Vertex AI request-response logs, which must be explicitly enabled on the endpoint. Option D is wrong because Vertex AI Model Registry logging tracks model version metadata and lifecycle events, not the user inputs and model outputs from inference calls.

388
Multi-Selecteasy

A developer is using the Vertex AI PaLM API to generate code. They want to ensure the output is safe and adheres to company policies. Which THREE attributes can they configure in the safety_settings parameter?

Select 3 answers
A.Language detection
B.Sentiment analysis
C.Toxicity
D.Harassment
E.Sexually explicit content
AnswersC, D, E

Toxicity is a standard safety category.

Why this answer

The safety_settings parameter in the Vertex AI PaLM API allows developers to filter content based on predefined harm categories, including toxicity. This setting enables the API to block or adjust responses that contain toxic language, ensuring the generated code adheres to company safety policies by preventing harmful or offensive outputs.

Exam trap

The trap here is that candidates may confuse general NLP features (like language detection or sentiment analysis) with the specific safety filtering attributes available in the safety_settings parameter, leading them to select options that are not part of the API's harm category configuration.

389
MCQhard

A data science team wants to build a custom model for generating product descriptions that adhere to specific brand guidelines. They have 5,000 high-quality examples. Which approach balances cost and accuracy?

A.Fine-tune a foundation model (e.g., PaLM 2) using Vertex AI Model Garden
B.Use a pre-built API with prompt engineering and few-shot examples
C.Use Vertex AI Agent Builder with a custom prompt
D.Train a model from scratch using TensorFlow on Vertex AI
AnswerA

Fine-tuning adapts the model to the specific style with a reasonable cost.

Why this answer

Fine-tuning a foundation model on the examples yields high accuracy with moderate cost. Training from scratch is overkill; prompt engineering may not capture all nuances.

390
MCQhard

A multimodal generative AI system processes both image and text inputs to produce captions. During inference, the image encoder sometimes produces noisy or missing features. Which architectural design decision best handles such input degradation without retraining?

A.Train a separate variational autoencoder to produce a clean latent representation from the noisy image.
B.Increase the image encoder’s capacity to better extract robust features.
C.Apply standard image preprocessing (e.g., denoising) to all inputs before feeding to the encoder.
D.Introduce a gating mechanism that learns to weigh image features based on confidence scores from the encoder.
AnswerD

Gating allows the model to ignore unreliable features dynamically.

Why this answer

A gating mechanism dynamically adjusts the contribution of image features based on confidence scores from the encoder, allowing the model to gracefully handle noisy or missing features without retraining. This architectural design learns to suppress unreliable image inputs and rely more on text or other modalities, ensuring robust caption generation under input degradation.

Exam trap

Google Cloud often tests the misconception that preprocessing or model capacity adjustments are the only ways to handle input noise, but the key insight is that architectural mechanisms like gating can adaptively handle degradation at inference time without retraining.

How to eliminate wrong answers

Option A is wrong because training a separate variational autoencoder (VAE) to produce clean latent representations requires additional training data and retraining, which contradicts the 'without retraining' constraint; it also adds complexity without addressing dynamic degradation during inference. Option B is wrong because increasing the image encoder’s capacity does not inherently handle noisy or missing features—it may overfit to training data and still produce unreliable outputs when inputs degrade, and it requires retraining to change capacity. Option C is wrong because standard image preprocessing like denoising is a fixed, non-adaptive approach that cannot compensate for missing features or varying noise levels, and it may discard useful information; it also does not leverage the model’s ability to learn confidence-based weighting.

391
MCQmedium

A company is developing a generative AI application that will be used by customers in multiple countries, including those with strict data residency laws. How should they approach data governance?

A.Store all data in a single central data center to simplify management
B.Use a VPN to route data through compliant regions
C.Use data residency controls to keep data in specified regions
D.Anonymize all data before processing to avoid residency issues
AnswerC

Data residency controls ensure compliance by restricting data storage and processing to allowed locations.

Why this answer

Data residency controls, such as those provided by Google Cloud Organization Policies, Assured Workloads, or Cloud Storage location constraints, allow the company to enforce that data is stored and processed only within specified geographic regions. This directly addresses strict data residency laws by preventing data from leaving the jurisdiction, which is a fundamental requirement for compliance with regulations like GDPR or Brazil's LGPD. Unlike workarounds, this approach provides native, auditable enforcement at the infrastructure level.

Exam trap

A common misconception is that technical workarounds like VPNs or anonymization can substitute for native data residency enforcement, when in fact only infrastructure-level controls provide the auditable, deterministic compliance required by law.

How to eliminate wrong answers

Option A is wrong because storing all data in a single central data center violates data residency laws that require data to remain within specific national or regional boundaries, and it does not provide any mechanism to segregate or control data flow based on user location. Option B is wrong because using a VPN to route data through compliant regions does not change the physical storage location of the data; it only masks the network path, and the data still resides in a non-compliant data center, which fails legal audits. Option D is wrong because anonymization is not a guaranteed solution for data residency; many regulations (e.g., GDPR) still apply to pseudonymized or anonymized data if re-identification is possible, and the data's physical location remains non-compliant unless stored in the required region.

392
MCQhard

A company wants to run a large-scale training job for a 175B parameter model. They need to minimize training time and cost. Which TPU version and configuration should they choose?

A.TPU v2-8
B.TPU v3-32
C.TPU v4-64
D.TPU v5e-256
AnswerD

v5e provides a good balance of performance and cost for large-scale training.

Why this answer

The TPU v5e-256 offers the best performance-per-dollar for large-scale training of a 175B parameter model. With 256 chips in a pod, it provides massive parallelism and high memory bandwidth, significantly reducing training time compared to earlier generations while maintaining cost efficiency through optimized architecture.

Exam trap

The trap here is that candidates often assume larger chip count alone (like v4-64) is sufficient, but fail to consider the memory capacity per chip and the cost-efficiency of newer generations, leading them to overlook the v5e-256's superior balance of scale and affordability.

How to eliminate wrong answers

Option A is wrong because TPU v2-8 provides only 8 chips with 64 GB HBM total, which is far too small for a 175B parameter model (requiring ~350 GB just for parameters) and lacks the memory capacity and inter-chip interconnect speed needed for efficient distributed training. Option B is wrong because TPU v3-32 offers 32 chips with 128 GB HBM total, still insufficient memory for a 175B model and uses older interconnects that create bottlenecks at scale, leading to longer training times and higher overall cost. Option C is wrong because TPU v4-64 provides 64 chips with 256 GB HBM total, which is still below the memory requirement for a 175B model and, while faster than v3, does not match the cost-efficiency and throughput of v5e at the required scale.

393
MCQhard

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

A.Increase the batch size to 64
B.Increase the number of training epochs
C.Use early stopping based on validation loss
D.Apply differential privacy (DP-SGD) during fine-tuning
AnswerD

DP-SGD bounds the influence of any single example, reducing memorization and improving privacy.

Why this answer

Differential privacy (DP-SGD) is the correct technique because it directly addresses memorization of sensitive patient data by adding calibrated noise to the gradient updates during fine-tuning. This bounds the model's ability to encode any single individual's information, improving generalization and ensuring compliance with privacy regulations like HIPAA.

Exam trap

Google Cloud often tests the misconception that early stopping or batch size adjustments can prevent memorization, when in fact only techniques like differential privacy directly bound the influence of individual training examples.

How to eliminate wrong answers

Option A is wrong because increasing batch size to 64 reduces gradient variance but does not prevent memorization of specific patient details; it may even accelerate overfitting on a small dataset. Option B is wrong because increasing the number of training epochs exacerbates overfitting, causing the model to memorize more training examples and worsen privacy violations. Option C is wrong because early stopping based on validation loss only halts training when validation performance degrades, but it does not impose any privacy guarantee or fundamentally limit memorization of unique patient records.

394
Multi-Selecthard

Which THREE benefits does Vertex AI Agent Builder provide over building a custom conversational agent from scratch?

Select 3 answers
A.Automatic scaling and load balancing
B.Pre-built integration for grounding on enterprise data sources
C.Full control over the underlying ML model architecture
D.Built-in safety filters and guardrails
E.Guaranteed lower inference latency
AnswersA, B, D

Managed service scales according to demand without manual intervention.

Why this answer

Vertex AI Agent Builder provides automatic scaling and load balancing as a managed service, handling infrastructure provisioning and traffic distribution across multiple instances without manual intervention. This eliminates the need to configure Kubernetes clusters or load balancers yourself, which is required when building a custom conversational agent from scratch.

Exam trap

The trap here is that candidates may confuse 'full control' (Option C) with the flexibility of Vertex AI Agent Builder, which actually limits architectural control in favor of managed simplicity, and may assume managed services always provide lower latency (Option E) without considering that custom optimizations can outperform generic managed solutions.

395
Multi-Selectmedium

A developer is using the Gemini API to generate marketing copy. They want the output to be diverse and creative but still relevant to the topic. Which THREE parameter adjustments would help achieve this? (Choose 3)

Select 3 answers
A.Increase temperature to 0.9
B.Increase top-k to 50
C.Decrease temperature to 0.1
D.Decrease top-k to 10
E.Increase top-p to 0.95
AnswersA, B, E

Higher temperature increases randomness, leading to more creative outputs.

Why this answer

Higher temperature increases randomness and creativity. Higher top-k and higher top-p both allow more tokens to be considered, increasing diversity. Lowering these would make output more focused.

396
MCQmedium

A startup develops a generative AI tool for legal document review. To ensure explainability, they want the model to cite specific clauses from source documents when making assertions. Which technique should they use?

A.Fine-tuning on legal documents with citation examples
B.Chain-of-thought prompting
C.Grounding using a retrieval system that provides source documents
D.Prompt engineering to ask for citations
AnswerC

Grounding forces the model to retrieve and cite actual source material, improving explainability.

Why this answer

Grounding in generative AI means the model cites verifiable sources for its outputs, which is essential for explainability in domains like law.

397
MCQmedium

A healthcare startup needs to process sensitive patient data using NLP models on Google Cloud. They require HIPAA compliance and the ability to run models within their VPC. Which service should they use to access Gemini models?

A.Gemini API directly via API key
B.BigQuery ML
C.Vertex AI
D.Google AI Studio
AnswerC

Vertex AI offers VPC Service Controls, data isolation, audit logging, and can sign a HIPAA BAA.

Why this answer

Vertex AI provides enterprise-grade features including VPC Service Controls, data isolation, and HIPAA BAA. Google AI Studio is free-tier prototyping only and does not offer these compliance or security controls.

398
MCQeasy

A company wants to estimate the total cost of ownership (TCO) for a gen AI solution on Google Cloud. Which factors are most important?

A.Only model training cost
B.Compute, storage, and API call costs
C.Only inference cost
D.Only compute cost
AnswerB

These three categories cover the primary cost drivers in a gen AI solution.

Why this answer

The total cost of ownership (TCO) for a generative AI solution on Google Cloud encompasses all operational expenses, including compute (e.g., TPU/GPU instances for training and inference), storage (e.g., Cloud Storage for datasets and model artifacts), and API call costs (e.g., Vertex AI prediction requests). Focusing on a single cost component, such as training or inference alone, ignores the recurring expenses of serving the model and storing data, which often dominate long-term TCO.

Exam trap

Google Cloud often tests the misconception that TCO is dominated by a single cost factor (e.g., training), when in reality, inference and API costs frequently surpass training expenses in production deployments.

How to eliminate wrong answers

Option A is wrong because it ignores inference, storage, and API costs, which are significant for production gen AI solutions where models are queried repeatedly. Option C is wrong because inference cost is only one part of TCO; training, storage, and API overhead also contribute heavily, especially with large models like PaLM 2 or Gemini. Option D is wrong because compute cost alone excludes storage (e.g., model checkpoints, training data) and API call fees (e.g., per-token billing for Vertex AI), leading to an incomplete TCO estimate.

399
MCQmedium

A company is using Vertex AI Model Registry to manage multiple versions of its custom generative model. They want to automatically route a percentage of traffic to a new model version for testing. What should they do?

A.Set up a Cloud Tasks queue to distribute requests
B.Create a new endpoint for each version
C.Deploy both versions to the same endpoint and adjust traffic split settings
D.Use a load balancer in front of the endpoints
AnswerC

Vertex AI endpoints allow splitting traffic percentage across deployed models.

Why this answer

Vertex AI Endpoints support traffic splitting between model versions.

400
Multi-Selecthard

Which TWO strategies can effectively reduce the operational costs of a generative AI model in production without significantly degrading user experience?

Select 2 answers
A.Use larger batch sizes for inference
B.Increase the frequency of model retraining to improve efficiency
C.Cache frequent prompt completions
D.Adopt a pay-per-use pricing model instead of a flat rate
E.Deploy multiple models and route requests by complexity
AnswersC, D

Caching reduces duplicate inference calls, lowering cost.

Why this answer

Caching frequent prompt completions reduces operational costs by eliminating redundant inference calls for identical or similar user requests. This directly lowers compute usage and latency without degrading user experience, as cached responses are served instantly. It is a common optimization in production LLM deployments, especially for high-traffic applications with repetitive queries.

Exam trap

Google Cloud often tests the misconception that increasing batch sizes or retraining frequency inherently reduces costs, when in fact these actions typically increase resource usage or introduce operational overhead without guaranteeing cost savings.

401
MCQeasy

A startup wants to build a generative AI application for customer support. Their main concern is cost control while maintaining low latency. Which Google Cloud service is most suitable for deploying their custom model?

A.BigQuery ML
B.Cloud Run
C.Vertex AI Workbench
D.Vertex AI Prediction
AnswerD

Vertex AI Prediction provides autoscaling online prediction endpoints with low latency, ideal for cost-sensitive production.

Why this answer

Vertex AI Prediction is the correct choice because it provides a fully managed, serverless endpoint for deploying custom models with autoscaling to zero, which directly addresses the startup's need for cost control by only charging for compute resources when the endpoint serves predictions. It also supports low latency through optimized prediction containers and can leverage GPUs or TPUs for inference, making it ideal for real-time customer support applications.

Exam trap

The trap here is that candidates often confuse development tools (like Vertex AI Workbench) or batch inference services (like BigQuery ML) with production deployment services, overlooking that Vertex AI Prediction is the only option purpose-built for serving custom models with cost-efficient, low-latency inference.

How to eliminate wrong answers

Option A is wrong because BigQuery ML is designed for training and executing machine learning models using SQL queries directly within BigQuery, not for deploying custom models as low-latency, real-time prediction endpoints; it is more suited for batch inference on large datasets. Option B is wrong because Cloud Run is a serverless compute platform for running stateless containers, but it lacks native support for model serving optimizations like GPU acceleration, model versioning, and autoscaling tailored to inference workloads, which are critical for cost-effective, low-latency predictions. Option C is wrong because Vertex AI Workbench is a Jupyter-based development environment for building and training models, not a deployment service; it does not provide managed prediction endpoints or the infrastructure for serving custom models in production.

402
MCQeasy

A marketing team wants to generate consistent brand-aligned social media posts using Vertex AI Studio. Which prompt engineering technique should they use to ensure the output tone matches their brand voice?

A.Set the temperature to 0 and use a long system instruction
B.Provide a few-shot prompt with examples of previous brand-aligned posts
C.Use a zero-shot prompt describing the brand voice
D.Use chain-of-thought prompting to explain the reasoning behind each post
AnswerB

Few-shot examples guide the model to replicate the desired tone and style.

Why this answer

Few-shot examples provide the model with clear examples of desired tone, ensuring consistency. Zero-shot or chain-of-thought are less effective for tone adherence.

403
MCQmedium

The exhibit shows the output of describing a model on Vertex AI. What does 'modelSource: MODEL_GARDEN' indicate about this model?

A.The model was imported from the Vertex AI Model Garden.
B.The model was trained on Vertex AI from scratch.
C.The model has been exported to Model Garden.
D.The model was fine-tuned using AutoML.
AnswerA

MODEL_GARDEN indicates it's a Model Garden model.

Why this answer

'modelSource: MODEL_GARDEN' explicitly indicates that the model was sourced from Vertex AI Model Garden, which is a curated repository of pre-built and pre-trained foundation models. This field is set when a model is imported from Model Garden, not when it is trained or fine-tuned from scratch within Vertex AI.

Exam trap

The trap here is that candidates confuse 'modelSource' with the model's training or fine-tuning method, assuming 'MODEL_GARDEN' implies the model was trained or fine-tuned on Vertex AI, when in fact it strictly indicates the model was imported from the Model Garden repository.

How to eliminate wrong answers

Option B is wrong because 'modelSource: MODEL_GARDEN' specifically denotes an imported model, not one trained from scratch; models trained on Vertex AI from scratch would have a different source indicator, such as 'CUSTOM' or 'TRAINING_PIPELINE'. Option C is wrong because Model Garden is an import source, not an export destination; exporting a model to Model Garden is not a supported operation—models are imported from Model Garden, not exported to it. Option D is wrong because fine-tuning via AutoML would set a different source field (e.g., 'AUTOML' or 'TRAINING_PIPELINE'), and Model Garden models are typically pre-trained foundation models that may be fine-tuned later, but the source field reflects the origin, not the fine-tuning method.

404
MCQhard

A company is required by the EU AI Act to ensure high-risk AI systems are transparent and auditable. They are using a proprietary model from a vendor. Which step is CRITICAL?

A.Implement custom safety filters on the model outputs
B.Ask the vendor to provide a Model Card and datasheets for the training data
C.Use a larger context window to capture all interactions
D.Train an internal model from scratch to replace the vendor model
AnswerB

Vendor-provided documentation is essential for transparency under the EU AI Act.

Why this answer

The vendor must provide documentation (e.g., model cards, datasheets) to enable transparency and audit. Auditing the vendor's training data is not possible without cooperation. The other options are internal measures that do not address vendor transparency.

405
Multi-Selectmedium

A company is deploying a generative AI system for medical diagnosis support. To comply with Google's AI Principles and regulatory requirements, which TWO actions are essential? (Select 2)

Select 2 answers
A.Implement a human-in-the-loop review for all diagnostic suggestions
B.Publish a Model Card for the model
C.Ensure the system complies with GDPR and other privacy regulations for patient data
D.Use SynthID to watermark all output
E.Use a larger model to improve accuracy
AnswersA, C

Essential for accountability in high-stakes decisions.

Why this answer

High-stakes medical decisions require human oversight (Principle: be accountable to people) and data privacy (Principle: incorporate privacy design principles). The other options are beneficial but not essential for compliance.

406
MCQhard

A company is building a GenAI application using the Gemini API. They want to minimize latency and cost for a high-volume use case. Which strategy is MOST effective?

A.Use a fine-tuned smaller model for the specific task
B.Increase temperature to generate more diverse responses
C.Use the largest available model for all requests
D.Implement caching for identical or similar user queries
AnswerD

Caching avoids re-computation for repeated inputs, reducing latency and cost.

Why this answer

Caching frequent requests reduces redundant processing, reducing both latency and token costs. Batching can also help, but caching directly addresses repeated queries.

407
MCQeasy

Which Google Cloud generative AI model is specifically designed for code generation tasks?

A.Gemini
B.PaLM 2
C.Imagen
D.Codey
AnswerD

Codey is a family of models fine-tuned from PaLM 2 specifically for code generation, code completion, and code chat.

Why this answer

Codey is Google's model fine-tuned for code generation, completion, and chat. PaLM 2 is a general purpose LLM, Gemini is multimodal, and Imagen is for image generation.

408
MCQhard

A developer runs the command above to test a text classification model deployed on a Vertex AI endpoint. The model returns an error. What is the most likely cause?

A.The endpoint ID '789' does not exist in the project
B.The model is not deployed to any endpoint
C.The instance schema (e.g., 'content' field) does not match the model's expected input signature
D.The region 'us-central1' does not match the region where the model is deployed
AnswerC

The model expects a different input format (e.g., 'text' field or a structured object), leading to the format error.

Why this answer

The most common cause of inference errors on Vertex AI endpoints is a mismatch between the input instance schema (e.g., the 'content' field in the JSON request) and the model's expected input signature. Vertex AI validates the request payload against the model's saved signature (typically from TensorFlow SavedModel or PyTorch TorchScript), and if the field names, types, or shapes do not match, the endpoint returns an error rather than a prediction.

Exam trap

The Generative AI Leader exam often tests the misconception that endpoint or deployment configuration errors (like wrong region or missing endpoint) are the primary cause, when in reality the most frequent and subtle failure is a schema mismatch between the request payload and the model's input signature.

How to eliminate wrong answers

Option A is wrong because if the endpoint ID '789' did not exist in the project, the error would be a 404 'not found' HTTP status, not a model-level inference error. Option B is wrong because the command explicitly targets an endpoint (endpoint ID '789'), and if no model were deployed, the endpoint would return a 400 error indicating 'no model deployed', but the question states the model returns an error, implying a model is present but failing. Option D is wrong because Vertex AI endpoints are regional resources; if the region 'us-central1' did not match the deployment region, the API call would fail with a 404 or 403 error before reaching the model, not a model-level error.

409
MCQmedium

A developer wants to add real-time speech transcription to a customer call center application. They need low latency and high accuracy for multiple languages. Which Google AI API is most appropriate?

A.Speech-to-Text API
B.Natural Language API
C.Text-to-Speech API
D.Translation API
AnswerA

Speech-to-Text API converts audio to text, supporting real-time streaming and multiple languages.

Why this answer

The Speech-to-Text API is the correct choice because it is specifically designed to convert audio into text in real time, supporting over 125 languages and variants with low-latency streaming. It offers features like automatic punctuation, speaker diarization, and domain-specific models (e.g., phone call) that directly meet the requirements of a customer call center application needing high accuracy across multiple languages.

Exam trap

The Generative AI Leader exam often tests the distinction between APIs that process text (Natural Language, Translation) versus those that process audio (Speech-to-Text, Text-to-Speech), and the trap here is confusing the direction of conversion (speech-to-text vs. text-to-speech) or assuming a translation API can handle raw audio input.

How to eliminate wrong answers

Option B is wrong because the Natural Language API analyzes text for entities, sentiment, and syntax, but it does not process audio or perform speech transcription. Option C is wrong because the Text-to-Speech API converts text into spoken audio, which is the opposite direction of the required speech-to-text functionality. Option D is wrong because the Translation API translates text between languages but cannot transcribe speech from audio input.

410
Multi-Selectmedium

Which THREE steps are required to secure a generative AI pipeline that uses Vertex AI and involves sensitive customer data?

Select 3 answers
A.Use VPC Service Controls to create a perimeter around Vertex AI resources
B.Apply IAM roles with least privilege and use service accounts for the pipeline
C.Expose the prediction endpoint publicly with an API key
D.Enable data encryption at rest using Cloud KMS
E.Disable audit logging to reduce data exposure
AnswersA, B, D

VPC-SC prevents data from leaking outside the perimeter.

Why this answer

VPC Service Controls are required to create a service perimeter around Vertex AI resources, preventing data exfiltration by restricting data movement across the perimeter boundary. This is critical for sensitive customer data because it mitigates the risk of unauthorized access or leakage, even from within the same project or organization.

Exam trap

The trap here is that candidates may confuse API key authentication (Option C) as a valid security measure, but for sensitive data, API keys lack identity binding and are considered a weak secret, whereas VPC Service Controls and IAM provide defense-in-depth.

411
MCQhard

A company is using a large language model to generate code reviews. They want to reduce token costs while maintaining quality. Which approach is MOST effective?

A.Reduce the max output tokens to 100
B.Use a zero-shot prompt instead of few-shot to reduce prompt tokens
C.Cache frequently used code snippets in a prompt template
D.Use a smaller model fine-tuned for code (e.g., Codey)
AnswerD

Codey is optimized for code tasks and is more cost-effective than a general large model.

Why this answer

Using a smaller, specialized model for code tasks reduces cost per token and often performs well on code tasks. Caching is not applicable for code generation. Reducing max tokens might truncate output.

Fewer examples may harm quality.

412
Multi-Selectmedium

A company needs to deploy a generative AI application on Google Cloud that meets data residency requirements. Which THREE features should they enable? (Select three.)

Select 3 answers
A.Enable VPC Service Controls
B.Use a multi-region storage bucket
C.Use the global endpoint for low latency
D.Enable data residency boundaries in IAM
E.Select a specific region for Vertex AI resources
AnswersA, D, E

VPC-SC helps prevent data exfiltration and restricts data movement.

Why this answer

To satisfy data residency, the company must control where data is stored (region selection), ensure no data leaves that region (data boundaries), and use a service that supports regional endpoints (Vertex AI).

413
MCQeasy

A startup wants to quickly prototype a gen AI application. Which Google Cloud service should they use first?

A.Vertex AI Workbench
B.Cloud TPUs
C.Gen AI Studio
D.Dataflow
AnswerC

Provides a low-code environment for quickly testing and iterating on gen AI models.

Why this answer

Gen AI Studio (now part of Vertex AI) provides a low-code/no-code interface for quickly prototyping generative AI applications using pre-trained models like PaLM 2 and Gemini. It allows startups to experiment with prompts, tune models, and deploy without managing infrastructure, making it the fastest path from idea to prototype.

Exam trap

The trap here is that candidates confuse Vertex AI Workbench (a general ML IDE) with Gen AI Studio (a generative AI prototyping tool), or assume that rapid prototyping requires custom hardware like TPUs, when Google explicitly designed Gen AI Studio for this purpose.

How to eliminate wrong answers

Option A is wrong because Vertex AI Workbench is a Jupyter-based development environment for building custom ML models, not a rapid prototyping tool for generative AI; it requires more setup and coding. Option B is wrong because Cloud TPUs are specialized hardware accelerators for training large models, not a service for quick prototyping—they involve significant configuration and cost. Option D is wrong because Dataflow is a serverless data processing service for batch and stream pipelines (e.g., ETL), unrelated to generative AI application prototyping.

414
Multi-Selecthard

A company is deploying a code generation assistant for internal developers. They want to ensure the generated code is secure and follows best practices. Which two Vertex AI features should they use? (Choose TWO)

Select 2 answers
A.Vertex AI Agent Builder for conversation
B.Grounding with Google Search for real-time security best practices
C.Vertex AI Model Evaluation to assess code quality metrics
D.Cloud DLP for data loss prevention
E.AutoML Image for code snippet images
AnswersB, C

Grounding retrieves current security guidelines to inform the model.

Why this answer

Grounding with Google Search can retrieve up-to-date security best practices, and Model Evaluation can assess code quality. The other options are not directly relevant to security or best practices.

415
Multi-Selectmedium

A machine learning team is using Vertex AI to train a custom model. They want to optimize hyperparameters automatically. Which TWO steps are necessary to set up hyperparameter tuning in Vertex AI? (Choose TWO)

Select 2 answers
A.Enable Vertex AI Experiments
B.Use a custom container with a GPU
C.Enable distributed training across multiple nodes
D.Define a hyperparameter metric in the training code
E.Create a HyperparameterTuningJob with parameter specifications
AnswersD, E

The training code must report a metric that Vertex AI uses to evaluate hyperparameter trials.

Why this answer

To run hyperparameter tuning, you must specify a hyperparameter metric in the training code and configure the tuning job in Vertex AI with the parameter specifications.

416
MCQhard

Refer to the exhibit. A developer sees this error when trying to deploy a model from Vertex AI Model Registry. What is the most likely cause?

A.The region is not supported
B.The developer used the model display name instead of the full resource name
C.The model is not published
D.The model is in a different project
AnswerB

Display name is not a valid model reference; the full resource path is required.

Why this answer

The error occurs because Vertex AI Model Registry requires the full resource name (e.g., 'projects/{project}/locations/{region}/models/{model_id}') to deploy a model, not just the display name. The display name is a human-readable label that is not unique within a project, while the full resource name uniquely identifies the model version. Using the display name causes the API to fail with a 'not found' or 'invalid argument' error.

Exam trap

Google Cloud often tests the distinction between display names (non-unique, human-readable) and resource names (unique, API-required) in cloud services like Vertex AI, where candidates mistakenly assume display names can be used interchangeably with resource identifiers.

How to eliminate wrong answers

Option A is wrong because Vertex AI supports model deployment in all regions where the service is available, and the error message does not indicate a regional restriction. Option C is wrong because a model can be deployed from the registry even if it is not published to the public; publishing is only required for sharing with external users or making it available in the Model Garden. Option D is wrong because the error would reference a cross-project permission issue (e.g., 'permission denied' or 'resource not found in project'), not a display name mismatch.

417
MCQeasy

A healthcare startup is developing a generative AI system to assist doctors in diagnosing rare diseases. According to Google's AI Principles, what is the MOST important requirement before deployment?

A.The model must achieve at least 99% accuracy on a held-out test set
B.The model must be trained on the most recent medical literature
C.The startup must publish the model's architecture in a peer-reviewed journal
D.The system must include a mechanism for human review of all diagnostic suggestions
AnswerD

For high-stakes AI decisions like medical diagnoses, human oversight is essential to ensure accountability and patient safety.

Why this answer

Google's AI Principles state that AI systems should be built and tested for safety, especially in high-stakes domains like healthcare, where human oversight is critical.

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

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.

419
MCQeasy

A company is using Vertex AI to deploy a text generation model for a chatbot. They want to reduce the response latency. Which configuration change is most effective?

A.Enable model quantization
B.Use a smaller model variant
C.Increase the number of GPUs
D.Use a larger batch size
AnswerB

Smaller models have faster inference, directly reducing latency.

Why this answer

Using a smaller model variant directly reduces the number of parameters and computational operations required per inference, which lowers latency. In Vertex AI, smaller models like `text-bison@002` have fewer layers and attention heads than larger counterparts, resulting in faster token generation without requiring hardware changes.

Exam trap

Google Cloud often tests the misconception that increasing compute resources (GPUs) or batch size always reduces latency, when in fact these optimizations target throughput, not per-request response time.

How to eliminate wrong answers

Option A is wrong because model quantization (e.g., reducing weights from FP32 to INT8) can reduce memory footprint and improve throughput, but it does not guarantee lower latency per request and may introduce accuracy trade-offs; it is not the most effective single change for latency reduction. Option C is wrong because increasing the number of GPUs can improve throughput for batch processing but does not reduce per-request latency; in fact, it may increase communication overhead and cost without speeding up individual inference. Option D is wrong because using a larger batch size increases throughput for concurrent requests but actually increases the latency for each individual request, as the model processes more sequences together before returning results.

420
MCQmedium

A company is using Vertex AI Agent Builder to create a travel booking agent. They want the agent to book flights and hotels dynamically. What action type should they use?

A.Dynamic call
B.Static call
C.Webhook
D.Notification
AnswerC

Webhooks allow dynamic external API calls for booking.

Why this answer

Vertex AI Agent Builder uses webhooks to integrate with external systems for dynamic, real-time operations like booking flights and hotels. A webhook allows the agent to make HTTP calls to external APIs (e.g., a travel booking service) to fetch or update data during a conversation, enabling dynamic booking actions. Static or notification actions cannot handle the two-way, real-time data exchange required for live reservations.

Exam trap

The trap here is that candidates confuse 'dynamic call' (a generic term) with the actual Vertex AI Agent Builder mechanism, or assume 'notification' can handle bidirectional data exchange, when only webhooks provide the required synchronous HTTP callback for real-time operations.

How to eliminate wrong answers

Option A is wrong because 'Dynamic call' is not a recognized action type in Vertex AI Agent Builder; the platform uses webhooks for dynamic interactions, not a separate 'dynamic call' concept. Option B is wrong because 'Static call' refers to predefined, non-interactive responses or data lookups that cannot handle real-time booking logic or external API calls. Option D is wrong because 'Notification' is a one-way push mechanism (e.g., sending alerts) and does not support the request-response pattern needed to execute a booking transaction.

421
MCQeasy

A data analyst needs to run a simple regression model directly on data stored in BigQuery without moving data to another platform. Which service should they use?

A.TensorFlow on Compute Engine
B.BigQuery ML
C.Vertex AI Training
D.Google Colab
AnswerB

BigQuery ML enables ML via SQL on BigQuery data.

Why this answer

BigQuery ML (B) is correct because it allows users to create and execute machine learning models using standard SQL syntax directly on data stored in BigQuery, without needing to export data to a separate platform. This service is specifically designed for running regression, classification, and other models natively within BigQuery, leveraging its serverless architecture and built-in ML capabilities.

Exam trap

The trap here is that candidates often confuse Vertex AI Training (a full-featured ML platform) with BigQuery ML, not realizing that Vertex AI requires data export and more setup, while BigQuery ML is purpose-built for in-database modeling with minimal overhead.

How to eliminate wrong answers

Option A is wrong because TensorFlow on Compute Engine requires moving data out of BigQuery to a virtual machine, where you must manually manage infrastructure, install dependencies, and write custom training code, which contradicts the requirement of not moving data. Option C is wrong because Vertex AI Training is a managed ML platform that typically requires exporting data from BigQuery to Cloud Storage or a dataset in Vertex AI, and it involves more complex pipeline setup than a simple regression model. Option D is wrong because Google Colab is a Jupyter notebook environment that runs in the cloud but requires data to be loaded from BigQuery into a DataFrame, moving it out of BigQuery's native storage, and it does not provide a direct SQL-based modeling interface.

422
MCQeasy

In the transformer architecture, what is the role of the attention mechanism?

A.It normalizes the output of each layer
B.It decides which parts of the input to focus on when generating each token
C.It predicts the next token directly
D.It converts tokens into numerical vectors
AnswerB

Attention computes relevance scores between tokens, allowing the model to focus on relevant parts of the input.

Why this answer

The attention mechanism in the Transformer architecture computes a weighted sum of all input token representations, allowing the model to dynamically focus on the most relevant parts of the input sequence when generating each output token. This is achieved through learned query, key, and value projections that produce attention scores, enabling the model to capture long-range dependencies and contextual relationships. Option B correctly identifies this core function of selectively attending to input elements during token generation.

Exam trap

Candidates often mistake the attention mechanism's role in focusing on input parts with the final prediction layer's role in outputting the next token, leading them to select Option C.

How to eliminate wrong answers

Option A is wrong because normalization of layer outputs is performed by layer normalization, not the attention mechanism; attention computes relevance weights, not normalization statistics. Option C is wrong because predicting the next token directly is the role of the final linear layer and softmax over the vocabulary, while the attention mechanism provides contextualized representations that feed into that prediction. Option D is wrong because converting tokens into numerical vectors is the function of the embedding layer (token embeddings), not the attention mechanism, which operates on those vectors to compute attention scores.

423
MCQmedium

A data scientist observes that a text generation model consistently produces outputs that stereotype certain genders. According to Google's AI Principles, what is the BEST first step?

A.Evaluate the model's bias using a diverse test set across genders
B.Immediately stop using the model and delete it
C.Fine-tune the model on a gender-balanced dataset
D.Add a disclaimer that the model may exhibit bias
AnswerA

Evaluation is the first step to quantify bias and inform mitigation strategies.

Why this answer

Google's AI Principles emphasize that the first step in addressing bias is to evaluate and measure it using appropriate tools and diverse datasets. This aligns with Principle #2: 'Avoid creating or reinforcing unfair bias,' which requires testing models across relevant demographic groups before taking corrective action. Without evaluation, any subsequent mitigation steps would lack a baseline and could be ineffective or counterproductive.

Exam trap

The Generative AI Leader exam often tests the misconception that mitigation (like fine-tuning or disclaimers) should be the immediate response, rather than the correct first step of systematic evaluation and measurement of bias.

How to eliminate wrong answers

Option B is wrong because immediately stopping use and deleting the model is an overreaction that violates the principle of 'Be socially beneficial' — the model may still provide value if bias is addressed, and deletion prevents any learning from the bias. Option C is wrong because fine-tuning on a gender-balanced dataset is a mitigation step that should only be taken after evaluation to understand the specific nature and extent of the bias; premature fine-tuning could introduce new biases or fail to address root causes. Option D is wrong because adding a disclaimer is a transparency measure, not a first step — it acknowledges bias without measuring or understanding it, which violates the principle of 'Be accountable to people' by avoiding proactive bias detection.

424
MCQhard

You are a generative AI architect at a social media company. You are tasked with building a content moderation system that uses a generative model to flag toxic comments. The system must have very low false positive rates (i.e., not flag harmless comments) to avoid user backlash, but it must catch nearly all toxic comments. You have a large dataset of labeled toxic and non-toxic comments. You plan to use a pre-trained LLM and fine-tune it for classification. During experimentation, you notice that the model's recall for toxic comments is high (95%) but its precision is low (60%), leading to many false positives. You need to improve precision without substantially reducing recall. Which approach should you try first?

A.Gather additional toxic comments from similar platforms to augment the training data.
B.Apply a higher weight to the toxic class in the loss function during fine-tuning.
C.Use a smaller pre-trained model that is inherently less sensitive to subtle toxic language.
D.Tune the classification threshold on a held-out validation set to a higher value (e.g., require higher probability to classify as toxic).
AnswerD

Increasing the threshold reduces false positives (improves precision) with some loss in recall, which can be fine-tuned.

Why this answer

Tuning the classification threshold to a higher value directly addresses the low precision (high false positive rate) by requiring a higher confidence level before labeling a comment as toxic. This reduces false positives while maintaining high recall, as the model's underlying learned representations remain unchanged. The threshold adjustment is a standard post-hoc calibration technique that trades off precision and recall without retraining or altering the model architecture.

Exam trap

Google often tests the misconception that modifying the training data or loss function is the first step to fix precision issues, when in fact a simple threshold adjustment is the most direct and least risky intervention.

How to eliminate wrong answers

Option A is wrong because gathering additional toxic comments from similar platforms would primarily increase the recall (sensitivity) for toxic comments, not precision; it may even exacerbate false positives if the new data introduces noise or shifts the decision boundary. Option B is wrong because applying a higher weight to the toxic class in the loss function during fine-tuning would force the model to focus more on correctly classifying toxic examples, which typically increases recall but can further lower precision by making the model more aggressive in flagging borderline cases. Option C is wrong because using a smaller pre-trained model that is inherently less sensitive to subtle toxic language would likely reduce both recall and precision, as smaller models have lower capacity to capture nuanced patterns, leading to more false negatives and potentially more false positives due to coarser decision boundaries.

425
MCQeasy

Which Google initiative provides a set of interactive, open-source tools to help UX designers and product managers build human-centered AI products?

A.TensorFlow Privacy
B.Model Cards
C.Datasheets for Datasets
D.People + AI Guidebook (PAIR)
AnswerD

PAIR is exactly that: an interactive guidebook for designing human-centered AI.

Why this answer

The People + AI Guidebook (PAIR) is a Google initiative that provides guidelines, case studies, and design patterns for building human-centered AI.

426
Multi-Selecteasy

Which TWO Google Cloud services can be used together to implement a RAG (retrieval-augmented generation) pipeline? (Select 2)

Select 2 answers
A.Cloud SQL
B.Vertex AI Vector Search
C.Bigtable
D.Vertex AI PaLM API
E.Cloud Functions
AnswersB, D

Provides vector similarity search for retrieval.

Why this answer

Vertex AI Vector Search (option B) is correct because it provides a managed vector database for storing and querying embeddings, which is essential for the retrieval step in a RAG pipeline. It enables semantic similarity search over large datasets, allowing the system to fetch relevant context documents based on a user query.

Exam trap

Google Cloud often tests the misconception that any database (like Cloud SQL or Bigtable) can serve as a vector store for RAG, but they lack native vector indexing and similarity search, making them unsuitable for efficient retrieval at scale.

427
MCQmedium

A company wants to embed a generative AI writing assistant into their Google Docs workflow. The assistant should help users draft emails and reports based on prompts. Which Google Workspace feature should they leverage?

A.Google Workspace Add-ons with Vertex AI
B.Vertex AI API integrated via Apps Script
C.Gmail Smart Compose
D.Duet AI in Google Docs (Gemini for Google Workspace)
AnswerD

Duet AI provides native 'Help me write' capabilities in Docs, ideal for drafting.

Why this answer

Duet AI in Docs (now Gemini for Google Workspace) provides 'Help me write' functionality for drafting content. Apps Script can be used for custom add-ons but requires development. Vertex AI API is for external integration.

Smart Compose is for Gmail only.

428
Multi-Selecteasy

Which TWO are components of the Vertex AI Generative AI Studio?

Select 2 answers
A.Dataflow
B.Model Garden
C.Pipeline templates
D.Cloud Functions
E.Prompt Editor
AnswersB, E

Model Garden is a component for discovering and selecting models.

Why this answer

Model Garden is a core component of Vertex AI Generative AI Studio that provides a curated repository of foundation models, including Google's PaLM and Gemini models, as well as third-party models. It allows users to discover, compare, and deploy these models directly within the studio environment, making it essential for generative AI workflows.

Exam trap

Google Cloud often tests the distinction between core generative AI studio components (like Model Garden and Prompt Editor) and broader GCP services (like Dataflow or Cloud Functions) that are not part of the studio, leading candidates to select familiar but incorrect options.

429
MCQeasy

What is the primary purpose of Google's Content Safety filters in Vertex AI?

A.To filter out low-quality training data
B.To ensure the model only generates content from a curated set of sources
C.To block generated content that contains hate speech, violence, or sexually explicit material
D.To improve the model's accuracy on safe content
AnswerC

Content Safety filters are designed to block harmful content categories.

Why this answer

Google's Content Safety filters in Vertex AI are designed to block generated content that violates safety policies, specifically targeting hate speech, violence, and sexually explicit material. This is a core component of responsible AI deployment, ensuring that model outputs adhere to ethical guidelines and legal requirements. The filters operate by analyzing the generated text or images against predefined safety categories, not by assessing data quality or source curation.

Exam trap

The trap here is that candidates may confuse Content Safety filters with data quality filters or source restrictions, assuming they improve model accuracy or curate training data, when in fact they are purely safety mechanisms applied at inference time.

How to eliminate wrong answers

Option A is wrong because Content Safety filters are not used to filter out low-quality training data; that function is handled by data preprocessing and curation pipelines, not by inference-time safety filters. Option B is wrong because Content Safety filters do not restrict the model to a curated set of sources; they block specific types of harmful content regardless of source, and the model can still generate from its full training distribution. Option D is wrong because the primary purpose is not to improve accuracy on safe content but to prevent the generation of unsafe content; accuracy improvements are a separate concern addressed by model tuning and evaluation.

430
MCQhard

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

A.Switch to a larger base model (e.g., Gemini Ultra) without any retrieval.
B.Implement a retrieval-augmented generation (RAG) pipeline using Vertex AI Search to fetch relevant documents before generating answers.
C.Collect more data on rare issues and continue fine-tuning the model weekly.
D.Use a few-shot prompt with 10 examples of rare problems and solutions.
AnswerB

RAG dynamically retrieves relevant context, enabling accurate answers for rare issues.

Why this answer

Implementing a RAG pipeline with Vertex AI Search allows the chatbot to retrieve relevant troubleshooting documents from the internal corpus in real-time, grounding the LLM's responses in authoritative sources. This approach directly addresses the problem of plausible-sounding but incorrect answers for rare/novel issues without requiring retraining, and it keeps latency low by fetching only the most relevant documents before generation.

Exam trap

Google often tests the misconception that fine-tuning or larger models alone can solve knowledge gaps, when in fact retrieval-augmented generation is the standard approach for grounding LLM outputs in up-to-date, domain-specific documents without retraining.

How to eliminate wrong answers

Option A is wrong because switching to a larger base model without retrieval does not solve the core issue of hallucination on rare/novel problems; larger models can still generate plausible-sounding but incorrect answers when they lack specific knowledge, and they often increase latency and cost. Option C is wrong because collecting more data on rare issues and fine-tuning weekly is resource-intensive, may lead to catastrophic forgetting of common issues, and cannot keep pace with the long tail of novel problems that emerge dynamically. Option D is wrong because a few-shot prompt with 10 examples is insufficient to cover the vast space of rare problems, and the model may still hallucinate when the input does not closely match any example, especially without retrieval grounding.

431
Multi-Selecthard

A financial services firm is deploying a generative AI model to assist in loan approval decisions. To comply with regulatory requirements for fairness and explainability, which THREE actions should they take? (Choose 3)

Select 3 answers
A.Add SynthID watermarks to all model outputs
B.Increase the model size to improve accuracy
C.Evaluate the model for bias using diverse test sets
D.Implement chain-of-thought reasoning to explain loan decisions
E.Design a human-in-the-loop process with override capability
AnswersC, D, E

Bias evaluation is essential for fairness.

Why this answer

Evaluating the model for bias using diverse test sets is a fundamental step in ensuring fairness in AI-driven loan approvals. This involves testing the model across demographic groups (e.g., race, gender, age) to detect disparate impact, which is required by regulations like the Equal Credit Opportunity Act (ECOA) and Fair Housing Act. Without this evaluation, the model could inadvertently discriminate, leading to legal and ethical violations.

Exam trap

The Generative AI Leader exam often tests the distinction between technical safeguards (like watermarks) and governance actions (like bias evaluation and explainability), leading candidates to mistakenly select watermarks as a fairness measure when they are only for content attribution.

432
Multi-Selectmedium

Which TWO are benefits of using retrieval-augmented generation (RAG) over fine-tuning?

Select 2 answers
A.No need for training
B.Higher accuracy on all tasks
C.More up-to-date information
D.Reduced model size
E.Lower latency
AnswersA, C

RAG does not require fine-tuning; it works with the base model plus retrieval.

Why this answer

RAG does not require any training or fine-tuning of the underlying model. It works by retrieving relevant documents from an external knowledge base at inference time and providing them as context to the model, which generates an answer based on that context. This eliminates the need for costly and time-consuming model retraining or parameter updates.

Exam trap

Google Cloud often tests the misconception that RAG reduces latency or model size, when in fact it increases system complexity and inference time due to the retrieval step, while fine-tuning keeps the model unchanged in size and latency.

433
MCQeasy

A company wants to build a chatbot that answers questions using their internal knowledge base. Which approach is most suitable?

A.Use Retrieval-Augmented Generation (RAG)
B.Fine-tune a model on the knowledge base
C.Train a new model from scratch
D.Use zero-shot prompting with no context
AnswerA

RAG retrieves relevant context and generates answers, perfect for knowledge base Q&A.

Why this answer

Retrieval-Augmented Generation (RAG) combines retrieval of relevant documents from a knowledge base with generative responses, making it ideal for this use case.

434
MCQeasy

Which of the following is a key principle in Google's AI Principles that directly addresses the need to avoid creating or reinforcing unfair bias?

A.Avoid creating or reinforcing unfair bias
B.Uphold high standards of scientific excellence
C.Be socially beneficial
D.Be accountable to people
AnswerA

This is the exact principle that directly addresses unfair bias.

Why this answer

Google's AI Principles explicitly state 'Avoid creating or reinforcing unfair bias' as a standalone principle. This principle directly mandates that AI systems must be designed and tested to mitigate biases in training data, model outputs, and deployment contexts, ensuring fairness across demographic groups. It is the most direct response to the question's focus on avoiding unfair bias.

Exam trap

The Generative AI Leader exam often tests the distinction between principles that directly address bias versus those that are related but broader, so candidates may confuse 'Be socially beneficial' or 'Be accountable to people' as the correct answer because they seem to cover fairness, but they lack the explicit focus on avoiding unfair bias.

How to eliminate wrong answers

Option B is wrong because 'Uphold high standards of scientific excellence' addresses rigor, reproducibility, and methodological soundness, not the specific mitigation of unfair bias. Option C is wrong because 'Be socially beneficial' is a broader principle about overall positive impact, which includes but does not specifically target the avoidance of unfair bias. Option D is wrong because 'Be accountable to people' focuses on transparency, oversight, and redress mechanisms, not the direct prevention of bias in model design or data.

435
MCQmedium

Refer to the exhibit. A data scientist runs the gcloud command and sees the model listed. However, when they try to deploy the model to an endpoint, they get an error: 'Model is not deployable'. What is the most likely reason?

A.The model is still in training and not yet ready.
B.The model was imported from a custom container but without a serving specification or artifact.
C.The model does not have the correct IAM permissions assigned to the deployment service account.
D.The region for the endpoint is different from the model's region.
AnswerB

A model must have a serving container or artifacts to be deployable.

Why this answer

A model imported from a custom container must include a serving specification (e.g., a `predict` route) and an artifact (e.g., a saved model file) to be deployable. Without these, Vertex AI cannot determine how to serve predictions, resulting in the 'Model is not deployable' error. The `gcloud` command listing the model only confirms its registration, not its readiness for deployment.

Exam trap

Google Cloud often tests the misconception that a model listed in the registry is automatically deployable, but the trap here is that Vertex AI separates model registration from deployment readiness, requiring explicit serving configuration for custom containers.

How to eliminate wrong answers

Option A is wrong because if the model were still in training, it would not appear in the model list via `gcloud`; Vertex AI only registers a model after training completes. Option C is wrong because IAM permissions affect the deployment action itself (e.g., who can deploy), not the deployability status of the model; the error 'Model is not deployable' is a model-level validation, not an authorization failure. Option D is wrong because region mismatch between the endpoint and model would cause a resource-location error, not a 'Model is not deployable' error; Vertex AI enforces regional consistency but does not block deployment based on region alone.

436
Multi-Selectmedium

A company is considering whether to use Vertex AI's Generative AI Studio. Which TWO are benefits?

Select 2 answers
A.It is always cheaper than using third-party APIs
B.It integrates seamlessly with Vertex AI Pipelines for MLOps
C.It generates outputs that are always more accurate than custom models
D.It provides built-in tools for prompt engineering and iterative testing
E.It requires no coding or machine learning expertise to use
AnswersB, D

Integration allows automating deployment, monitoring, and retraining.

Why this answer

Vertex AI Generative AI Studio is designed to work natively with Vertex AI Pipelines, enabling users to incorporate generative models into end-to-end MLOps workflows for automation, monitoring, and retraining. This integration allows seamless orchestration of prompt tuning, model evaluation, and deployment within the same managed environment, reducing operational overhead.

Exam trap

Google Cloud often tests the misconception that 'no-code' tools eliminate the need for any ML expertise, but the trap here is that Generative AI Studio still requires understanding of prompt engineering, model evaluation, and cost trade-offs to avoid poor outputs or unexpected expenses.

437
MCQmedium

A software company wants to provide users with a clear understanding of when and why their AI system may produce incorrect answers. Which tool from the Responsible AI toolkit should they use to communicate model limitations?

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

Model Cards include sections on limitations, ethical considerations, and intended use.

Why this answer

Model Cards are designed to communicate model performance, intended use, and limitations to stakeholders in a standardized format.

438
Multi-Selectmedium

A company is deploying a chatbot using Gemini 1.5 Pro. They want to reduce the risk of the chatbot generating toxic or harmful content. Which TWO techniques should they implement? (Choose two.)

Select 2 answers
A.Apply Reinforcement Learning from Human Feedback (RLHF) after deployment
B.Include a system prompt that instructs the model to be helpful and harmless
C.Use a RAG system to ground responses in a knowledge base
D.Configure Google's safety filters and thresholds in Vertex AI
E.Fine-tune the model on a curated dataset of safe conversations
AnswersD, E

Safety filters can block categories of harmful content before generation.

Why this answer

Safety filters (e.g., Google's safety settings) block harmful content. Fine-tuning with curated safe examples reduces the likelihood of generating harmful outputs. Prompt engineering alone is insufficient, RLHF is post-training and may not catch all cases, and RAG is for grounding, not safety.

439
Multi-Selectmedium

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

Select 3 answers
A.Use a safety filter to block outputs containing harmful medical terminology.
B.Implement RAG to retrieve verified medical information from trusted sources.
C.Fine-tune the model on a curated dataset of medical textbooks.
D.Include a disclaimer in the system instruction that the model is not a doctor.
E.Set the temperature to a very high value to ensure diverse outputs.
AnswersA, B, C

Safety filters directly block harmful content at inference time.

Why this answer

Implementing a safety filter that blocks outputs containing harmful medical terminology directly mitigates the risk of generating dangerous advice. This acts as a post-processing guardrail, intercepting model outputs that include terms associated with diagnoses, dosages, or procedures that could lead to patient harm. It is a standard practice in high-stakes domains to layer such filters on top of the generative model.

Exam trap

The Generative AI Leader exam often tests the misconception that disclaimers or system instructions alone are sufficient safety measures, when in fact they do not technically prevent the model from generating harmful content—only post-hoc filtering or architectural controls like RAG and fine-tuning can reduce the risk at the output level.

440
MCQeasy

A small business wants to use Vertex AI to analyze customer reviews and extract sentiment, product mentions, and overall themes. They have a small dataset of 500 reviews in a CSV file. The team is not experienced with machine learning and wants a pre-built solution that requires minimal coding. They want to start quickly and scale later. Which Google Cloud offering should they use?

A.Cloud Natural Language API for pre-trained sentiment and entity extraction.
B.Vertex AI Workbench to build a custom sentiment analysis model.
C.AutoML Natural Language to train a custom model on their data.
D.Vertex AI Gemini API with zero-shot prompting.
AnswerA

This is a pre-built API that requires no ML experience and can be used immediately.

Why this answer

Cloud Natural Language API provides pre-trained models for sentiment analysis and entity extraction, requiring minimal coding (just API calls) and no ML expertise. This aligns with the business's need for a quick, scalable, pre-built solution for their small dataset of 500 reviews, avoiding the overhead of custom training or complex prompting.

Exam trap

The trap here is that candidates confuse 'pre-built API' (Cloud Natural Language API) with 'custom training' (AutoML) or 'generative AI' (Gemini), assuming that any AI solution requires custom model building or that generative models are suitable for structured NLP tasks like sentiment extraction.

How to eliminate wrong answers

Option B is wrong because Vertex AI Workbench is a Jupyter-based development environment for building custom ML models from scratch, which requires significant coding and ML expertise, contradicting the team's lack of experience and desire for minimal coding. Option C is wrong because AutoML Natural Language requires training a custom model on the user's data, which involves data labeling, training time, and cost overkill for a small 500-review dataset, and still demands more setup than a pre-built API. Option D is wrong because Vertex AI Gemini API with zero-shot prompting is designed for generative tasks (e.g., summarization, generation) and not optimized for structured sentiment and entity extraction from tabular CSV data; it also requires prompt engineering and may produce inconsistent, non-deterministic results compared to a dedicated NLP API.

441
MCQeasy

A project manager wants to automatically generate weekly status reports from meeting notes and project data. The team uses Google Workspace. Which built-in capability is the QUICKEST to implement?

A.Use Gemini for Workspace (Duet AI) in Google Docs and Google Meet to generate summaries and reports
B.Select a model from Model Garden and deploy it as a private endpoint for report generation
C.Use Vertex AI Studio to design a custom prompt and call the Gemini API from a custom app
D.Write a Google Apps Script to call the Gemini API and format the report
AnswerA

Gemini for Workspace provides built-in AI capabilities that can summarize meeting notes and help write reports directly in Docs, requiring no custom code.

Why this answer

Gemini for Workspace (Duet AI) can generate summaries directly in Google Docs and Meet, leveraging existing data with no custom development. Custom API integration or Model Garden would require more effort. Apps Script is for custom automation, not built-in.

442
MCQmedium

A team deployed a custom generative AI model using KServe on Google Kubernetes Engine (GKE) with the above configuration. They notice that the model is taking longer than expected to respond. What is the most likely cause?

A.The CPU resource limits are too low
B.The model is crashing due to insufficient memory
C.The model requires more than 1 GPU for acceptable performance
D.The container image is too large and takes time to pull
AnswerC

Large generative models often need multiple GPUs for low latency.

Why this answer

The configuration specifies 1 GPU, but the model requires more than 1 GPU for acceptable performance. KServe on GKE allocates GPU resources based on the `limits` field; if the model's inference workload exceeds the memory bandwidth or compute capacity of a single GPU, latency increases due to queuing and serialization. This is the most likely cause of the slow response time, as GPU-bound models are sensitive to under-provisioning.

Exam trap

The trap here is that candidates assume slow responses always indicate a resource shortage like CPU or memory, but for GPU-accelerated models, the most common cause of high latency is insufficient GPU compute or memory bandwidth, not CPU or memory limits.

How to eliminate wrong answers

Option A is wrong because CPU resource limits affect non-GPU compute tasks, but the primary bottleneck for a GPU-accelerated model is GPU throughput, not CPU; low CPU limits would cause throttling only if the model has CPU-intensive preprocessing or postprocessing, which is not indicated. Option B is wrong because insufficient memory would cause the pod to be OOMKilled (crash) rather than just slow responses; the model is responding, so memory is sufficient. Option D is wrong because the container image pull happens during pod startup, not during inference; once the pod is running, image size does not affect response latency.

443
MCQeasy

A data scientist is evaluating a generative AI model for potential gender bias in its outputs. They use a diverse test set that includes names, pronouns, and occupations across genders. Which Google's AI Principle does this practice primarily support?

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

Using diverse test sets to evaluate bias directly addresses this principle.

444
MCQeasy

A data scientist needs to generate high-quality images from text prompts using Google Cloud. Which service should they use?

A.Imagen
B.PaLM 2
C.Gemini Pro Vision
D.Codey
AnswerA

Imagen is Google's diffusion-based model for generating images from text prompts.

Why this answer

Imagen is Google Cloud's text-to-image diffusion model. PaLM 2 and Gemini are primarily text models; Codey is for code generation.

445
Multi-Selectmedium

Which TWO of the following are best practices for prompt engineering?

Select 2 answers
A.Provide context and examples in the prompt
B.Append random noise to prompts to improve creativity
C.Use clear and specific instructions
D.Always use the maximum possible number of tokens
E.Use negative prompts to discourage undesired outputs
AnswersA, C

Context and examples help the model understand the desired output.

Why this answer

Clear and specific instructions help guide the model, and providing context and examples improves output quality. Options B, D, and E are not recommended.

446
MCQhard

A research lab is using Vertex AI to generate high-resolution medical images (2560x1920) of cell structures using Imagen. They have fine-tuned the model on their own microscope images. The generated images are sharp but often contain repeating patterns (e.g., identical cell arrangements) that are not biologically plausible. The team suspects the model is overfitting to spatial patterns in the training data. They have already tried increasing the training dataset size and augmenting it with rotations and flips. What additional technique should they try within Vertex AI?

A.Switch to a different foundation model like Stable Diffusion.
B.Add regularization techniques such as dropout layers or data augmentation that randomly crops and blends patches.
C.Use a larger batch size during fine-tuning.
D.Further increase the resolution of training images to 5120x3840.
AnswerB

Regularization helps prevent overfitting to specific spatial patterns.

Why this answer

The repeating patterns indicate the model is memorizing spatial arrangements rather than learning generalizable features. Adding regularization like dropout layers or data augmentation that randomly crops and blends patches (e.g., CutMix or MixUp) directly reduces overfitting by forcing the model to focus on local, biologically plausible details rather than memorizing entire image layouts. Vertex AI's training pipelines support custom augmentation strategies, making this a practical and targeted fix.

Exam trap

The trap here is that candidates assume increasing data or resolution always helps generalization, but in generative models, overfitting to spatial patterns requires explicit regularization techniques that disrupt memorization of layout, not just more data or higher resolution.

How to eliminate wrong answers

Option A is wrong because switching to a different foundation model like Stable Diffusion does not address the root cause of overfitting to spatial patterns; it merely changes the base model, and the same overfitting issue would likely recur without regularization. Option C is wrong because increasing batch size during fine-tuning can improve training stability but does not prevent the model from memorizing repetitive spatial patterns; it may even exacerbate overfitting by reducing gradient noise. Option D is wrong because further increasing the resolution of training images to 5120x3840 would not solve the overfitting problem and could worsen it by providing more pixel-level details for the model to memorize, while also increasing computational cost and risk of overfitting to high-frequency noise.

447
MCQeasy

A data scientist needs to fine-tune a foundation model for a sentiment analysis task without managing infrastructure. Which Google Cloud service should they use?

A.Compute Engine
B.BigQuery ML
C.Cloud Run
D.Vertex AI Model Garden
AnswerD

Model Garden offers managed fine-tuning of foundation models without infrastructure overhead.

Why this answer

Vertex AI Model Garden is the correct service because it provides a curated hub of foundation models that can be fine-tuned with managed infrastructure, eliminating the need for the data scientist to provision or manage servers. It supports one-click deployment and fine-tuning workflows for sentiment analysis, directly addressing the requirement to avoid infrastructure management.

Exam trap

The trap here is that candidates often confuse BigQuery ML's ability to train models on tabular data with the capability to fine-tune large language models, but BigQuery ML does not support fine-tuning of foundation models for NLP tasks.

How to eliminate wrong answers

Option A is wrong because Compute Engine is an IaaS offering that requires the user to manually provision, configure, and manage virtual machines, which contradicts the requirement of not managing infrastructure. Option B is wrong because BigQuery ML is designed for creating and executing machine learning models using SQL queries on structured data in BigQuery, not for fine-tuning large foundation models for natural language tasks like sentiment analysis. Option C is wrong because Cloud Run is a serverless container platform for running stateless HTTP-driven applications, but it does not provide native support for fine-tuning foundation models; it would require the user to build and manage the fine-tuning pipeline themselves.

448
MCQmedium

A company fine-tunes a model using Vertex AI and notices the model's performance drops on the original training task (e.g., language understanding) after fine-tuning for a new task (e.g., summarization). What could be the cause?

A.Data leakage
B.Model quantization
C.Catastrophic forgetting
D.Underfitting
AnswerC

Fine-tuning on a narrow task can overwrite general knowledge, leading to performance degradation on the original task.

Why this answer

Catastrophic forgetting occurs when a neural network loses previously learned knowledge upon being fine-tuned on a new task. In this scenario, fine-tuning the model for summarization overwrites the weights responsible for language understanding, causing performance degradation on the original task. This is a well-known limitation of sequential fine-tuning in deep learning.

Exam trap

Google Cloud often tests the distinction between catastrophic forgetting and underfitting, as candidates may mistakenly think the model simply didn't learn the new task well, rather than recognizing that it forgot the original task due to weight overwriting.

How to eliminate wrong answers

Option A is wrong because data leakage refers to the inadvertent exposure of target information during training, which would typically inflate performance metrics rather than cause a drop on the original task. Option B is wrong because model quantization reduces numerical precision (e.g., from FP32 to INT8) to improve inference speed and memory efficiency, but it does not inherently cause performance loss on a previously learned task; any accuracy loss from quantization is generally uniform across tasks. Option D is wrong because underfitting means the model fails to capture patterns in the training data, resulting in poor performance on both the original and new tasks, not a selective drop on the original task after fine-tuning.

449
Multi-Selecthard

A company is deploying a document summarization solution using Vertex AI. They want to minimize cost while maintaining quality. Which three strategies should they implement? (Choose THREE)

Select 3 answers
A.Use prompt compression to cut token usage
B.Choose a smaller, specialized model (e.g., Gemini 1.5 Flash)
C.Implement response caching for repeated queries
D.Use the largest available model for best quality
E.Batch multiple document summarization requests together
AnswersB, C, E

Smaller models are cheaper and often adequate for summarization.

Why this answer

Using caching reduces repeated processing, choosing a smaller model lowers token cost, and batching requests minimizes overhead. Prompt compression is not a standard Vertex AI feature, and using the largest model increases cost.

450
MCQhard

A developer uses the Vertex AI Python SDK to call a Gemini model for structured JSON output. However, the model often returns malformed JSON. Which parameter should the developer set in the generation configuration to enforce valid JSON output?

A.Set the temperature to a lower value (0.1) to reduce variation.
B.Set the 'response_mime_type' parameter to 'application/json'.
C.Include few-shot examples of the desired JSON format in the system prompt.
D.Switch to a smaller model to reduce complexity.
AnswerB

This parameter forces the model to output valid JSON, supported by Gemini.

Why this answer

Setting `response_mime_type` to `'application/json'` in the generation configuration instructs the Gemini API to constrain the model's output to valid JSON format. This parameter leverages the model's native structured output capability, ensuring the response adheres to JSON syntax without relying on post-processing or prompt engineering.

Exam trap

Google Cloud often tests the misconception that prompt engineering (e.g., few-shot examples or temperature tuning) can reliably enforce structured output, when in fact the correct approach is to use the API's native structured output parameter like `response_mime_type`.

How to eliminate wrong answers

Option A is wrong because lowering temperature reduces randomness but does not enforce structural constraints; the model can still produce malformed JSON due to token-level deviations. Option C is wrong because few-shot examples in the system prompt improve formatting consistency but do not guarantee valid JSON output, as the model may still generate syntax errors or deviate from the schema. Option D is wrong because switching to a smaller model reduces capacity and may increase the likelihood of malformed output, and model size does not address the need for structured output enforcement.

Page 5

Page 6 of 10

Page 7

All pages