Free Professional-Machine-Learning-Engineer Practice Test Questions and Answers (2026)

View Mode
Q: 1
You work as an analyst at a large banking firm. You are developing a robust, scalable ML pipeline to train several regression and classification models. Your primary focus for the pipeline is model interpretability. You want to productionize the pipeline as quickly as possible What should you do?
Options
42 comments in the community discussion
5
Option D
3
Option D
Q: 2
You work for a bank You have been asked to develop an ML model that will support loan application decisions. You need to determine which Vertex Al services to include in the workflow You want to track the model's training parameters and the metrics per training epoch. You plan to compare the performance of each version of the model to determine the best model based on your chosen metrics. Which Vertex Al services should you use?
Options
45 comments in the community discussion
4
Option C. had something like this in a mock and C covered the tracking and comparison parts.
4
Option C is right here. ML Metadata logs the artifacts, Experiments helps with model version comparisons, and TensorBoard shows metrics per epoch. Pretty sure this trio covers exactly what's needed for tracking and evaluation.
Q: 3
You developed a custom model by using Vertex Al to forecast the sales of your company s products based on historical transactional data You anticipate changes in the feature distributions and the correlations between the features in the near future You also expect to receive a large volume of prediction requests You plan to use Vertex Al Model Monitoring for drift detection and you want to minimize the cost. What should you do?
Options
25 comments in the community discussion
1
Option D, but wow Google sure makes you jump through hoops for config tuning. Sampling rate near 0 keeps the bills reasonable even if you have a ton of data, and attributions still give proper drift signals. If budget is the main concern, pretty sure this is it.
1
Makes sense to me, D. Lower sampling rate is the biggest saver for cost with lots of requests.
Q: 4
You work for a pet food company that manages an online forum Customers upload photos of their pets on the forum to share with others About 20 photos are uploaded daily You want to automatically and in near real time detect whether each uploaded photo has an animal You want to prioritize time and minimize cost of your application development and deployment What should you do?
Options
29 comments in the community discussion
1
I keep going back and forth but leaning mostly A. Cloud Vision API does the job with almost zero setup, which is what they're asking for. If it was about custom accuracy or animal breeds, I'd reconsider. Not positive but seems safest for time/cost. Anyone see a case where D would truly be faster?
1
A , Cloud Vision API does the heavy lifting with almost no setup. No model training or data labeling needed, so you save loads of time and money. Pretty sure that's what they're looking for here.
Q: 5
You recently developed a deep learning model using Keras, and now you are experimenting with different training strategies. First, you trained the model using a single GPU, but the training process was too slow. Next, you distributed the training across 4 GPUs using tf.distribute.MirroredStrategy (with no other changes), but you did not observe a decrease in training time. What should you do?
Options
37 comments in the community discussion
4
Option D is what I'd pick. With multiple GPUs and MirroredStrategy, you usually need to up the batch size so each GPU can get enough data to process in parallel, otherwise training time won't drop. Happened to me before in practice, but open if anyone disagrees.
2
Probably D. If you just switch to MirroredStrategy but keep the same (small) batch size, each GPU isn't used efficiently so no real speed gain. Increasing the batch size lets GPUs process more data in parallel. Not 100% sure if dataset sharding is a trap here, but D is what I see in similar questions.
Q: 6
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 224x224 • 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?
Options
37 comments in the community discussion
1
You’re right, batch size is the main thing affecting GPU memory during training. B
1
B tbh, since batch size eats up a lot of GPU memory fast. D might be tempting but you'd lose image detail for IDs, so not ideal here. Saw a similar question in practice and B was correct. Trap is thinking optimizer or learning rate helps!
Q: 7
Your data science team has requested a system that supports scheduled model retraining, Docker containers, and a service that supports autoscaling and monitoring for online prediction requests. Which platform components should you choose for this system?
Options
44 comments in the community discussion
5
B. not A. App Engine doesn't fully support containers or ML monitoring, pretty sure B is the right stack here.
3
Makes sense to go with B since only Vertex AI Prediction supports autoscale and Docker containers together.
Q: 8
Your team has a model deployed to a Vertex Al endpoint You have created a Vertex Al pipeline that automates the model training process and is triggered by a Cloud Function. You need to prioritize keeping the model up-to-date, but also minimize retraining costs. How should you configure retraining'?
Options
44 comments in the community discussion
5
D . Feature drift is directly tied to data changes that impact model accuracy, so retraining only triggers when it's actually needed. Costs stay low since you're not retraining just on a set schedule or for random anomalies. Agree?
3
Option D not B. Only D triggers on real feature drift so you don't retrain for no reason.
Q: 9
You are developing a Kubeflow pipeline on Google Kubernetes Engine. 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?
Options
35 comments in the community discussion
2
D here, but honestly C looks ok too if you prefer custom stuff. Pretty sure D is quicker for most cases though.
1
D
Q: 10
You are experimenting with a built-in distributed XGBoost model in Vertex AI Workbench user- managed notebooks. You use BigQuery to split your data into training and validation sets using the following queries: CREATE OR REPLACE TABLE ‘myproject.mydataset.training‘ AS (SELECT * FROM ‘myproject.mydataset.mytable‘ WHERE RAND() < 0.8); CREATE OR REPLACE TABLE ‘myproject.mydataset.validation‘ AS (SELECT * FROM ‘myproject.mydataset.mytable‘ WHERE RAND() < 0.2); After training the model, you achieve an area under the receiver operating characteristic curve (AUC ROC) value of 0.8, but after deploying the model to production, you notice that your model performance has dropped to an AUC ROC value of 0.65. What problem is most likely occurring?
Options
31 comments in the community discussion
6
Wait, but doesn’t the RAND() approach here mean some records show up in both training and validation tables, not necessarily every record? Feels like partial overlap (option C) is the bigger issue, especially since D would only ever happen if you got super unlucky with a tiny dataset. Am I missing something?
5
C . D is a trap, it's not every record that's duplicated, it's just some overlap because RAND() is used twice per row. I've seen this come up on similar questions.
Q: 11
You work at a subscription-based company. You have trained an ensemble of trees and neural networks to predict customer churn, which is the likelihood that customers will not renew their yearly subscription. The average prediction is a 15% churn rate, but for a particular customer the model predicts that they are 70% likely to churn. The customer has a product usage history of 30%, is located in New York City, and became a customer in 1997. You need to explain the difference between the actual prediction, a 70% churn rate, and the average prediction. You want to use Vertex Explainable AI. What should you do?
Options
14 comments in the community discussion
3
B . Some folks go for C but integrated gradients is mostly for images and text, not tabular data like churn. Easy trap there.
1
Sampled Shapley values (B) is what Vertex Explainable AI uses for feature attribution on tabular data. Integrated gradients aren't supported in this case, that's more for images or text. Pretty sure B is the right move here.
Q: 12
You are developing ML models with Al Platform 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?
Options
9 comments in the community discussion
3
C . Cloud Build triggers off code pushes so you get auto retraining and solid version control, fits the use case way better than Composer polling or doing stuff manually. Anyone disagree? Maybe I'm missing a Composer trick but don't think so.
1
Gotta be C here. Cloud Build with Source Repos gives you real version control and automates the retrain as soon as code's updated, saves time and cuts costs. Composer (D) doesn't track code changes directly. Pretty sure C matches what's needed but open if someone sees a use case for D.
Q: 13
You work for the AI team of an automobile company, and you are developing a visual defect detection model using TensorFlow and Keras. To improve your model performance, you want to incorporate some image augmentation functions such as translation, cropping, and contrast tweaking. You randomly apply these functions to each training batch. You want to optimize your data processing pipeline for run time and compute resources utilization. What should you do?
Options
10 comments in the community discussion
5
A. Official TensorFlow docs or practice labs usually push for tf.Data pipeline for this type of augmentation.
5
A . Had something like this in a mock and tf.Data pipelines are way more efficient for augmentation since they use native TensorFlow ops and support optimizations like parallel mapping and prefetching. Keras generators are decent for small stuff but don't scale or integrate as well, especially with distributed training
Q: 14
You recently deployed a scikit-learn model to a Vertex Al endpoint You are now testing the model on live production traffic While monitoring the endpoint. you discover twice as many requests per hour than expected throughout the day You want the endpoint to efficiently scale when the demand increases in the future to prevent users from experiencing high latency What should you do?
Options
7 comments in the community discussion
1
B . Setting minReplicaCount handles the baseline traffic and lets autoscaling keep up when demand jumps. Seen similar advice for Vertex AI endpoints before, seems like the best fit here.
Option C could work too. Raising target utilization in autoscalingMetricSpecs can help use resources more efficiently during spikes, and I saw similar advice in some official guides and Vertex AI practice labs. Not 100 percent sure though, maybe B is safer?
Q: 15
You developed a custom model by using Vertex Al to predict your application's user churn rate You are using Vertex Al Model Monitoring for skew detection The training data stored in BigQuery contains two sets of features - demographic and behavioral You later discover that two separate models trained on each set perform better than the original model You need to configure a new model mentioning pipeline that splits traffic among the two models You want to use the same prediction-sampling-rate and monitoring-frequency for each model You also want to minimize management effort What should you do?
Options
6 comments in the community discussion
4
Makes sense to go with D since deploying both models to the same endpoint cuts down on management overhead. Using separate training tables fits how the models need to be trained, and the monitoring-config-from param covers model IDs. Pretty sure that's what Google expects here. Agree?
1
Its D, since both models can share an endpoint and a single monitoring job if you use the right monitoring-config settings. This fits what I've seen in exam reports and official doc reviews. Splitting up the data into separate tables is key for proper training. Official documentation and Google's own sample pipelines a
Q: 16
You need to develop an image classification model by using a large dataset that contains labeled images in a Cloud Storage Bucket. What should you do?
Options
5 comments in the community discussion
4
C . AutoML with managed datasets is built for this exact use case and no code needed. B is tempting but only if you need custom pipelines or advanced logic, which the question doesn't mention. Anyone else see this on any practice sets?
1
Its C if "best" means lowest effort, but is there a code requirement that would make A or B more suitable?
Q: 17
You have created a Vertex Al pipeline that includes two steps. The first step preprocesses 10 TB data completes in about 1 hour, and saves the result in a Cloud Storage bucket The second step uses the processed data to train a model You need to update the model's code to allow you to test different algorithms You want to reduce pipeline execution time and cost, while also minimizing pipeline changes What should you do?
Options
12 comments in the community discussion
1
Not sure about that, pretty sure A is better here. If you add a pipeline parameter and step to decide whether to preprocess or not, you can skip preprocessing if data hasn't changed and just go straight to training. That way, you're not redoing heavy ETL work every time, and the change is minimal. But open to other
Caching on Vertex AI lets you reuse the output from the preprocessing step, so you only rerun it if the inputs or code change. That way, when testing different algorithms in training, you skip the big ETL re-do and save both time and compute cost. Pretty sure D makes the most sense here since it keeps pipeline changes
Q: 18
You are training an ML model on a large dataset. You are using a TPU to accelerate the training process You notice that the training process is taking longer than expected. You discover that the TPU is not reaching its full capacity. What should you do?
Options
6 comments in the community discussion
5
D . When the TPU isn't maxed out, increasing batch size lets it process more data in parallel and really use all those TPU cores. Pretty sure that's what Google wants here.
Isn't there a catch though? If the model has ops that aren't batch friendly or you're bottlenecked on data input, even cranking up batch size (D) won't help. Anyone else seen real-world TPUs not scale for this reason?
Q: 19
You are an ML engineer at a bank. You have developed a binary classification model using AutoML Tables to predict whether a customer will make loan payments on time. The output is used to approve or reject loan requests. One customer’s loan request has been rejected by your model, and the bank’s risks department is asking you to provide the reasons that contributed to the model’s decision. What should you do?
Options
7 comments in the community discussion
1
A , because the question is about explaining a single customer's rejection, not overall model behavior. B and C are about global stats, which isn't what risk wants here. D sounds like a trap, way too manual. Open to other views if I'm missing something.
Makes sense to me, it's A. Local feature importance gives the why for that customer's outcome, not just the model overall.
Q: 20
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?
Options
8 comments in the community discussion
Definitely B. Normalizing gets all your inputs on similar scales which makes gradient descent work way better, especially with neural nets. Without normalization, bigger ranged features can totally mess up convergence. Pretty sure this is what Google's looking for here but open to debate if anyone disagrees.
Yeah, normalization is the move here. B is correct since getting all features on a similar scale will help gradient descent optimize smoothly. Seen this in a couple similar practice sets, pretty sure that's the intended fix.
Question 1 of 20

Premium Access Includes

  • Quiz Simulator
  • Exam Mode
  • Progress Tracking
  • Question Saving
  • Flash Cards
  • Drag & Drops
  • 3 Months Access
  • PDF Downloads
Get Premium Access
Scroll to Top