Courseiva

CCNA Google Cloud's Generative AI Offerings Questions

75 of 78 questions · Page 1/2 · Google Cloud's Generative AI Offerings · Answers revealed

1
MCQhard

During a load test, a Vertex AI endpoint serving a large language model experiences high latency and increased error rates. The endpoint is configured with autoscaling. What is the most likely cause?

A.There is a network bottleneck
B.The model size is too large for the machine type
C.The endpoint is using a global load balancer
D.The autoscaling metric is based on CPU utilization but the model is GPU-bound
AnswerD

GPU-bound models require GPU-based metrics for effective autoscaling.

Why this answer

When a model is GPU-bound, CPU utilization remains low even under heavy inference load, so autoscaling based on CPU metrics fails to trigger additional replicas. This leads to queued requests, increased latency, and eventual error rates as the existing GPU instances become saturated. Vertex AI endpoints default to CPU-based autoscaling unless explicitly configured with GPU metrics like 'gpu_utilization' or custom metrics.

Exam trap

The trap here is that candidates assume autoscaling always works generically, but Vertex AI's default CPU-based metric is irrelevant for GPU-accelerated inference, causing silent failures under load.

How to eliminate wrong answers

Option A is wrong because a network bottleneck would typically manifest as packet loss or timeouts across all requests, not specifically correlated with GPU-bound model behavior, and autoscaling would still trigger if CPU metrics were affected. Option B is wrong because model size exceeding machine type limits would cause deployment failures or out-of-memory errors, not gradual latency increases during load tests. Option C is wrong because a global load balancer distributes traffic across regions and reduces latency, not increases it; the issue is autoscaling misconfiguration, not load balancing.

2
MCQmedium

A company is building a generative AI chatbot for customer support using Vertex AI. They want to ground the model responses with their internal knowledge base stored in Cloud Storage and BigQuery. Which feature should they use to ensure the model only answers from the provided data and avoids hallucination?

A.Vertex AI Grounding with Vertex AI Search
B.Vertex AI Prediction
C.Vertex AI Pipelines
D.Cloud Functions
AnswerA

Vertex AI Grounding with Search enables grounding on enterprise data sources.

Why this answer

Vertex AI Grounding with Vertex AI Search is the correct feature because it allows the model to retrieve and cite information from a specified data source (such as Cloud Storage and BigQuery) to generate responses. This process, known as grounding, ensures the model's output is based solely on the provided authoritative data, effectively reducing hallucinations by constraining the model to factual, retrieved content rather than relying on its internal parametric knowledge.

Exam trap

The trap here is that candidates may confuse Vertex AI Prediction (a general model serving endpoint) with the grounding feature, mistakenly thinking that simply deploying a model with Vertex AI Prediction will automatically restrict its answers to a specific knowledge base, when in fact grounding requires explicit integration with Vertex AI Search and a configured data store.

How to eliminate wrong answers

Option B is wrong because Vertex AI Prediction is a service for deploying and serving models to generate predictions or responses, but it does not inherently include grounding capabilities to restrict answers to a specific knowledge base; it would require additional integration with a retrieval system. Option C is wrong because Vertex AI Pipelines is an orchestration service for building and managing ML workflows, not a feature for grounding model responses or preventing hallucinations. Option D is wrong because Cloud Functions is a serverless compute service for running event-driven code, and while it could be used to build a custom retrieval pipeline, it is not a native Vertex AI feature for grounding and does not provide the built-in retrieval and citation mechanisms needed to ensure answers come only from the provided data.

3
Multi-Selecteasy

Which TWO features are available in Vertex AI Studio for prompt engineering? (Choose two.)

Select 2 answers
A.Side-by-side comparison of model outputs
B.One-click deployment to a Vertex AI endpoint
C.Ability to test prompts with different model parameters (temperature, top_p)
D.Fine-tuning models directly in the interface
E.Building conversational agents with drag-and-drop
AnswersA, C

Allows output comparison.

Why this answer

Vertex AI Studio provides a side-by-side comparison feature that allows prompt engineers to evaluate outputs from multiple model configurations or parameter settings simultaneously. This enables direct visual comparison of responses, helping to identify the most effective prompt phrasing or parameter combination without manual switching.

Exam trap

The trap here is that candidates may confuse Vertex AI Studio's prompt engineering features with those of Vertex AI Agent Builder or Vertex AI Model Registry, leading them to select options like one-click deployment or drag-and-drop agent building that belong to separate services.

4
MCQeasy

A developer is using Vertex AI Studio to prototype a chat application. They want to provide the model with a system instruction to set the tone and style. How should they configure this in the Vertex AI Studio interface?

A.Add the instruction as part of the prompt text
B.Set the temperature parameter to a high value
C.Use the 'System Instruction' field in the model configuration
D.Add the instruction in the 'Context' parameter
AnswerC

Vertex AI Studio has a dedicated field for system instructions.

Why this answer

Vertex AI Studio provides a dedicated 'System Instruction' field in the model configuration panel, which allows developers to set the tone, style, and behavioral guidelines for the model without mixing them into the user prompt. This field is specifically designed to hold system-level instructions that are prepended to the conversation context, ensuring consistent behavior across multiple turns.

Exam trap

The trap here is that candidates often confuse the 'System Instruction' field with the 'Context' parameter, mistakenly thinking both serve the same purpose, but the 'Context' parameter is designed for providing background knowledge or few-shot examples, not for setting persistent behavioral instructions.

How to eliminate wrong answers

Option A is wrong because adding the instruction as part of the prompt text would mix system-level guidance with user input, making it harder to maintain consistency and potentially causing the model to treat the instruction as part of the conversation rather than a persistent directive. Option B is wrong because the temperature parameter controls randomness in output generation, not the tone or style; a high temperature increases creativity and variability but does not enforce a specific behavioral instruction. Option D is wrong because the 'Context' parameter in Vertex AI Studio is used to provide background information or examples for grounding the model, not for setting system-level behavioral instructions like tone or style.

5
MCQmedium

A news organization is using Vertex AI Gemini to summarize articles. They observe that the summaries sometimes contain hallucinated facts—specifically, dates and statistics that are not in the original article. The team is using the default temperature and top_p settings. They want to reduce hallucinations without making summaries too repetitive or overly conservative. They also need to keep latency low. Which action should they take?

A.Increase the temperature to 1.0 and lower top_p to 0.1.
B.Enable grounding with Google Search to provide factual source context.
C.Fine-tune the model on a large dataset of articles and human-written summaries.
D.Lower the temperature to 0.0 and increase top_p to 1.0.
AnswerB

Grounding connects the model to verified information, reducing hallucination.

Why this answer

Enabling grounding with Google Search is the correct action because it directly addresses the root cause of hallucinations—lack of factual source context—by allowing the model to cross-reference generated content with real-time, authoritative web data. This approach reduces fabricated dates and statistics without requiring changes to temperature or top_p, which could introduce repetition or conservatism, and it maintains low latency by leveraging Google's infrastructure for retrieval rather than model retraining.

Exam trap

The trap here is that candidates often assume reducing randomness (lower temperature) or increasing determinism (top_p adjustments) will fix hallucinations, but these parameters control output style, not factual grounding, which requires external verification.

How to eliminate wrong answers

Option A is wrong because increasing temperature to 1.0 and lowering top_p to 0.1 would increase randomness and narrow token selection, likely worsening hallucinations and making summaries less coherent, not more factual. Option C is wrong because fine-tuning on a large dataset is resource-intensive, increases latency, and may not eliminate hallucinations if the training data itself contains inaccuracies; it also contradicts the requirement to keep latency low. Option D is wrong because lowering temperature to 0.0 makes the model deterministic and overly repetitive, while increasing top_p to 1.0 has no effect at temperature 0.0, resulting in summaries that are conservative and lack diversity, not a solution for hallucinations.

6
MCQhard

A multinational corporation is using Vertex AI to generate multilingual customer support responses. They have fine-tuned the Gemini model on support tickets in English and now want to extend to 10 additional languages. The fine-tuning dataset for new languages is small (1000 tickets each). During evaluation, the model performs well for common languages (Spanish, French) but poorly for languages like Finnish and Thai. The team needs to improve performance for low-resource languages. They have budget constraints and cannot collect more data quickly. Which approach should they take?

A.Switch to Vertex AI Codey API for generating responses in all languages.
B.Use a multilingual foundation model and fine-tune with cross-lingual transfer learning techniques.
C.Deploy separate fine-tuned models for each language.
D.Collect more training data for low-resource languages via crowdsourcing.
AnswerB

Gemini is inherently multilingual; cross-lingual transfer can boost low-resource performance.

Why this answer

Using a multilingual foundation model (like Gemini's multilingual variant) with cross-lingual transfer learning leverages the model's pre-trained knowledge across languages, allowing it to generalize from high-resource languages (Spanish, French) to low-resource ones (Finnish, Thai) even with small fine-tuning datasets. This approach is budget-friendly as it avoids separate models or costly data collection, and it directly addresses the performance gap by sharing linguistic patterns across languages.

Exam trap

The trap here is that candidates often assume more data (Option D) or separate models (Option C) are the only solutions, ignoring that cross-lingual transfer learning can effectively bootstrap low-resource languages from high-resource ones without additional data collection.

How to eliminate wrong answers

Option A is wrong because the Vertex AI Codey API is designed for code generation, not multilingual customer support responses, and switching to it would not improve performance for low-resource languages. Option C is wrong because deploying separate fine-tuned models for each language multiplies cost and maintenance overhead, and with only 1000 tickets per language, each model would suffer from the same data scarcity issue without cross-lingual benefits. Option D is wrong because the team has budget constraints and cannot collect more data quickly, making crowdsourcing infeasible in the short term, and it does not address the underlying need for transfer learning.

7
Multi-Selecteasy

Which TWO of the following are capabilities of Vertex AI Model Garden? (Choose 2)

Select 2 answers
A.Generate code snippets for common programming tasks.
B.Ability to generate images from text descriptions.
C.Deploy custom container images for model serving.
D.Access to a curated set of foundation models like PaLM and Gemini.
E.Ability to fine-tune and deploy foundation models.
AnswersD, E

Model Garden gives access to foundation models.

Why this answer

Vertex AI Model Garden provides a curated repository of Google's foundation models, including PaLM 2, Gemini, and other first-party and third-party models, allowing users to discover, test, and deploy them directly from the Google Cloud console. This access is a core capability of Model Garden, enabling rapid experimentation with pre-trained models without requiring custom model building.

Exam trap

The trap here is that candidates confuse the capabilities of Vertex AI Model Garden (model discovery, access, and deployment) with the capabilities of the underlying models themselves (e.g., code generation or image generation), or with other Vertex AI services like Prediction or Endpoints for custom container deployments.

8
MCQeasy

A marketing agency wants to use Vertex AI to automatically generate social media posts for clients. They plan to use the Gemini API with few-shot prompting. The agency's developers have limited experience with generative AI and want the fastest way to prototype and iterate on prompts. They are already using Google Cloud for other services. Which approach should they take to quickly develop and test prompts?

A.Use a third-party platform like OpenAI Playground and migrate later.
B.Use Google Cloud Shell to invoke the model via curl commands.
C.Use Vertex AI Studio (Gen AI Studio) to design and test prompts interactively.
D.Write Python scripts using the Vertex AI SDK and run them in Airflow.
AnswerC

Vertex AI Studio is designed for rapid prototyping with a visual interface.

Why this answer

Vertex AI Studio (Gen AI Studio) is the correct choice because it provides a no-code, interactive environment specifically designed for rapid prompt engineering and iteration with Gemini models. It allows developers with limited generative AI experience to test few-shot prompts, adjust parameters, and see results immediately without writing code, making it the fastest path from concept to working prototype within the Google Cloud ecosystem.

Exam trap

The trap here is that candidates may confuse 'fastest to prototype' with 'most familiar tool' (like curl or Python scripts), overlooking that Vertex AI Studio is purpose-built for interactive, no-code prompt engineering within Google Cloud.

How to eliminate wrong answers

Option A is wrong because using a third-party platform like OpenAI Playground introduces unnecessary migration effort, potential API incompatibilities, and does not leverage the agency's existing Google Cloud investment or the Gemini API's specific capabilities. Option B is wrong because Google Cloud Shell with curl commands is a low-level, non-interactive approach that lacks the visual prompt design, parameter tuning, and example management features of Vertex AI Studio, making it slower and more error-prone for iterative prototyping. Option D is wrong because writing Python scripts with the Vertex AI SDK and running them in Airflow is a production-oriented, code-heavy approach that requires significant development effort and is not suitable for rapid prototyping and iteration by developers with limited generative AI experience.

9
MCQeasy

A company wants to build a chatbot that can answer questions about its internal knowledge base using natural language. Which Google Cloud Generative AI offering should they use to quickly prototype and deploy this chatbot with minimal coding?

A.Generative AI Studio
B.Vertex AI Endpoints
C.Cloud Natural Language API
D.Vertex AI Model Garden
AnswerA

Generative AI Studio offers a drag-and-drop interface for building chatbots.

Why this answer

Generative AI Studio provides a no-code/low-code environment to prototype and deploy chatbots with foundation models.

10
MCQmedium

A machine learning engineer is deploying a large generative model on Vertex AI. The model requires a GPU with high memory. Which machine configuration should they choose?

A.c2-standard-16 with no GPU
B.a2-highgpu-4g with 4 A100 GPUs
C.n1-standard-4 with a single T4 GPU
D.n2-standard-8 with a single P4 GPU
AnswerB

A2 machines offer A100s with large memory, suitable for large models.

Why this answer

The a2-highgpu-4g machine series is specifically designed for large-scale GPU-accelerated workloads, offering 4 NVIDIA A100 GPUs with 40GB of high-bandwidth memory (HBM2e) each, totaling 160GB of GPU memory. This configuration provides the high memory capacity required for training or serving large generative models, such as LLMs or diffusion models, which often exceed the memory limits of smaller GPUs.

Exam trap

The trap here is that candidates may choose a cheaper or single-GPU option (like C or D) without calculating the total GPU memory needed, or mistakenly think a CPU-only instance (A) can handle GPU-accelerated workloads, ignoring that large generative models require both high GPU memory and parallel processing.

How to eliminate wrong answers

Option A is wrong because c2-standard-16 is a compute-optimized machine without any GPU, which cannot provide the GPU memory needed for large generative models. Option C is wrong because n1-standard-4 with a single T4 GPU offers only 16GB of GPU memory, insufficient for large models that require tens or hundreds of gigabytes. Option D is wrong because n2-standard-8 with a single P4 GPU provides only 8GB of GPU memory, far below the requirements for large generative models and lacks the parallelism of multiple GPUs.

11
MCQhard

A company is using Vertex AI Gemini API to analyze customer feedback. They notice that the model occasionally generates offensive content. They have already set safety settings to block high-probability harmful content. What additional step should they take to further reduce offensive outputs?

A.Set the temperature to 0.0
B.Adjust safety settings to block medium-probability harmful content
C.Enable context caching
D.Fine-tune the model on customer feedback data
AnswerB

Stricter thresholds block more offensive outputs.

Why this answer

The company has already blocked high-probability harmful content, but offensive outputs can still occur at lower probability thresholds. By adjusting safety settings to block medium-probability harmful content, they tighten the filter to catch more borderline cases without requiring model retraining or sacrificing output diversity. This leverages Vertex AI's configurable safety filters, which operate on likelihood categories (e.g., high, medium, low) rather than just binary blocking.

Exam trap

The trap here is that candidates assume fine-tuning (Option D) is the default fix for any output quality issue, but safety filtering is a separate, configurable layer that should be tuned before retraining, and temperature (Option A) is often mistakenly thought to control safety when it only controls randomness.

How to eliminate wrong answers

Option A is wrong because setting temperature to 0.0 makes the model deterministic and reduces creativity, but it does not filter or block offensive content; temperature controls randomness in token selection, not safety. Option C is wrong because context caching improves latency and cost for repeated prompts by storing context, but it has no effect on content safety or filtering harmful outputs. Option D is wrong because fine-tuning on customer feedback data could inadvertently reinforce biases or offensive patterns in the data, and it does not directly address safety filtering; safety settings are a separate, configurable layer that should be adjusted first.

12
MCQmedium

A media company uses Vertex AI to generate video captions. The generated captions sometimes contain factual errors about named entities (e.g., actor names). Which technique would most likely reduce these errors?

A.Enable response caching
B.Increase the temperature parameter
C.Use Vertex AI grounding with a knowledge base of verified entities
D.Decrease top_p to 0.3
AnswerC

Grounding supplies factual context to the model.

Why this answer

Vertex AI grounding connects the model to a knowledge base of verified entities, allowing it to retrieve authoritative facts during generation. This reduces hallucinations about named entities by constraining outputs to validated data rather than relying solely on the model's parametric knowledge.

Exam trap

The trap here is that candidates confuse techniques that control output randomness (temperature, top_p) with techniques that improve factual accuracy, overlooking the fundamental need for external knowledge retrieval via grounding.

How to eliminate wrong answers

Option A is wrong because response caching stores previous outputs for reuse, which does not correct factual errors—it may even propagate them. Option B is wrong because increasing the temperature parameter increases randomness in token selection, making factual errors more likely, not less. Option D is wrong because decreasing top_p to 0.3 narrows the sampling pool to only the most probable tokens, which can reduce creativity but does not address factual accuracy about named entities—it still relies on the model's internal knowledge, which may be incorrect.

13
MCQhard

A large enterprise is migrating their on-premise ML workloads to Vertex AI. They have a custom PyTorch model for text classification that they want to serve with minimal code changes. Which Vertex AI capability should they use for model serving?

A.Vertex AI Endpoints with a pre-built PyTorch runtime
B.Vertex AI Prediction with a custom container
C.Vertex AI Model Garden
D.Vertex AI Vector Search for approximate nearest neighbor
AnswerB

Custom containers support any framework and allow minimal code changes.

Why this answer

Vertex AI Prediction with a custom container allows the enterprise to package their existing PyTorch model with any custom dependencies or runtime configurations into a Docker container, enabling deployment with minimal code changes. This approach provides full control over the serving environment while leveraging Vertex AI's managed infrastructure for scaling, monitoring, and endpoint management.

Exam trap

The trap here is that candidates assume Vertex AI provides a pre-built PyTorch runtime similar to TensorFlow, but in reality, PyTorch models require a custom container because Vertex AI's managed runtimes only support TensorFlow, scikit-learn, and XGBoost natively.

How to eliminate wrong answers

Option A is wrong because Vertex AI Endpoints with a pre-built PyTorch runtime does not exist as a managed service; Vertex AI offers pre-built containers for TensorFlow, scikit-learn, and XGBoost, but not for PyTorch, so a custom container is required. Option C is wrong because Vertex AI Model Garden provides access to pre-trained foundation models and model hubs, not a mechanism for serving custom PyTorch models with minimal code changes. Option D is wrong because Vertex AI Vector Search is designed for approximate nearest neighbor (ANN) search on embeddings, not for serving text classification models directly.

14
MCQhard

A financial services firm uses a fine-tuned Gemini model in Vertex AI for regulatory compliance checks. They notice that token usage is high, increasing costs. They want to reduce costs without sacrificing accuracy. Which approach should they take?

A.Switch to a smaller base model like PaLM 2 Bison
B.Enable context caching to reuse previous responses
C.Set max output tokens to a lower value and use more precise prompts
D.Reduce temperature to 0.0
AnswerC

Directly reduces output tokens; precise prompts maintain accuracy.

Why this answer

Reducing max output tokens directly lowers the number of tokens generated per request, which is the primary cost driver in pay-per-token models like Gemini. Using more precise prompts further reduces token waste by guiding the model to produce concise, relevant outputs without sacrificing accuracy, as compliance checks often require specific, structured responses rather than verbose explanations.

Exam trap

The trap here is that candidates often confuse cost-reduction strategies that affect model behavior (like temperature or model size) with those that directly reduce token count, leading them to pick options that change output quality rather than token usage.

How to eliminate wrong answers

Option A is wrong because switching to a smaller base model like PaLM 2 Bison may reduce per-token cost but can degrade accuracy on complex regulatory compliance tasks, as smaller models have less capacity for nuanced understanding and may miss critical compliance nuances. Option B is wrong because context caching is designed to reduce latency and cost for repeated identical prompts by reusing cached responses, but it does not help when each compliance check involves unique input data (e.g., different contracts or transactions), making cache hits unlikely. Option D is wrong because setting temperature to 0.0 makes the model deterministic but does not reduce token usage; it may even increase token count if the model becomes overly repetitive or verbose in its attempts to be precise.

15
MCQmedium

An e-commerce company is using Vertex AI PaLM 2 for Text (via Model Garden) to generate product descriptions. They have an existing pipeline that calls the model with a prompt including product attributes. Recently, they migrated to the Gemini API. The team notices that the Gemini model sometimes outputs descriptions that are factually inconsistent with the input (e.g., wrong color or size). This was less frequent with PaLM 2. They have not changed the prompts. What is the most likely cause and solution?

A.Revert to PaLM 2 since it was more reliable for this task.
B.Add negative prompts to discourage incorrect facts.
C.Adjust the prompt to be more explicit about adhering to the input data, and reduce the temperature.
D.Increase the model's temperature to make outputs more deterministic.
AnswerC

Different models may require slight prompt adjustments; lower temperature and clearer instructions improve factual precision.

Why this answer

The core issue is that the prompt, originally optimized for PaLM 2, may not be sufficiently explicit for the Gemini model's different instruction-following behavior. By making the prompt more explicit about adhering strictly to the input data and reducing the temperature (e.g., to 0.2 or lower), the model's output becomes more deterministic and less prone to hallucinating incorrect attributes. This directly addresses the factual inconsistency without changing the model family, leveraging Gemini's ability to follow detailed instructions when properly guided.

Exam trap

The trap here is that candidates assume model migration is the root cause and choose to revert (Option A), when in fact the real issue is prompt adaptation and hyperparameter tuning for the new model's behavior.

How to eliminate wrong answers

Option A is wrong because reverting to PaLM 2 ignores the fact that the prompt was not optimized for Gemini; the issue is prompt engineering and hyperparameter tuning, not model reliability. Option B is wrong because negative prompts are not a standard mechanism in Gemini or PaLM 2 for text generation; they are used in image generation models (e.g., Imagen) to avoid certain concepts, not to enforce factual consistency in text outputs. Option D is wrong because increasing temperature would make outputs more random and less deterministic, worsening the factual inconsistency problem, not solving it.

16
MCQeasy

A developer wants to generate Python code using Google Cloud's generative AI. Which model should they invoke?

A.Chirp
B.Codey
C.Imagen
D.Meena
AnswerB

Codey is designed for code generation.

Why this answer

Codey is Google Cloud's family of models specifically designed for code generation, completion, and chat, built on the PaLM 2 architecture and fine-tuned on code-heavy datasets. For a developer needing to generate Python code, Codey is the correct choice because it is purpose-built for code-related tasks, unlike other models that specialize in different modalities.

Exam trap

The trap here is that candidates may confuse Chirp (audio) or Imagen (image) with code generation because all are Google Cloud generative AI offerings, but each is specialized for a distinct modality, and the question explicitly asks for code generation.

How to eliminate wrong answers

Option A is wrong because Chirp is Google Cloud's speech-to-text model, designed for audio transcription, not code generation. Option C is wrong because Imagen is a text-to-image generation model, focused on creating visual content from text prompts, not code. Option D is wrong because Meena is a general-purpose conversational AI model (predecessor to LaMDA) optimized for open-domain dialogue, not for generating syntactically correct Python code.

17
MCQhard

A company deploys a Gemini model on Vertex AI for a healthcare application. They need to ensure that the model does not generate medical advice and that responses are grounded in trusted medical sources. Which combination of safety measures should they implement?

A.Enable safety filters and use Vertex AI Grounding with a labeled medical dataset
B.Use Vertex AI Grounding with a public dataset and disable safety filters
C.Enable safety filters only, without grounding
D.Fine-tune the model on a curated medical dataset and disable safety filters for faster responses
AnswerA

This combination ensures safety and factual grounding.

Why this answer

It combines two essential safety layers: safety filters block harmful content (including medical advice), and Vertex AI Grounding anchors responses to a labeled medical dataset, ensuring factual accuracy and compliance with healthcare regulations. This dual approach prevents the model from generating unverified or dangerous medical information while maintaining relevance to trusted sources.

Exam trap

The trap here is that candidates assume fine-tuning alone is sufficient for domain-specific safety, but without grounding and safety filters, the model can still hallucinate or generate unverified medical advice, which is a key distinction Google Cloud tests in the Generative AI Leader exam.

How to eliminate wrong answers

Option B is wrong because using a public dataset for grounding introduces unverified or non-authoritative medical information, and disabling safety filters removes the critical barrier against generating harmful or unlicensed medical advice. Option C is wrong because safety filters alone cannot ensure responses are grounded in trusted medical sources; they only block explicit content but do not prevent the model from fabricating medical facts. Option D is wrong because fine-tuning on a curated dataset does not guarantee real-time grounding in trusted sources, and disabling safety filters exposes the application to generating unverified medical advice, which is unacceptable in healthcare.

18
Multi-Selecthard

A machine learning engineer is tuning a large language model on Vertex AI for question answering. They want to evaluate the model's performance before deployment. Which THREE metrics should they consider?

Select 3 answers
A.Cost per training epoch
B.F1 score
C.Exact match (EM)
D.Training time per epoch
E.ROUGE-L score
AnswersB, C, E

F1 balances precision and recall.

Why this answer

The F1 score is a key metric for evaluating question-answering models because it measures the harmonic mean of precision and recall, capturing how well the model's predicted answer overlaps with the ground truth answer. In the context of Vertex AI and large language models, F1 score is particularly useful when answers are not exact matches but contain partial correct information, making it a standard evaluation metric for extractive and generative QA tasks.

Exam trap

The trap here is that candidates confuse operational metrics (like cost or training time) with evaluation metrics that directly measure model output quality, leading them to select options that are irrelevant to performance assessment.

19
MCQeasy

A developer wants to integrate Gemini multimodal capabilities (text + image) into a mobile app using Python. Which Google Cloud client library should they use?

A.Dialogflow CX
B.Vertex AI client library (google-cloud-aiplatform)
C.Cloud Vision API
D.Natural Language API
AnswerB

The Vertex AI client library supports Gemini API for multimodal generation.

Why this answer

The Vertex AI client library (google-cloud-aiplatform) provides the Generative AI SDK that supports multimodal capabilities, including the ability to send both text and image inputs to Gemini models. This library directly exposes the `GenerativeModel` class with methods like `generate_content()` that accept `Part` objects containing image data (e.g., `Part.from_image()` or `Part.from_uri()`), making it the correct choice for integrating Gemini multimodal features into a Python mobile app backend.

Exam trap

The trap here is that candidates confuse specialized single-modality APIs (Vision, Natural Language) with the unified multimodal API provided by Vertex AI, assuming that combining separate services is equivalent to Gemini's native multimodal reasoning.

How to eliminate wrong answers

Option A is wrong because Dialogflow CX is a conversational AI platform for building chatbots and virtual agents, not a library for directly accessing Gemini multimodal models; it lacks the low-level API to construct multimodal requests with image parts. Option C is wrong because Cloud Vision API is a specialized service for image analysis (e.g., object detection, OCR) and does not provide access to Gemini's generative multimodal capabilities or its text+image reasoning. Option D is wrong because Natural Language API is designed for text-only analysis (e.g., sentiment, entity extraction) and cannot process image inputs or generate multimodal responses.

20
MCQeasy

You are using Vertex AI Model Garden to deploy a Llama model. Which deployment option provides the best latency for real-time inference?

A.Use Batch Prediction
B.Deploy to a Compute Engine VM
C.Deploy to Vertex AI Endpoint with a fixed number of replicas
D.Use MaaS (Model-as-a-Service) with autoscaling
AnswerC

Fixed replicas ensure always-on instances for low latency.

Why this answer

Deploying a Llama model to a Vertex AI Endpoint with a fixed number of replicas ensures that compute resources are pre-allocated and always warm, minimizing cold-start latency and providing consistent, low-latency responses for real-time inference. This approach uses a dedicated endpoint with persistent instances, which is optimized for sub-second response times required by interactive applications.

Exam trap

The trap here is that candidates confuse 'autoscaling' (which optimizes cost) with 'low latency' (which requires pre-provisioned resources), and they overlook that MaaS with autoscaling introduces cold-start delays that are unacceptable for real-time inference.

How to eliminate wrong answers

Option A is wrong because Batch Prediction is designed for asynchronous, high-throughput processing of large datasets and does not provide real-time inference; it queues jobs and returns results later, making it unsuitable for latency-sensitive applications. Option B is wrong because deploying to a Compute Engine VM requires manual management of the serving infrastructure, lacks built-in autoscaling, load balancing, and health checks that Vertex AI Endpoints provide, leading to higher operational overhead and potential latency spikes under variable load. Option D is wrong because MaaS (Model-as-a-Service) with autoscaling introduces cold-start delays when scaling from zero replicas, and autoscaling policies may not react quickly enough to sudden traffic bursts, causing increased latency during scale-up events.

21
MCQeasy

A startup wants to generate images from text descriptions for their marketing materials. They prefer a managed service that requires minimal coding. Which Google Cloud generative AI offering should they use?

A.Vertex AI Imagen
B.Natural Language API
C.Document AI
D.Cloud Speech-to-Text
AnswerA

Imagen provides text-to-image generation capabilities via Vertex AI.

Why this answer

Vertex AI Imagen is Google Cloud's managed generative AI service specifically designed for text-to-image generation. It requires minimal coding, as users can interact with it via the Cloud Console, API calls with simple prompts, or through Vertex AI's built-in tools, making it ideal for a startup needing to generate marketing images from text descriptions without extensive development effort.

Exam trap

The trap here is that candidates may confuse general-purpose AI services (like Natural Language API or Document AI) with generative AI offerings, overlooking that only Vertex AI Imagen is purpose-built for text-to-image generation as a managed service with minimal coding.

How to eliminate wrong answers

Option B (Natural Language API) is wrong because it is designed for analyzing and extracting insights from text (e.g., sentiment, entity recognition), not for generating images from text. Option C (Document AI) is wrong because it focuses on processing and extracting data from documents (e.g., OCR, form parsing), not on generative image creation. Option D (Cloud Speech-to-Text) is wrong because it converts audio speech into text, which is the opposite direction of generating images from text descriptions.

22
MCQmedium

Why is the model responding in English despite the prompt asking for French translation?

A.The model endpoint is configured for English only
B.The temperature is too high, causing random outputs
C.The system instruction to translate to French was not set; the user prompt alone is not sufficient
D.The maxOutputTokens is too low to complete the translation
AnswerC

Gemini requires system instruction for task specification.

Why this answer

In Google Cloud's Vertex AI and Generative AI offerings, the system instruction is a separate, persistent directive that sets the model's behavior, such as language output. The user prompt alone, even if it asks for a French translation, is not sufficient to override the default language of the model; the system instruction must explicitly specify the target language. Without this instruction, the model defaults to its training language (typically English), regardless of the user's request.

Exam trap

The trap here is that candidates assume a user prompt's explicit instruction (e.g., 'Translate to French') is enough to override the model's default language, but in Google Cloud's Generative AI, the system instruction is the authoritative control for persistent behavior, not the user prompt.

How to eliminate wrong answers

Option A is wrong because model endpoints in Vertex AI are not configured for a specific language; they serve all languages the model supports, and language behavior is controlled via system instructions or prompt engineering, not endpoint configuration. Option B is wrong because a high temperature increases randomness in token selection but does not cause the model to ignore a language instruction; it would still attempt to follow the prompt, albeit with more creative or varied outputs, not systematically output English. Option D is wrong because maxOutputTokens limits the length of the response, not the language; if set too low, the model would produce a truncated translation, not switch to English.

23
MCQeasy

A startup wants to generate product descriptions from a few keywords using a large language model. They have no prior ML experience and need the fastest time-to-market. Which Google Cloud service should they use?

A.Vertex AI Studio
B.Vertex AI Workbench with custom training
C.Vertex AI Agent Builder
D.Vertex AI Model Garden
AnswerA

No-code prompt engineering and testing.

Why this answer

Vertex AI Studio provides a no-code/low-code environment with pre-trained foundation models and prompt templates, enabling rapid generation of product descriptions from keywords without any ML expertise. It offers the fastest time-to-market because it eliminates the need for custom model training, infrastructure setup, or coding, directly leveraging Google's generative AI capabilities through a simple interface.

Exam trap

The trap here is that candidates might confuse Vertex AI Studio with Vertex AI Model Garden, thinking Model Garden offers a faster path because it lists models, but Model Garden still requires deployment and configuration steps, whereas Studio provides immediate generation capabilities.

How to eliminate wrong answers

Option B is wrong because Vertex AI Workbench with custom training requires writing code, selecting models, and managing training jobs, which demands ML experience and significantly increases time-to-market compared to using a pre-built solution. Option C is wrong because Vertex AI Agent Builder is designed for creating conversational agents and chatbots, not for generating product descriptions from keywords; it adds unnecessary complexity and overhead for this simple text generation task. Option D is wrong because Vertex AI Model Garden is a repository of pre-trained models that still requires users to select, deploy, and potentially fine-tune models, which involves ML knowledge and setup time, not offering the fastest path for a non-ML team.

24
Multi-Selecteasy

Which TWO factors are most important when choosing a base foundation model for fine-tuning on a domain-specific task?

Select 2 answers
A.Model size and architecture
B.Model popularity in the developer community
C.Relevance of the model's training data to the target domain
D.Model license (open-source vs. proprietary)
E.Inference latency of the base model
AnswersA, C

Larger models may have better performance but higher cost; architecture affects fine-tuning ease.

Why this answer

Model size and architecture directly determine the capacity for learning domain-specific patterns during fine-tuning. Larger models with more parameters can capture nuanced relationships, while architecture choices like transformer depth or attention mechanisms affect how well the model adapts to specialized tasks. For domain-specific fine-tuning, the base model must have sufficient representational power to avoid catastrophic forgetting and to generalize effectively within the target domain.

Exam trap

The Generative AI Leader exam often tests the misconception that model popularity or license type is a primary technical factor for fine-tuning, when in reality the relevance of pre-training data and model capacity are the decisive criteria.

25
MCQmedium

A healthcare company is building a chatbot to answer patient queries based on their medical documents stored in Cloud Storage. They want to minimize latency and ensure data residency in the EU. Which Vertex AI service should they use?

A.Vertex AI Model Garden with fine-tuning
B.Vertex AI Search with document grounding
C.Vertex AI Agent Builder with web search
D.Vertex AI Codey APIs
AnswerB

Supports private document indexing and data residency controls.

Why this answer

Vertex AI Search with document grounding is correct because it allows the chatbot to ground responses in the customer's own medical documents stored in Cloud Storage, ensuring low latency through optimized indexing and retrieval, while supporting data residency controls to keep data within the EU. This service is specifically designed for enterprise search and Q&A over private document repositories, making it ideal for healthcare use cases requiring compliance and fast responses.

Exam trap

The trap here is that candidates may confuse Vertex AI Search (which grounds in private documents) with Vertex AI Agent Builder (which defaults to web search), or assume fine-tuning is necessary for domain-specific Q&A when retrieval-augmented generation (RAG) with document grounding is the correct approach for minimizing latency and ensuring data residency.

How to eliminate wrong answers

Option A is wrong because Vertex AI Model Garden with fine-tuning is intended for selecting and customizing foundation models, not for directly grounding answers in specific documents; it would require additional retrieval infrastructure and does not natively enforce data residency. Option C is wrong because Vertex AI Agent Builder with web search grounds responses in public web data, not private medical documents, and cannot guarantee data residency in the EU. Option D is wrong because Vertex AI Codey APIs are specialized for code generation and completion, not for answering queries based on document content.

26
Multi-Selectmedium

Which TWO features are available in Vertex AI Agent Builder to enhance the conversational abilities of an agent? (Choose TWO.)

Select 2 answers
A.Slot filling
B.Sentiment analysis
C.Code execution
D.Intent matching
E.Knowledge base integration
AnswersA, D

Slot filling collects required parameters from user input.

Why this answer

Slot filling is correct because it allows the agent to collect required parameters (slots) from the user during a conversation, enabling multi-turn interactions to fulfill complex requests. In Vertex AI Agent Builder, slot filling is a core feature for conversational agents, as it systematically prompts for missing information (e.g., date, location) until all necessary slots are filled, enhancing the agent's ability to handle dynamic user inputs.

Exam trap

The trap here is that candidates often confuse 'knowledge base integration' as a core conversational feature, but it is actually a retrieval-augmented generation (RAG) capability for grounding, not a direct mechanism for managing dialogue flow like slot filling or intent matching.

27
MCQhard

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

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

Fine-tuning adapts the model to the specific summarization style and reduces errors.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

28
MCQmedium

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

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

Prompt engineering with few-shot examples is low-cost and effective for small datasets.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

29
MCQeasy

A team wants to fine-tune a PaLM 2 model with their own data on Vertex AI. What is the recommended way to prepare the training data?

A.TFRecord files
B.JSON Lines file with 'input_text' and 'output_text' keys
C.CSV file with prompt and completion columns
D.Pickle serialized objects
AnswerB

JSONL with the correct keys is required.

Why this answer

The recommended format for fine-tuning PaLM 2 on Vertex AI is a JSON Lines file with 'input_text' and 'output_text' keys. This structure directly maps to the model's expected supervised fine-tuning (SFT) input, where each line represents a single training example with a prompt and its corresponding response. Vertex AI's fine-tuning pipeline is optimized to parse this schema, ensuring correct tokenization and alignment during training.

Exam trap

The trap here is that candidates often assume CSV is universally supported for ML training data, but Vertex AI's PaLM 2 fine-tuning requires JSON Lines for its explicit key-value structure, which avoids CSV's limitations with multiline text and special characters.

How to eliminate wrong answers

Option A is wrong because TFRecord files are a TensorFlow-specific binary format used for large-scale distributed training, but Vertex AI's PaLM 2 fine-tuning expects human-readable JSON Lines for data validation and preprocessing, not serialized TFRecords. Option C is wrong because CSV files lack a standardized schema for prompt-completion pairs in Vertex AI's fine-tuning API, and the platform specifically requires JSON Lines with 'input_text' and 'output_text' keys to avoid parsing ambiguities with commas or newlines in text. Option D is wrong because Pickle serialized objects are Python-specific and pose security risks (arbitrary code execution), and Vertex AI's managed service does not accept Pickle for training data; it requires a portable, language-agnostic format like JSON Lines.

30
MCQmedium

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

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

This helps detect and block malicious prompts and undesired outputs.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

31
MCQeasy

A retail company wants to build a customer service chatbot that can handle returns, order status, and FAQs. They need to integrate with their existing backend systems. Which Google Cloud service should they use?

A.Vertex AI Model Garden
B.Vertex AI Agent Builder
C.Vertex AI Search
D.Vertex AI Codey API
AnswerB

Provides tools for building chatbots with backend integration.

Why this answer

Vertex AI Agent Builder is the correct choice because it provides a low-code platform specifically designed for building conversational AI agents (chatbots) that can be integrated with enterprise backend systems via APIs, connectors, and custom tools. It supports grounding in enterprise data, multi-turn dialogue management, and seamless integration with existing systems for handling returns, order status, and FAQs, making it the most suitable service for this use case.

Exam trap

The trap here is that candidates may confuse Vertex AI Agent Builder with Vertex AI Search or Model Garden, assuming any generative AI service can build a chatbot, but only Agent Builder provides the necessary conversational orchestration and backend integration capabilities required for a production customer service chatbot.

How to eliminate wrong answers

Option A is wrong because Vertex AI Model Garden is a repository of pre-trained and foundation models for discovery and deployment, not a service for building conversational agents with backend integration. Option C is wrong because Vertex AI Search is optimized for enterprise search and information retrieval over structured and unstructured data, not for building multi-turn conversational chatbots that require backend system integration. Option D is wrong because Vertex AI Codey API is focused on code generation and code-related tasks (e.g., code completion, chat, and generation), not on building customer service chatbots that interact with backend systems.

32
MCQeasy

A developer wants to use Gemini 1.5 Pro to analyze hour-long video content and generate a summary. Which feature of Gemini 1.5 Pro is most suitable for this task?

A.Long context window (up to 1 million tokens)
B.Multimodal generation from text and images
C.Code generation and debugging
D.Function calling to retrieve external data
AnswerA

The long context allows ingesting entire video content for summarization.

Why this answer

Gemini 1.5 Pro's long context window of up to 1 million tokens allows it to process and analyze hour-long video content in a single pass, including both audio and visual frames. This capability is essential for generating a coherent summary of long-form video, as it can retain and reason over the entire video's context without needing to chunk or downsample the content.

Exam trap

The trap here is that candidates may confuse 'multimodal generation' (Option B) with the ability to process video, but Gemini 1.5 Pro's long context window is the specific feature designed for handling hour-long video content, not just the ability to handle multiple data types.

How to eliminate wrong answers

Option B is wrong because multimodal generation from text and images, while a feature of Gemini 1.5 Pro, does not specifically address the need to process hour-long video; it focuses on generating content from static images and text, not on handling long-duration video streams. Option C is wrong because code generation and debugging are unrelated to video analysis and summarization; they target software development tasks. Option D is wrong because function calling to retrieve external data is used to integrate with external APIs or databases, not for processing or summarizing video content directly.

33
MCQhard

You are a machine learning engineer at a healthcare startup. Your team has developed a generative AI model that summarizes patient medical records. The model is deployed on Vertex AI Endpoints using a custom container. You have configured the endpoint with a single n1-standard-4 machine (4 vCPUs, 15 GB memory) without accelerators. The model uses a small transformer architecture. During load testing with 50 concurrent requests, you observe that the average latency is 8 seconds, which exceeds the requirement of 2 seconds. Additionally, some requests time out after 10 seconds. You suspect the CPU is the bottleneck. You also notice that the model inference code uses TensorFlow but is not optimized for inference. Which action should you take to reduce latency?

A.Reduce the model size by pruning and quantization, then redeploy.
B.Increase the request timeout to 30 seconds to accommodate the latency.
C.Enable autoscaling to handle the load with multiple replicas.
D.Deploy the model on a machine with a GPU and use TensorRT for inference optimization.
AnswerD

GPU acceleration and model optimization can drastically reduce latency.

Why this answer

The CPU is identified as the bottleneck, and deploying on a GPU with TensorRT optimization directly addresses this by accelerating the TensorFlow inference. TensorRT optimizes the model graph and fuses layers, significantly reducing latency for transformer-based models, which is essential to meet the 2-second requirement.

Exam trap

The trap here is that candidates may choose autoscaling (Option C) thinking it handles high concurrency, but they overlook that the per-request latency remains unchanged on CPU, failing to meet the 2-second requirement.

How to eliminate wrong answers

Option A is wrong because pruning and quantization reduce model size and can improve latency, but they may degrade model accuracy and do not address the fundamental CPU bottleneck as effectively as GPU acceleration with TensorRT. Option B is wrong because increasing the timeout to 30 seconds does not reduce latency; it only masks the problem, and requests still exceed the 2-second requirement, leading to poor user experience. Option C is wrong because autoscaling adds more replicas to handle concurrent requests, but each request still runs on a CPU-bound n1-standard-4 machine, so the per-request latency remains high and does not solve the CPU bottleneck.

34
MCQeasy

A startup wants to quickly integrate a generative AI chatbot into their customer support platform. They need a solution that can answer questions based on their internal knowledge base with minimal setup. Which Google Cloud service should they use?

A.Use Model Garden to deploy a pre-built Q&A model
B.Call the Gemini API directly and implement grounding logic manually
C.Use Cloud AI Notebooks to fine-tune a model on their knowledge base
D.Use Vertex AI Agent Builder to create a conversational agent grounded in their data
AnswerD

Agent Builder offers pre-built components for grounding and conversation flow, enabling rapid deployment.

Why this answer

Vertex AI Agent Builder (now part of Vertex AI Agent Platform) provides a low-code, out-of-the-box solution for building conversational agents that are grounded in enterprise data. It automatically handles retrieval-augmented generation (RAG) by indexing the startup's internal knowledge base into a vector store and orchestrating the LLM to answer questions using only that data, requiring minimal setup compared to manual integration or fine-tuning.

Exam trap

The trap here is that candidates often confuse Model Garden (a model deployment hub) with a full conversational AI platform, overlooking that Vertex AI Agent Builder provides the essential grounding and orchestration layer that Model Garden lacks.

How to eliminate wrong answers

Option A is wrong because Model Garden is a model hub for discovering and deploying pre-built models, but it does not include built-in grounding logic or a conversational agent framework; deploying a Q&A model from Model Garden would still require custom code to connect it to the knowledge base. Option B is wrong because calling the Gemini API directly and implementing grounding logic manually requires significant custom development for document retrieval, chunking, embedding, and orchestration, which contradicts the 'minimal setup' requirement. Option C is wrong because Cloud AI Notebooks are designed for custom model training and fine-tuning, which is overkill and time-consuming for simply answering questions from an existing knowledge base; fine-tuning also risks catastrophic forgetting and does not natively support grounding in dynamic data.

35
MCQeasy

A data scientist wants to fine-tune a foundation model from Vertex AI Model Garden on their custom dataset. They want to choose a cost-effective method that updates only a small subset of parameters. Which fine-tuning approach should they use?

A.Full fine-tuning
B.Prompt tuning
C.Parameter-Efficient Fine-Tuning (PEFT) like LoRA
D.Reinforcement Learning from Human Feedback (RLHF)
AnswerC

PEFT methods update only a small subset of parameters.

Why this answer

Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA (Low-Rank Adaptation) are specifically designed to update only a small subset of parameters (e.g., low-rank matrices injected into transformer layers) while keeping the majority of the foundation model frozen. This drastically reduces memory and compute costs compared to full fine-tuning, making it the most cost-effective choice for customizing a model from Vertex AI Model Garden on a custom dataset.

Exam trap

The trap here is that candidates often confuse prompt tuning (which does not update model parameters) with parameter-efficient fine-tuning (which updates a small subset of parameters), leading them to incorrectly select Option B as a cost-effective method for updating parameters.

How to eliminate wrong answers

Option A is wrong because full fine-tuning updates all model parameters, which is computationally expensive and memory-intensive, contradicting the requirement for a cost-effective method that updates only a small subset of parameters. Option B is wrong because prompt tuning is a soft-prompt technique that does not update any model parameters; instead, it learns a small set of virtual tokens prepended to the input, which is not a parameter-efficient fine-tuning method (it is a prompt-based approach). Option D is wrong because Reinforcement Learning from Human Feedback (RLHF) is a training paradigm that uses human preferences to align model behavior, typically requiring multiple models (reward model, policy model) and full or PEFT fine-tuning, and it is not primarily a cost-effective method for updating a small subset of parameters on a custom dataset.

36
MCQmedium

A company is deploying a chatbot that must ensure customer data remains within the European Union. Which approach should they take?

A.Use Vertex AI Agent Builder with global endpoint
B.Use the Gemini API with a regional endpoint in europe-west4
C.Use Vertex AI with a multi-region endpoint
D.Deploy a custom model on GKE in a specific region
AnswerB

Regional endpoints ensure data remains in the specified region.

Why this answer

Using the Gemini API with a regional endpoint in europe-west4 ensures that all data processing and storage occurs within the European Union. Regional endpoints restrict data residency to the specified region, complying with GDPR and other EU data sovereignty requirements.

Exam trap

The trap here is that candidates often confuse multi-region endpoints (e.g., 'eu') with regional endpoints, assuming that any EU-based endpoint guarantees data stays within a specific country, when in fact multi-region endpoints can span multiple EU countries and may not meet strict single-country data residency requirements.

How to eliminate wrong answers

Option A is wrong because Vertex AI Agent Builder with a global endpoint does not guarantee data residency within the EU; global endpoints may route data to any Google Cloud region worldwide. Option C is wrong because Vertex AI with a multi-region endpoint (e.g., 'eu') can still process data across multiple EU regions, but it does not provide the strict single-region data residency guarantee that a regional endpoint offers. Option D is wrong because deploying a custom model on GKE in a specific region only controls compute location, not the underlying AI service endpoints or data processing paths, which may still involve global services or cross-region data transfer.

37
MCQmedium

A global e-commerce company wants to translate product descriptions into 50 languages with high accuracy. They need to handle domain-specific terms (e.g., 'size chart', 'return policy'). Which approach should they use?

A.Use the Gemini API with a prompt like 'Translate to French'
B.Build a custom agent with Vertex AI Agent Builder
C.Use Vertex AI Translation with custom glossaries
D.Use Imagen to generate translated images
AnswerC

Custom glossaries ensure domain-specific terms are translated correctly.

Why this answer

Vertex AI Translation with custom glossaries is specifically designed for high-accuracy, domain-specific translations. Custom glossaries allow you to define precise translations for terms like 'size chart' and 'return policy', ensuring consistency across 50 languages. This approach leverages Google's neural machine translation models while overriding generic translations with your business-specific terminology.

Exam trap

The trap here is that candidates may confuse general-purpose generative AI APIs (like Gemini) with specialized translation services, or assume that any AI model can handle domain-specific translation without customization, when in fact glossaries are required for consistent, accurate terminology.

How to eliminate wrong answers

Option A is wrong because the Gemini API is a general-purpose generative AI model, not a specialized translation service; it lacks built-in support for custom glossaries and may produce inconsistent or hallucinated translations for domain-specific terms. Option B is wrong because Vertex AI Agent Builder is designed for building conversational agents and workflows, not for bulk, high-accuracy translation tasks; it would require significant custom development to replicate glossary-based translation. Option D is wrong because Imagen is a text-to-image generation model, not a translation tool; it cannot translate text and would be irrelevant for translating product descriptions.

38
Multi-Selecthard

Which THREE factors should be considered when choosing between Gemini 1.5 Pro and Gemini 1.5 Flash for a customer-facing chatbot? (Choose three.)

Select 3 answers
A.Cost constraints: Flash is more cost-effective per token
B.Task complexity: Pro is better for complex reasoning
C.Safety filters: Pro has stricter safety defaults
D.Latency requirements: Flash provides faster responses
E.Multimodal capability: Flash does not support image input
AnswersA, B, D

Flash is cheaper.

Why this answer

Gemini 1.5 Flash is designed as a cost-optimized model, offering significantly lower per-token pricing compared to Gemini 1.5 Pro. For a customer-facing chatbot with high query volumes, cost efficiency is a primary consideration, making Flash the more economical choice for routine interactions.

Exam trap

The trap here is that candidates often assume Flash lacks multimodal capabilities or that Pro has stricter safety defaults, when in fact both models share the same safety configuration and both support multimodal inputs, with the key differentiators being cost, latency, and task complexity.

39
Multi-Selecthard

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

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

Deployment makes the index available for querying.

Why this answer

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

Exam trap

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

40
Multi-Selectmedium

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

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

Native integration with Vertex AI ecosystem.

Why this answer

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

Exam trap

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

41
Multi-Selecthard

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

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

Agent Builder can leverage Dialogflow CX for advanced conversational design.

Why this answer

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

Exam trap

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

42
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

43
MCQhard

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

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

Model Monitoring with Explainable AI provides attribution and traceability.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

44
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

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

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

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

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

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

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

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

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

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

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

55
MCQeasy

A data scientist wants to quickly prototype a text generation application using Google's foundation models. Which Google Cloud service should they use?

A.Generative AI Studio
B.Cloud Natural Language API
C.Vertex AI Prediction
D.AI Platform Training
AnswerA

Generative AI Studio provides a no-code interface to prototype with foundation models.

Why this answer

Generative AI Studio is the correct service because it provides a purpose-built environment for quickly prototyping and experimenting with Google's foundation models, including text generation models like PaLM 2 and Gemini. It offers a no-code interface and SDK access for rapid iteration, directly aligning with the data scientist's goal of fast prototyping without needing to manage infrastructure or training pipelines.

Exam trap

The trap here is that candidates confuse the purpose of Cloud Natural Language API (a non-generative analysis tool) with generative AI capabilities, or assume Vertex AI Prediction is the correct choice for prototyping when it is actually designed for serving deployed models, not interactive experimentation.

How to eliminate wrong answers

Option B is wrong because Cloud Natural Language API is a pre-trained API for analyzing text (e.g., sentiment, entity extraction) and does not support generative text generation or foundation model prototyping. Option C is wrong because Vertex AI Prediction is used for deploying and serving trained models for inference, not for rapid prototyping or interactive experimentation with foundation models. Option D is wrong because AI Platform Training (now part of Vertex AI) is designed for training custom machine learning models, not for quickly prototyping with pre-built foundation models.

56
MCQmedium

A financial services firm needs to generate synthetic data for training models while ensuring that no real customer data leaks. Which technique should they use?

A.Using the Vertex AI PII redaction service
B.Using a public foundation model without fine-tuning
C.Data masking before training
D.Differential privacy during fine-tuning
AnswerD

Differential privacy adds noise to protect individual data.

Why this answer

Differential privacy during fine-tuning is the correct technique because it adds calibrated noise to the training process, ensuring that the synthetic data generated does not reveal information about any individual real customer record. This approach provides a formal mathematical guarantee of privacy, making it suitable for generating synthetic data that preserves statistical properties while preventing data leakage. In contrast, other methods like redaction, masking, or using a public model do not inherently prevent the model from memorizing and reproducing sensitive information.

Exam trap

The trap here is that candidates confuse data masking or redaction (which only hide data in the training set) with techniques that prevent model memorization, overlooking that models can still leak sensitive information through inference even when the input data is obfuscated.

How to eliminate wrong answers

Option A is wrong because Vertex AI PII redaction service only removes or obscures personally identifiable information from existing text, but does not generate synthetic data; the underlying real data remains and could still be leaked through model memorization. Option B is wrong because using a public foundation model without fine-tuning does not generate synthetic data specific to the firm's domain; it may produce generic outputs that lack the required statistical fidelity, and it does not provide any privacy guarantee against leaking real customer data. Option C is wrong because data masking before training only obscures fields in the training dataset, but the model can still memorize and reconstruct masked values through inference attacks, especially if the masking is deterministic or reversible.

57
MCQeasy

You want to use a Google foundation model to generate text summaries of news articles. Which Vertex AI service should you use?

A.Vertex AI Prediction
B.Vertex AI Model Registry
C.Vertex AI Generative AI Studio
D.Vertex AI Feature Store
AnswerC

Generative AI Studio allows testing and using foundation models like text-bison@002.

Why this answer

Vertex AI Generative AI Studio (now part of Vertex AI Agent Builder) provides a no-code/low-code environment to access, test, and tune Google's foundation models, including PaLM 2 and Gemini, specifically for generative tasks like text summarization. It offers built-in prompt templates and safety settings tailored for summarization use cases, making it the correct service for this task.

Exam trap

The trap here is that candidates confuse Vertex AI Prediction (a general model serving service) with the specialized generative AI studio, assuming any model inference task uses Prediction, but Google explicitly separates foundation model access into Generative AI Studio for prompt-based generative workloads.

How to eliminate wrong answers

Option A is wrong because Vertex AI Prediction is designed for deploying and serving custom-trained models or AutoML models for online predictions, not for directly accessing Google's foundation models for generative tasks. Option B is wrong because Vertex AI Model Registry is a metadata store for managing and versioning your own models, not a service for interacting with foundation models or generating summaries. Option D is wrong because Vertex AI Feature Store is a managed repository for storing, serving, and sharing feature data for ML training and online inference, unrelated to text generation or foundation model access.

58
MCQeasy

The exhibit shows a command to deploy a model to a Vertex AI endpoint with GPU. The deployment fails due to a resource constraint. What is the most likely reason?

A.The --model flag points to an autoML model.
B.The accelerator type is misspelled.
C.The machine type n1-standard-4 does not support GPU accelerators.
D.The min-replica-count is greater than the max-replica-count.
AnswerC

n1-standard machines do not have enough PCIe lanes; use n1-highmem or n1-highcpu.

Why this answer

The n1-standard-4 machine type does not support attaching GPUs. In Vertex AI, GPU accelerators require specific machine series (e.g., n1-highmem-* or n1-highcpu-* for NVIDIA Tesla GPUs, or newer machine families like a2-highgpu-* for A100 GPUs). The n1-standard-4 is a general-purpose machine type that lacks the necessary PCIe lanes and power delivery to accommodate a GPU accelerator, causing a resource constraint failure during deployment.

Exam trap

The trap here is that candidates often assume any n1-standard machine type can support GPUs, but Google Cloud restricts GPU attachments to specific machine types within the N1 family (highmem/highcpu) and newer families like A2 or G2.

How to eliminate wrong answers

Option A is wrong because the --model flag pointing to an AutoML model is not a resource constraint; AutoML models can be deployed to endpoints with GPU accelerators, though they may not benefit from them. Option B is wrong because a misspelled accelerator type would cause a validation error (e.g., 'Invalid accelerator type') at deployment time, not a resource constraint failure. Option D is wrong because min-replica-count being greater than max-replica-count would cause a validation error (e.g., 'min_replica_count must be less than or equal to max_replica_count'), not a resource constraint issue.

59
MCQeasy

A company is building a customer support chatbot using Vertex AI Agent Builder. They want the agent to answer questions based on their internal knowledge base. Which feature should they use?

A.Grounding with Google Search
B.Grounding with enterprise data stores
C.Model tuning
D.Prompt engineering
AnswerB

Grounding with enterprise data stores allows the agent to use internal knowledge bases.

Why this answer

Vertex AI Agent Builder supports grounding with enterprise data stores, which allows the agent to retrieve and answer questions based on the company's internal knowledge base (e.g., documents, PDFs, websites) without relying on public web search. This ensures responses are grounded in proprietary, controlled data, making it the correct choice for a customer support chatbot that needs to reference internal policies or product documentation.

Exam trap

The trap here is that candidates may confuse 'grounding with Google Search' (public web) with 'grounding with enterprise data stores' (private data), assuming any grounding feature works for internal knowledge, but only the enterprise data store option provides the necessary data isolation and access control.

How to eliminate wrong answers

Option A is wrong because Grounding with Google Search uses public web data, not the company's internal knowledge base, which could introduce irrelevant or unverified information and violates data privacy requirements. Option C is wrong because model tuning (e.g., fine-tuning a foundation model) adjusts model weights on custom datasets, but it is not designed for real-time retrieval from a specific knowledge base; it also requires significant compute and may not scale for dynamic content. Option D is wrong because prompt engineering involves crafting input prompts to guide model behavior, but it does not provide a mechanism to retrieve and ground answers in a specific enterprise data store; without grounding, the model may hallucinate or rely on its training data.

60
MCQhard

A data scientist is comparing two fine-tuned models on Vertex AI Model Evaluation. They want to choose the model with better factual accuracy for a medical Q&A task. Which evaluation metric should they prioritize?

A.exact_match
B.pairwise_rouge
C.ROUGE-L
D.BLEU
AnswerA

Exact match evaluates if the output is exactly correct, suitable for Q&A.

Why this answer

Exact Match (EM) is the correct metric because it measures whether the model's output exactly matches the ground truth answer, which is critical for factual accuracy in medical Q&A where even minor deviations (e.g., 'aspirin' vs. 'acetylsalicylic acid') could indicate incorrect or incomplete knowledge. Vertex AI Model Evaluation supports EM as a binary metric that penalizes any variation, making it ideal for high-stakes domains requiring precise factual recall.

Exam trap

The trap here is that candidates often confuse ROUGE or BLEU as 'accuracy' metrics because they measure text overlap, but they fail to penalize factual substitutions or omissions that are critical in domain-specific tasks like medical Q&A.

How to eliminate wrong answers

Option B (pairwise_rouge) is wrong because it is a comparative metric used to rank two model outputs relative to each other, not an absolute measure of factual accuracy; it does not directly assess correctness against a known ground truth. Option C (ROUGE-L) is wrong because it measures the longest common subsequence between generated and reference text, which captures fluency and structure but not exact factual correctness—a model could rephrase a fact correctly yet score low on ROUGE-L if the wording differs. Option D (BLEU) is wrong because it evaluates n-gram precision against reference translations, designed for machine translation tasks, and is insensitive to factual errors that do not change n-gram overlap (e.g., swapping 'left' for 'right' in a medical context).

61
MCQmedium

A company is using Vertex AI Model Garden to discover and test various foundation models. They need a model that can generate code from natural language. Which model should they select?

A.Chirp
B.Codey
C.Med-PaLM
D.Imagen
AnswerB

Codey models are optimized for code-related tasks.

Why this answer

Codey is Google's family of models specifically designed for code generation, including converting natural language descriptions into code. It is built on the PaLM 2 architecture and is optimized for tasks like code completion, code generation, and code chat, making it the correct choice for generating code from natural language.

Exam trap

The trap here is that candidates may confuse Chirp (audio) or Imagen (image) with multimodal models, mistakenly thinking they can handle code generation, when in fact only Codey is purpose-built for code tasks.

How to eliminate wrong answers

Option A is wrong because Chirp is a speech-to-text model designed for audio transcription, not code generation. Option C is wrong because Med-PaLM is a domain-specific model fine-tuned for medical and healthcare applications, not for generating code. Option D is wrong because Imagen is a text-to-image diffusion model for generating images, not code.

62
MCQmedium

A data scientist is using the Vertex AI PaLM API for text generation. They notice that the model occasionally generates toxic content. Which parameter should they adjust to reduce the likelihood of toxic outputs?

A.max_output_tokens
B.temperature
C.top_k
D.safety_settings
AnswerD

safety_settings can block toxic content based on thresholds.

Why this answer

Safety settings in the Vertex AI PaLM API allow you to configure thresholds for filtering harmful content categories (e.g., toxicity, harassment, hate speech). By adjusting these settings, you can block or reduce the likelihood of toxic outputs before they are returned, directly addressing the problem without altering the model's creativity or randomness.

Exam trap

The trap here is that candidates often confuse parameters that control output randomness (temperature, top_k) with those that enforce content safety, leading them to incorrectly select temperature or top_k instead of the dedicated safety_settings parameter.

How to eliminate wrong answers

Option A is wrong because max_output_tokens controls the maximum length of the generated text, not the content safety or toxicity. Option B is wrong because temperature adjusts the randomness of token sampling, influencing creativity but not filtering toxic content. Option C is wrong because top_k limits the number of highest-probability tokens considered at each step, affecting diversity but not safety filtering.

63
MCQhard

A machine learning engineer submits the above batch prediction job for a large language model. The job is expected to process 100,000 instances. The job takes much longer than expected. Which change would most likely reduce the execution time?

A.Increase maxReplicaCount to 10
B.Increase startingReplicaCount to 10 without changing maxReplicaCount
C.Increase the machine type to n1-standard-16
D.Decrease the batch size to 1
AnswerA

More replicas allow parallel processing of batch instances, drastically reducing time.

Why this answer

Increasing maxReplicaCount to 10 allows Vertex AI Batch Prediction to scale out to more worker replicas, processing the 100,000 instances in parallel. The default maxReplicaCount is often 1 or a low number, which forces sequential or limited parallel processing, causing long execution times. By raising this limit, the job can leverage horizontal scaling to distribute the workload across multiple machines, significantly reducing wall-clock time.

Exam trap

The trap here is that candidates often confuse vertical scaling (larger machine type) with horizontal scaling (more replicas), and assume that a bigger machine always speeds up batch jobs, whereas for embarrassingly parallel batch inference, increasing the number of workers is the most effective lever.

How to eliminate wrong answers

Option B is wrong because increasing startingReplicaCount without raising maxReplicaCount does not allow the job to scale beyond the existing maximum; the job will still be capped at the original maxReplicaCount, so no additional parallelism is gained. Option C is wrong because upgrading to a larger machine type (n1-standard-16) provides more CPU/memory per replica but does not increase the number of replicas; for batch inference, throughput is often bottlenecked by the number of concurrent workers, not per-worker compute, so this change may not reduce overall execution time proportionally. Option D is wrong because decreasing batch size to 1 eliminates batching entirely, increasing the number of API calls and overhead per instance, which typically increases execution time rather than reducing it.

64
MCQmedium

A company deploys a fine-tuned text generation model on Vertex AI Endpoints. They want to monitor for data drift and performance degradation over time. Which GCP service should they integrate?

A.Cloud Monitoring
B.Cloud Logging
C.Vertex AI Experiments
D.Vertex AI Model Monitoring
AnswerD

Model Monitoring provides drift detection, anomaly alerts, and performance monitoring for deployed models.

Why this answer

Vertex AI Model Monitoring is the correct choice because it is specifically designed to detect data drift (changes in input data distribution) and feature attribution drift in deployed models, including fine-tuned text generation models on Vertex AI Endpoints. It provides automated alerts when model performance degrades due to shifts in production data, enabling proactive retraining or intervention.

Exam trap

The trap here is that candidates confuse general observability tools (Cloud Monitoring, Cloud Logging) with Vertex AI's purpose-built drift detection service, assuming any monitoring tool can handle model-specific data drift analysis.

How to eliminate wrong answers

Option A is wrong because Cloud Monitoring provides infrastructure-level metrics (e.g., CPU, memory, latency) but does not analyze model input data distributions or detect data drift. Option B is wrong because Cloud Logging captures raw log entries for debugging and auditing, not statistical drift detection or performance degradation analysis. Option C is wrong because Vertex AI Experiments tracks training runs and hyperparameters, not post-deployment monitoring of live endpoints.

65
MCQhard

A company is using Vertex AI Model Garden to deploy a foundation model for document summarization. They notice that the model sometimes generates summaries that include factual errors. They want to reduce hallucinations without sacrificing latency. Which approach should they try first?

A.Enable Vertex AI Grounding with a curated database of documents
B.Increase the temperature parameter to make the model more confident
C.Add more safety filters to block uncertain responses
D.Fine-tune the model on a high-quality dataset of correct summaries
AnswerA

Grounding retrieves evidence to reduce hallucinations.

Why this answer

Vertex AI Grounding connects the model to a curated database of documents, allowing it to retrieve and cite factual information in real-time. This directly reduces hallucinations by grounding responses in verified sources without adding significant latency, as the retrieval step is optimized for speed. Other approaches either increase latency (fine-tuning), reduce output quality (temperature increase), or do not address factual accuracy (safety filters).

Exam trap

The trap here is that candidates often assume fine-tuning is the default fix for hallucinations, but the question prioritizes latency and immediate factual grounding, making RAG via Vertex AI Grounding the faster and more appropriate first step.

How to eliminate wrong answers

Option B is wrong because increasing the temperature parameter makes the model more random and less confident, which would likely increase hallucinations, not reduce them. Option C is wrong because safety filters block harmful or unsafe content but do not correct factual errors; they are designed for policy compliance, not factual grounding. Option D is wrong because fine-tuning requires substantial time and resources, and while it can improve accuracy, it does not provide real-time grounding against a curated database and may not reduce latency as requested.

66
MCQeasy

A developer needs to use the Vertex AI PaLM API to generate text embeddings for a large corpus of documents. Which model should they use?

A.codey-bison@001
B.textembedding-gecko@001
C.text-bison@001
D.chat-bison@001
AnswerB

This model is designed for generating embeddings.

Why this answer

`textembedding-gecko@001` is the specific Vertex AI model designed for generating text embeddings, which convert text into dense vector representations. This model is optimized for semantic similarity, clustering, and retrieval tasks, making it ideal for processing a large corpus of documents. The other models are designed for code generation, text generation, or chat, not embeddings.

Exam trap

The trap here is that candidates may confuse general-purpose text generation models (like `text-bison@001`) with embedding models, assuming any 'text' model can produce embeddings, but only models with 'embedding' in the name are designed for that purpose.

How to eliminate wrong answers

Option A is wrong because `codey-bison@001` is a code generation model, not an embedding model; it generates code snippets or completes code, not vector representations of text. Option C is wrong because `text-bison@001` is a text generation model for tasks like summarization or content creation, not for producing embeddings. Option D is wrong because `chat-bison@001` is a conversational model designed for multi-turn dialogue, not for generating text embeddings.

67
MCQmedium

A developer is using the Vertex AI PaLM API and receives a 429 Resource Exhausted error. What is the most likely cause?

A.The request payload is too large
B.The user has exceeded the allowed number of requests per minute
C.The model is not available in the current region
D.The API key is invalid
AnswerB

429 means too many requests, exceeding quota.

Why this answer

429 errors indicate rate limiting or quota exhaustion for the API.

68
MCQeasy

A developer needs to generate embeddings for text data to be used in a semantic search application. Which Google Cloud service should they use?

A.Document AI
B.Cloud Translation API
C.Cloud Speech-to-Text
D.Vertex AI Embeddings API
AnswerD

This API generates text embeddings using foundation models.

Why this answer

Vertex AI Embeddings API is the correct choice because it provides a managed service to generate vector embeddings from text data, which are essential for semantic search applications that rely on understanding meaning rather than exact keyword matches. This API leverages large language models to convert text into high-dimensional vectors, enabling efficient similarity search using vector databases or nearest neighbor algorithms.

Exam trap

The trap here is that candidates may confuse Document AI's ability to extract text from documents with the need to generate embeddings from that text, overlooking that embedding generation is a separate, specialized step required for semantic search.

How to eliminate wrong answers

Option A is wrong because Document AI is designed for document processing tasks like OCR, parsing, and extraction of structured data from documents, not for generating text embeddings. Option B is wrong because Cloud Translation API is used for translating text between languages, not for creating vector representations of text for semantic search. Option C is wrong because Cloud Speech-to-Text converts audio to text, but does not generate embeddings or support semantic search directly.

69
MCQhard

A financial services firm needs to deploy a large language model (LLM) for analyzing sensitive client documents. They require the model to run within their Virtual Private Cloud (VPC) with no internet access and must comply with data residency regulations. Which Google Cloud generative AI offering should they use?

A.Vertex AI Model Garden with private endpoints and VPC Service Controls
B.Vertex AI Search
C.Cloud Run
D.Vertex AI Workbench
AnswerA

This combination allows secure, private deployment of LLMs within a VPC.

Why this answer

Vertex AI Model Garden with private endpoints and VPC Service Controls allows the LLM to be deployed entirely within the customer's VPC, with no internet egress, and enforces data residency by restricting data movement to the configured VPC boundary. Private endpoints use Private Service Connect to route inference traffic through internal IPs, while VPC Service Controls prevent data exfiltration and ensure compliance with residency regulations.

Exam trap

The trap here is that candidates often confuse Vertex AI Model Garden (a deployment and management service for foundation models) with Vertex AI Workbench (a development environment) or Vertex AI Search (a retrieval service), and overlook the specific requirement for VPC isolation and no internet access, which only Model Garden with private endpoints and VPC Service Controls can satisfy.

How to eliminate wrong answers

Option B is wrong because Vertex AI Search is a managed search service that indexes and retrieves data from external sources (e.g., websites, Cloud Storage) and does not support deploying an LLM within a VPC with no internet access; it relies on Google-managed endpoints and cannot enforce strict VPC isolation. Option C is wrong because Cloud Run is a serverless compute platform that can run custom containers, but it does not natively provide private endpoints for LLM inference or VPC Service Controls to block internet access; it would require additional networking configuration (e.g., VPC connectors) and does not offer the same data residency guarantees as Vertex AI's managed VPC controls. Option D is wrong because Vertex AI Workbench is a Jupyter-based development environment for building and training models, not a deployment service for running LLMs in production; it is designed for experimentation, not for serving inference with VPC isolation and compliance controls.

70
MCQmedium

Which command correctly updates the traffic split?

A.gcloud ai endpoints update my-endpoint --region=us-central1 --remove-deployed-model model-v1 --add-deployed-model model-v2 --traffic-split=20
B.gcloud ai models update sentiment-model-v2 --traffic-split=20
C.gcloud ai endpoints update-traffic-split my-endpoint --region=us-central1 --traffic-split=model-v2=20,model-v1=80
D.gcloud ai endpoints update my-endpoint --region=us-central1 --update-traffic-split=model-v2=20,model-v1=80
AnswerC

This is the correct command to update the traffic split for an endpoint.

Why this answer

The `gcloud ai endpoints update-traffic-split` command is the dedicated command for modifying traffic splits between deployed models on a Vertex AI endpoint. It uses the `--traffic-split` flag with key-value pairs (model_id=percentage) to assign traffic percentages, ensuring the total sums to 100. This command directly updates the routing configuration without redeploying models.

Exam trap

The trap here is that candidates confuse the `gcloud ai endpoints update` command (used for general endpoint configuration) with the specific `gcloud ai endpoints update-traffic-split` subcommand, leading them to choose options with incorrect flags like `--update-traffic-split` or `--traffic-split` on the wrong command.

How to eliminate wrong answers

Option A is wrong because `gcloud ai endpoints update` with `--remove-deployed-model` and `--add-deployed-model` is used to change the set of deployed models, not to update traffic splits; the `--traffic-split` flag here is invalid and would cause a syntax error. Option B is wrong because `gcloud ai models update` operates on model versions, not endpoints, and does not support a `--traffic-split` flag; traffic splitting is an endpoint-level configuration. Option D is wrong because `gcloud ai endpoints update` does not accept a `--update-traffic-split` flag; the correct flag is `--traffic-split` on the `update-traffic-split` subcommand, not on `update`.

71
Multi-Selectmedium

Which THREE of the following are features of Vertex AI Studio (Gen AI Studio)? (Choose 3)

Select 3 answers
A.Configure pre-built safety filters for generated content.
B.Deploy custom container images to Vertex AI endpoints.
C.Compare responses from different models side-by-side.
D.Fine-tune models with custom datasets using a visual interface.
E.Design and test prompts for various foundation models.
AnswersC, D, E

Studio has a comparison feature for model outputs.

Why this answer

Vertex AI Studio (formerly Gen AI Studio) provides a built-in interface that allows users to run the same prompt against multiple foundation models simultaneously, enabling direct side-by-side comparison of outputs to evaluate quality, tone, and accuracy before selecting a model for deployment.

Exam trap

The trap here is that candidates confuse Vertex AI Studio with Vertex AI's broader deployment and safety management tools, mistakenly attributing endpoint deployment or safety filter configuration to the prompt-design interface, when in fact those are separate services under the Vertex AI umbrella.

72
MCQmedium

A developer is using the Vertex AI Gemini API to generate product descriptions. They get a 400 error 'INVALID_ARGUMENT: The model's maximum input token limit is 8192.' What is the most likely issue?

A.The prompt is too long
B.The API key is invalid
C.The output tokens are too high
D.The model is not available in the region
AnswerA

The error explicitly states the input token limit is exceeded.

Why this answer

The 400 error 'INVALID_ARGUMENT: The model's maximum input token limit is 8192' explicitly indicates that the combined token count of the prompt (system instructions, user input, and any conversation history) exceeds the 8192-token context window of the Gemini model being used. This is a hard limit enforced by the Vertex AI Gemini API, and the error is triggered before any generation begins. Therefore, the most likely issue is that the prompt is too long.

Exam trap

The trap here is that candidates confuse input token limits with output token limits or general API authentication errors, but the specific error message 'maximum input token limit' directly points to prompt length as the root cause.

How to eliminate wrong answers

Option B is wrong because an invalid API key would result in a 401 Unauthorized or 403 Forbidden error, not a 400 INVALID_ARGUMENT error related to token limits. Option C is wrong because the error message specifically mentions 'input token limit', not output tokens; output token limits are enforced separately (e.g., via max_output_tokens parameter) and would produce a different error. Option D is wrong because model availability in a region would cause a 404 or 403 error (e.g., 'Model not found' or 'Permission denied'), not a token-limit-related INVALID_ARGUMENT error.

73
MCQhard

What is the most likely cause of the error?

A.The predict schema must be stored in the same bucket as the model artifacts and referenced without the full gs:// URI
B.The display name contains a hyphen which is not allowed
C.The container image URI is incorrect
D.The region us-central1 does not support TensorFlow models
AnswerA

The schema should be a relative path within the artifact URI.

Why this answer

The error occurs because the Vertex AI Predict schema must be stored in the same Cloud Storage bucket as the model artifacts, and when referenced in the model upload request, it should use a relative path (without the full `gs://` URI). Using the full URI causes a parsing failure, as Vertex AI expects the schema to be co-located with the model artifacts for validation and deployment.

Exam trap

Google Cloud often tests the nuance that Vertex AI expects schema files to be co-located with model artifacts and referenced without the full `gs://` URI, causing candidates to incorrectly assume the error is due to region limitations or container image issues.

How to eliminate wrong answers

Option B is wrong because hyphens are allowed in display names for Vertex AI models; the constraint is on the model ID (auto-generated) and display names can contain hyphens, underscores, and alphanumeric characters. Option C is wrong because the container image URI is syntactically correct and points to a valid Vertex AI pre-built serving image for TensorFlow; the error is not related to the container URI format. Option D is wrong because us-central1 fully supports TensorFlow models on Vertex AI; it is one of the primary regions for AI Platform and Vertex AI model deployment.

74
MCQmedium

A data scientist is using Vertex AI Model-as-a-Service (MaaS) to deploy a fine-tuned open-source model. They notice high latency during inference. What is the most likely cause?

A.The model is too large for the hardware
B.The endpoint is set to autoscaling with a low minimum node count
C.The model is not quantized
D.The region is incorrect
AnswerB

Autoscaling with low min nodes causes cold start latency.

Why this answer

High latency during inference on Vertex AI MaaS is most often caused by the endpoint scaling configuration. When autoscaling is enabled with a low minimum node count, the system may need to provision additional nodes to handle the request load, which introduces cold-start latency. This is especially pronounced for fine-tuned open-source models, which can be large and take time to load onto new nodes.

Exam trap

The trap here is that candidates often assume high latency is due to model size or lack of optimization, but the question specifically describes 'high latency during inference' in a MaaS context, which points to scaling delays rather than compute bottlenecks.

How to eliminate wrong answers

Option A is wrong because Vertex AI MaaS automatically selects appropriate hardware for the model size; if the model were too large, it would fail to deploy rather than cause high latency. Option C is wrong because quantization primarily affects throughput and memory usage, not the latency spike from cold starts; unquantized models may be slower but not cause the intermittent high latency described. Option D is wrong because the region setting affects data residency and network latency, but it would cause consistently higher latency, not the intermittent high latency typical of autoscaling delays.

75
MCQhard

A media company is using Vertex AI Imagen to generate marketing images. The output frequently contains unrealistic artifacts, especially in human faces. The team has fine-tuned the model using their brand assets. What is the most likely cause and recommended fix?

A.Safety filters are too aggressive; reduce them.
B.Negative prompts are missing; always include 'unrealistic'.
C.The fine-tuning dataset is too small or too homogeneous; augment and diversify the training data.
D.Inference steps are too low; increase to 100.
AnswerC

Overfitting to limited data causes artifacts; more varied data helps generalization.

Why this answer

Unrealistic artifacts in fine-tuned generative models, especially in human faces, typically stem from a training dataset that is too small or lacks diversity. When the dataset is homogeneous, the model overfits to limited patterns and fails to generalize, leading to distorted outputs. Augmenting and diversifying the training data with varied poses, lighting, and ethnicities helps the model learn robust facial features.

Exam trap

The trap here is that candidates confuse inference parameters (like steps or safety filters) with data quality issues, assuming artifacts are due to model settings rather than the fundamental cause of insufficient or non-diverse training data.

How to eliminate wrong answers

Option A is wrong because safety filters in Vertex AI Imagen block harmful content (e.g., violence, hate speech) and do not cause unrealistic artifacts; reducing them would not fix facial distortions and could introduce policy violations. Option B is wrong because negative prompts guide the model to avoid certain concepts, but simply including the word 'unrealistic' is not a technical fix—the model needs diverse training data, not a prompt hack. Option D is wrong because inference steps control the denoising process and image quality, but increasing them to 100 would not address overfitting from a poor dataset; the default steps (typically 50) are sufficient for high-quality outputs.

Page 1 of 2 · 78 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Google Cloud's Generative AI Offerings questions.