GCP-PMLE Sample Questions

GCP-PMLE Sample Questions & Answers

Building end-to-end ML pipelines, automating retraining, and tracking metadata carries the heaviest weighting, built on BigQuery ML and AutoML, exploring data and tracking experiments, training models on the right hardware, serving them at scale, and monitoring risks.

Launch the full GCP-PMLE simulator →

Showing 10 of 20 free samples.

  1. Question 1

    You are developing ML models with Gemini Enterprise Agent Platform (formerly Vertex AI) for image segmentation on CT scans. You frequently update your model architectures based on the newest available research papers, and have to rerun training on the same dataset to benchmark their performance. You want to minimize computation costs and manual intervention while having version control for your code. What should you do?

    Show answer & explanation

    Correct answer: C

    A Cloud Build trigger connected to your Git repository (for example, GitHub) starts a build only when new code is pushed, so retraining runs automatically (no manual intervention), only when the architecture actually changes (minimal compute cost), and the code is version-controlled in Git. Submitting jobs manually with gcloud requires intervention, Cloud Storage is not version control, and a daily Composer sensor adds cost and polling overhead.

  2. Question 2

    You work for an advertising company and want to understand the effectiveness of your company’s latest advertising campaign. You have streamed 500 MB of campaign data into BigQuery. You want to query the table, and then manipulate the results of that query with a pandas dataframe in a Gemini Enterprise Agent Platform Workbench instance (formerly Vertex AI Workbench). What should you do?

    Show answer & explanation

    Correct answer: D

    In an Agent Platform Workbench instance the BigQuery client library is preinstalled, and the %%bigquery magic runs the SQL query, converts the results to a pandas DataFrame and can save it to a variable in one step (using the BigQuery Storage API for fast downloads). Exporting to CSV via Drive, local download or Cloud Storage adds unnecessary manual steps.

  3. Question 3

    You are developing a Kubeflow Pipelines (KFP) pipeline that runs on Gemini Enterprise Agent Platform Pipelines (formerly Vertex AI Pipelines). The first step in the pipeline is to issue a query against BigQuery. You plan to use the results of that query as the input to the next step in your pipeline. You want to achieve this in the easiest way possible. What should you do?

    Show answer & explanation

    Correct answer: B

    Google Cloud Pipeline Components provide a prebuilt BigqueryQueryJobOp that launches a BigQuery query job, waits for it to finish and exposes the result as a pipeline artifact for downstream steps. Reusing a prebuilt component is the easiest option; writing your own script or custom component adds code to build and maintain, and running the query manually in the console is not part of the automated pipeline.

  4. Question 4

    You are building a model to predict daily temperatures. You split the data randomly and then transformed the training and test datasets. Temperature data for model training is uploaded hourly. During testing, your model performed with 97% accuracy; however, after deploying to production, the model’s accuracy dropped to 66%. How can you make your production model more accurate?

    Show answer & explanation

    Correct answer: B

    Temperature readings are a time series. Readings an hour apart are highly correlated, so a random split puts near-copies of the test-period data into the training data. This data leakage made the test accuracy (97%) look much better than the real accuracy in production (66%). Google's guidance is to use a chronological split for time-series tasks. It also says to compute transformation statistics (for normalization or bucketizing) from the training split only and apply them to the validation and test splits. Applying transformations before splitting is itself a source of leakage. Adding more test data, or normalizing the training and test data as separate steps, doesn't remove the leakage that the random split causes.

  5. Question 5

    You need to train a computer vision model that predicts the type of government ID present in a given image using a GPU-powered virtual machine on Compute Engine. You use the following parameters:

    • Optimizer: SGD
    • Image shape = 224*224
    • Batch size = 64
    • Epochs = 10
    • Verbose = 2

    During training you encounter the following error: ResourceExhaustedError: Out Of Memory (OOM) when allocating tensor. What should you do?

    Show answer & explanation

    Correct answer: C

    A ResourceExhaustedError (OOM) means the tensors for one training step do not fit in GPU memory. Activation memory scales with the batch size, so reducing the batch size is the standard fix that keeps the model and input resolution unchanged. Changing the optimizer or learning rate does not materially change memory use, and reducing the image shape would change the model input and can hurt accuracy.

  6. Question 6

    You work for a social media company. You need to detect whether posted images contain cars. Each training example is a member of exactly one class. You have trained an image classification neural network, deployed it to a Gemini Enterprise Agent Platform (formerly Vertex AI) endpoint, and ran a model evaluation against labeled test data. You notice that the precision is lower than your business requirements allow. How should you adjust the model’s final layer softmax threshold to increase precision?

    Show answer & explanation

    Correct answer: C

    Precision = TP / (TP + FP). To increase precision you raise the classification threshold so that fewer borderline images are labeled "car", which reduces false positives. The trade-off is that more true cars fall below the threshold, so false negatives increase and recall decreases. Increasing recall, increasing false positives or decreasing false negatives all move in the opposite direction.

  7. Question 7

    Your team is building an application for a global bank that will be used by millions of customers. You built a forecasting model that predicts customers’ account balances 3 days in the future. Your team will use the results in a new feature that will notify users when their account balance is likely to drop below $25. How should you serve your predictions?

    Show answer & explanation

    Correct answer: D

    Firebase Cloud Messaging (FCM) is designed to send notifications to individual users and devices at very large scale. Register each user with FCM, and send that user a message when the model predicts that their own balance will drop below $25. A Pub/Sub topic for each user doesn't scale to millions of customers. A project can have at most 10,000 topics, and you can't request an increase to this limit. This is true whether a Cloud Run function or an App Engine app sends the notifications. Sending a notification when the average of all users' predictions drops below $25 ignores each user's own forecast.

  8. Question 8

    You are working on a Neural Network-based project. The dataset provided to you has columns with different ranges. While preparing the data for model training, you discover that gradient optimization is having difficulty moving weights to a good solution. What should you do?

    Show answer & explanation

    Correct answer: A

    When numeric features have very different ranges, gradient descent takes uneven steps and struggles to converge. Normalization (for example, z-score or scaling to a common range) puts features on similar scales so gradient optimization can move the weights to a good solution. Combining features, removing features with missing values or changing the split do not address the scale mismatch.

  9. Question 9

    You work for a large technology company that wants to modernize their contact center. You have been asked to develop a solution to classify incoming calls by product so that requests can be more quickly routed to the correct support team. You have already transcribed the calls using the Speech-to-Text API. You want to minimize data preprocessing and development time. On Gemini Enterprise Agent Platform (formerly Vertex AI), how should you build the model?

    Show answer & explanation

    Correct answer: A

    A Gemini model on Gemini Enterprise Agent Platform can classify raw transcript text by product with prompting, and supervised tuning on your labeled transcripts improves accuracy when needed, with no feature engineering or model code. (This replaces the retired AutoML Natural Language / AutoML text products.) The Cloud Natural Language API cannot be trained on your product categories, and building a custom training job or a keyword-extraction pipeline requires far more preprocessing and development time.

  10. Question 10

    Your team has been tasked with creating an ML solution in Google Cloud to classify support requests for one of your platforms. You analyzed the requirements and decided to use TensorFlow to build the classifier so that you have full control of the model’s code, serving, and deployment. You will use Kubeflow pipelines for the ML platform. To save time, you want to build on existing resources and use managed services instead of building a completely new model. How should you build the classifier?

    Show answer & explanation

    Correct answer: A

    Transfer learning starts from an established, pre-trained TensorFlow text classification model and fine-tunes it on your own labeled support requests, which saves time while keeping full control of the TensorFlow code, serving and deployment on managed custom training. Using the model as-is ignores your classes, and the Natural Language API or a tuned Gemini model does not give you control of the model code.

Ready for the real thing?

The full GCP-PMLE simulator has every exam-style question, timed mode, and instant scoring.