Courseiva

Google Professional Machine Learning Engineer (PMLE) — Questions 226300

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

Page 3

Page 4 of 14

Page 5
226
MCQmedium

Your team manages a production ML pipeline on Google Cloud that trains a fraud detection model every 6 hours using new transaction data. The pipeline steps are: (1) Cloud Function triggered by new files in Cloud Storage to validate data, (2) Dataflow job for feature engineering, (3) Vertex AI CustomJob for training, (4) Cloud Function to deploy the model to a Vertex AI endpoint after evaluation. You notice that the pipeline sometimes fails during the Dataflow job step with an error: 'Workflow failed. Causes: The job encountered a system error. Please try again later.' The error occurs sporadically, and retrying the pipeline manually usually succeeds. The team needs a reliable automated solution. What should you do?

A.Schedule the pipeline to run less frequently to reduce load on the Dataflow service.
B.Use Cloud Tasks to queue the Dataflow job and retry on failure.
C.Increase the number of Dataflow workers and use flexRS to handle transient errors.
D.Orchestrate the pipeline using Cloud Composer with retry policies on the Dataflow operator.
AnswerD

Cloud Composer (Airflow) can manage the pipeline DAG with automatic retries and dependencies.

Why this answer

Cloud Composer (Apache Airflow) provides native retry policies on its Dataflow operators, enabling automatic retries of the Dataflow job when it fails due to transient system errors. This addresses the sporadic failure pattern without manual intervention, ensuring the pipeline runs reliably every 6 hours.

Exam trap

The trap here is that candidates confuse scaling solutions (Option C) with fault-tolerance mechanisms, or they choose a generic queuing service (Option B) instead of a dedicated orchestrator with built-in retry policies for pipeline steps.

How to eliminate wrong answers

Option A is wrong because reducing pipeline frequency does not resolve transient system errors in Dataflow; it only delays processing and may cause data staleness. Option B is wrong because Cloud Tasks is a generic task queue that lacks native integration with Dataflow job lifecycle management and retry logic for pipeline-specific errors. Option C is wrong because increasing workers and using FlexRS improves resource availability but does not handle transient system errors that are unrelated to worker count or preemptibility; FlexRS is for cost savings on preemptible VMs, not for retry logic.

227
MCQmedium

A company wants to cache predictions for identical requests to reduce latency and cost. They use Vertex AI Prediction with a custom container. Which GCP service should they use to implement prediction caching?

A.Cloud Bigtable
B.Cloud Memorystore for Redis
C.Cloud Storage
D.Cloud Firestore
AnswerB

Redis is an in-memory data store perfect for caching with low latency.

Why this answer

Cloud Memorystore (Redis) is ideal for caching because it provides low-latency key-value storage. The prediction request can be hashed to create a key.

228
MCQmedium

A retail company wants to build a customer churn prediction model using AutoML Tables. They have a dataset with 5000 rows and 50 features, including customer ID, transaction history, and support tickets. The target is a binary column 'churned'. After training, the model shows high accuracy but low recall for the churned class. What is the most likely cause?

A.The dataset is too small for AutoML to train effectively.
B.The features are not normalized, leading to biased predictions.
C.The churned class is underrepresented, causing the model to favor the majority class.
D.The dataset includes a unique customer ID feature, causing overfitting.
AnswerC

Class imbalance leads to high accuracy but low recall for minority class.

Why this answer

In imbalanced datasets, AutoML Tables optimizes for overall accuracy, which can be high if the majority class dominates. Low recall for the churned class indicates the model predicts most instances as non-churned, a classic symptom of class imbalance. AutoML Tables provides class weighting and sampling options to mitigate this, but without them, the model favors the majority class.

Exam trap

Google Cloud often tests the misconception that high accuracy always means a good model, trapping candidates who overlook class imbalance as the root cause of poor recall for the minority class.

How to eliminate wrong answers

Option A is wrong because 5000 rows is generally sufficient for AutoML Tables to train effectively, especially with 50 features; the issue is class imbalance, not dataset size. Option B is wrong because AutoML Tables automatically handles feature normalization internally, so unnormalized features do not cause biased predictions in this context. Option D is wrong because including a unique customer ID feature can cause overfitting, but the symptom described (high accuracy, low recall) is characteristic of class imbalance, not overfitting; overfitting would typically show high training accuracy but poor generalization, not specifically low recall for a minority class.

229
Multi-Selecteasy

An ML team is converting a prototype model to a production pipeline using Vertex AI. They want to ensure model versioning and lineage. Which two practices should they adopt? (Select TWO)

Select 2 answers
A.Use Vertex AI Model Registry to manage model versions.
B.Only keep the latest model version to save storage.
C.Store model artifacts in Cloud Storage with unique versioned directories.
D.Train models directly in production without tracking.
E.Use a separate GCP project for each model version.
AnswersA, C

Integrates with other Vertex AI services for lineage.

Why this answer

Options A and C are correct. Using Vertex AI Model Registry allows you to manage and track model versions, while storing model artifacts in Cloud Storage with unique versioned directories ensures lineage and reproducibility. Option B is wrong because keeping only the latest version loses the history and lineage.

Option D is wrong because training without tracking violates versioning principles. Option E is wrong because using separate GCP projects per version is unnecessarily complex and does not directly address versioning and lineage.

230
MCQeasy

A team prototypes a recommendation model using a Jupyter notebook on Vertex AI Workbench. They want to productionize the model with CI/CD. Which approach should they use to package the model for deployment?

A.Use Cloud Build to deploy the notebook directly as a prediction endpoint
B.Store the model in Cloud Source Repositories and deploy from there
C.Containerize the model and push to Artifact Registry, then deploy via Cloud Run
D.Upload the model to Vertex AI Model Registry and use it for deployment
AnswerD

Model Registry manages versions and deployment targets.

Why this answer

Vertex AI Model Registry is the central repository for managing ML models, enabling versioning, evaluation, and deployment to endpoints. This approach integrates with CI/CD pipelines via the Vertex AI SDK or Cloud Build, allowing automated model promotion and deployment without manual packaging. Option D directly leverages Vertex AI's native deployment workflow, which is the recommended path for productionizing models from Workbench.

Exam trap

Google Cloud often tests the misconception that any storage or code repository (like Cloud Source Repositories or Artifact Registry) can directly serve as a deployment mechanism, when in fact Vertex AI Model Registry is the required service for managing and deploying models within Vertex AI's ecosystem.

How to eliminate wrong answers

Option A is wrong because Cloud Build cannot deploy a Jupyter notebook directly as a prediction endpoint; notebooks contain code and dependencies that must be containerized or exported as a model artifact first. Option B is wrong because Cloud Source Repositories is a code hosting service, not a model deployment mechanism; storing code there does not create a deployable endpoint. Option C is wrong because while containerization and Artifact Registry are valid for custom serving, Vertex AI Model Registry provides built-in model versioning, evaluation, and endpoint management that aligns with Vertex AI's native CI/CD capabilities, making it the more direct and recommended approach for this scenario.

231
MCQmedium

A team of data scientists and ML engineers is collaborating on a project using Vertex AI Workbench. They need to share notebooks and code, but want to avoid conflicts and maintain a history of changes. Which approach should they use?

A.Email notebook files to each other and manually merge changes.
B.Store notebooks in a shared Cloud Storage bucket and access them simultaneously.
C.Use Vertex AI Experiments to share notebook outputs.
D.Use a git repository (e.g., Cloud Source Repositories) to manage code and notebooks.
AnswerD

Git provides branching, merging, and history.

Why this answer

Using a git repository (e.g., Cloud Source Repositories) provides version control, branching, and a full history of changes, which is essential for collaborative development. This approach avoids conflicts by allowing team members to work on separate branches and merge changes systematically, unlike shared storage or manual methods that lack conflict resolution and audit trails.

Exam trap

The trap here is that candidates confuse collaboration tools (like shared storage or experiment tracking) with version control, assuming that any shared access or logging mechanism can replace the structured history and conflict resolution of a git-based workflow.

How to eliminate wrong answers

Option A is wrong because emailing notebook files and manually merging changes is error-prone, lacks any version history or conflict detection, and does not scale for team collaboration. Option B is wrong because storing notebooks in a shared Cloud Storage bucket and accessing them simultaneously can lead to write conflicts, data corruption, and no built-in version history or merge capabilities. Option C is wrong because Vertex AI Experiments is designed for tracking and comparing model training runs and their metrics, not for managing source code or notebook version control.

232
MCQeasy

The exhibit shows a Vertex AI PipelineJob submission command. The pipeline fails because the component cannot find the input data. What is the most likely cause?

A.The pipeline root path is incorrect
B.The pipeline name is misspelled
C.The input data path is not accessible by the Vertex AI Pipelines service account
D.The region does not support the component
AnswerC

The component likely expects a Cloud Storage path for data, and the service account lacks read permissions.

Why this answer

The most likely cause of the pipeline failing to find input data is that the Vertex AI Pipelines service account lacks the necessary permissions to access the specified input data path. Vertex AI Pipelines uses the Compute Engine default service account (or a custom service account) to read data from Cloud Storage or other sources; if this account does not have the `storage.objectViewer` role (or equivalent) on the bucket or object, the component will fail with a permission-denied error, even if the path is syntactically correct.

Exam trap

Google Cloud often tests the misconception that a misspelled pipeline name or incorrect pipeline root path is the cause of runtime data access failures, when in fact the service account's IAM permissions on the data source are the critical factor.

How to eliminate wrong answers

Option A is wrong because an incorrect pipeline root path would cause a failure to store pipeline artifacts or metadata, not a failure to find input data; the input data path is specified separately in the component's parameters. Option B is wrong because a misspelled pipeline name would cause the pipeline submission to fail at the API validation stage (e.g., an invalid name error), not during runtime when the component tries to access input data. Option D is wrong because the region not supporting the component would result in a resource or API availability error at submission time, not a runtime data access failure.

233
MCQhard

A team uses Vertex AI Feature Store with an online store for low-latency serving. They need to support frequent updates to features (e.g., every minute) and require high write throughput (thousands of writes per second). Which online store type should they choose?

A.Optimized online store
B.Firestore online store
C.Bigtable online store
D.Cloud SQL online store
AnswerC

Bigtable supports high write throughput and low-latency reads, ideal for frequent updates.

Why this answer

Bigtable online store is optimized for high write throughput and low-latency serving, suitable for frequently updated features. Optimized online store is better for read-heavy, static features.

234
MCQeasy

An ML team wants to monitor feature drift in their production model. Which Vertex AI Feature Store capability should they use?

A.Feature views
B.Online store
C.Point-in-time retrieval
D.Feature monitoring (drift detection)
AnswerD

Feature monitoring tracks distribution changes.

Why this answer

Vertex AI Feature Store includes feature monitoring that can detect drift between training and serving data.

235
MCQmedium

Refer to the exhibit. A team configured Vertex AI Model Monitoring with skew detection for feature "income" with a threshold of 0.2. However, they have not received any alerts even though they suspect data drift. What is the most likely reason?

A.The monitoring is not enabled for the endpoint
B.The 'income' feature is not present in the serving data
C.The actual skew is below the threshold
D.The drift detection threshold is set higher
AnswerB

If the feature is missing from serving data, skew detection cannot perform comparison and will not generate alerts.

Why this answer

If the 'income' feature is not present in the serving data, the skew detection cannot compute a comparison, and no alert is generated even if other drifts exist. The threshold being low would increase alerts, not suppress them. The monitoring likely is enabled since the config is present.

The drift threshold for drift detection is separate.

236
MCQeasy

An ML team uses Vertex AI Pipelines and wants to automatically generate model cards documenting model purpose, evaluation results, and intended use. Which approach should they take?

A.Manually create a Google Doc and share it with the team.
B.Use Cloud Data Catalog to annotate the model artifact.
C.Write a custom Kubeflow Pipelines component that creates a BigQuery table with model metadata.
D.Use Vertex AI Model Registry to generate model cards automatically from model metadata.
AnswerD

Model Registry provides model card generation.

Why this answer

Vertex AI Model Registry supports model cards that can be populated programmatically via the SDK or Cloud Console.

237
MCQhard

A team trained a TensorFlow model locally and wants to deploy it to BigQuery ML for predictions without retraining. They have exported the SavedModel to Cloud Storage. Which statement is correct?

A.They need to convert the model to a BigQuery ML native format first.
B.They can create a model using CREATE MODEL with model_type='tensorflow' and the path to the SavedModel.
C.They must first retrain the model using ML.TRAIN on BigQuery.
D.They can use ML.PREDICT directly on the SavedModel in Cloud Storage.
AnswerB

Why this answer

BigQuery ML supports importing TensorFlow SavedModels with model_type='tensorflow'. ML.TRAIN is for training, not importing. ML.PREDICT requires a model in BigQuery, not directly on Cloud Storage.

No conversion is needed.

238
Multi-Selectmedium

A company uses Vertex AI Matching Engine for real-time recommendations. They need to serve queries with low latency and support frequent updates. Which two configurations are appropriate? (Choose 2)

Select 2 answers
A.Store the index in Cloud Storage and query via Python
B.Enable streaming updates for the index
C.Use a brute-force index for exact results
D.Deploy the index to a Vertex AI Matching Engine endpoint
E.Use batch updates only
AnswersB, D

Streaming updates allow real-time insertion without downtime.

Why this answer

Vertex AI Matching Engine supports streaming updates, which allow real-time insertion, deletion, and modification of vectors without rebuilding the entire index. This is essential for use cases requiring frequent updates, such as real-time recommendation systems, because it maintains low latency for serving queries while keeping the index current.

Exam trap

The trap here is that in Google's Vertex AI Matching Engine, candidates often confuse batch updates with streaming updates, assuming that batch updates can be made frequent enough to approximate real-time, but they fail to recognize that batch updates require full index rebuilds, which introduce significant latency and downtime for serving.

239
MCQmedium

A data science team deploys a custom container on Vertex AI Prediction for a PyTorch model. After deployment, the model returns predictions that are consistently off by a constant factor. The model performed correctly during local testing. What is the most likely cause?

A.The model is loaded in evaluation mode, but the training mode was used in testing.
B.The serving input function in the container is not applying the same normalization as during training.
C.The container is using a different PyTorch version than the training environment.
D.There is a bug in the custom container's prediction route.
AnswerB

Preprocessing mismatch, such as scaling by different factors, leads to constant offset in predictions.

Why this answer

A constant factor error typically indicates a preprocessing mismatch, such as different normalization. Option A is wrong because training vs evaluation mode affects dropout and batch normalization, which can cause different outputs but not a constant factor scaling. Option C is wrong because different PyTorch versions may cause other inconsistencies but not a constant factor.

Option D is possible but less specific than preprocessing.

240
MCQhard

A data scientist wants to perform A/B testing between two model versions deployed on the same Vertex AI endpoint. They need to route 10% of traffic to the challenger model. Which approach should they use?

A.Use Vertex AI Experiments to compare models offline, then deploy the winner
B.Deploy the challenger model to a separate endpoint and use a load balancer to split traffic
C.Update the champion model with a new version and use model version aliases
D.Deploy both models to the same endpoint and set traffic_split to 90 for champion and 10 for challenger
AnswerD

Vertex AI traffic_split directly routes the specified percentage of requests to each model.

Why this answer

Vertex AI endpoints support traffic splitting directly, allowing you to route a percentage of requests to different model versions deployed on the same endpoint. By setting `traffic_split` to 90 for the champion and 10 for the challenger, the data scientist can perform online A/B testing without additional infrastructure. This is the simplest and most cost-effective approach, as it avoids managing separate endpoints or load balancers.

Exam trap

A common trap in Google exams is the misconception that separate endpoints or load balancers are required for A/B testing, when in fact Vertex AI endpoints provide built-in traffic splitting for this exact purpose.

How to eliminate wrong answers

Option A is wrong because Vertex AI Experiments is an offline evaluation tool for comparing model performance on historical data, not for live traffic splitting. Option B is wrong because deploying the challenger to a separate endpoint and using a load balancer adds unnecessary complexity and cost; Vertex AI endpoints natively support traffic splitting across model versions. Option C is wrong because updating the champion model with a new version and using model version aliases does not provide granular traffic splitting; aliases are for version management, not for routing a specific percentage of live traffic.

241
Multi-Selectmedium

A company wants to set up end-to-end monitoring for a Vertex AI model. Which three components should they include?

Select 3 answers
A.Feature store backup status
B.Model performance metrics
C.Data drift and concept drift detection
D.Prediction latency
E.Model training cost
AnswersB, C, D

Performance metrics like AUC or RMSE are essential for model health.

Why this answer

Model performance metrics (Option B) are essential for end-to-end monitoring because they track how well the Vertex AI model is performing over time using key indicators like accuracy, precision, recall, or AUC-ROC. This allows the team to detect degradation in prediction quality, which is a core requirement for maintaining model reliability in production.

Exam trap

The trap here is that candidates often confuse operational or cost-related metrics (like backup status or training cost) with the three core pillars of model monitoring: performance metrics, drift detection, and latency tracking.

242
MCQhard

An organization runs a batch prediction job on Vertex AI for a large dataset (10 TB). The job is configured to use a cluster of 100 n1-standard-16 machines. Midway through, the job fails with 'Out of memory' errors. What is the most effective mitigation strategy?

A.Split the input data into smaller chunks and run multiple jobs.
B.Enable model parallelism within the prediction script.
C.Increase the number of machines to distribute data more.
D.Use a machine type with more memory per instance.
AnswerD

Directly addresses the OOM by providing more memory for each worker.

Why this answer

The 'Out of memory' error indicates that individual worker nodes are running out of RAM when processing their assigned data shards. Using a machine type with more memory per instance (e.g., n1-highmem-16) directly addresses the root cause by providing each node with sufficient memory to hold the model and its intermediate computations, without changing the data distribution or parallelism strategy.

Exam trap

The trap here is that candidates confuse scaling horizontally (adding more machines) with scaling vertically (increasing per-machine resources), assuming that distributing data further will fix memory exhaustion when the bottleneck is per-node RAM capacity, not data volume per node.

How to eliminate wrong answers

Option A is wrong because splitting the input data into smaller chunks and running multiple jobs does not increase the memory available per machine; it only reduces the data per job, but the same memory constraint per node will still cause OOM errors if the model or batch size per node remains unchanged. Option B is wrong because model parallelism splits the model across devices, which is typically used for very large models that cannot fit on a single GPU/TPU, not for batch prediction jobs where the model is already loaded and the issue is data processing memory. Option C is wrong because increasing the number of machines distributes the data across more nodes, but each node still has the same 16 GB of RAM (n1-standard-16), so the per-node memory pressure remains identical and OOM errors will persist.

243
MCQmedium

A company has deployed a model to Vertex AI Endpoints and wants to monitor for feature drift using Jensen-Shannon divergence. They have set a threshold of 0.1. After one week, the monitoring job reports a divergence of 0.15 for a feature. What should the engineer do next to diagnose which features are contributing to the drift?

A.Deploy a new model version immediately
B.Use Vertex AI Explainability to compute feature attributions and identify drifted features
C.Check the model's confusion matrix in BigQuery
D.Increase the sampling rate to capture more data
AnswerB

Correct: Explainability provides feature importance, helping to pinpoint which features are driving drift.

Why this answer

To identify which features are drifting, the engineer can use Vertex AI Explainability to compute feature attributions (e.g., SHAP values) and correlate them with drift metrics.

244
Multi-Selecteasy

Which THREE of the following are supported output types for BigQuery ML?

Select 3 answers
A.Classification
B.Object detection
C.Anomaly detection
D.Time-series forecasting
E.Regression
AnswersA, D, E

e.g., logistic regression model.

Why this answer

BigQuery ML supports supervised learning tasks like classification and regression, as well as time-series forecasting, through its model types such as `LOGISTIC_REG`, `LINEAR_REG`, and `ARIMA_PLUS`. Classification (option A) is correct because BigQuery ML provides `LOGISTIC_REG` for binary and multi-class classification problems, outputting predicted labels or probabilities.

Exam trap

Google Cloud often tests the distinction between supported BigQuery ML output types and broader ML capabilities, leading candidates to mistakenly include object detection or anomaly detection, which are not native output types in BigQuery ML's SQL-based interface.

245
MCQeasy

You are a Machine Learning Engineer at a financial services company. You have trained a large language model (LLM) using a custom container on Vertex AI Training. The model is used for sentiment analysis on financial news articles. You have deployed the model to a Vertex AI Endpoint for online prediction. However, during peak trading hours, users report high latency ( > 5 seconds) and occasional timeout errors. The model is deployed on n1-highmem-8 machines with 1 replica. You monitor the endpoint and see that CPU utilization is high ( > 90%) and memory is near capacity. The queries are relatively small text inputs. Which course of action should you take to reduce latency?

A.Deploy the model to multiple endpoints and use round-robin load balancing.
B.Use Vertex AI Prediction with GPU accelerators like NVIDIA Tesla T4.
C.Increase the machine type to n1-highmem-16 and keep 1 replica.
D.Reduce the batch size for predictions to lower memory usage.
AnswerB

GPUs excel at matrix operations common in LLMs, dramatically reducing inference latency per request.

Why this answer

The high CPU utilization and memory pressure indicate that the CPU is the bottleneck for inference, not the model size or input volume. Switching to GPU accelerators like NVIDIA Tesla T4 offloads the computationally intensive matrix operations of the LLM to the GPU, drastically reducing per-query latency and freeing CPU resources for preprocessing and I/O. This directly addresses the root cause of >5-second latency during peak hours.

Exam trap

Google Cloud often tests the misconception that scaling up CPU resources (vertical scaling) is the solution for high-latency inference, when in fact the correct approach for deep learning models is to offload computation to specialized hardware like GPUs or TPUs.

How to eliminate wrong answers

Option A is wrong because deploying to multiple endpoints with round-robin load balancing does not reduce per-query latency; it only distributes the load across replicas, but each replica still suffers from the same CPU bottleneck and would likely still time out. Option C is wrong because increasing the machine type to n1-highmem-16 adds more CPU cores and memory, but the inference bottleneck is the CPU's inability to parallelize the LLM's matrix operations efficiently; a larger CPU instance still cannot match GPU throughput for deep learning inference. Option D is wrong because reducing batch size for predictions would actually increase the number of inference calls and overhead, potentially worsening latency; the model already receives small text inputs, so batching is not the issue.

246
Multi-Selecthard

Your team is deploying a large model on edge devices and needs to reduce its size by 80% while maintaining reasonable accuracy. Which THREE techniques should they consider? (Choose 3.)

Select 3 answers
A.Quantisation to INT8
B.Transfer learning from a larger model
C.Knowledge distillation
D.Increasing model capacity with more layers
E.Pruning of redundant connections
AnswersA, C, E

Reduces model size by reducing precision of weights.

Why this answer

Quantisation to INT8 reduces the precision of model weights and activations from 32-bit floating point to 8-bit integers, cutting memory usage by approximately 75% (4x compression). This directly addresses the 80% size reduction target while often preserving accuracy within 1-2% through careful calibration and scaling, making it a primary technique for edge deployment.

Exam trap

Google Cloud often tests the misconception that transfer learning reduces model size, when in fact it only transfers learned features and does not compress the model; candidates may confuse it with knowledge distillation.

247
MCQmedium

An ML engineer is using Cloud Composer (Airflow) to orchestrate a ML workflow. They need to run a Vertex AI pipeline as one of the tasks in the DAG. Which Airflow operator should they use?

A.BigQueryOperator to run the pipeline as a query.
B.VertexAIPipelineRunOperator or the Google Cloud Pipeline operator.
C.PythonOperator with a custom script using the google-cloud-aiplatform library.
D.VertexAIPipelineRunOperator (or Airflow's GCSToGCSOperator) for pipeline orchestration.
AnswerB

These operators are designed to run Vertex AI pipelines from Airflow.

Why this answer

Cloud Composer (Airflow) natively supports the `VertexAIPipelineRunOperator` (or its alias `GoogleCloudPipelineOperator`), which is specifically designed to trigger and monitor a Vertex AI pipeline run as a task within a DAG. This operator handles authentication, pipeline job submission, and status polling without requiring custom code, making it the idiomatic choice for orchestrating Vertex AI pipelines from Airflow.

Exam trap

The trap here is that candidates may confuse a general-purpose operator (like PythonOperator or GCSToGCSOperator) with a purpose-built operator, or incorrectly assume that BigQueryOperator can be repurposed for pipeline execution, when the exam expects knowledge of the specific Airflow operator designed for Vertex AI pipeline orchestration.

How to eliminate wrong answers

Option A is wrong because BigQueryOperator is used to execute BigQuery SQL queries or jobs, not to run Vertex AI pipelines; it has no capability to submit or manage a Vertex AI pipeline run. Option C is wrong because while a PythonOperator with a custom script using the google-cloud-aiplatform library could technically work, it is not the recommended or native Airflow operator—it requires manual handling of authentication, polling, and error handling, and it bypasses Airflow's built-in integration and retry mechanisms. Option D is wrong because GCSToGCSOperator is a data transfer operator for copying files between GCS buckets, not for pipeline orchestration; the mention of 'VertexAIPipelineRunOperator' is correct, but pairing it with GCSToGCSOperator as an alternative for pipeline orchestration is incorrect and misleading.

248
MCQmedium

A data scientist wants to train a PyTorch model on Vertex AI using a pre-built container for GPU training. She needs to use 4 NVIDIA A100 GPUs on a single machine. Which machine configuration should she select?

A.n1-highmem-16 with 4 NVIDIA V100 GPUs
B.n1-standard-16 with 4 NVIDIA T4 GPUs
C.a2-highgpu-4g (4 A100 GPUs)
D.a2-megagpu-16g (16 A100 GPUs)
AnswerC

This machine type is specifically for A100 GPUs, providing 4 GPUs as required.

Why this answer

Vertex AI offers pre-built containers for PyTorch that support GPU training. To use 4 A100 GPUs, the machine type should be 'a2-highgpu-4g', which provides 4 A100 GPUs. The 'n1-standard-16' only supports up to 4 GPUs but typically uses P100 or T4, and 'n1-highmem-16' can support up to 4 GPUs but the GPU type is not A100 by default.

The 'a2-megagpu-16g' provides 16 GPUs.

249
MCQeasy

Which Vertex AI service is designed for building and managing approximate nearest neighbor (ANN) indexes for similarity search at scale?

A.Vertex AI AutoML
B.Vertex AI Workbench
C.Vertex AI Prediction
D.Vertex AI Matching Engine (Vector Search)
AnswerD

Matching Engine (Vector Search) is for ANN similarity search on embeddings.

Why this answer

Vertex AI Matching Engine (now Vector Search) provides ANN indexes for similarity search, enabling fast vector similarity queries at scale.

250
MCQhard

An e-commerce company deployed a Vertex AI AutoML Tables model to predict customer churn. The model is served via a private endpoint with a dedicated machine type n1-standard-4. After a week, they observe that 5% of predictions fail with 'Request timed out' error. The average prediction time is 1.2 seconds but spikes to 4 seconds during peak hours. The input data is 50 features. They have enabled autoscaling with a min node count of 1 and max of 5. Which action is most likely to resolve the timeout issue without increasing complexity?

A.Reduce the number of features to 30.
B.Increase the max node count to 10.
C.Enable model monitoring to detect data drift.
D.Change the machine type to n1-highmem-4 to increase memory.
AnswerB

More nodes can absorb traffic spikes and reduce timeout errors.

Why this answer

The timeout errors during peak hours indicate that the single endpoint instance is overwhelmed. Increasing the max node count from 5 to 10 allows autoscaling to spin up more replicas during traffic spikes, distributing the load and reducing latency. Option A (reducing features) would require retraining and could degrade model accuracy.

Option C (model monitoring) detects data drift but does not address compute capacity. Option D (increasing memory) may help if the model is memory-bound, but n1-standard-4 already has 15 GB RAM; timeout errors are more likely due to CPU saturation, not memory exhaustion.

251
MCQmedium

Refer to the exhibit. A machine learning engineer deployed a model on Vertex AI using this configuration. When testing the endpoint, the engineer receives a 400 error with the message: 'Invalid argument: Explanation metadata missing required field: `outputs`.' What is the most likely cause?

A.The explanation metadata outputs field is missing the required 'displayName' attribute.
B.The explanation metadata needs a 'baseline' configuration for the input.
C.The explanation metadata inputs field should be wrapped inside a 'visualization' block.
D.The explainability method chosen is not supported for the model type.
AnswerA

Incorrect. The error is about missing outputs field, not just missing displayName.

Why this answer

The error message 'Invalid argument: Explanation metadata missing required field: `outputs`' indicates that the `outputs` field is entirely absent from the explanation metadata configuration. None of the provided options correctly identifies this issue. Option A incorrectly attributes the error to a missing 'displayName' attribute within an existing outputs field, which is not the cause.

Exam trap

Candidates often focus on the subfields like displayName, but the error indicates the top-level outputs field is missing.

How to eliminate wrong answers

Option B is wrong because a `baseline` configuration is required for the input, not the output; the error specifically points to the missing `outputs` field, not the input baseline. Option C is wrong because the `visualization` block is used for image-specific explanations (e.g., integrated gradients with visualization), not for wrapping the inputs field; the error is about the `outputs` field, not the inputs. Option D is wrong because the error message does not mention an unsupported explainability method; it explicitly states that the `outputs` field is missing, which is a metadata configuration issue, not a method compatibility problem.

252
MCQeasy

A data analyst wants to create a classification model directly in BigQuery using SQL. Which feature should they use?

A.BigQuery ML
B.Vertex AI
C.Dataflow
D.Cloud ML Engine
AnswerA

BigQuery ML allows creating models using SQL.

Why this answer

BigQuery ML (BQML) enables users to create and execute machine learning models directly in BigQuery using standard SQL syntax, without needing to export data or manage separate ML infrastructure. For a data analyst who wants to build a classification model entirely within BigQuery, BQML provides the CREATE MODEL statement with classification algorithms like logistic regression or XGBoost, making it the correct and most direct feature.

Exam trap

Google Cloud often tests the distinction between services that run inside BigQuery (BQML) versus external ML platforms (Vertex AI), trapping candidates who think any ML service qualifies without checking if it operates directly via SQL in BigQuery.

How to eliminate wrong answers

Option B is wrong because Vertex AI is a full MLOps platform for training, deploying, and managing models, but it requires data to be exported from BigQuery and does not allow model creation directly in SQL within BigQuery. Option C is wrong because Dataflow is a stream and batch data processing service (based on Apache Beam) used for ETL and data pipelines, not for creating classification models. Option D is wrong because Cloud ML Engine (now part of Vertex AI) is a managed service for training and serving custom ML models, but it does not support SQL-based model creation inside BigQuery.

253
MCQhard

A data science team deploys a large language model (LLM) on Vertex AI Prediction using an NVIDIA A100 GPU. The end-to-end latency is acceptable, but the cost is high due to low GPU utilization. The model is stateless and requests are independent. Which strategy would most effectively reduce cost per prediction?

A.Migrate the model to Cloud TPU using TensorFlow to benefit from higher throughput.
B.Use a smaller GPU, such as NVIDIA T4, and increase the number of replicas to maintain throughput.
C.Reduce the number of min replicas to 0 and scale from 0 on each request.
D.Implement dynamic batching in the serving container to aggregate multiple requests into a single inference call.
AnswerD

Batching improves GPU utilization by processing multiple requests in parallel, lowering cost per inference.

Why this answer

Dynamic batching aggregates multiple independent requests into a single inference call, increasing GPU utilization and reducing cost per prediction without significantly impacting latency if batch size is tuned. Option A is wrong because migrating to TPUs would require model changes and may not improve GPU utilization. Option B is wrong because using a smaller GPU (T4) may increase latency or reduce throughput, and increasing replicas adds cost.

Option C is wrong because reducing min replicas to 0 causes cold starts, increasing latency for each request.

254
Multi-Selectmedium

A retail company uses Recommendations AI to power personalized product recommendations on their website. They notice that the 'frequently-bought-together' model is not capturing complementary items that are often purchased in the same session but not necessarily in the same transaction. Which TWO actions should they take to improve the model?

Select 2 answers
A.Decrease the event retention period to focus on recent purchases
B.Enable the 'others-you-may-like' recommendation type in addition to 'frequently-bought-together'
C.Use AutoML Tables to build a custom recommendation model
D.Set the recommendation type to only 'frequently-bought-together'
E.Ingest session-level event data (e.g., product views in the same session) into Recommendations AI
AnswersB, E

'Others-you-may-like' uses co-viewed and co-purchased signals, capturing session-level patterns.

Why this answer

To capture cross-session patterns, the company should ensure that user events (including session-level co-occurrence) are properly tracked and ingested. Enabling session-level events and using the 'others-you-may-like' model (which uses co-viewed behavior) can help. Setting the recommendation type to 'frequently-bought-together' does not address session-level data.

Reducing event retention would harm model quality.

255
MCQhard

A data scientist is training a model using Vertex AI Experiments and wants to automatically log model parameters, metrics, and artifacts without modifying their training script. Which approach should they use?

A.Use the gcloud beta ai experiments autolog command before running the training script.
B.Wrap the training code in a Kubeflow Pipelines component that calls the Vertex AI Experiments API.
C.Build a custom container with the Vertex AI SDK and MLflow installed, then set the VERTEX_AI_AUTOLOG environment variable to 1.
D.Use the Vertex AI Python SDK to create a custom training job and manually log each parameter and metric in the training script.
AnswerC

Vertex AI supports autologging via MLflow when the environment variable is set.

Why this answer

Vertex AI Experiments supports autologging via the Vertex AI SDK when using MLflow or Keras callbacks. Specifying a custom container with the SDK installed and enabling autologging allows automatic logging without code changes.

256
Multi-Selecthard

A team wants to implement CI/CD for their ML pipeline using Cloud Build. They want to automatically compile and deploy the pipeline when code is pushed to the main branch. Which three steps should they include in the Cloud Build configuration? (Choose three.)

Select 3 answers
A.Create or update the pipeline in Vertex AI using the compiled file
B.Upload the compiled pipeline to Cloud Storage
C.Run the pipeline immediately after deployment
D.Install KFP SDK and compile the pipeline
E.Configure Cloud Scheduler to trigger on push
AnswersA, B, D

Use gcloud or Python client to register the pipeline in Vertex AI.

Why this answer

The Cloud Build configuration should include a step to create or update the pipeline in Vertex AI using the compiled file. This step registers the pipeline definition with Vertex AI Pipelines, making it available for execution and versioning. Without this, the compiled pipeline would not be accessible for deployment or scheduling within the Vertex AI environment.

Exam trap

A common trap is confusing build-time actions (compilation, upload, registration) with runtime actions (execution, scheduling). Candidates often mistakenly include immediate pipeline execution as a CI/CD step instead of focusing on deploying and registering the pipeline artifact.

257
Multi-Selecthard

An engineer is designing a distributed training job on Vertex AI for a TensorFlow model that uses the MultiWorkerMirroredStrategy. They need to ensure proper communication between workers. Which environment variable must be set correctly for each worker?

Select 1 answer
A.CLUSTER_SPEC
B.TF_CPP_MIN_LOG_LEVEL
C.TF_CONFIG_JSON
D.TF_DISTRIBUTED_STRATEGY
E.TF_CONFIG
AnswersE

TF_CONFIG is the required environment variable that defines the cluster and task.

Why this answer

In TensorFlow distributed training with MultiWorkerMirroredStrategy, the only required environment variable is `TF_CONFIG`. It provides the cluster topology and task identity, enabling gRPC communication between workers. The distribution strategy is defined in code, not via an environment variable. `TF_DISTRIBUTED_STRATEGY` is not a standard TensorFlow environment variable.

Exam trap

The exam may confuse candidates with plausible but incorrect environment variable names like TF_CONFIG_JSON or TF_DISTRIBUTED_STRATEGY, but only TF_CONFIG is required.

258
MCQeasy

A machine learning engineer wants to monitor model performance on Vertex AI for a regression model. Which metric is most appropriate to track the average prediction error?

A.F1 score
B.Precision
C.Accuracy
D.RMSE
AnswerD

RMSE measures average prediction error in regression.

Why this answer

RMSE (Root Mean Squared Error) is the most appropriate metric for tracking average prediction error in a regression model because it measures the standard deviation of residuals (prediction errors) in the same units as the target variable. On Vertex AI, RMSE is a built-in evaluation metric for regression models, directly quantifying how far predictions deviate from actual values on average.

Exam trap

Google Cloud often tests the distinction between classification and regression metrics, and the trap here is that candidates mistakenly apply classification metrics like F1, precision, or accuracy to a regression problem, not recognizing that RMSE is the standard for continuous prediction error.

How to eliminate wrong answers

Option A is wrong because F1 score is a classification metric that combines precision and recall, not applicable to regression tasks. Option B is wrong because precision measures the proportion of true positive predictions among all positive predictions, used only in classification contexts. Option C is wrong because accuracy is the ratio of correct predictions to total predictions, suitable for classification but meaningless for continuous-valued regression outputs.

259
Multi-Selectmedium

A data science team has trained a large deep learning model using Vertex AI Workbench. They want to deploy it to Vertex AI Prediction for online serving. The model is stored in a custom container with a Python-based web server. Which TWO actions should the team take to ensure optimal performance and cost?

Select 2 answers
A.Configure the model to use a larger batch size for inference.
B.Request GPU machine types for the prediction nodes.
C.Set the container's health check path to '/predict'.
D.Use a global load balancer to distribute traffic across regions.
E.Enable autoscaling with a minimum number of replicas.
AnswersB, E

Deep learning models typically require GPUs for low-latency inference.

Why this answer

B is correct because deep learning models, especially large ones, benefit significantly from GPU acceleration for online inference due to their parallel processing capabilities. Vertex AI Prediction supports GPU machine types, and using them reduces latency and improves throughput for compute-intensive model serving, which is critical for optimal performance.

Exam trap

Google Cloud often tests the misconception that health check endpoints should be the same as the prediction endpoint, but in practice, health checks must be lightweight and separate to avoid false positives and resource exhaustion.

260
MCQmedium

A company deploys a custom TensorFlow model to Vertex AI Endpoint for online predictions. After deployment, prediction latency is consistently high (over 500ms) even under low traffic. The model is CPU-only and the default machine type (n1-standard-2) is used. Which action will most likely reduce prediction latency?

A.Increase the max_replica_count to 10 to allow more parallel requests.
B.Change the machine type to n1-highcpu-16 with a GPU accelerator.
C.Set min_replica_count to 3 to ensure always-on capacity.
D.Increase the batch size in the prediction request.
AnswerB

More CPU cores and GPU can reduce inference latency.

Why this answer

Changing the machine type to n1-highcpu-16 with a GPU accelerator provides significantly more compute resources for the custom TensorFlow model. The n1-highcpu-16 offers 16 vCPUs (vs. 2 in n1-standard-2), which reduces CPU-bound inference time, and adding a GPU accelerates matrix operations common in TensorFlow models, directly reducing latency per request. Option A is wrong because increasing max_replica_count allows more parallel requests but does not improve the processing time of a single request.

Option C is wrong because setting min_replica_count ensures always-on capacity to avoid cold starts, but does not reduce steady-state latency. Option D is wrong because increasing batch size in the prediction request increases throughput by processing multiple inputs together, but does not reduce latency for a single prediction—it may actually increase the time to return a result for a given request.

261
Multi-Selecthard

Which TWO options can help detect model performance degradation in production? (Choose two.)

Select 2 answers
A.Vertex AI Experiments on historical data
B.Cloud Logging for prediction errors
C.Cloud Monitoring custom metrics from serving logs
D.Vertex AI Model Monitoring (drift detection)
E.Using BigQuery to store predictions and compare with ground truth
AnswersD, E

Detects shifts in input distribution that often lead to performance degradation.

Why this answer

The correct answers are D and E. Vertex AI Model Monitoring (D) detects drift in input features, which can indicate model performance degradation. Storing predictions in BigQuery and comparing with ground truth (E) directly measures performance over time.

Option A (Vertex AI Experiments) is for training and experimentation, not for monitoring production models. Option B (Cloud Logging for prediction errors) logs errors but does not directly detect degradation. Option C (Cloud Monitoring custom metrics from serving logs) can monitor infrastructure metrics like latency or error rates, but it does not directly measure model performance degradation.

262
MCQmedium

A data science team is using Vertex AI Feature Store for online serving. They notice that the online serving latency is high. What is the most likely cause?

A.The features are being computed on the fly instead of being precomputed.
B.The feature table has too many rows.
C.The feature values are stored in Cloud Storage.
D.The online store is not configured for high throughput.
E.The serving endpoint is in a different region than the client.
AnswerC

Cloud Storage has high latency for per-request access; online store should use Bigtable or Memorystore.

Why this answer

Vertex AI Feature Store requires feature values to be stored in a low-latency online store (such as a Bigtable or Redis cluster) for serving. When features are stored in Cloud Storage, each online serving request must read from object storage, which introduces significant latency due to network overhead and lack of indexing. This design violates the fundamental architecture of Feature Store, which expects precomputed features in a key-value store optimized for sub-millisecond lookups.

Exam trap

The trap here is that candidates may assume any cloud storage is acceptable for online serving, but the PMLE exam tests the specific architectural requirement that Vertex AI Feature Store must use a low-latency online store (like Bigtable or Redis) for serving, not Cloud Storage.

How to eliminate wrong answers

Option A is wrong because computing features on the fly would increase latency, but the question states the team is using Vertex AI Feature Store for online serving, which implies features are precomputed; the high latency is not due to on-the-fly computation but rather the storage backend. Option B is wrong because the number of rows in a feature table does not directly cause high online serving latency; Vertex AI Feature Store uses indexing and partitioning to handle large tables efficiently. Option D is wrong because the online store's throughput configuration affects capacity under load, not baseline latency; high latency is more likely a storage or network issue.

Option E is wrong because while cross-region latency can add delay, Vertex AI Feature Store endpoints are regional by default, and the question does not indicate a region mismatch; the more direct cause is the storage layer.

263
Multi-Selecthard

A company trains a model using Vertex AI Training and then deploys it to Vertex AI Prediction. They notice that prediction requests fail with 'InvalidArgument: input tensor shape mismatch'. Which THREE are possible causes?

Select 3 answers
A.The model was exported in a different format than supported
B.The batch size in the request is too large
C.The input data types do not match the expected types (e.g., float vs int)
D.The input data has a different number of features than the model expects
E.The serving function does not include the same preprocessing as training
AnswersC, D, E

Data type mismatch causes shape or value errors.

Why this answer

Vertex AI Prediction expects the input tensor data types to exactly match those used during model training. If the model was trained with float32 inputs but the prediction request sends int32 values, the serving infrastructure detects the mismatch and returns an 'InvalidArgument: input tensor shape mismatch' error, as TensorFlow Serving (which underlies Vertex AI Prediction) validates dtype consistency at the graph level.

Exam trap

Google Cloud often tests the misconception that 'shape mismatch' only refers to the number of features or dimensions, when in fact it also encompasses data type mismatches and preprocessing inconsistencies that alter the tensor structure before it reaches the model.

264
MCQeasy

A data scientist wants to automatically generate model documentation that includes model purpose, training data, evaluation results, and intended use. Which tool should they use?

A.Vertex AI Workbench
B.Vertex AI Experiment
C.Cloud Datalab
D.Model Cards in Vertex AI
AnswerD

Model Cards generate automated documentation from model metadata.

Why this answer

Model Cards in Vertex AI provide a standardized framework for documenting models, automatically populated with metadata from Model Registry.

265
MCQmedium

Refer to the exhibit. A data engineer is defining a Vertex AI Pipeline step to train a model. The pipeline fails with an error: "Failed to create vertex ai custom job: Invalid resource name." What is the most likely cause of the error?

A.The container image URI is incorrect; it should be from gcr.io/vertex-ai/training.
B.The output artifact schema is missing the 'type' property.
C.The training_data input should be a Vertex AI Dataset resource, not a simple string.
D.The machine type n1-standard-4 is not supported for Vertex AI training.
AnswerC

The input expects a dataset resource name, not a raw string.

Why this answer

Vertex AI Pipeline steps that use a CustomJob to train a model require the training data input to be a Vertex AI Dataset resource (a Dataset object), not a plain string. When a string is passed instead of a Dataset resource, the pipeline attempts to create a custom job with an invalid resource name, as the backend expects a properly formatted Dataset resource name (e.g., projects/{project}/locations/{location}/datasets/{dataset_id}). This mismatch triggers the 'Invalid resource name' error.

Exam trap

Google Cloud often tests the distinction between raw data inputs (like strings or URIs) and managed Vertex AI resources (like Datasets), leading candidates to overlook that the pipeline component expects a resource object, not a simple string.

How to eliminate wrong answers

Option A is wrong because the container image URI does not need to be from gcr.io/vertex-ai/training; any valid container image URI (e.g., from Artifact Registry or a custom registry) is acceptable as long as it is accessible and correctly formatted. Option B is wrong because the output artifact schema's 'type' property is optional in Vertex AI Pipelines; missing it does not cause an 'Invalid resource name' error, which is specific to resource naming issues. Option D is wrong because n1-standard-4 is a supported machine type for Vertex AI training; the error is about resource naming, not machine type availability.

266
MCQeasy

Your team manages multiple ML models in Vertex AI Model Registry. Each model has several versions deployed to different endpoints for testing and production. You need to implement a process where a model version can be promoted from a staging environment to production only after it has passed automated validation tests and been approved by a designated reviewer. The team uses CI/CD pipelines (Cloud Build) for training and deployment. Currently, model versions are deployed to endpoints using Vertex AI Endpoints with a single traffic split configuration. You want to track promotion requests and enforce approval gates. What should you do?

A.Deploy each model version to a separate endpoint, and use a custom database to track which endpoint is 'production'. Then use migration scripts to switch traffic.
B.Store the model version metadata in a BigQuery table and use a scheduled query to automatically update the endpoint deployment based on validation results.
C.Use Vertex AI Model Registry labels to mark versions as 'staging' or 'production', and create a Cloud Function that checks the label before deploying to the endpoint.
D.Use Vertex AI Model Registry version aliases ('staging', 'production') and configure Cloud Build to trigger a Cloud Run service that handles approval logic, then update the alias upon approval.
AnswerD

Version aliases provide a built-in way to denote environment stages and can be updated programmatically after validation and approval.

Why this answer

Vertex AI Model Registry version aliases (e.g., 'staging', 'production') are designed to track model version lifecycle stages. By integrating Cloud Build to trigger a Cloud Run service that enforces approval logic before updating the alias, you create a clear promotion gate. This approach natively supports tracking promotion requests and enforcing approval without custom databases or manual scripts, aligning with CI/CD best practices.

Exam trap

Google Cloud often tests the distinction between labels (key-value metadata) and aliases (semantic lifecycle tags) in Vertex AI Model Registry, leading candidates to choose Option C because they confuse labels with the built-in promotion mechanism that aliases provide.

How to eliminate wrong answers

Option A is wrong because deploying each model version to a separate endpoint and using a custom database to track 'production' adds unnecessary complexity and operational overhead; Vertex AI already provides version aliases and traffic splitting to manage promotions. Option B is wrong because using a BigQuery table and scheduled queries to update endpoint deployments introduces latency and lacks real-time approval enforcement; it also bypasses the native Model Registry lifecycle management. Option C is wrong because Vertex AI Model Registry labels are key-value metadata not designed for version promotion workflows; they lack the built-in semantics of aliases and would require custom logic to enforce approval gates, whereas aliases directly support staging/production promotion.

267
MCQhard

Refer to the exhibit. The team wants to automatically deploy the best-performing model version to production. They have set up a Cloud Function triggered by Model Registry events. Which alias should they use in the function to get the latest champion?

A.'champion'
B.''
C.'experiment'
D.'latest'
AnswerA

The 'champion' alias conventionally indicates the best-performing production version.

Why this answer

The 'champion' alias is specifically reserved in Vertex AI Model Registry to denote the best-performing model version in production. By configuring the Cloud Function to trigger on the assignment of the 'champion' alias, the team ensures that only the model version promoted as the production champion is automatically deployed, aligning with MLOps best practices for staged model promotion.

Exam trap

Google Cloud often tests the distinction between 'champion' (a production alias) and 'latest' (a version number concept), leading candidates to incorrectly choose 'latest' because they confuse chronological recency with performance-based promotion.

How to eliminate wrong answers

Option B is wrong because an empty string is not a valid alias in MLflow; aliases must be non-empty strings, and using an empty string would cause the function to fail or match no events. Option C is wrong because 'experiment' is not a predefined alias in MLflow Model Registry; it refers to an MLflow Experiment, not a model version alias, and would not trigger on model promotion events. Option D is wrong because 'latest' is not a standard alias in MLflow; while MLflow can retrieve the latest model version by version number, the 'latest' alias does not exist, and using it would not capture the champion promotion event.

268
MCQmedium

A data analyst wants to train a binary classification model in BigQuery ML on a dataset of 10 million rows with 50 features. They need to evaluate the model's performance on a held-out test set. Which sequence of SQL statements should they run?

A.CREATE MODEL then ML.FEATURE_IMPORTANCE
B.ML.TRAIN then ML.EVALUATE
C.CREATE MODEL then ML.PREDICT
D.CREATE MODEL then ML.EVALUATE
AnswerD

CREATE MODEL trains the model, and ML.EVALUATE returns evaluation metrics on the test set.

Why this answer

First, create the model using CREATE MODEL. Then, evaluate it using ML.EVALUATE, which uses the test split defined in the model options. ML.PREDICT is for predictions, not evaluation.

ML.TRAIN is not a valid function; model training is done via CREATE MODEL.

269
MCQmedium

A team is using AI Platform Data Labeling Service to label data for a classification model. They want to allow a labeler from a different team to work on the same dataset. What is the correct way to grant access?

A.Add the labeler's account as a Project Editor on the project
B.Share the Cloud Storage bucket containing the data with the labeler
C.Export the dataset and have the labeler create a new dataset
D.Add the labeler as a participant in the labeling task and assign IAM roles on the dataset
AnswerD

The Data Labeling Service allows adding participants to tasks, and IAM roles control access.

Why this answer

Labeling tasks are shared by granting the labeler role on the dataset resource. Option A is wrong because sharing the entire project gives too much access. Option B is wrong because the Data Labeling Service does not use Cloud Storage ACLs for task access.

Option C is wrong because exporting and reimporting causes duplication.

270
Matchingmedium

Match each model evaluation metric to its use case.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Measure of false positives in classification

Measure of false negatives in classification

Harmonic mean of precision and recall

Root mean squared error for regression

Cross-entropy loss for probabilistic classification

Why these pairings

Accuracy is correctly matched with balanced classes and equal error cost; Precision with minimizing false positives; Recall with minimizing false negatives; F1 Score with balancing precision and recall for imbalanced classes. Option E incorrectly pairs Accuracy with 'when false positives are costly' which is actually the domain of Precision. The main trap is confusing accuracy with precision when dealing with asymmetric costs.

271
MCQeasy

You need to serve a TensorFlow model that has a cold start latency of 20 seconds. The model is used for a real-time application with unpredictable traffic, but occasional bursts require immediate responses. What is the best deployment strategy to minimize both cold start impact and cost?

A.Set min_replica_count to 1 to keep at least one instance always warm.
B.Use a larger machine type to reduce cold start time.
C.Set min_replica_count to 0 and rely on autoscaling to handle bursts.
D.Enable serving on Cloud Run for faster cold start.
AnswerA

One warm instance avoids cold start for initial traffic.

Why this answer

Setting a minimum number of replicas (min_replica_count) ensures that some instances are always warm, avoiding cold start for the first requests. This balances cost and latency. Prewarming requests or increasing target utilization wouldn't help directly.

272
Multi-Selectmedium

Which THREE considerations are important when setting up a shared feature store in Vertex AI Feature Store for multiple teams?

Select 3 answers
A.Enable feature monitoring for data quality and freshness
B.Use separate BigQuery tables for each team's features
C.Implement data governance policies for feature creation and access
D.Create a feature sharing policy to enable cross-team discovery
E.Allow each team to build independent ingestion pipelines
AnswersA, C, D

Monitoring helps maintain trust in the feature store.

Why this answer

Vertex AI Feature Store provides built-in feature monitoring that tracks data quality metrics (e.g., fraction of null values, distribution drift) and freshness (e.g., staleness of feature values). Enabling this monitoring is critical when multiple teams share a feature store to ensure that features remain reliable and up-to-date for downstream models, preventing silent degradation.

Exam trap

Google Cloud often tests the misconception that a shared feature store requires separate physical storage per team (Option B) or fully independent ingestion (Option E), when in reality the value lies in centralization with controlled access and standardized pipelines.

273
MCQhard

A healthcare organization wants to build a model to predict patient readmission risk using structured electronic health record (EHR) data. They need to train a model using SQL in BigQuery, but they also want to leverage AutoML's ability to automatically search for the best architecture. Which approach should they take?

A.Use a pre-built Vision API model via BigQuery ML remote model
B.Use BigQuery ML with the AUTOML_CLASSIFIER model type
C.Use AutoML Tables with Vertex AI and export predictions
D.Use BigQuery ML with a DNN_CLASSIFIER and manual hyperparameter tuning
AnswerB

Why this answer

BigQuery ML's AUTOML_CLASSIFIER model type automatically performs architecture search and hyperparameter tuning, making it ideal for users who want to leverage AutoML capabilities directly within SQL on structured EHR data. This approach avoids manual model selection while staying entirely within BigQuery's SQL interface, which is the stated requirement.

Exam trap

The trap here is that candidates confuse AutoML Tables (a separate Vertex AI service) with BigQuery ML's built-in AUTO model type, assuming they must export data to use AutoML, when in fact BigQuery ML provides AutoML capabilities directly within SQL.

How to eliminate wrong answers

Option A is wrong because Vision API is designed for image analysis, not structured EHR data, and BigQuery ML remote models require a pre-built API endpoint, not AutoML architecture search. Option C is wrong because AutoML Tables (now Vertex AI Tabular) is a separate service that requires exporting data out of BigQuery and does not allow training via SQL in BigQuery. Option D is wrong because DNN_CLASSIFIER with manual hyperparameter tuning contradicts the requirement to 'automatically search for the best architecture' — it requires explicit user-specified parameters and does not perform automated architecture search.

274
Multi-Selectmedium

A manufacturing company uses AutoML Tables to predict equipment failure. They want to improve model performance without increasing manual effort. Which three actions should they take? (Choose THREE.)

Select 3 answers
A.Perform feature engineering using Vertex AI Feature Store.
B.Use BigQuery to aggregate sensor data before training.
C.Enable early stopping to prevent overfitting.
D.Deploy the model on a larger machine type to speed up inference.
E.Increase the training budget (node hours) for AutoML.
AnswersA, C, E

Feature Store helps create and manage features with minimal code.

Why this answer

Vertex AI Feature Store enables feature engineering and reuse without manual effort, allowing the team to create, store, and serve features consistently for AutoML Tables, which can improve model performance by providing more relevant input data. This aligns with the goal of reducing manual work while enhancing model accuracy through automated feature management.

Exam trap

Google Cloud often tests the distinction between actions that improve model performance (like feature engineering and training budget) versus actions that affect deployment or inference speed, leading candidates to mistakenly choose options like deploying on a larger machine type.

275
Multi-Selectmedium

Which TWO practices are important when scaling a prototype ML model to production on Google Cloud? (Choose two.)

Select 2 answers
A.Set up model monitoring for data drift and concept drift
B.Manually engineer features for each training iteration
C.Run the model on a single high-memory Compute Engine VM
D.Use proprietary libraries to maximize performance regardless of lock-in
E.Implement CI/CD pipelines for model training and deployment
AnswersA, E

Monitoring is essential for production model health.

Why this answer

Model monitoring for data drift and concept drift is essential in production ML on Google Cloud. Services like Vertex AI Model Monitoring automatically track feature distributions and prediction quality over time, alerting when the statistical properties of incoming data deviate from the training baseline. Without this, a model's accuracy can silently degrade as real-world data shifts, leading to poor business decisions.

Exam trap

Google Cloud often tests the misconception that production ML can rely on manual processes or single-instance deployments, whereas the correct approach emphasizes automation, monitoring, and scalability through managed services.

276
Multi-Selectmedium

A company needs to reduce inference latency for their online prediction service on Vertex AI. Which two actions would help? (Choose 2)

Select 2 answers
A.Increase the maximum number of replicas
B.Deploy the model on a GPU-enabled machine
C.Enable model quantization via Vertex AI Model Optimization
D.Use a smaller machine type with less memory
E.Enable autoscaling with a lower target CPU utilization
AnswersB, C

GPUs accelerate compute-heavy models, reducing latency.

Why this answer

Deploying the model on a GPU-enabled machine significantly accelerates matrix operations and parallel computations inherent in deep learning inference, directly reducing per-request latency. Option C is correct because model quantization reduces the precision of model weights (e.g., from FP32 to INT8), which decreases memory footprint and speeds up computation, especially on compatible hardware like TPUs or GPUs.

Exam trap

Google often tests the distinction between scaling for throughput (replicas, autoscaling) versus reducing per-request latency (hardware acceleration, model optimization), leading candidates to confuse horizontal scaling with performance optimization.

277
MCQhard

A global retailer has deployed a real-time product recommendation model on Vertex AI Endpoints. The model is a large neural network that runs on a single node with 8 vCPUs and 30 GB memory. Over the past week, the p99 latency has increased from 200ms to 2 seconds, and the error rate has risen to 5%. Cloud Monitoring shows that the endpoint's CPU utilization is consistently near 100%, and memory is at 80%. The ML engineer suspects the model is too large for the node, but model size has not changed. Logs show no increase in request volume (steady at 50 QPS). There are no recent model updates. The engineer has tried to increase the node to 16 vCPUs, but latency decreased only slightly. What is the most likely root cause and the best first step to resolve it?

A.Profile the inference code to identify inefficient operations, such as unnecessary copies or suboptimal batch processing, and optimize the model serving logic.
B.Add more nodes to the endpoint by enabling autoscaling to distribute the load.
C.Retrain the model with a smaller architecture to reduce inference time.
D.Move the model to a machine type with more CPU cores and a GPU to accelerate inference.
AnswerA

The symptoms point to a code-level issue; profiling will reveal bottlenecks.

Why this answer

The p99 latency spike and high CPU utilization despite unchanged model size and request volume indicate a software bottleneck, not a hardware one. Profiling the inference code (Option A) can reveal inefficient operations like unnecessary data copies or suboptimal batch processing that degrade performance on the existing node. Since increasing vCPUs barely helped, the root cause is likely within the serving logic, not the compute capacity.

Exam trap

Google Cloud often tests the misconception that latency and CPU issues are always solved by scaling up hardware, when in fact software inefficiencies in the serving stack are a frequent root cause in ML deployments.

How to eliminate wrong answers

Option B is wrong because adding nodes via autoscaling would not address the root cause of high CPU utilization per node; it would only distribute the load, but each node would still suffer from the same inefficiency, and the steady 50 QPS suggests no need for more nodes. Option C is wrong because retraining with a smaller architecture is a long-term solution that ignores the immediate issue of serving inefficiency; the model size hasn't changed, and the problem is runtime performance, not model accuracy. Option D is wrong because moving to a GPU or more CPU cores treats the symptom (high CPU) rather than the cause; the minimal improvement from doubling vCPUs suggests the bottleneck is in software, not hardware, and a GPU would not fix inefficient code paths.

278
MCQhard

A media company wants to automatically moderate user-uploaded videos by detecting explicit content (e.g., violence, adult material). They need a solution that integrates with their video processing pipeline and scales to millions of videos. Which approach should they take?

A.Use Video Intelligence API with explicit content detection
B.Use AutoML Video to train a custom explicit content detection model
C.Use Natural Language API on video transcripts
D.Use Vision API to analyze each video frame
AnswerA

Video Intelligence API has built-in explicit content detection, suitable for this use case.

Why this answer

Video Intelligence API provides explicit content detection as a pre-built feature. It can analyze video content and flag inappropriate material. AutoML Video would require custom training, which is unnecessary.

Vision API is for images. Natural Language API is for text.

279
MCQmedium

A company wants to implement a retraining trigger for their ML model. They have set up Cloud Monitoring alerts that fire when drift exceeds a threshold. What should be the target of the alert to automatically start a Vertex AI Pipeline for retraining?

A.Vertex AI Model Registry
B.Cloud Storage bucket
C.Cloud Functions HTTP trigger
D.Pub/Sub topic
AnswerD

Correct: Monitoring alert → Pub/Sub → Cloud Function → Vertex AI Pipeline.

Why this answer

Cloud Monitoring alerts can send notifications to Pub/Sub topics. A Pub/Sub message can then trigger a Cloud Function that starts a Vertex AI Pipeline run.

280
MCQhard

A company has a TensorFlow model trained outside of Google Cloud and wants to use it for online predictions on Vertex AI. They have saved the model in SavedModel format. What is the most efficient way to deploy this model?

A.Import the model into BigQuery ML using CREATE MODEL with model_type='TENSORFLOW'
B.Use Vertex AI AutoML Tables to retrain the model
C.Use Cloud Functions to run the model for each prediction request
D.Upload the saved model to Vertex AI and create an endpoint for online predictions
AnswerD

Why this answer

Vertex AI supports importing SavedModel directly without retraining. BigQuery ML can import TensorFlow models but is for batch predictions. Vertex AI Prediction is the standard for online predictions.

AutoML Tables is for training new models.

281
MCQmedium

An ML team is using Vertex AI to train a deep learning model on a large dataset. To reduce costs, they want to use preemptible VMs for training jobs. However, training must complete within a bounded time. Which strategy should they use?

A.Use Cloud TPU instead of GPU; TPUs are not preemptible.
B.Use Vertex AI Training without spot VMs, because preemptible VMs are not supported for training.
C.Use Vertex AI Training with spot VMs and ensure the training code saves checkpoints periodically to Cloud Storage.
D.Use a single powerful non-preemptible VM to avoid interruptions.
AnswerC

Checkpointing allows resuming from the last checkpoint after a preemption, enabling completion.

Why this answer

Vertex AI Training supports spot VMs (preemptible instances) for cost savings, and periodic checkpointing to Cloud Storage ensures that training can resume from the last saved state if a VM is preempted, allowing the job to complete within a bounded time despite interruptions.

Exam trap

A common misconception is that preemptible VMs are not supported in Vertex AI Training, but they are fully supported as spot VMs. The key to bounded-time completion is checkpointing to Cloud Storage for resumability.

How to eliminate wrong answers

Option A is wrong because Cloud TPUs are not inherently non-preemptible; they can also be preempted, and using TPUs does not address the cost-reduction goal with preemptible VMs. Option B is wrong because Vertex AI Training does support spot VMs (preemptible VMs) for training jobs, so the claim that they are not supported is incorrect. Option D is wrong because using a single powerful non-preemptible VM increases costs significantly and does not leverage the cost savings of preemptible instances, while still being susceptible to other failures without checkpointing.

282
MCQmedium

A team is using Vertex AI Feature Store with an online store for low-latency serving. They notice increasing latency during peak hours. The feature data is updated frequently and requires strong consistency. Which online store type should they use?

A.Bigtable online store
B.Optimized online store
C.Cloud Spanner online store
D.Firestore online store
AnswerA

Bigtable online store is designed for high-throughput, low-latency serving with strong consistency, making it suitable for peak-hour loads.

Why this answer

Bigtable online store is recommended for high-throughput, low-latency, and strong consistency requirements.

Exam trap

Candidates often confuse the consistency model of the optimized online store. Contrary to a common misconception, the optimized online store actually provides strong consistency, not eventual consistency. The key differentiator for Bigtable is its ability to handle high throughput and low latency under peak loads, not consistency.

283
Multi-Selecthard

Which THREE actions can help improve the performance of a BigQuery ML model?

Select 3 answers
A.Increase the amount of training data
B.Replace the model with an AutoML model via export
C.Use hypertuning to optimize model parameters
D.Increase the time interval for prediction
E.Perform feature engineering in SQL
AnswersA, C, E

More data often improves model accuracy.

Why this answer

Increasing the amount of training data provides the model with more examples to learn from, which can reduce overfitting and improve generalization, especially for complex patterns. In BigQuery ML, more data often leads to better feature representation and higher accuracy, as long as the data is clean and relevant.

Exam trap

Google Cloud often tests the misconception that exporting a model to AutoML is a valid optimization step, but in reality, BigQuery ML and AutoML are separate services with incompatible model formats and training workflows.

284
MCQmedium

A logistics company wants to classify shipping documents into categories (invoice, packing slip, bill of lading) using a custom model with minimal code. They have labeled training images. Which Google Cloud service is most appropriate?

A.Vertex AI AutoML Tables
B.AutoML Vision for image classification
C.Document AI custom extractor
D.Cloud Vision API with label detection
AnswerB

Why this answer

Document AI provides custom extractors but not classification. AutoML Vision can train a custom image classification model. Vertex AI AutoML Tables is for tabular data, not images.

Cloud Vision API is for pre-built image analysis, not custom classification.

285
Multi-Selecthard

A manufacturing company wants to predict equipment failure using sensor data. The data is highly imbalanced (only 1% failures). They are using a gradient boosted tree model with class weights. The model achieves 0.99 recall but 0.2 precision on the test set. Which two actions should they take to improve precision without significantly hurting recall? (Choose TWO)

Select 2 answers
A.Oversample the minority class using SMOTE
B.Try an anomaly detection algorithm like Isolation Forest
C.Add more features to the model
D.Increase the class weight for the minority class
E.Increase the decision threshold for classifying a positive
AnswersB, E

Anomaly detection is designed for imbalanced data and can improve precision by focusing on outliers.

Why this answer

Anomaly detection algorithms like Isolation Forest are designed to identify rare events by isolating anomalies rather than modeling the majority class, which can improve precision when the minority class is extremely rare (1%). Option E is correct because increasing the decision threshold for classifying a positive reduces false positives by requiring higher confidence for a positive prediction, directly improving precision while only minimally reducing recall if the model's probability scores are well-calibrated.

Exam trap

Google Cloud often tests the misconception that oversampling or adding features always improves model performance, but in highly imbalanced scenarios, these actions can degrade precision without recall benefit, and the correct approach is to adjust the decision threshold or use anomaly detection.

286
MCQmedium

An ML engineer needs to run batch predictions on tens of petabytes of data using a trained model. The data is stored in Cloud Storage. Which service should they choose?

A.Cloud Dataflow with the model as a side input
B.Cloud Dataproc running Spark ML
C.Cloud Run with multiple revisions
D.Vertex AI Batch Prediction
AnswerD

Batch Prediction scales to petabytes and integrates with Cloud Storage.

Why this answer

Vertex AI Batch Prediction is the correct choice because it is a managed service specifically designed for high-throughput, large-scale batch inference on data stored in Cloud Storage. It automatically handles sharding, scaling, and resource management for tens of petabytes, without requiring the engineer to manage infrastructure or write custom distributed processing code.

Exam trap

Google Cloud often tests the distinction between batch inference and data processing pipelines, so the trap here is that candidates confuse Cloud Dataflow (a data processing tool) with a batch prediction service, not realizing that Vertex AI Batch Prediction is the dedicated service for running models on large static datasets.

How to eliminate wrong answers

Option A is wrong because Cloud Dataflow with the model as a side input is optimized for stream and batch data processing pipelines, not for running a trained model's predictions on petabytes of static data; side inputs are not designed for large model inference and would cause severe performance bottlenecks and memory issues. Option B is wrong because Cloud Dataproc running Spark ML requires the engineer to manually manage clusters, configure Spark jobs for inference, and handle scaling, which adds operational overhead and is less efficient than a purpose-built batch prediction service for petabyte-scale data. Option C is wrong because Cloud Run is a serverless container platform for request-driven, low-latency applications, not for batch processing of tens of petabytes; it has a maximum request timeout of 60 minutes and cannot handle the volume or duration required.

287
MCQeasy

A company wants to serve a large XGBoost model that exceeds the 2GB limit for Vertex AI Prediction. What should they do?

A.Reduce model size by removing features
B.Compress the model using gzip and upload
C.Deploy the model on Cloud Run Functions
D.Use a custom container to serve the model
AnswerD

Custom containers have no size limit.

Why this answer

Vertex AI Prediction has a 2GB limit for the model artifact when using pre-built containers. A custom container bypasses this limit because you package the model and serving code into a Docker image, which can be arbitrarily large. This allows you to serve XGBoost models exceeding 2GB without size constraints imposed by the managed serving infrastructure.

Exam trap

Google Cloud often tests the misconception that compression (gzip) or feature reduction can circumvent hard platform limits, when in fact the correct solution is to use a custom container that bypasses the artifact size restriction entirely.

How to eliminate wrong answers

Option A is wrong because removing features reduces model accuracy and does not address the core issue of the 2GB artifact limit; Vertex AI still enforces the limit on the remaining model file. Option B is wrong because gzip compression is not transparent to Vertex AI's pre-built containers—the model must be decompressed at load time, and the 2GB limit applies to the uncompressed artifact, so compression does not bypass the restriction. Option C is wrong because Cloud Run Functions have a 2GB memory limit and are designed for stateless, short-lived functions, not for hosting large ML models; they lack GPU support and are unsuitable for XGBoost inference at scale.

288
Multi-Selecthard

A team is designing a ML pipeline that includes training, evaluation, and conditional deployment. They want to use Vertex AI Pipelines. Which THREE concepts should they use? (Choose three.)

Select 3 answers
A.Artifact types (e.g., Model, Metrics) for passing outputs
B.Manual approval via Cloud Console
C.Cloud SQL for storing intermediate results
D.Pre-built Google Cloud Pipeline Components for training and evaluation
E.dsl.If for conditional execution
AnswersA, D, E

Artifacts enable proper tracking and lineage.

Why this answer

dsl.If for conditionals, Artifacts for passing model/data, and pre-built Vertex AI components for training.

289
Multi-Selecteasy

A company wants to use Vertex AI JumpStart to deploy a pre-trained image classification model and later fine-tune it on their own data. Which TWO statements are true about Vertex AI JumpStart?

Select 2 answers
A.JumpStart requires users to build custom Docker containers for all models
B.JumpStart only supports text-based models
C.JumpStart allows you to fine-tune foundation models like Gemma
D.JumpStart only supports tabular data models
E.JumpStart provides one-click deployment of pre-trained models and ML solutions
AnswersC, E

JumpStart supports fine-tuning of foundation models such as Gemma.

Why this answer

Vertex AI JumpStart supports fine-tuning of foundation models like Gemma, allowing users to adapt pre-trained models to their specific datasets. This capability is built into JumpStart's managed environment, which handles the underlying infrastructure for training and deployment.

Exam trap

In the Google PMLE exam, candidates often mistakenly think that JumpStart only supports a narrow set of model types (e.g., text-only or tabular-only), when in fact it supports a broad range including image, text, and tabular models, and provides one-click deployment and fine-tuning capabilities.

290
Multi-Selectmedium

A machine learning team uses Vertex AI Pipelines to run a multi-step training pipeline. They want to implement a continuous delivery (CD) process where a model is automatically promoted from staging to production only if it passes an evaluation gate. Which TWO actions should they include in their CI/CD pipeline? (Choose two.)

Select 2 answers
A.Use Cloud Functions to periodically check for new model versions and deploy.
B.Store model versions in Vertex AI Model Registry with version aliases (e.g., 'staging', 'production').
C.Manually approve each model version before deployment.
D.Use Cloud Build to trigger the pipeline on new model code commits.
E.Deploy every model version directly to production without evaluation.
AnswersB, D

Correct: Model Registry with aliases enables controlled promotion across environments.

Why this answer

Vertex AI Model Registry supports version aliases like 'staging' and 'production', which allow the CI/CD pipeline to automatically promote a model from staging to production only after it passes the evaluation gate. This enables a controlled, automated CD process without manual intervention.

Exam trap

In Google Cloud, the distinction between automated promotion using model registry aliases (e.g., 'staging', 'production') versus manual approval or polling-based triggers is key. Vertex AI Model Registry aliases enable seamless, event-driven CD without external polling or human intervention.

291
MCQmedium

A team is training a large image classification model using transfer learning from a pre-trained ResNet50. The model will be deployed on mobile devices. They want to fine-tune only the last few layers while keeping the earlier layers frozen. Which approach should they use?

A.Load ResNet50, set trainable=False for all layers, and replace the final dense layer only
B.Load ResNet50, freeze all layers, add new classification layers, and train only the new layers
C.Load ResNet50 from Keras Applications, set trainable=True for all layers, add new layers, and train the entire model
D.Use AutoML Vision to transfer learn without coding
AnswerB

This is the standard fine-tuning approach for resource-constrained deployment.

Why this answer

Transfer learning typically involves loading a pre-trained model (e.g., ResNet50 from Keras Applications) without the top classification layer, freezing all layers, adding new trainable layers on top, and then training. The base model's layers are frozen (trainable=False). After initial training, one can optionally unfreeze some top layers.

292
Multi-Selecthard

A machine learning team is building a feature engineering pipeline using Dataflow. They need to compute features from streaming data and store them in Vertex AI Feature Store for online serving. The features must be updated within 5 seconds of the event. Which TWO services should they combine? (Select 2)

Select 2 answers
A.Cloud Dataflow for stream processing and feature computation
B.Cloud Pub/Sub for event ingestion
C.Cloud Storage for feature store
D.Cloud Functions for feature transformation
E.BigQuery for feature storage
AnswersA, B

Dataflow can compute features in near real-time and write to Feature Store.

Why this answer

Cloud Dataflow is correct because it provides unified stream and batch processing with exactly-once semantics, enabling low-latency feature computation from streaming data. It integrates natively with Vertex AI Feature Store for online serving, ensuring features are updated within the required 5-second SLA.

Exam trap

The exam often tests the distinction between general-purpose storage services (Cloud Storage, BigQuery) and the dedicated online feature store (Vertex AI Feature Store) required for real-time ML serving, leading candidates to pick a storage option instead of the correct streaming ingestion (Pub/Sub) and processing (Dataflow) pair.

293
MCQeasy

A data scientist wants to share a trained model with the team for review before deployment. The model is stored in Vertex AI Model Registry. What is the recommended way to grant the team read access to the model?

A.Grant the IAM role 'roles/aiplatform.admin' to the team members.
B.Export the model as a local file and share it via a shared drive.
C.Grant the IAM role 'roles/aiplatform.viewer' to the team members on the project.
D.Add the team members to the Cloud Storage bucket ACL with 'READER' access.
AnswerC

This role allows viewing models in Vertex AI.

Why this answer

The 'roles/aiplatform.viewer' IAM role grants read-only access to Vertex AI resources, including models in the Model Registry. Option A is incorrect because 'roles/aiplatform.admin' grants full administrative access, which is too broad for read-only needs. Option B is wrong because exporting the model and sharing via a shared drive bypasses version control and security best practices.

Option D is incorrect because Cloud Storage bucket ACLs control access to the underlying bucket, not to the Vertex AI Model Registry; the model is managed through Vertex AI IAM.

294
MCQhard

You have a model that predicts equipment failure. The model is retrained every week with new data. You notice that the model's precision is stable but recall drops suddenly. Which monitoring strategy would best help you understand the cause?

A.Monitor feature drift for all input features.
B.Monitor the distribution of the model's predicted probabilities and compare to the empirical failure rate over time.
C.Compare the number of predictions per day with previous weeks.
D.Check the request latency at the endpoint.
AnswerB

This helps detect concept drift: if predicted probabilities shift relative to actual outcomes, recall may drop.

Why this answer

A drop in recall (more false negatives) while precision stays stable suggests the model's decision threshold may be misaligned with the current data distribution. Monitoring the distribution of predicted probabilities against the empirical failure rate over time directly reveals if the model's confidence calibration has shifted, indicating concept drift or a change in the underlying failure rate that requires threshold recalibration.

Exam trap

Google Cloud often tests the distinction between data drift (feature drift) and concept drift (label/prior shift), and the trap here is that candidates assume any performance degradation must be due to feature drift, ignoring that a stable precision with dropping recall specifically signals a threshold or label distribution issue best diagnosed via probability calibration monitoring.

How to eliminate wrong answers

Option A is wrong because monitoring feature drift for all input features is too broad and may not directly explain a recall drop; feature drift can cause both precision and recall to change, but a stable precision with dropping recall points to a threshold or label distribution issue, not necessarily input feature drift. Option C is wrong because comparing the number of predictions per day with previous weeks only detects volume anomalies (e.g., traffic spikes), which do not affect recall directly and would not explain a systematic increase in false negatives. Option D is wrong because checking request latency at the endpoint measures infrastructure performance (e.g., network delays, compute bottlenecks), which has no causal link to model prediction quality like recall degradation.

295
MCQhard

A financial institution needs to extract structured data from scanned PDFs of loan applications, including text fields and tables. They require a human review step for high-risk applications. Which Google Cloud service and configuration should they use?

A.Document AI with a form parser processor and enable Human-in-the-Loop for high-risk applications
B.Document AI with a custom extractor processor and use Cloud Functions for human review
C.Cloud Vision API to detect text and tables, then send to Cloud Dataflow for processing
D.Vertex AI AutoML Vision to train a custom model for document parsing
AnswerA

Why this answer

Document AI provides specialised processors for document parsing (including form parser). Human-in-the-Loop (HITL) is a feature of Document AI that allows human review for high-risk documents. Cloud Vision API is for image analysis, not document parsing.

Vertex AI AutoML Vision is for image classification/object detection.

296
MCQmedium

A team needs to serve a PyTorch model for production inference with strict latency requirements (p99 < 100ms). The model has dynamic control flow and uses custom kernels compiled with torch.jit. Which serving approach should they recommend?

A.Build a custom container with PyTorch JIT and deploy it on Vertex AI Prediction.
B.Convert the model to TensorFlow SavedModel and serve it on Vertex AI Prediction with TensorFlow Serving.
C.Use Cloud Functions with a PyTorch wrapper to handle inference requests.
D.Deploy the model on Vertex AI Prediction using the prebuilt PyTorch container.
AnswerA

Custom container allows fine-grained optimization and inclusion of custom kernels.

Why this answer

A custom container with PyTorch JIT allows full control over model execution, including dynamic control flow and custom kernels, and can be deployed on Vertex AI Prediction, which supports custom containers for low-latency inference. Option B is wrong because converting to TensorFlow SavedModel would lose PyTorch-specific features like custom JIT kernels. Option C is wrong because Cloud Functions have cold start latency and are not suited for low-latency production inference at scale.

Option D is wrong because the prebuilt PyTorch container may not support custom JIT kernels or dynamic control flow optimally.

297
MCQmedium

A data science team has trained a custom TensorFlow model for real-time fraud detection. They need to deploy it on Vertex AI with minimal latency and support for multiple concurrent requests. The model requires a GPU for inference. Which machine type should they choose for the Vertex AI endpoint?

A.n2-standard-8
B.n1-standard-4 with NVIDIA T4
C.e2-standard-4
D.n1-highmem-4
AnswerB

n1-standard machines support GPU attachment, such as T4, which is suitable for inference.

Why this answer

The n1-standard-4 with NVIDIA T4 provides the GPU acceleration required for real-time inference, while the n1 machine family supports GPU attachments on Vertex AI. The T4 GPU is optimized for low-latency inference workloads, and the n1-standard-4 offers sufficient CPU and memory for serving a custom TensorFlow model with multiple concurrent requests.

Exam trap

Google Cloud often tests the misconception that any machine type can be used with a GPU on Vertex AI, but only specific families (n1, a2, g2) support GPU attachments, and the question explicitly requires a GPU for inference.

How to eliminate wrong answers

Option A is wrong because n2-standard-8 is a general-purpose machine type that does not support GPU attachments on Vertex AI; it lacks the necessary GPU capability for inference. Option C is wrong because e2-standard-4 is a cost-optimized machine type that does not support GPU attachments, making it unsuitable for GPU-required inference. Option D is wrong because n1-highmem-4, while part of the n1 family that can attach GPUs, is optimized for memory-intensive workloads rather than balanced compute and GPU inference, and it does not include a GPU by default; the question specifies a GPU is required, so the machine type must explicitly include or support a GPU like the T4.

298
MCQmedium

A team is using Vertex AI Feature Store to manage features for training and serving. They want to monitor the freshness of the features (i.e., how recently each feature was updated). Which approach should they take?

A.Use Cloud Logging to track feature updates
B.Use Vertex AI Feature Store's monitoring dashboard
C.Create a custom Cloud Monitoring metric based on feature ingestion timestamps
D.Use Cloud Audit Logs to monitor API calls
AnswerC

By exporting timestamps as custom metrics, the team can monitor feature freshness in Cloud Monitoring and set alerts.

Why this answer

Vertex AI Feature Store does not provide a built-in monitoring dashboard for feature freshness. To track how recently each feature was updated, you must create a custom Cloud Monitoring metric based on feature ingestion timestamps, which allows you to define alerting thresholds and visualize freshness over time.

Exam trap

The trap here is that candidates assume Vertex AI Feature Store has a built-in freshness monitoring dashboard, but it only provides monitoring for distribution drift and skew, not for update timestamps.

How to eliminate wrong answers

Option A is wrong because Cloud Logging captures log entries but is not designed for real-time metric-based monitoring of feature freshness; it would require parsing logs and creating custom metrics, which is less direct than using Cloud Monitoring. Option B is wrong because Vertex AI Feature Store's monitoring dashboard focuses on feature value distribution drift and skew, not on freshness or update timestamps. Option D is wrong because Cloud Audit Logs record API calls for compliance and security, not the actual data update timestamps needed to measure feature freshness.

299
MCQhard

You have an edge device with limited compute resources. You need to deploy a deep learning model for real-time inference. Which model compression technique should you apply to reduce the model size and latency with minimal accuracy loss?

A.Pruning only
B.Post-training quantization to INT8
C.Knowledge distillation only
D.Use full precision FP32 to maintain accuracy
AnswerB

Reduces model size by 4x and speeds up inference on edge hardware.

Why this answer

Post-training quantization (e.g., INT8) is the easiest and most effective method for reducing model size and latency on edge devices. Quantization-aware training can yield better accuracy but is more complex. Pruning and distillation also help, but quantization often gives the best trade-off.

300
MCQeasy

A data scientist wants to log prediction inputs and outputs for model monitoring. Which Google Cloud service is best suited for this?

A.Cloud Monitoring
B.Cloud Storage
C.Cloud Logging
D.BigQuery
AnswerC

Cloud Logging can ingest and store prediction logs.

Why this answer

Cloud Logging is the best choice because it is designed to ingest, store, and analyze log data, including custom log entries from applications. The data scientist can use the Cloud Logging API to write structured log entries containing prediction inputs and outputs, then query them using Logs Explorer or export them for further analysis. This aligns with the requirement to log prediction inputs and outputs for model monitoring, as Cloud Logging provides a centralized, scalable, and queryable log management service.

Exam trap

Google Cloud often tests the distinction between logging (Cloud Logging) and monitoring (Cloud Monitoring), where candidates mistakenly choose Cloud Monitoring because they think 'monitoring' includes logging, but Cloud Monitoring is for metrics and alerts, not for storing and querying log data.

How to eliminate wrong answers

Option A is wrong because Cloud Monitoring is focused on collecting metrics, uptime checks, and alerting on system performance (e.g., CPU utilization, latency), not on storing and querying arbitrary log data like prediction inputs and outputs. Option B is wrong because Cloud Storage is an object storage service for unstructured data (e.g., images, backups), not a log management service; it lacks native querying capabilities for log entries and is not designed for real-time log ingestion and search. Option D is wrong because BigQuery is a serverless data warehouse for analytical queries on large structured datasets, not a log management service; while it can store logs exported from Cloud Logging, it is not the primary service for ingesting and querying log entries in real time.

Page 3

Page 4 of 14

Page 5