Courseiva

Google Professional Machine Learning Engineer (PMLE) — Questions 151225

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

Page 2

Page 3 of 14

Page 4
151
Multi-Selectmedium

A data science team is designing a Vertex AI pipeline that includes a loop over a list of hyperparameter sets. They want to run training jobs in parallel for each hyperparameter set and then collect the results for comparison. Which two Kubeflow Pipelines SDK v2 features should they use? (Choose two.)

Select 2 answers
A.dsl.ParallelFor
B.dsl.Collected
C.dsl.If
D.dsl.ExitHandler
E.dsl.importer
AnswersA, B

dsl.ParallelFor iterates over items and runs tasks in parallel.

Why this answer

`dsl.ParallelFor` is the Kubeflow Pipelines SDK v2 feature that enables iterating over a list of hyperparameter sets and executing the training tasks in parallel. This directly supports the team's requirement to run multiple training jobs concurrently for each hyperparameter configuration.

Exam trap

The trap here is that candidates may confuse `dsl.ParallelFor` with `dsl.If` for conditional logic, or mistakenly think `dsl.importer` can handle result collection, when in fact only `dsl.ParallelFor` and `dsl.Collected` together provide the parallel iteration and result aggregation needed for this use case.

152
MCQeasy

A data scientist is using Vertex AI Workbench notebooks and wants to collaborate with team members in real-time on the same notebook. Which notebook type supports real-time collaboration?

A.Managed notebooks
B.JupyterLab on Compute Engine
C.Deep Learning VMs
D.User-managed notebooks
AnswerA

Managed notebooks provide real-time collaboration.

Why this answer

Managed notebooks in Vertex AI Workbench support real-time collaboration similar to Google Docs, while user-managed instances do not.

153
MCQhard

A mobile app company needs to run an image classification model on-device for real-time performance. The model is a ResNet-50 trained in TensorFlow. They need to reduce latency to under 50ms on a mid-range phone. Which optimization should they apply first?

A.Convert the model to TensorFlow Lite
B.Quantize the model weights to 8-bit integers
C.Replace ResNet-50 with MobileNet
D.Apply weight pruning to remove 50% of connections
AnswerB

Quantization reduces model size and speeds up inference significantly.

Why this answer

Quantizing the model weights to 8-bit integers (option B) is the most effective first optimization because it directly reduces the model size by 4x and leverages integer-arithmetic acceleration on mobile CPUs/GPUs, often cutting inference latency by 2-3x without requiring architectural changes. This is the standard first step for on-device deployment of TensorFlow models, as it preserves the ResNet-50 accuracy while meeting the 50ms target on mid-range hardware.

Exam trap

Google Cloud often tests the misconception that converting to TensorFlow Lite alone is sufficient for latency reduction, but the real performance gain comes from quantization, not the format change.

How to eliminate wrong answers

Option A is wrong because simply converting to TensorFlow Lite (TFLite) without quantization does not reduce latency; TFLite is a runtime format that enables on-device inference but does not inherently speed up computation—quantization must be applied during conversion. Option C is wrong because replacing ResNet-50 with MobileNet is a model architecture change that would require retraining and potentially degrade accuracy for the specific image classification task, and the question asks for the first optimization to apply, not a model swap. Option D is wrong because weight pruning (removing 50% of connections) can reduce model size but often requires specialized hardware or software support for sparse matrix multiplication, which is not universally available on mid-range phones, and the latency improvement is less predictable than quantization.

154
Drag & Dropmedium

Drag and drop the steps to set up a feature store for ML features using Vertex AI Feature Store in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

The correct sequence to set up a feature store using Vertex AI Feature Store is: first define the entity type and its features (schema), then ingest feature data into the store, then serve those features to models for predictions, and finally monitor the store for data quality, freshness, and drift. This ensures a logical flow from definition to consumption to observability.

155
MCQhard

You are using Vertex AI Prediction with a custom container that requires a large model file (5 GB). Deployment takes 10 minutes to start. You want to reduce cold start latency. Which action would be MOST effective?

A.Compress the model file and decompress on startup.
B.Use a machine type with local SSD to speed up model loading.
C.Switch to batch prediction to avoid online cold start.
D.Set minReplicas to 1 to keep at least one instance always running.
AnswerD

Correct. By keeping an instance warm, you avoid cold start entirely for that instance.

Why this answer

Cold start latency occurs when a new instance is started and must load the 5 GB model from disk, which can take 10 minutes. Setting minReplicas to 1 ensures that at least one instance is always running and serving, so the model is already loaded in memory, completely avoiding cold start on prediction requests. While other options (compressing the model, using local SSD, or switching to batch prediction) may reduce load time or avoid online serving, they do not eliminate the cold start penalty as effectively as maintaining a warm replica.

156
Multi-Selectmedium

An ML engineer is configuring Vertex AI Model Monitoring for drift detection on a deployed endpoint. Which TWO settings directly affect the frequency and accuracy of drift detection? (Choose 2)

Select 2 answers
A.Model version
B.Explanation method
C.Sampling rate
D.Alerting threshold
E.Monitoring frequency
AnswersC, E

Determines the fraction of predictions used for analysis; a higher rate gives more data for accurate drift detection.

Why this answer

Sampling rate controls what fraction of predictions is analyzed; monitoring frequency controls how often the distribution comparison is performed. Both directly impact detection speed and accuracy.

157
Multi-Selectmedium

A company is deploying a TensorFlow model on Vertex AI Prediction. The model is memory-intensive and requires GPU acceleration. The team wants to minimize latency and cost. Which TWO configurations should they select? (Select 2)

Select 2 answers
A.Use NVIDIA T4 GPUs
B.Enable autoscaling with a minimum of 1 instance
C.Use NVIDIA A100 GPUs for faster inference
D.Set manual machine count to 10 for consistent performance
E.Use batch prediction to reduce cost
AnswersA, B

T4 is optimized for inference and cost-effective.

Why this answer

For GPU-accelerated prediction, the T4 GPU is cost-effective and provides good performance for inference. Autoscaling with a minimum of 1 instance ensures availability while allowing the service to scale down when not in use. A100 is more expensive; batch prediction is for asynchronous large-scale jobs; manual scaling may lead to over-provisioning.

158
MCQmedium

A financial services company uses a custom deep learning model on Vertex AI to automatically approve or reject credit card transactions. The model is explainable using Vertex Explainable AI, and the company monitors feature attribution drift with thresholds defined per feature. Last week, the monitoring system flagged that the mean absolute attribution score for the 'transaction_amount' feature increased from 0.35 to 0.55. The overall model accuracy, measured on a daily batch of labeled transactions, has remained around 97%. The operations team is concerned about potential compliance issues due to changing model behavior. What should the data scientist do?

A.Tune the alert threshold for 'transaction_amount' to 0.6 to avoid future false alarms.
B.Retrain the model by increasing regularization to reduce the importance of the 'transaction_amount' feature.
C.Investigate whether there has been a shift in the distribution of 'transaction_amount' values in the recent transaction data, which could explain the attribution change.
D.Disable the feature attribution drift monitoring for 'transaction_amount' since the model accuracy is stable.
AnswerC

A distribution shift in the feature values can cause the model to rely more heavily on that feature, leading to higher attribution scores. Investigating this is the appropriate diagnostic step.

Why this answer

A shift in the distribution of the 'transaction_amount' feature (e.g., due to seasonality or a new customer segment) can naturally cause its attribution score to change without indicating model degradation. Vertex Explainable AI computes feature attributions relative to the current data distribution; if the input values shift, the model's reliance on that feature may legitimately increase. Investigating the distribution shift is the first diagnostic step before adjusting thresholds or retraining, as stable accuracy does not rule out data drift that could lead to compliance issues.

Exam trap

The trap here is that candidates assume stable accuracy means the model is fine, but the PMLE exam tests that feature attribution drift can indicate a change in model behavior that accuracy alone cannot detect, especially for compliance-sensitive applications.

How to eliminate wrong answers

Option A is wrong because tuning the alert threshold to 0.6 without understanding the root cause ignores the possibility of a real distribution shift or model behavior change, and could mask a genuine compliance risk. Option B is wrong because increasing regularization to reduce the importance of 'transaction_amount' is a premature intervention that could harm model performance and does not address why the attribution changed; it assumes the change is harmful without evidence. Option D is wrong because disabling monitoring for a feature based solely on stable accuracy is dangerous—accuracy can remain high while feature attributions drift, leading to biased or non-compliant decisions that accuracy alone does not capture.

159
MCQmedium

A team wants to monitor prediction drift on a Vertex AI Endpoint for a classification model. They have configured Vertex AI Model Monitoring with default settings. Which metric will be used to detect prediction drift?

A.Kullback-Leibler divergence
B.L-infinity distance
C.Population Stability Index (PSI)
D.Jensen-Shannon divergence
AnswerD

Default algorithm for prediction drift.

Why this answer

Vertex AI Model Monitoring uses Jensen-Shannon divergence as the default algorithm for prediction drift detection. It compares the distribution of predicted classes over time against a reference distribution (e.g., training predictions).

160
MCQmedium

You are responsible for deploying a real-time recommendation model that uses a large embedding table (5 GB) and a small neural network. The model is served through a custom container on Vertex AI Prediction. The end-to-end latency requirement is under 200 ms. During load testing with 500 QPS, you observe that latency increases linearly with batch size. You are currently using a single replica with an n1-standard-8 machine and one T4 GPU. The embedding table is loaded entirely in GPU memory. However, CPU utilization is at 100% while GPU is at 30%. What is the best approach to meet the latency requirement at scale?

A.Increase the number of replicas and use a global load balancer to distribute traffic.
B.Use a custom container that partitions the embedding table across multiple GPUs within a single replica.
C.Switch to a TPU v2-8 pod slice to accelerate embedding lookups.
D.Use a machine type with more CPU cores to parallelize embedding lookups.
AnswerD

More CPU cores reduce contention and latency for embedding operations.

Why this answer

CPU is the bottleneck; using a machine type with more CPU cores (e.g., n1-highcpu-16) allows parallel embedding lookups and reduces latency. Option A increases resources but not in the bottleneck area. Option B increases replicas but each would still be CPU-bound.

Option C is expensive and may not improve latency if model not T PU-compatible.

161
MCQmedium

A company runs batch predictions on Vertex AI every hour using a custom container. They want to reduce costs by minimizing idle time while ensuring the batch job completes within 10 minutes. Which endpoint configuration should they use?

A.Use Vertex AI online prediction with a load balancer in front to distribute requests.
B.Use Vertex AI batch prediction job with a custom service account and set machine_type to 'n1-standard-4' and batch_size to optimize throughput.
C.Create a Dataflow pipeline to read from BigQuery and write predictions to GCS, using the trained model as a side input.
D.Deploy the model to an endpoint with min_replicas=0 and max_replicas=10, then send batch requests to the endpoint.
AnswerB

Batch prediction jobs handle resource scaling automatically; choosing appropriate machine type and batch size ensures performance.

Why this answer

Vertex AI batch prediction jobs are designed for high-throughput, asynchronous processing of large datasets without maintaining persistent infrastructure. By tuning `machine_type` and `batch_size`, you can minimize idle time and ensure the job completes within the 10-minute window, as the job only runs while actively processing and scales resources as needed.

Exam trap

The trap here is that candidates confuse online prediction with autoscaling (min_replicas=0) as a cost-saving measure for batch workloads, but online prediction endpoints still incur a minimum charge for the underlying infrastructure and are not optimized for asynchronous batch jobs.

How to eliminate wrong answers

Option A is wrong because online prediction with a load balancer is for real-time, low-latency serving, not batch jobs; it keeps endpoints running continuously, incurring costs even when idle, and does not address the requirement to minimize idle time. Option C is wrong because a Dataflow pipeline with a model as a side input is an alternative architecture for batch inference but is not a Vertex AI endpoint configuration; it introduces additional complexity and does not directly leverage Vertex AI's batch prediction job optimization. Option D is wrong because deploying a model with `min_replicas=0` and `max_replicas=10` is for online prediction with autoscaling; sending batch requests to an online endpoint still incurs per-request latency and scaling overhead, and the endpoint may remain provisioned for a period after requests, leading to idle costs.

162
MCQeasy

A data scientist wants to perform feature engineering on a large dataset stored in BigQuery before training a model. Which feature engineering tool is most appropriate?

A.Use Vertex AI Feature Store to store engineered features
B.Export data to Cloud Dataproc for feature engineering
C.Create a Dataflow pipeline to compute features
D.Use BigQuery ML TRANSFORM clause
AnswerD

Enables SQL-based feature transformations.

Why this answer

The most appropriate tool is the BigQuery ML TRANSFORM clause (Option D). This allows feature engineering directly within BigQuery using SQL, without moving data. Option A (Vertex AI Feature Store) is for storing and serving features, not for computing them.

Option B (Cloud Dataproc) is for Hadoop/Spark workloads, which would require exporting data from BigQuery. Option C (Dataflow) is a pipeline service for batch and stream processing, but the TRANSFORM clause is simpler and more integrated for this use case.

163
Multi-Selecthard

A data engineer is using BigQuery ML with a BOOSTED_TREE_CLASSIFIER model. After training, they want to evaluate the model and understand which features contribute most to predictions. Which THREE BigQuery ML functions should they use?

Select 3 answers
A.ML.EVALUATE
B.ML.GLOBAL_EXPLAIN
C.ML.TRAIN
D.ML.FEATURE_IMPORTANCE
E.ML.PREDICT
AnswersA, D, E

Why this answer

ML.EVALUATE evaluates model performance, ML.FEATURE_IMPORTANCE returns feature importance scores, and ML.PREDICT makes predictions. ML.TRAIN is for training, ML.GLOBAL_EXPLAIN is not a standard function (ML.EXPLAIN_PREDICT exists but is not listed as an option).

164
Multi-Selecthard

A machine learning team needs to ensure that the same features used for training are used for serving in production to avoid training-serving skew. They use Vertex AI Feature Store. Which THREE actions should they take?

Select 3 answers
A.Enable point-in-time correct retrieval when creating training datasets
B.Use different feature views for training and serving to compare performance
C.Use the same feature view for both training data export and online serving
D.Export training data from the online store directly
E.Set up feature monitoring to detect drift in feature distributions
AnswersA, C, E

Avoids data leakage and ensures temporal consistency.

Why this answer

Using the same feature view for training and serving ensures consistency. Point-in-time correct retrieval prevents leakage. Feature monitoring detects drift that could indicate skew.

165
MCQmedium

A machine learning team wants to perform A/B testing between two model versions (v1 and v2) on Vertex AI Endpoint. They need to gradually route 10% of traffic to v2 while monitoring performance. What is the most efficient way to achieve this?

A.Use a Cloud Load Balancer to route traffic based on a header.
B.Deploy both versions to the same endpoint and set traffic_split to 90% for v1 and 10% for v2.
C.Create two separate endpoints and use a weighted DNS round-robin.
D.Run batch predictions for v2 and log results separately.
AnswerB

Vertex AI Endpoint supports traffic splitting for A/B testing.

Why this answer

Vertex AI Endpoint natively supports traffic splitting between model versions. Option A is wrong because creating separate endpoints adds complexity and cost. Option C is wrong because Cloud Load Balancing operates at the network level, not model level.

Option D is wrong because batch prediction is not for real-time A/B testing.

166
MCQhard

A team has successfully trained a deep learning model on Vertex AI using a custom container and distributed training with TensorFlow. They want to serve this model for online predictions with low latency. They deploy the model to Vertex AI Endpoint with a single n1-standard-4 machine. During load testing, they observe that the median latency is 200ms, but the 99th percentile latency spikes to 2 seconds. The model is a complex neural network that takes variable-length text as input. Which approach will best reduce tail latency while maintaining throughput?

A.Use autoscaling with a target CPU utilization of 70%.
B.Implement request batching to process multiple inputs per request.
C.Use a GPU machine type like n1-standard-4 with an attached GPU.
D.Increase the machine type to n1-highmem-8 to allocate more memory.
AnswerB

Batching reduces overhead and smooths out latency for variable-length inputs.

Why this answer

Request batching (Option B) is the best approach to reduce tail latency for variable-length text inputs because it amortizes the fixed overhead of processing multiple predictions together, reducing per-request latency variability. Option A (autoscaling) helps handle increased traffic but does not reduce per-request latency spikes. Option C (GPU) can improve throughput but may not reduce tail latency caused by variability in input lengths.

Option D (more memory) addresses memory constraints but not compute-bound variability.

167
MCQmedium

An organisation wants to use Document AI to process contracts but requires human review for high-risk clauses. Which feature should they enable?

A.Human-in-the-Loop (HITL)
B.Batch Processing
C.Online Prediction
D.AutoML Training
AnswerA

Why this answer

Human-in-the-Loop (HITL) is the correct feature because it allows Document AI to automatically process contracts while routing high-risk clauses to human reviewers for validation. This balances automation efficiency with the need for expert oversight on sensitive content, which is a core requirement for compliance-driven document processing.

Exam trap

The trap here is that candidates confuse HITL with AutoML Training, thinking that training a model with human-labeled data is the same as having a human review live predictions, but HITL is a runtime workflow, not a training process.

How to eliminate wrong answers

Option B (Batch Processing) is wrong because it handles large volumes of documents asynchronously but does not include any mechanism for human review or intervention on specific clauses. Option C (Online Prediction) is wrong because it provides real-time predictions on individual documents but lacks the built-in workflow to pause and escalate high-risk clauses to a human. Option D (AutoML Training) is wrong because it is used to train custom models on labeled data, not to manage human review workflows during inference.

168
MCQmedium

Refer to the exhibit. A team member complains they cannot deploy a model to Vertex AI Endpoints. What is the most likely reason?

A.The policy is missing a condition
B.The policy lacks `roles/aiplatform.deployer`
C.The policy lacks `roles/aiplatform.specialist`
D.The service account needs `roles/aiplatform.user`
AnswerB

The deployer role is required for deploying models to endpoints.

Why this answer

Deploying a model to Vertex AI Endpoints requires the `roles/aiplatform.deployer` role on the service account. This role grants the necessary permissions to create and manage endpoint deployments. Without it, the deployment operation will fail with an access denied error, even if other roles are present.

Exam trap

Google Cloud often tests the distinction between read-only roles like `roles/aiplatform.user` and write roles like `roles/aiplatform.deployer`, trapping candidates who assume a general user role includes deployment permissions.

How to eliminate wrong answers

Option A is wrong because the policy missing a condition is not the most likely reason; conditions are optional and typically used for context-aware access, not for basic deployment permissions. Option C is wrong because `roles/aiplatform.specialist` is a custom role that does not exist in standard Vertex AI IAM roles; the correct role for deployment is `roles/aiplatform.deployer`. Option D is wrong because `roles/aiplatform.user` provides read-only access to view resources but does not include the write permissions needed to deploy a model to an endpoint.

169
MCQmedium

A data science team needs to share features across multiple ML models while ensuring consistency between training and serving. Which approach best achieves this?

A.Store features in a shared BigQuery dataset without versioning
B.Export features to CSV files shared via Cloud Storage
C.Use Vertex AI Feature Store to define and serve features for both training and online prediction
D.Each team maintains its own feature engineering code in separate pipelines
AnswerC

Centralised, consistent feature management.

Why this answer

Vertex AI Feature Store provides a central repository where features are defined once and reused across models, reducing training-serving skew.

170
MCQmedium

A company wants to use Vertex AI Vizier to tune hyperparameters for a PyTorch model. They have a limited budget of 50 training jobs. The objective metric is validation accuracy, and they want to find the best configuration efficiently. Which algorithm should they choose?

A.Bayesian optimization using Vertex AI Vizier.
B.Random search with 50 random configurations.
C.Use a custom algorithm implemented in the training code.
D.Grid search with 50 evenly spaced points.
AnswerA

Bayesian optimization is designed for efficient search with limited trials.

Why this answer

Bayesian optimization is the most efficient algorithm for hyperparameter tuning when the number of trials is limited. It builds a probabilistic model of the objective function and selects promising configurations.

171
MCQmedium

A company uses Delta Lake on Dataproc for their data lake. They need to ensure ACID transactions and schema enforcement for data ingested from streaming sources. Which Delta Lake feature should they enable?

A.Delta Lake time travel
B.Schema enforcement
C.Delta Lake change data feed
D.Optimized write
AnswerB

Schema enforcement rejects writes with mismatched schemas, ensuring data quality.

Why this answer

Delta Lake provides ACID transactions, schema enforcement, and time travel. Schema enforcement is key for streaming data to prevent data quality issues.

172
Multi-Selectmedium

A machine learning team is collaborating on a project using Vertex AI Experiments to track model training runs. They want to ensure that all team members can reproduce any experiment by using the same code, data, and environment. Which THREE actions should the team take?

Select 3 answers
A.Store the training code in a Cloud Source Repository and tag commits with the experiment ID.
B.Build a custom container image for training and push it to Artifact Registry with a fixed tag.
C.Record the path and version of the training dataset in the experiment parameters.
D.Share a service account key with all team members so they can access the same resources.
E.Use Vertex AI's hyperparameter tuning job to automatically find the best parameters.
AnswersA, B, C

This ensures the exact code version is tied to the experiment.

Why this answer

Storing training code in a Cloud Source Repository with tags linked to experiment IDs ensures that every team member can retrieve the exact code version used for a given experiment. This is a core reproducibility practice in Vertex AI Experiments, where the code snapshot is a key component of the experiment lineage.

Exam trap

Google Cloud often tests the distinction between actions that enable reproducibility versus actions that improve model performance or access control, so candidates mistakenly select hyperparameter tuning or service account sharing as reproducibility measures.

173
MCQeasy

A company wants to implement a document processing solution that extracts key information from invoices and receipts. They have limited ML expertise and want to use a pre-trained solution as much as possible. Which Google Cloud service should they use?

A.Document AI with a pre-trained invoice processor.
B.AutoML Natural Language with custom entity extraction.
C.Vertex AI Workbench with custom Python scripts.
D.Cloud Vision API with OCR.
AnswerA

Document AI with a pre-trained invoice processor is correct because it provides a fully managed, pre-trained solution specifically designed for extracting structured data (e.g., vendor name, invoice number, line items) from invoices and receipts, requiring no custom model training or complex coding, which aligns with the company's limited ML expertise and desire for a pre-trained solution.

Why this answer

Document AI with a pre-trained invoice processor is the correct choice because it provides a fully managed, pre-trained solution specifically designed for extracting structured data (e.g., vendor name, invoice number, line items) from invoices and receipts. This aligns with the company's limited ML expertise and desire to use a pre-trained solution, requiring no custom model training or complex coding.

Exam trap

Google Cloud often tests the distinction between raw OCR (Cloud Vision API) and structured document understanding (Document AI), leading candidates to mistakenly choose Cloud Vision API for invoice processing when they only need text extraction, not structured data extraction.

How to eliminate wrong answers

Option B is wrong because AutoML Natural Language with custom entity extraction requires users to train a custom model with labeled data, which contradicts the requirement to use a pre-trained solution as much as possible. Option C is wrong because Vertex AI Workbench with custom Python scripts demands significant ML expertise to write and deploy custom code, which the company lacks. Option D is wrong because Cloud Vision API with OCR only extracts raw text from images, not the structured key-value pairs or specific fields needed for invoice processing.

174
MCQmedium

A company deploys an AutoML Vision model for real-time defect detection. They notice high inference latency during peak hours. Which configuration change can help?

A.Reduce the model's input resolution
B.Use batch prediction
C.Enable model compression
D.Increase the number of max replicas
AnswerD

Correct: Handles increased load with more parallelism.

Why this answer

Increasing the number of max replicas allows the AutoML Vision endpoint to scale horizontally during peak hours, distributing the inference load across more compute instances. This directly reduces per-request latency by preventing queuing and resource contention, as the Vertex AI Prediction service can spin up additional replicas up to the configured maximum to handle higher throughput.

Exam trap

Google Cloud often tests the misconception that reducing input resolution or enabling compression is a safe latency fix, but the PMLE exam expects you to recognize that AutoML Vision models are black-box optimized and that horizontal scaling via max replicas is the proper architectural response to real-time latency spikes.

How to eliminate wrong answers

Option A is wrong because reducing input resolution may lower latency but at the cost of detection accuracy, which is unacceptable for defect detection where fine-grained features matter. Option B is wrong because batch prediction is designed for asynchronous, non-real-time processing of large datasets, not for reducing latency in real-time inference; it actually increases end-to-end latency. Option C is wrong because AutoML Vision models are already optimized by Google's neural architecture search, and enabling model compression (e.g., quantization) is not a supported configuration option for deployed AutoML Vision models; it would require retraining with a different model type.

175
MCQhard

A large e-commerce company uses Vertex AI to train a recommendation model daily. The training pipeline is built with Vertex AI Pipelines and involves three steps: data preprocessing, training, and model evaluation. The pipeline is triggered by a Cloud Scheduler job every morning at 8 AM. Recently, the pipeline has been failing intermittently during the data preprocessing step, with an error message indicating 'ResourceExhausted: Quota limits exceeded for read api requests.' The team has checked and confirmed that the quota for BigQuery read requests is not exceeded at the project level. The preprocessing step reads data from a BigQuery table with billions of rows. The team has also noticed that the pipeline runs on a custom machine type (n1-standard-4) with a persistent disk. What is the most likely cause of this error?

A.The BigQuery table is partitioned on a date column, and the pipeline is querying a specific partition that exceeds the quota.
B.The Cloud Scheduler job is triggering multiple pipeline runs that overlap, causing concurrent quota usage.
C.The preprocessing component is using a BigQuery client library that does not use exponential backoff for retries.
D.The pipeline is using a shared VPC that has traffic shaping limits.
AnswerC

Without backoff, rapid retries can exhaust per-user read API quotas.

Why this answer

The error 'ResourceExhausted: Quota limits exceeded for read api requests' indicates that the BigQuery API is throttling requests from the client, even though the project-level quota is not exceeded. The preprocessing component likely uses a BigQuery client library that lacks exponential backoff retry logic, causing rapid, repeated requests that exhaust the per-client or per-connection quota. Implementing exponential backoff would allow the client to back off and retry, preventing quota exhaustion.

Exam trap

The trap here is that candidates assume quota errors always mean the project-level limit is reached, but Google tests the nuance that per-client or per-connection rate limits can be exhausted independently, especially when retry logic is missing.

How to eliminate wrong answers

Option A is wrong because querying a specific partition does not inherently exceed quota; partitioning actually reduces data scanned and can lower quota usage. Option B is wrong because Cloud Scheduler triggers a single pipeline run at 8 AM, and overlapping runs would require multiple triggers or a long-running pipeline, which is not indicated; the error is specific to read API requests, not concurrency. Option D is wrong because shared VPC traffic shaping limits affect network throughput, not BigQuery read API quota, which is a separate resource governed by Google Cloud's API quota system.

176
Multi-Selectmedium

An ML engineer is using Vertex AI for distributed training of a PyTorch model across multiple nodes. The training job must use TPUs for high throughput. The engineer sets up the job configuration. Which THREE components are required for the training to work correctly? (Select 3)

Select 3 answers
A.A startup script to configure the TPU pod (e.g., `xla_lib.sh`)
B.A MultiWorkerMirroredStrategy configuration
C.A Docker image that includes PyTorch and the TPU library (torch-xla)
D.A TF_CONFIG environment variable set for each worker
E.A CustomJob with a TPU accelerator type (e.g., v3-32)
AnswersA, C, E

Startup scripts are often needed to initialize TPU devices.

Why this answer

A is correct because TPU pods require a startup script (e.g., `xla_lib.sh`) to initialize the XLA runtime, configure the TPU mesh, and set environment variables like `XRT_TPU_CONFIG`. Without this script, the TPU devices will not be discoverable by the PyTorch/XLA process, causing the training to fail with device-not-found errors.

Exam trap

Google Cloud often tests the distinction between TensorFlow and PyTorch distributed training configurations, and the trap here is assuming that `TF_CONFIG` or `MultiWorkerMirroredStrategy` are universal for all frameworks, when in fact PyTorch uses its own environment variables and the `torch-xla` library for TPU training.

177
MCQeasy

A machine learning engineer is using Vertex AI Pipelines and wants to run a custom Python function as a component. They need to pass a dataset artifact from a previous component and output a model artifact. Which decorator should they use to define the component in the Kubeflow Pipelines SDK v2?

A.@dsl.task
B.@dsl.pipeline
C.@dsl.component
D.@dsl.container
AnswerC

Correct decorator for defining a Python function component with typed inputs/outputs.

Why this answer

The correct decorator is @dsl.component because in Kubeflow Pipelines SDK v2, this decorator is used to define a custom Python function as a reusable pipeline component. It automatically handles input and output artifact serialization, such as passing a dataset artifact from a previous component and outputting a model artifact, by leveraging the component's type annotations and the KFP artifact system.

Exam trap

Candidates often confuse @dsl.component (for custom Python functions with artifact I/O) with @dsl.container (for pre-built container images) when the question emphasizes running a custom Python function.

How to eliminate wrong answers

Option A is wrong because @dsl.task is not a valid decorator in Kubeflow Pipelines SDK v2; it is a concept from Vertex AI custom jobs, not for defining pipeline components. Option B is wrong because @dsl.pipeline is used to define the entire pipeline graph, not an individual component function. Option D is wrong because @dsl.container is used to define a component that runs a container image directly, not a custom Python function with artifact handling.

178
Multi-Selecteasy

A company wants to use DVC for data versioning alongside their ML code in Git. Which TWO statements about DVC are correct? (Select 2)

Select 2 answers
A.DVC uses a separate .dvc file to track data versions.
B.DVC can push data to remote storage like Google Cloud Storage.
C.DVC stores the actual data files in Git.
D.DVC only works with AWS S3 as remote storage.
E.DVC replaces Git for code versioning.
AnswersA, B

Each data file has a corresponding .dvc file.

Why this answer

DVC tracks data files by storing their hashes in Git and uses a remote storage for the actual data. It can integrate with cloud storage like GCS.

179
MCQmedium

A machine learning team is training a large transformer model on Vertex AI. They need to reduce training time by utilizing multiple GPUs across nodes, but the model is too large to fit into a single GPU memory. Which distributed training strategy should they use?

A.Model parallelism using tf.distribute.experimental.PipelineMirroredStrategy
B.Data parallelism using tf.distribute.MirroredStrategy
C.Multi-worker mirrored strategy with a single worker per node
D.Hyperparameter tuning with Vertex AI Vizier
AnswerA

PipelineMirroredStrategy implements pipeline parallelism, which splits the model across GPUs, reducing per-device memory footprint. This is appropriate for models too large for a single GPU.

Why this answer

PipelineMirroredStrategy combines model parallelism (splitting the transformer layers across multiple GPUs) with pipeline parallelism to handle models that exceed single GPU memory. This strategy partitions the model into stages, each placed on a different GPU, and uses micro-batching to keep all GPUs busy, which is essential for large transformer models that cannot fit into a single GPU's memory.

Exam trap

The trap here is that candidates often confuse data parallelism (which requires the model to fit in a single GPU) with model parallelism, and assume that multi-worker strategies inherently solve memory constraints, but they only distribute data, not the model itself.

How to eliminate wrong answers

Option B is wrong because data parallelism (MirroredStrategy) replicates the entire model on each GPU, which fails if the model is too large to fit into a single GPU memory. Option C is wrong because multi-worker mirrored strategy with a single worker per node still relies on data parallelism and does not address the model size constraint; it only scales across nodes for data parallelism. Option D is wrong because hyperparameter tuning with Vertex AI Vizier optimizes hyperparameters, not the distributed training strategy for fitting a large model across GPUs.

180
Multi-Selecthard

A company wants to implement a CI/CD pipeline for their ML models using Vertex AI. They need to automatically retrain the model when new data arrives, but only if the model performance on a validation set has degraded by more than 5% compared to the current production model. Which three services or components should they incorporate into the automated pipeline? (Choose three.)

Select 3 answers
A.Dataflow pipeline to clean the new data before training
B.Vertex AI Evaluation component to compute model performance metrics on the validation set
C.Cloud Functions to trigger the pipeline when new data arrives in Cloud Storage
D.Vertex AI Model Registry alias update to promote the model if performance passes the threshold
E.Cloud Scheduler to run the pipeline on a fixed schedule
AnswersB, C, D

Evaluation is needed to compare against the production model.

Why this answer

Vertex AI Evaluation component can be used within a pipeline to compute model performance metrics (e.g., accuracy, precision, recall) on a validation set. This allows the pipeline to compare the newly trained model's performance against the current production model's performance, enabling the conditional logic to check if degradation exceeds 5%.

Exam trap

In Google Cloud, the distinction between event-driven triggers (Cloud Functions/Eventarc) and scheduled triggers (Cloud Scheduler) is commonly tested. Candidates often mistakenly choose Cloud Scheduler when the requirement is for an event-driven retraining pipeline triggered by new data arrival.

181
Multi-Selectmedium

A company uses Vertex AI Pipelines for ML workflows. They want to standardize pipeline templates across teams to ensure consistency. Which TWO approaches should they use?

Select 2 answers
A.Use only pre-built components from Google's public repository
B.Share notebooks with pipeline code via Google Drive
C.Create reusable pipeline components using the Vertex AI SDK and store them in a shared repository
D.Define pipelines using YAML templates and store them in a version-controlled Git repository
E.Publish pipeline components as custom containers in Google Cloud Marketplace
AnswersC, D

Reusable components promote consistency.

Why this answer

Using the Vertex AI SDK to create reusable pipeline components and storing them in a shared repository ensures consistency. Publishing components to the Google Cloud Marketplace is not a standard approach.

182
MCQeasy

A data science team is using a shared Cloud Storage bucket to store training data. Multiple team members are simultaneously uploading new data files, and occasionally the wrong version of a file is used in training, leading to inconsistent results. Which best practice should the team implement to ensure data version consistency?

A.Use Cloud Composer to schedule a daily snapshot of the Cloud Storage bucket.
B.Migrate all training data to BigQuery and use time-travel queries to access historical versions.
C.Enable object versioning on the Cloud Storage bucket and use the version ID when referencing data files.
D.Restrict write access to the bucket to only one team member using IAM roles.
AnswerC

Object versioning provides a way to keep multiple versions of an object, ensuring consistency.

Why this answer

Enabling object versioning on a Cloud Storage bucket preserves each object's history, allowing the team to reference a specific version ID when reading data files. This ensures that every training run uses the exact same version of a file, eliminating inconsistency from concurrent uploads. The version ID acts as an immutable pointer, decoupling the training process from the bucket's live state.

Exam trap

Google Cloud often tests the distinction between data versioning (object-level immutability) and data backup (snapshots or time-travel), leading candidates to choose snapshot or database-centric solutions that do not provide per-file version consistency in a shared object store.

How to eliminate wrong answers

Option A is wrong because Cloud Composer schedules workflows (e.g., Airflow DAGs) but does not provide per-object version consistency; a daily snapshot captures a point-in-time state but does not prevent concurrent uploads from overwriting files between snapshots. Option B is wrong because BigQuery time-travel queries access table snapshots within a 7-day window, but the scenario involves files in Cloud Storage, not tables; migrating all training data to BigQuery is an unnecessary architectural change that does not address file-level versioning. Option D is wrong because restricting write access to one team member creates a bottleneck and single point of failure, violating the team's need for simultaneous uploads and not solving the core problem of identifying which version is used.

183
MCQhard

A machine learning engineer needs to share a trained model with the product team for integration. The model is stored in Cloud Storage, and the product team’s service account needs read access. The engineer wants to follow the principle of least privilege. Which IAM configuration should be used?

A.Generate a signed URL with read access and share it with the product team.
B.Grant the product team's service account the roles/storage.objectViewer role at the bucket level.
C.Grant the product team's service account the roles/storage.objectAdmin role at the bucket level.
D.Grant the product team's service account the roles/storage.objectViewer role at the project level.
AnswerB

Bucket-level grants read access to objects in that bucket only, following least privilege.

Why this answer

Granting the product team's service account the roles/storage.objectViewer role at the bucket level provides read-only access to objects in that specific bucket, adhering to the principle of least privilege. This role allows the service account to list and read objects without granting broader permissions, such as modifying or deleting them, and scoping it to the bucket prevents unnecessary access to other buckets in the project.

Exam trap

The trap here is that candidates may confuse the principle of least privilege with convenience, choosing a signed URL (Option A) because it seems simple, or selecting a project-level role (Option D) without realizing it grants access to all buckets, both of which violate the core requirement of minimal necessary permissions.

How to eliminate wrong answers

Option A is wrong because generating a signed URL with read access creates a time-limited, publicly accessible URL that bypasses IAM authentication, which violates the principle of least privilege by not using the service account's identity and potentially exposing the model to unauthorized users if the URL is leaked. Option C is wrong because granting the roles/storage.objectAdmin role at the bucket level provides full control over objects, including delete and overwrite permissions, which exceeds the required read-only access and violates least privilege. Option D is wrong because granting the roles/storage.objectViewer role at the project level gives read access to all buckets in the project, not just the specific bucket containing the model, which violates least privilege by granting broader access than necessary.

184
MCQeasy

An ML engineer wants to use Vertex AI Model Garden to deploy a pre-trained foundation model for text summarisation. What is the quickest way to achieve this?

A.Use Vertex AI AutoML for text summarisation
B.Use Vertex AI Pipelines to build a custom training pipeline
C.Export the model from Model Garden and deploy using a custom container
D.Use Vertex AI JumpStart to deploy the model with one click
AnswerD

JumpStart offers one-click deployment of foundation models.

Why this answer

Vertex AI JumpStart provides one-click deployment of foundation models like Llama, Gemini, etc. Model Garden is for discovery, but JumpStart directly deploys.

185
MCQhard

A healthcare startup is using Vertex AI to train a deep learning model for detecting anomalies in chest X-rays. The training dataset is 500 GB of images stored in Cloud Storage (GCS). They use a custom training container with TPU v3-32. The training job completes successfully, but the model performance is poor. On investigation, they discover that the input images were not preprocessed correctly: the images were resized to 256x256 instead of the required 512x512. They need to fix the preprocessing and retrain as quickly as possible. The preprocessing pipeline involves decompressing, resizing, normalizing, and augmenting images. They have a small team and limited time. Which approach should they take?

A.Use Vertex AI Batch Transform to preprocess the images
B.Run another Vertex AI Training job with a modified container that preprocesses and trains
C.Use Dataflow with Apache Beam to build a parallel preprocessing pipeline
D.Use Cloud Data Fusion to orchestrate the preprocessing steps
AnswerC

Dataflow scales to process large volumes of data quickly in parallel.

Why this answer

Dataflow with Apache Beam provides a fully managed, serverless, and highly parallel preprocessing pipeline that can efficiently process 500 GB of images in Cloud Storage. This approach decouples preprocessing from training, allowing the team to fix the resize step (256x256 to 512x512) and run the pipeline independently, then feed the corrected data into a new training job. Dataflow automatically scales resources to handle large datasets, minimizing retraining time without requiring infrastructure management.

Exam trap

Google Cloud often tests the misconception that Vertex AI Training should handle preprocessing inline, but the trap here is that decoupling preprocessing with a scalable, serverless pipeline like Dataflow is faster and more maintainable than modifying the training container or using prediction-oriented services like Batch Transform.

How to eliminate wrong answers

Option A is wrong because Vertex AI Batch Transform is designed for batch predictions on already-preprocessed data, not for transforming raw images (decompressing, resizing, normalizing, augmenting) — it lacks the flexibility to run custom preprocessing logic like image resizing. Option B is wrong because running a combined preprocessing and training container would require modifying the training code and container, which is inefficient for a quick fix; it also ties preprocessing to the training job, preventing parallelization and reuse of the preprocessing step. Option D is wrong because Cloud Data Fusion is a visual data integration tool for ETL/ELT workflows, but it is overkill for image preprocessing and does not natively support the high-throughput, parallel image transformations needed for 500 GB of X-ray images; it is better suited for structured data pipelines.

186
MCQmedium

Your team has a production ML model on Vertex AI that shows a gradual decline in accuracy over the past week. The model is retrained weekly using the latest data. Which monitoring approach should you implement to detect the issue earlier?

A.Configure Vertex AI Model Monitoring to detect feature drift and alert when metrics exceed thresholds.
B.Create a Cloud Monitoring alert for prediction response count.
C.Use BigQuery ML to retrain the model more frequently.
D.Set up a Cloud Monitoring uptime check on the prediction endpoint.
AnswerA

Vertex AI Model Monitoring directly monitors for drift and skew, which helps detect accuracy decline.

Why this answer

Vertex AI Model Monitoring can detect feature drift and training-serving skew, which are common causes of accuracy decline. By alerting when drift metrics exceed thresholds, the team can identify issues before they significantly impact performance. Option B is incorrect; prediction response count is a volume metric and does not reflect model quality.

Option C is incorrect; BigQuery ML retraining is not a monitoring solution. Option D is incorrect; uptime checks only verify endpoint availability, not accuracy.

187
MCQeasy

A team has a trained TensorFlow model running locally and wants to deploy it for low-latency online predictions on Google Cloud. Which service should they use?

A.Vertex AI Prediction
B.AI Platform Training
C.Cloud Run
D.Cloud Functions
AnswerA

Vertex AI Prediction is purpose-built for low-latency online ML predictions.

Why this answer

Vertex AI Prediction is the correct choice because it is a fully managed service designed specifically for deploying trained ML models for online (real-time) prediction with low latency. It supports importing TensorFlow SavedModel artifacts and automatically scales the serving infrastructure, including GPU/TPU support, to handle request traffic while providing built-in monitoring and explainability features.

Exam trap

Google Cloud often tests the distinction between training and prediction services, and the trap here is that candidates may confuse AI Platform Training (which is for model training) with AI Platform Prediction (now part of Vertex AI), or assume that any serverless compute like Cloud Run or Cloud Functions can handle ML inference without considering the need for GPU/TPU support and optimized serving infrastructure.

How to eliminate wrong answers

Option B (AI Platform Training) is wrong because it is a service for training ML models, not for serving predictions; using it for online predictions would require additional custom infrastructure and does not provide the low-latency serving endpoints needed. Option C (Cloud Run) is wrong because while it can host custom containers, it lacks native ML model serving optimizations such as automatic GPU/TPU acceleration, model versioning, and request batching, and would require you to manually build and manage a prediction server. Option D (Cloud Functions) is wrong because it is a serverless compute platform for event-driven, short-lived functions with a maximum timeout of 9 minutes and no support for GPU/TPU, making it unsuitable for low-latency online predictions that require persistent, stateful serving of large ML models.

188
MCQmedium

You are fine-tuning a pre-trained BERT model from Hugging Face for a sentiment analysis task using Vertex AI training. The dataset has 100k examples. To avoid catastrophic forgetting, which layer freezing strategy should you apply?

A.Unfreeze all layers and fine-tune the entire model
B.Freeze the first 6 layers, fine-tune the last 6 layers
C.Freeze all layers except the classification head
D.Use transfer learning only on the embeddings layer
AnswerA

With 100k examples, full fine-tuning is feasible and yields better performance.

Why this answer

For fine-tuning with a sufficiently large dataset, it is common to unfreeze all layers to adapt the model to the new task. Freezing many layers is typical for very small datasets. With 100k examples, full fine-tuning is appropriate.

189
MCQmedium

A company has multiple teams that need to access and manage ML models in Vertex AI. Different teams require different permission levels: the data science team should be able to create and update models, while the MLOps team should have full control. What is the recommended approach to manage access?

A.Grant the 'aiplatform.user' role to a Google Group containing all users
B.Use folders in Google Cloud Resource Manager and assign IAM roles at the folder level
C.Use labels and tags on models to control access
D.Create a separate Google Cloud project for each team
AnswerB

Folders allow hierarchical policy management, and IAM roles can be scoped appropriately for each team.

Why this answer

Google Cloud Resource Manager folders allow hierarchical IAM policy inheritance, enabling you to assign roles like 'roles/aiplatform.user' (for data science) and 'roles/aiplatform.admin' (for MLOps) at the folder level. This approach scales across multiple projects within the folder, ensuring consistent permissions without per-project duplication. It aligns with the principle of least privilege and centralized access management for Vertex AI resources.

Exam trap

The trap here is that candidates confuse resource labels/tags (which are for organization and cost allocation) with IAM-based access control, leading them to incorrectly select Option C as a viable permission management method.

How to eliminate wrong answers

Option A is wrong because granting 'aiplatform.user' to a Google Group containing all users gives the same permission level to everyone, failing to differentiate between data science (create/update) and MLOps (full control) needs; it violates least privilege. Option C is wrong because labels and tags are metadata for organizing and filtering resources, not IAM mechanisms—they cannot enforce access control or grant permissions to models. Option D is wrong because creating a separate project for each team introduces administrative overhead, breaks centralized model governance, and does not inherently solve fine-grained access within Vertex AI; it also complicates cross-team model sharing and cost tracking.

190
MCQmedium

After deploying a new version of a model to a Vertex AI Endpoint, the team notices that predictions are still returning results from the old version. The deployment command used a traffic split of 100% to the new version. What is the most likely cause?

A.The model artifact uploaded was identical to the old version.
B.The traffic split was not properly updated; the endpoint is still routing 100% to the old version.
C.The new model version failed health checks and was automatically rolled back.
D.The prediction client is caching the old model response.
AnswerB

If the traffic split command is not applied correctly, the old version continues to serve.

Why this answer

The most likely cause is that the traffic split was not properly updated. Although the deployment command specified 100% traffic to the new version, the actual traffic split may not have been applied correctly, so the endpoint continues routing all traffic to the old version. Option A is incorrect because an identical artifact would not cause predictions to come from the old version.

Option C is incorrect because a health check failure would prevent the new version from serving, but the deployment would have failed, not silently roll back. Option D is incorrect because Vertex AI does not cache predictions on the client side.

191
MCQeasy

You have a Vertex AI endpoint that serves a model for real-time predictions. You want to update the model to a new version with zero downtime. Which approach should you take?

A.Delete the endpoint and recreate it with the new model.
B.Deploy the new model version to the same endpoint and then set traffic to 100% for the new version.
C.Use Cloud Load Balancing to switch traffic between two endpoints.
D.Create a new endpoint and update the client application to point to the new endpoint.
AnswerB

This allows zero-downtime deployment; the old version remains available during transition.

Why this answer

Vertex AI endpoints support canary deployments by allowing you to deploy a new model version to the same endpoint and then gradually shift traffic to it using the `traffic_split` parameter. Setting traffic to 100% for the new version after deployment ensures zero downtime, as the endpoint remains active and serves requests from the old version until the switch is complete.

Exam trap

The trap here is that candidates assume a new endpoint or load balancer is required for zero-downtime updates, but Vertex AI endpoints natively support traffic splitting between model versions on the same endpoint, making external components unnecessary.

How to eliminate wrong answers

Option A is wrong because deleting and recreating the endpoint causes downtime during the deletion and creation process, and the endpoint URL changes, requiring client updates. Option C is wrong because Cloud Load Balancing is an external traffic management layer that adds unnecessary complexity and latency; Vertex AI endpoints natively support traffic splitting without needing an external load balancer. Option D is wrong because creating a new endpoint changes the endpoint URL, which requires updating client applications, leading to potential downtime or misrouting during the transition.

192
Multi-Selectmedium

A company is evaluating Google Cloud ML solutions. Which TWO services are appropriate for building custom machine learning models (not using pre-built APIs)? (Choose TWO.)

Select 2 answers
A.Vertex AI Workbench
B.Cloud Translation API
C.Vertex AI Training
D.Cloud AutoML
E.Cloud Vision API
AnswersA, C

Notebooks for custom model development.

Why this answer

Vertex AI Workbench is correct because it provides a Jupyter-based development environment where data scientists can write custom code, train models from scratch, and manage the entire ML workflow without relying on pre-built APIs. It supports custom containers, frameworks like TensorFlow and PyTorch, and integrates with Vertex AI Training for distributed training.

Exam trap

Google Cloud often tests the distinction between 'building custom models' and 'using pre-built APIs' — candidates mistakenly choose AutoML or pre-built APIs because they think any ML service that trains models qualifies, but the question explicitly requires building from scratch without pre-built models.

193
Multi-Selectmedium

You are deploying a model for real-time inference with strict latency requirements (<100ms P99). You want to autoscale based on custom metrics. Which TWO actions should you take? (Choose 2)

Select 2 answers
A.Use a regional endpoint to reduce network latency.
B.Configure the endpoint to use custom metrics from Cloud Monitoring.
C.Set a target value for the custom metric in the autoscaling policy.
D.Enable GPU acceleration for faster inference.
E.Set minReplicas to 0 to save cost.
AnswersB, C

Correct. Custom metrics can be used for autoscaling.

Why this answer

Cloud Monitoring custom metrics allow you to define autoscaling based on signals that are directly relevant to your inference latency, such as request queue depth or model throughput. This enables the autoscaler to react to real-time demand more precisely than CPU or memory utilization alone, which is critical for meeting strict P99 latency targets.

Exam trap

Google PMLE often tests the distinction between infrastructure-level optimizations (like regional endpoints or GPU acceleration) and autoscaling configuration actions, leading candidates to confuse network latency reduction with scaling metric selection.

194
Multi-Selectmedium

A company is deploying a complex model that requires GPU for inference. They want to use Vertex AI for serving. Which TWO steps are required to deploy the model with GPU support? (Choose 2)

Select 2 answers
A.Select a GPU-enabled machine type such as n1-standard-4 with 1 x NVIDIA Tesla T4.
B.Enable Vertex AI Model Optimization for automatic GPU compilation.
C.Deploy the model using a custom container that includes CUDA and cuDNN.
D.Increase the minimum replicas to at least 2 for GPU redundancy.
E.Use gRPC protocol for prediction requests to reduce latency.
AnswersA, C

GPU-enabled machine type is necessary for GPU inference.

Why this answer

Vertex AI requires selecting a GPU-enabled machine type (e.g., n1-standard-4 with 1 x NVIDIA Tesla T4) when deploying a model for inference. This is done in the machine specification of the endpoint deployment, ensuring the GPU hardware is allocated for the serving container.

Exam trap

Google often tests the misconception that GPU support is automatic or requires only a machine type selection, but the custom container with CUDA/cuDNN is equally mandatory to enable GPU acceleration.

195
Multi-Selectmedium

A company needs to classify images of products into categories (e.g., electronics, clothing, food). They have labeled images and want to use a low-code solution on Google Cloud. Which service is suitable for this task?

Select 1 answer
A.AutoML Tables
B.AutoML Vision
C.Cloud Vision API using product search
D.Vertex AI Workbench with a custom TensorFlow model
E.Document AI custom extractor
AnswersB

AutoML Vision is a low-code service for custom image classification with labeled images.

Why this answer

AutoML Vision is the only low-code service among the options that allows you to train custom image classification models using labeled images without writing code. It directly matches the requirement to classify product images into categories. The other options are unsuitable: AutoML Tables is for tabular data, Cloud Vision API using product search is for finding similar products rather than custom classification, Vertex AI Workbench with a custom TensorFlow model requires custom coding, and Document AI is designed for document processing.

Exam trap

Google often tests the distinction between AutoML Vision (custom image classification) and Cloud Vision API (pre-trained models for general tasks like label detection or product search), causing candidates to mistakenly choose the API for custom classification needs.

196
MCQhard

A team is training a model using historical data and wants to avoid data leakage when joining feature values from a feature store. The features include time-varying data like user activity counts. Which retrieval method should they use when creating a training dataset?

A.Retrieve the latest feature values for each entity
B.Aggregate features over all historical data
C.Use random sampling of feature values
D.Use point-in-time correct retrieval with timestamp matching
AnswerD

Point-in-time correct retrieval ensures features are fetched as of the timestamp of each training example, avoiding leakage.

Why this answer

Point-in-time correct retrieval joins features at the exact timestamp of each training row, ensuring no future data is used. This prevents data leakage. Other methods without timestamp handling introduce leakage.

197
MCQmedium

An ML engineer is building a pipeline component that takes a dataset URI and a model URI as inputs, and outputs a classification metrics artifact. Which KFP SDK v2 type should the output artifact be annotated with?

A.Dataset
B.Metrics
C.ClassificationMetrics
D.Model
AnswerC

This is the correct artifact type for classification evaluation metrics.

Why this answer

In KFP SDK v2, the `ClassificationMetrics` type is specifically designed to output classification metrics such as confusion matrix, ROC curve, and AUC. The question asks for a component that outputs classification metrics, so `ClassificationMetrics` is the correct artifact type. Using `Metrics` would be too generic and not provide the structured schema needed for classification-specific visualizations in the KFP UI.

Exam trap

The trap here is that candidates confuse the generic `Metrics` type (which handles scalar values) with the specialized `ClassificationMetrics` type, not realizing that KFP SDK v2 requires the specific artifact type to enable proper UI rendering and schema validation for classification outputs.

How to eliminate wrong answers

Option A is wrong because `Dataset` is used for input or output of tabular data, not for metrics artifacts. Option B is wrong because `Metrics` is a generic artifact for scalar metrics (e.g., accuracy, loss) but lacks the structured fields (e.g., confusion matrix, ROC) required for classification metrics; it would not render classification-specific visualizations in the KFP UI. Option D is wrong because `Model` is used for serialized model artifacts, not for evaluation metrics.

198
MCQmedium

A company uses AutoML Tables (Vertex AI AutoML for tabular data) to predict customer churn. Their dataset has 10,000 rows and 50 features. During training, they notice the model's performance is poor. Which approach is most likely to improve the model?

A.Enable automatic feature engineering transformations
B.Switch to BigQuery ML linear regression
C.Increase the training budget to 10 node hours
D.Remove 20 features to reduce noise
AnswerA

AutoML can create new features from existing ones automatically.

Why this answer

AutoML Tables (Vertex AI AutoML for tabular data) includes automatic feature engineering transformations such as scaling, one-hot encoding, and feature cross creation. These transformations are essential for capturing non-linear relationships and interactions between features, which can significantly improve model performance when the default preprocessing is insufficient. Enabling this option directly addresses the poor performance by allowing the model to learn more complex patterns from the data.

Exam trap

Google Cloud often tests the misconception that increasing training budget or reducing features is a universal fix for poor model performance, when in fact the most impactful first step is to enable automatic feature engineering to let the model learn better representations from the data.

How to eliminate wrong answers

Option B is wrong because switching to BigQuery ML linear regression would likely worsen performance, as linear regression assumes a linear relationship between features and target, which is rarely the case in churn prediction; AutoML is designed to handle non-linear patterns. Option C is wrong because increasing the training budget to 10 node hours does not address the root cause of poor performance—it only allows more time for training, but if the model's architecture or preprocessing is inadequate, more budget will not fix the underlying issue. Option D is wrong because removing 20 features arbitrarily may discard valuable information; AutoML Tables can handle high-dimensional data and automatically identify feature importance, so reducing features without analysis can harm performance.

199
MCQmedium

An organization runs a Vertex AI pipeline that includes a model evaluation step. Team members want to reuse previously computed evaluation metrics when re-running the pipeline with unchanged code and hyperparameters. Which feature should they enable?

A.Manually store outputs in Cloud Storage and check for existence
B.Enable pipeline caching (default behavior)
C.Use the importer component to fetch previous results
D.Disable caching for the evaluation component
AnswerB

Caching is enabled by default; unchanged components automatically reuse cached outputs.

Why this answer

Vertex AI Pipelines automatically caches component outputs based on a cache key derived from the component image, code, and input parameters. If the cache key matches a previous run, the cached output is reused, saving time and cost.

200
Multi-Selecteasy

Which TWO are benefits of using Vertex AI Pipelines for ML workflow orchestration over deploying custom Airflow DAGs in Cloud Composer? (Choose TWO.)

Select 2 answers
A.Managed infrastructure without manual configuration
B.Built-in scheduling capabilities
C.Automatic artifact lineage tracking
D.Native integration with Vertex AI services
E.Support for arbitrary Python code in steps
AnswersC, D

Vertex Pipelines automatically tracks metadata and artifacts.

Why this answer

Vertex AI Pipelines automatically captures and tracks artifact lineage (inputs, outputs, and their relationships) as part of the ML metadata store. This built-in lineage tracking is a key differentiator from custom Airflow DAGs, where you must manually implement artifact tracking using external tools or custom code.

Exam trap

Google Cloud often tests the misconception that managed infrastructure and scheduling are unique to Vertex AI Pipelines, when in fact Cloud Composer also provides these features, so candidates must focus on the specific differentiators like native integration and automatic lineage tracking.

201
MCQmedium

A data engineer is setting up a data pipeline for ML training. The raw data is in Cloud Storage, and they need to transform it into features stored in Vertex AI Feature Store. The pipeline should run daily. Which service should they use?

A.Cloud Composer with Airflow DAG.
B.Cloud Dataproc with Spark.
C.Dataflow with Apache Beam pipeline.
D.Vertex AI Pipelines with custom components.
E.Cloud Functions on a schedule.
AnswerC

Dataflow can read from Cloud Storage, transform, and write to Feature Store efficiently.

Why this answer

Dataflow with Apache Beam is the correct choice because it provides a fully managed, serverless service for both batch and streaming data processing, which is ideal for transforming raw data from Cloud Storage into features for Vertex AI Feature Store on a daily schedule. Dataflow handles auto-scaling, exactly-once processing, and integrates natively with Google Cloud services, making it efficient for ETL pipelines that need to run reliably at scale.

Exam trap

Google Cloud often tests the distinction between orchestration (Cloud Composer) and actual data processing (Dataflow), leading candidates to pick Cloud Composer because they see 'schedule' in the question, but the core requirement is transforming data, not just scheduling it.

How to eliminate wrong answers

Option A is wrong because Cloud Composer with Airflow DAG is primarily an orchestration tool for scheduling and monitoring workflows, not a data processing engine; it would need to delegate the actual transformation to another service like Dataflow or Dataproc. Option B is wrong because Cloud Dataproc with Spark is optimized for big data analytics and interactive queries, but it requires managing clusters and is less suited for a simple, daily batch transformation pipeline that benefits from serverless, auto-scaling execution. Option D is wrong because Vertex AI Pipelines with custom components is designed for orchestrating ML workflows (e.g., training, evaluation, deployment), not for generic data transformation tasks; it adds unnecessary complexity for a simple daily ETL job.

Option E is wrong because Cloud Functions on a schedule is limited by a 9-minute timeout and 2 GB memory, making it unsuitable for processing large volumes of raw data from Cloud Storage into features.

202
MCQhard

You are deploying a PyTorch model on Vertex AI using a custom container with NVIDIA Triton Inference Server. The model is a large transformer that requires GPU. You want to optimize GPU utilization and reduce memory footprint. Which technique should you apply?

A.Enable dynamic batching in Triton.
B.Use CPU-only instances to avoid GPU memory issues.
C.Increase the number of GPU replicas.
D.Apply model quantization using TensorRT.
AnswerD

Quantization reduces model size and memory footprint, enabling better GPU utilization.

Why this answer

Model quantization using TensorRT reduces the precision of model weights (e.g., from FP32 to FP16 or INT8), which directly decreases GPU memory usage and can improve throughput by enabling faster arithmetic operations on compatible NVIDIA GPUs. This technique is specifically designed to optimize GPU utilization and memory footprint for large transformer models deployed with Triton Inference Server.

Exam trap

Google often tests the distinction between throughput optimization techniques (like dynamic batching) and memory footprint reduction techniques (like quantization), leading candidates to mistakenly choose dynamic batching when the question specifically asks about reducing memory footprint.

How to eliminate wrong answers

Option A is wrong because dynamic batching improves throughput by grouping inference requests, but it does not reduce the memory footprint per model instance or optimize GPU utilization in terms of memory efficiency. Option B is wrong because CPU-only instances cannot run the large transformer model with acceptable latency or throughput, and the question explicitly requires GPU. Option C is wrong because increasing the number of GPU replicas scales horizontally, which increases total memory footprint and cost, rather than reducing memory footprint per replica or optimizing utilization of a single GPU.

203
Multi-Selecthard

A company uses Vertex AI Model Monitoring to detect training-serving skew. They have a categorical feature 'product_category' with high cardinality. The monitoring job alerts for skew, but the data scientists believe the model performance is still acceptable. Which THREE actions should the team take to investigate and resolve the alert?

Select 3 answers
A.Examine which categories have the largest distribution changes to understand the nature of the shift.
B.Adjust the alerting threshold based on historical drift patterns to reduce noise.
C.Compare model performance metrics (e.g., AUC) on the drifted segment vs. the non-drifted segment.
D.Remove the drifted categories from the feature set to eliminate the alert.
E.Ignore the alert because the model is performing well; monitoring alerts are often false positives.
AnswersA, B, C

Identifying specific categories helps assess whether the drift is due to seasonal effects or other benign causes.

Why this answer

Examining which categories have the largest distribution changes allows the team to pinpoint the root cause of the training-serving skew. In Vertex AI Model Monitoring, the skew alert is based on statistical distance metrics (e.g., Jensen-Shannon divergence) between training and serving distributions. By drilling down into the specific categories driving the divergence, the team can assess whether the shift is benign (e.g., seasonal) or problematic, rather than relying on aggregate model performance alone.

Exam trap

Google Cloud often tests the misconception that a model's aggregate performance metrics (e.g., AUC) are sufficient to dismiss drift alerts, but the trap is that drift can be localized to specific segments without affecting overall metrics, requiring per-segment evaluation.

204
MCQmedium

An ML team is using Vertex AI Pipelines to automate model training and deployment. They want to reuse components across multiple pipelines. What is the best practice for managing component code?

A.Define components inline in the pipeline definition
B.Embed component code in Cloud Composer DAGs
C.Copy the component definitions into each pipeline's YAML file
D.Use Cloud Functions to define components
E.Store components as container images in Artifact Registry and reference them from pipelines
AnswerE

Centralized, versioned, reusable.

Why this answer

Vertex AI Pipelines natively supports reusable components by packaging them as container images stored in Artifact Registry. This allows teams to version, share, and reference components across multiple pipelines without duplicating code, ensuring consistency and reducing maintenance overhead. Container images encapsulate the component's runtime environment and logic, making them portable and independently deployable.

Exam trap

Google Cloud often tests the misconception that inline definitions or YAML duplication are acceptable for reuse, but the trap here is that candidates overlook the requirement for versioned, decoupled, and independently deployable components, which only container images in a registry can provide.

How to eliminate wrong answers

Option A is wrong because defining components inline in the pipeline definition tightly couples the component logic to a specific pipeline, preventing reuse across multiple pipelines and making versioning difficult. Option B is wrong because Cloud Composer DAGs are used for orchestrating Apache Airflow workflows, not for defining Vertex AI pipeline components; embedding component code in DAGs would violate separation of concerns and is not a supported pattern for Vertex AI Pipelines. Option C is wrong because copying component definitions into each pipeline's YAML file leads to code duplication, version drift, and increased maintenance burden, contradicting the goal of reusability.

Option D is wrong because Cloud Functions are event-driven serverless functions, not designed to define or host reusable pipeline components; they lack the containerized runtime and dependency management required by Vertex AI Pipelines.

205
MCQhard

A machine learning pipeline includes a conditional branch: if model accuracy exceeds 0.95, deploy to production; otherwise, send a notification. Which KFP SDK feature allows implementing this logic within the pipeline definition?

A.dsl.ParallelFor
B.Using a Python if statement inside the component
C.dsl.If
D.dsl.Condition
AnswerC

dsl.If creates a conditional branch in the pipeline based on a condition.

Why this answer

C is correct because KFP SDK's `dsl.If` is the native construct for implementing conditional branching within a pipeline definition, allowing you to conditionally execute a task (like deploying to production) based on the output of a previous component (e.g., model accuracy > 0.95). It works by creating a `Condition` object that wraps the downstream tasks, ensuring the pipeline DAG is correctly compiled and executed only when the condition evaluates to true.

Exam trap

The exam often tests the distinction between `dsl.If` and the non-existent `dsl.Condition` to catch candidates who confuse the KFP API with generic programming concepts or other frameworks.

How to eliminate wrong answers

Option A is wrong because `dsl.ParallelFor` is used for iterating over a collection of items to execute tasks in parallel, not for conditional branching. Option B is wrong because using a Python `if` statement inside a component would execute at component runtime, not at pipeline definition time, and KFP does not support dynamic branching based on runtime values within the pipeline DAG definition itself. Option D is wrong because `dsl.Condition` is not a valid KFP SDK API; the correct class is `dsl.If`.

206
MCQhard

A team has a pipeline that trains a model and then evaluates it. They want to conditionally deploy the model to a staging endpoint only if evaluation metrics exceed a threshold. Which KFP feature should they use?

A.Use dsl.Condition (deprecated) or dsl.If to check metrics and conditionally run deployment.
B.Use dsl.ParallelFor to evaluate and deploy in parallel.
C.Use an exit handler to deploy regardless of metrics.
D.Split the pipeline into two separate pipelines and run the second only if metrics are good.
AnswerA

dsl.If is the correct way to add conditional logic in KFP v2.

Why this answer

KFP provides `dsl.Condition` (deprecated) and `dsl.If` as first-class pipeline constructs to conditionally execute pipeline components based on runtime metrics or other pipeline outputs. By wrapping the deployment step inside a `dsl.If` block that checks whether evaluation metrics exceed a threshold, the pipeline can deploy the model to a staging endpoint only when the condition is met, avoiding unnecessary deployments for underperforming models.

Exam trap

Google often tests the distinction between conditional execution (`dsl.If`) and unconditional execution patterns (exit handlers, parallel loops), tempting candidates to choose a pattern that always runs the deployment step or runs it in parallel without any gate.

How to eliminate wrong answers

Option B is wrong because `dsl.ParallelFor` is designed for iterating over a collection of items to execute the same component in parallel, not for conditionally executing a component based on a runtime evaluation result. Option C is wrong because an exit handler (e.g., `dsl.ExitHandler`) always runs a specified component when the pipeline exits, regardless of success or failure, so it would deploy the model even if metrics are poor, which contradicts the requirement. Option D is wrong because splitting the pipeline into two separate pipelines loses the benefit of a single orchestrated workflow; it introduces manual coordination, external state management, and additional operational complexity, whereas KFP’s conditional constructs handle this natively within one pipeline.

207
MCQhard

The pipeline fails during the evaluate component with error "Model not found". What is the most likely cause?

A.The dataset_id is misspelled
B.The model_id parameter is referencing the wrong output
C.The training container did not produce a model artifact
D.The threshold value is invalid
AnswerB

Correct: Output name mismatch causes Model not found.

Why this answer

The error 'Model not found' during the evaluate component indicates that the model_id parameter is referencing an output that does not exist or is incorrectly named. In Vertex AI Pipelines, the evaluate component takes the model artifact from a previous training step via an output parameter or artifact reference. If the model_id parameter points to a wrong output (e.g., a different step's output or a misspelled reference), the pipeline cannot locate the model.

This is the most likely cause because the error is specific to model resolution, not dataset or threshold issues.

Exam trap

Google Cloud often tests the distinction between resource resolution errors (like 'Model not found') and data/validation errors, tricking candidates into confusing dataset or threshold issues with pipeline step output references.

How to eliminate wrong answers

Option A is wrong because a misspelled dataset_id would cause a 'Dataset not found' or data loading error, not a 'Model not found' error during evaluation. Option C is wrong because if the training container did not produce a model artifact, the pipeline would fail earlier in the training step with an artifact missing error, not during the evaluate component. Option D is wrong because an invalid threshold value would cause a validation or scoring error within the evaluate step, not a 'Model not found' error, which is a resource resolution issue.

208
MCQmedium

A company uses Vertex AI for training. They have a large dataset stored in Cloud Storage and need to train a custom model using TensorFlow. The training job is failing with an out-of-memory error. What is the best first step?

A.Reduce model size.
B.Enable data sharding and reduce input pipeline parallelism.
C.Use a larger machine type.
D.Increase the batch size.
AnswerB

Reduces memory footprint of data loading.

Why this answer

Enabling data sharding and reducing input pipeline parallelism can lower memory usage from data loading, which is a common cause of out-of-memory errors in TensorFlow training on Vertex AI. Option A is wrong because reducing model size may negatively impact accuracy and is not the best first step; it should be considered after addressing data loading issues. Option C is wrong because using a larger machine type increases cost and does not address the root cause of memory inefficiency in data pipeline.

Option D is wrong because increasing batch size would increase memory usage, exacerbating the OOM error.

209
Multi-Selecteasy

Which THREE factors should be considered when choosing a compute option for serving a deep learning model in production on Google Cloud? (Choose three.)

Select 3 answers
A.Integration with Vertex AI for model monitoring
B.Autoscaling capabilities to handle variable traffic
C.GPU or TPU requirements for model inference
D.The programming language used for training
E.The color of the team's logo
AnswersA, B, C

Monitoring integration is crucial for production.

Why this answer

A is correct because Vertex AI provides integrated model monitoring capabilities, including feature drift detection, prediction skew analysis, and outlier detection, which are essential for maintaining model performance in production. Without this integration, you would need to build custom monitoring pipelines, increasing operational complexity.

Exam trap

The trap here is that candidates might think the training language (D) matters for serving, but Google Cloud serving infrastructure is language-agnostic as long as the model is exported in a supported format, making this a common distractor.

210
Multi-Selectmedium

A company wants to automatically retrain their model when data drift is detected. Which THREE components are needed to implement this pipeline?

Select 3 answers
A.Cloud Function to invoke Vertex AI Pipeline
B.Vertex AI Feature Store
C.Cloud Monitoring alert policy for drift metric
D.Pub/Sub topic
E.Cloud Storage bucket for storing training data
AnswersA, C, D

Executes the retraining pipeline.

Why this answer

The typical flow: Cloud Monitoring alert on drift → Pub/Sub topic → Cloud Function → Vertex AI Pipeline for training. Model Registry stores the new model after training.

211
MCQhard

A large e-commerce company uses Vertex AI Pipelines to orchestrate its recommendation model training. The pipeline has several parallel components: feature engineering, model training, and model evaluation. Recently, they noticed that the pipeline often fails due to resource exhaustion in the Vertex AI custom training job for the model training component. The training job consumes significant memory and occasionally exceeds the allocated memory limit, causing the pod to be OOMKilled. The team has already increased the memory to the maximum allowed for the chosen machine type. They need to prevent the pipeline from failing while still using the same machine type. Which approach should they take?

A.Split the training component into multiple smaller steps that process data in chunks to reduce peak memory usage.
B.Use a larger machine type with more memory to accommodate the peaks.
C.Add a memory check step before training that estimates memory usage and skips training if it exceeds the limit.
D.Implement a retry policy with exponential backoff for the training component, so it automatically retries on failure.
AnswerA

This reduces memory footprint and avoids exceeding the limit, allowing successful completion.

Why this answer

Splitting the training component into smaller steps that process data in chunks directly addresses the root cause of OOMKilled failures—peak memory usage exceeding the allocated limit. By reducing the memory footprint per step, the pipeline can stay within the maximum memory of the existing machine type without requiring a larger instance. This approach aligns with best practices for Vertex AI custom training jobs, where resource limits are fixed per machine type and cannot be exceeded.

Exam trap

Google Cloud often tests the misconception that retry policies or pre-checks can solve resource exhaustion, but the correct approach is to redesign the component to reduce peak memory usage, as retries do not fix the underlying OOM condition.

How to eliminate wrong answers

Option B is wrong because it suggests using a larger machine type, which contradicts the requirement to keep the same machine type; it also may increase cost unnecessarily without solving the underlying memory inefficiency. Option C is wrong because adding a memory check step that skips training on high memory usage would cause the pipeline to fail or produce no model, which does not prevent failure—it merely avoids it by not running the component. Option D is wrong because implementing a retry policy with exponential backoff does not address the resource exhaustion; the training job will repeatedly fail with OOMKilled on each retry, wasting time and compute resources without resolving the memory limit issue.

212
Multi-Selecthard

Which THREE components should you include in a comprehensive model monitoring dashboard for a production ML system?

Select 3 answers
A.Team member roles and responsibilities
B.System resource utilization (CPU, memory, latency)
C.Input data quality metrics (missing values, outliers)
D.Training pipeline code version
E.Model performance metrics (accuracy, precision, recall) over time
AnswersB, C, E

Ensures infrastructure is healthy.

Why this answer

System resource utilization metrics (CPU, memory, latency) are essential for monitoring the health and performance of the production infrastructure hosting the ML model. These metrics help detect resource bottlenecks, scaling issues, or degradation that could impact inference latency and throughput, which are critical for maintaining service-level objectives (SLOs).

Exam trap

Google Cloud often tests the distinction between operational governance artifacts (like team roles) and actual monitoring metrics; the trap here is confusing project management documentation with the technical components of a live monitoring dashboard.

213
MCQhard

A model deployed on a Vertex AI Endpoint uses an image model with XRAI explainability. The team notices that the prediction distributions are shifting over time. They want to monitor prediction drift. However, the explainability feature is not enabled. What must the engineer do to enable monitoring prediction drift?

A.Re-deploy the model with a sampling rate of 100%
B.Configure Vertex AI Model Monitoring to monitor prediction drift
C.Enable Vertex AI Explainability with XRAI on the endpoint deployment
D.Enable request/response logging to BigQuery and build custom drift detection
AnswerB

Correct: Prediction drift monitoring is a built-in feature of Model Monitoring.

Why this answer

Prediction drift monitoring is part of Vertex AI Model Monitoring and does not require explainability to be enabled. It can be configured independently.

214
MCQhard

Your team is deploying a large recommendation model on Vertex AI endpoints using GPUs. You need to minimise latency while optimising cost. The model serves many similar requests from the same users within short time windows. Which additional service would best reduce latency and cost?

A.Switch to CPU-only instances to reduce cost.
B.Increase maxReplicas to handle the load without caching.
C.Set up a Cloud CDN in front of the endpoint.
D.Use Cloud Memorystore to cache prediction results.
AnswerD

Correct. Memorystore provides low-latency caching for prediction results, reducing repetitive model invocations.

Why this answer

Caching identical prediction requests can reduce load on the model and improve latency. Cloud Memorystore (Redis) can be used to cache responses based on a hash of the request, and the endpoint can check cache before invoking the model.

215
MCQhard

An e-commerce company uses a Vertex AI endpoint for product recommendations. Recently, the click-through rate (CTR) dropped significantly. Model monitoring shows no significant data drift or skew. Logs show increased latency but no errors. Which technique should the engineer use to diagnose the issue?

A.Increase the endpoint's request timeout value to accommodate the higher latency.
B.Enable autoscaling on the endpoint to reduce latency by adding more nodes.
C.Retrain the model with the most recent user interaction data.
D.Analyze the prediction output distribution using Vertex AI Model Monitoring for prediction drift and compare to a baseline.
AnswerD

Prediction drift can directly impact CTR even without data drift.

Why this answer

The drop in CTR despite no data drift or skew suggests that the model's predictions have shifted in distribution (prediction drift), even if the input features remain stable. Vertex AI Model Monitoring can compare the current prediction output distribution against a baseline to detect such drift, which directly explains the CTR decline. The increased latency is a symptom, not the root cause, and fixing latency alone would not restore CTR.

Exam trap

Google Cloud often tests the distinction between data drift (input distribution changes) and prediction drift (output distribution changes), and candidates mistakenly assume that no data drift means the model is fine, overlooking that the model's predictions can still degrade due to concept drift.

How to eliminate wrong answers

Option A is wrong because increasing the request timeout does not address the root cause of the CTR drop; it only masks the latency issue and may lead to worse user experience if predictions are stale. Option B is wrong because enabling autoscaling reduces latency by adding nodes, but the CTR drop is not caused by latency; it is a prediction quality issue, and autoscaling does not fix prediction drift. Option C is wrong because retraining with recent data assumes the model is stale, but monitoring shows no data drift or skew, so the input distribution is fine; the problem is in the output distribution, and retraining without investigating prediction drift may not resolve the issue.

216
MCQmedium

A healthcare startup is developing a diagnostic model using sensitive patient data. They use Vertex AI to manage the training pipeline. They need to ensure that the data is encrypted both at rest and in transit. Additionally, they want to prevent the ML engineers from seeing raw data but still allow them to train models. They use Cloud Storage with CMEK and VPC-SC. They plan to use Vertex AI Training with a custom service account. The data stored in Cloud Storage is encrypted with CMEK. What additional step is needed to allow Vertex AI Training to access the encrypted data?

A.Use a service account with the 'Storage Admin' role and 'Cloud KMS CryptoKey Decrypter' role.
B.Grant the Cloud Storage service agent the Cloud KMS CryptoKey Decrypter role.
C.Disable encryption for the training data to simplify access.
D.Grant the custom service account the Cloud KMS CryptoKey Decrypter role.
AnswerD

The custom service account used by Vertex AI Training must have decrypt permission to read CMEK-encrypted data.

Why this answer

Vertex AI Training must use a custom service account that has the Cloud KMS CryptoKey Decrypter role to decrypt the CMEK-encrypted data stored in Cloud Storage. The custom service account is the identity that Vertex AI jobs run as, and it needs explicit permission to decrypt the CMEK key to read the training data. Without this role, the encrypted objects remain inaccessible even if the service account has Storage Object Viewer permissions.

Exam trap

The trap here is that candidates often confuse the Cloud Storage service agent (used for default encryption) with the custom service account that Vertex AI jobs use, leading them to incorrectly grant permissions to the wrong principal.

How to eliminate wrong answers

Option A is wrong because the 'Storage Admin' role is overly permissive and unnecessary; the service account only needs 'Storage Object Viewer' to read data, and the 'Cloud KMS CryptoKey Decrypter' role is required but must be granted to the custom service account, not a generic admin account. Option B is wrong because the Cloud Storage service agent is used for server-side operations like bucket-level encryption, not for granting access to a custom service account used by Vertex AI Training; the decrypter role must be on the custom service account that runs the training job. Option C is wrong because disabling encryption violates the requirement to protect sensitive patient data at rest and in transit, and it is not a valid security practice for a healthcare startup.

217
MCQeasy

A retail company wants to forecast weekly sales for each of its 500 stores. The data includes historical sales, promotions, holidays, and local weather. The company needs to update forecasts every week with new data. Which ML approach should they use?

A.Use BigQuery ML to create a linear regression model on historical data
B.Use Vertex AI Forecasting to train a time-series model with holiday and weather features
C.Export data to AutoML Tables and train a regression model
D.Build a custom LSTM model using TensorFlow on Vertex AI Workbench
AnswerB

Vertex AI Forecasting is designed for time series with multiple features and supports automatic retraining.

Why this answer

Vertex AI Forecasting is purpose-built for time-series forecasting with support for exogenous features like holidays and weather, making it the ideal choice for weekly sales predictions across 500 stores. It handles multiple time series automatically and integrates with the required weekly retraining cycle, unlike generic regression models that lack temporal awareness.

Exam trap

Google Cloud often tests the distinction between general regression (which assumes i.i.d. data) and time-series forecasting (which requires temporal dependencies and exogenous features), leading candidates to pick a simpler regression option like BigQuery ML or AutoML Tables instead of the specialized forecasting service.

How to eliminate wrong answers

Option A is wrong because BigQuery ML linear regression treats data as independent rows, ignoring the temporal ordering and seasonality inherent in sales forecasting, and cannot natively handle multiple time series (500 stores) with exogenous features like holidays. Option C is wrong because AutoML Tables is designed for tabular regression with independent rows, not time-series forecasting, and would require manual feature engineering to capture time dependencies, leading to poor forecast accuracy. Option D is wrong because building a custom LSTM on Vertex AI Workbench is overkill for this problem—Vertex AI Forecasting already provides a managed, scalable time-series solution with built-in support for holiday and weather features, avoiding the operational overhead of custom model development and hyperparameter tuning.

218
MCQmedium

You are using Vertex AI continuous evaluation (model monitoring) for your deployed model. You receive an alert that the prediction distribution is significantly different from the training distribution. What should you do first?

A.Roll back the model to the previous version immediately.
B.Increase the alerting threshold to reduce false positives.
C.Analyze the input data to understand if there is a skew or drift.
D.Retrain the model using the latest data and redeploy.
AnswerC

Diagnosing the cause is the appropriate first step.

Why this answer

When a monitoring alert triggers, the first step is to investigate the root cause: check if input data has changed, retraining is needed, or there is a data pipeline issue. Simply rolling back or retraining without analysis might be premature.

219
MCQeasy

A data scientist wants to quickly train a binary classification model on a tabular dataset stored in BigQuery without writing any code. They have limited ML experience. Which Google Cloud service should they use?

A.Vertex AI Workbench with a built-in scikit-learn notebook.
B.Dataflow with a TensorFlow pipeline.
C.BigQuery ML with CREATE MODEL statement using SQL.
D.AutoML Tables with a direct BigQuery connection.
AnswerC

BigQuery ML enables model creation with SQL, no coding required.

Why this answer

BigQuery ML allows a data scientist to train a binary classification model directly in BigQuery using a `CREATE MODEL` SQL statement, without writing any code or moving data. This is the fastest low-code approach for users with limited ML experience, as it leverages familiar SQL syntax and runs entirely within BigQuery's serverless infrastructure.

Exam trap

Google Cloud often tests the distinction between 'low-code' (BigQuery ML) and 'no-code' (AutoML) services, but the trap here is that AutoML Tables requires more setup and data movement, while BigQuery ML is the fastest no-code option for users already working in BigQuery.

How to eliminate wrong answers

Option A is wrong because Vertex AI Workbench requires writing Python code (e.g., scikit-learn) and managing a notebook environment, which is not a no-code solution and exceeds the 'limited ML experience' constraint. Option B is wrong because Dataflow with a TensorFlow pipeline requires writing code for pipeline construction and model training, and is designed for stream/batch data processing, not for quick no-code model training. Option D is wrong because AutoML Tables, while low-code, requires exporting data from BigQuery or connecting via a separate interface, and involves a more complex workflow than directly using BigQuery ML's SQL-based training; the question specifies 'without writing any code' and 'quickly,' and BigQuery ML is the most direct path.

220
Multi-Selectmedium

A company wants to monitor features in Vertex AI Feature Store for drift over time. Which two services should they use? (Choose two.)

Select 2 answers
A.Vertex AI Feature Store monitoring
B.Cloud Logging
C.Vertex AI Model Monitoring
D.Vertex AI Experiments
E.Cloud Monitoring
AnswersA, E

Built-in monitoring calculates drift statistics.

221
MCQhard

A data engineering team uses Dataflow for preprocessing and wants to integrate with Vertex AI Pipelines. They need to pass the preprocessed data location to the training step. What is the best practice?

A.Store the path in Data Catalog
B.Use Cloud Pub/Sub
C.Use PipelineParam to pass the output path
D.Write the output to a fixed Cloud Storage path and hardcode it in the pipeline
AnswerC

PipelineParam allows dynamic, compile-time passing of values between steps.

Why this answer

PipelineParam is the native mechanism in Vertex AI Pipelines (Kubeflow Pipelines SDK) to pass runtime outputs—such as a Cloud Storage path—between components. It creates a dependency graph that ensures the training step receives the exact output path from the preprocessing step, enabling dynamic, reproducible pipelines without hardcoding.

Exam trap

The trap here is that candidates confuse metadata services (Data Catalog) or messaging systems (Pub/Sub) with pipeline parameter passing, overlooking that Vertex AI Pipelines uses Kubeflow Pipelines' built-in component I/O for deterministic, graph-based data flow.

How to eliminate wrong answers

Option A is wrong because Data Catalog is a metadata management service for discovering and tagging assets, not designed to pass runtime pipeline parameters between steps; it would introduce unnecessary latency and coupling. Option B is wrong because Cloud Pub/Sub is an asynchronous messaging service for event-driven architectures, not a direct parameter-passing mechanism within a single pipeline execution; it would add complexity and potential ordering issues. Option D is wrong because hardcoding a fixed Cloud Storage path defeats pipeline reproducibility and scalability—if the preprocessing step changes its output location (e.g., due to timestamped folders), the training step would fail or use stale data.

222
Multi-Selectmedium

A company is deploying a model for online predictions on Vertex AI. They want to minimize latency while also handling traffic spikes. Which TWO configurations should they choose?

Select 2 answers
A.Use GPU machine type
B.Enable autoscaling with min replicas=1
C.Disable autoscaling and use manual scaling
D.Use CPU machine type with more memory
E.Set a fixed number of replicas equal to peak load
AnswersA, B

GPUs accelerate inference, reducing latency.

Why this answer

GPU machine types on Vertex AI provide significantly faster inference for deep learning models, reducing latency per prediction. Option B is correct because enabling autoscaling with min replicas=1 ensures the model can handle traffic spikes by dynamically adding replicas while keeping at least one instance running to avoid cold starts.

Exam trap

Google Cloud often tests the misconception that manual scaling or fixed replicas are better for latency, but the correct approach is autoscaling with a minimum replica count to balance cost and responsiveness.

223
MCQmedium

A data scientist deployed a TensorFlow model for sentiment analysis to Vertex AI Prediction. The model expects input key 'text' but the client sends requests with key 'review_text'. Which step should the data scientist take to resolve the error without retraining the model?

A.Use a Cloud Function to strip the 'review_text' key and replace it with 'text'
B.Retrain the model with input key 'review_text'
C.Create a new Vertex AI Endpoint with an alias mapping 'review_text' to 'text'
D.Modify the client code to send requests with input key 'text'
AnswerD

This aligns the request with the model's expected signature without changing the model.

Why this answer

The most straightforward and reliable solution is to modify the client code to send the request with the expected input key 'text'. This avoids any additional infrastructure, latency, or complexity, and does not require retraining the model or altering the deployed endpoint. Vertex AI Prediction serves the model as-is, so aligning the client's request format with the model's expected input is the simplest and most maintainable fix.

Exam trap

Google Cloud often tests the misconception that you need to add infrastructure (like Cloud Functions) or modify the model to handle input key mismatches, when the correct answer is to adjust the client code to match the model's expected input schema.

How to eliminate wrong answers

Option A is wrong because introducing a Cloud Function adds an unnecessary hop, increases latency, and creates an extra point of failure; it also violates the principle of keeping the architecture simple when a direct client-side fix exists. Option B is wrong because retraining the model is an expensive and time-consuming process that is not needed when the only issue is a key name mismatch in the request payload. Option C is wrong because Vertex AI Endpoints do not support alias mappings for input keys; the endpoint simply forwards the request payload to the model, and the model's input signature is fixed at deployment time.

224
MCQmedium

An ML team wants to share feature definitions across multiple projects to reduce training-serving skew and ensure consistency. They currently store features in Cloud Storage and manually coordinate updates, leading to errors. Which Google Cloud service should they use to centrally manage and serve features for both training and online inference?

A.Cloud Data Catalog
B.Vertex AI Model Registry
C.Vertex AI Feature Store
D.Cloud Storage with versioning
AnswerC

Feature Store is designed for feature management and serving.

Why this answer

Vertex AI Feature Store centralizes feature management, providing an online store for low-latency serving and an offline store for training data retrieval, reducing training-serving skew.

225
MCQhard

A data scientist deployed a model to Vertex AI Prediction. When making a prediction request as shown in the exhibit, they receive a 400 error. What is the most likely cause?

A.The request JSON is malformed due to a missing comma between instances.
B.The model was trained on 2 features, but the request provides 3 features.
C.The endpoint path is incorrect; it should include the model version.
D.The request is sending 3 separate instances but the model expects only 1.
AnswerB

The error indicates the model expects 2 features per instance, but the request provides 3.

Why this answer

The 400 error indicates a malformed request, typically due to a mismatch between the input features the model expects and what is provided. Since the model was trained on 2 features but the request includes 3 features, Vertex AI rejects the prediction as invalid input shape mismatch. This is the most common cause of 400 errors in Vertex AI Prediction when the instance structure does not match the model's signature.

Exam trap

The trap here is that candidates confuse a 400 error with a routing or versioning issue (Option C) or assume JSON syntax errors (Option A), but the real cause is a feature count mismatch, which is a common pitfall when deploying models with different training and serving data schemas.

How to eliminate wrong answers

Option A is wrong because a missing comma between instances would cause a JSON parse error (e.g., 400 with 'Invalid JSON payload'), but the exhibit shows valid JSON syntax with commas present. Option C is wrong because the endpoint path does not require a model version; Vertex AI Prediction uses the endpoint resource name, and versioning is handled via traffic splitting or aliases, not in the URL path. Option D is wrong because Vertex AI Prediction supports batch prediction with multiple instances in a single request, and the model expects exactly 1 instance per request only if the model's serving signature specifies a fixed batch size of 1, which is not indicated here.

Page 2

Page 3 of 14

Page 4