Google

Professional Machine Learning Engineer practice test

Practice with 15 free Testara sample questions, or choose paid access to the full 305-question bank.

Provider
Google
Question bank
305
Free sample
15 questions
Publisher
Testara

About this practice material

This page covers Testara's practice question bank for Professional Machine Learning Engineer, a certification listed under Google. Questions use original, exam-style scenarios and are not questions from the official certification exam.

Testara is an independent practice platform and is not affiliated with, endorsed by, or authorized by Google. The certification credential is issued by Google, not Testara. Certification and provider names belong to their respective owners.

Start practicing

The guest demo does not save an attempt. Sign in before buying access.

Try 15 questions free

Available without signing in

Free sample questions

These 15 questions and their explanations are server-rendered so you can inspect the material before opening the interactive demo.

  1. Question 1 · 1

    You are building an ML model to detect anomalies in real-time sensor data. You will use Pub/Sub to handle incoming requests. You want to store the results for analytics and visualization. How should you configure the pipeline?

    Choose one answer.

    • 1 = Dataflow, 2 = AI Platform, 3 = BigQuery
    • 1 = DataProc, 2 = AutoML, 3 = Cloud Bigtable
    • 1 = BigQuery, 2 = AutoML, 3 = Cloud Functions
    • 1 = BigQuery, 2 = AI Platform, 3 = Cloud Storage
  2. Question 2 · 1

    Your team needs to build a model that predicts whether images contain a driver's license, passport, or credit card. The data engineering team already built the pipeline and generated a dataset composed of 10,000 images with driver's licenses, 1,000 images with passports, and 1,000 images with credit cards. You now have to train a model with the following label map: [`˜drivers_license', `˜passport', `˜credit_card']. Which loss function should you use?

    Choose one answer.

    • Categorical hinge
    • Binary cross-entropy
    • Categorical cross-entropy
    • Sparse categorical cross-entropy
  3. Question 3 · 1

    You are an ML engineer at a manufacturing company. You need to build a model that identifies defects in products based on images of the product taken at the end of the assembly line. You want your model to preprocess the images with lower computation to quickly extract features of defects in products. Which approach should you use to build the model?

    Choose one answer.

    • Reinforcement learning
    • Recommender system
    • Recurrent Neural Networks (RNN)
    • Convolutional Neural Networks (CNN)
  4. Question 4 · 1

    You are developing an ML model intended to classify whether X-ray images indicate bone fracture risk. You have trained a ResNet architecture on Vertex AI using a TPU as an accelerator, however you are unsatisfied with the training time and memory usage. You want to quickly iterate your training code but make minimal changes to the code. You also want to minimize impact on the model’s accuracy. What should you do?

    Choose one answer.

    • Reduce the number of layers in the model architecture.
    • Reduce the global batch size from 1024 to 256.
    • Reduce the dimensions of the images used in the model.
    • Configure your model to use bfloat16 instead of float32.
  5. Question 5 · 1

    You have successfully deployed to production a large and complex TensorFlow model trained on tabular data. You want to predict the lifetime value (LTV) field for each subscription stored in the BigQuery table named subscription. subscriptionPurchase in the project named my-fortune500-company-project. You have organized all your training code, from preprocessing data from the BigQuery table up to deploying the validated model to the Vertex AI endpoint, into a TensorFlow Extended (TFX) pipeline. You want to prevent prediction drift, i.e., a situation when a feature data distribution in production changes significantly over time. What should you do?

    Choose one answer.

    • Implement continuous retraining of the model daily using Vertex AI Pipelines.
    • Add a model monitoring job where 10% of incoming predictions are sampled 24 hours.
    • Add a model monitoring job where 90% of incoming predictions are sampled 24 hours.
    • Add a model monitoring job where 10% of incoming predictions are sampled every hour.
  6. Question 6 · 1

    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?

    Choose one answer.

    • Distribute the dataset with tf.distribute.Strategy.experimental_distribute_dataset
    • Create a custom training loop.
    • Use a TPU with tf.distribute.TPUStrategy.
    • Increase the batch size.
  7. Question 7 · 1

    You work for a gaming company that has millions of customers around the world. All games offer a chat feature that allows players to communicate with each other in real time. Messages can be typed in more than 20 languages and are translated in real time using the Cloud Translation API. You have been asked to build an ML system to moderate the chat in real time while assuring that the performance is uniform across the various languages and without changing the serving infrastructure. You trained your first model using an in-house word2vec model for embedding the chat messages translated by the Cloud Translation API. However, the model has significant differences in performance across the different languages. How should you improve it?

    Choose one answer.

    • Add a regularization term such as the Min-Diff algorithm to the loss function.
    • Train a classifier using the chat messages in their original language.
    • Replace the in-house word2vec with GPT-3 or T5.
    • Remove moderation for languages for which the false positive rate is too high.
  8. Question 8 · 1

    You work for a gaming company that develops massively multiplayer online (MMO) games. You built a TensorFlow model that predicts whether players will make in-app purchases of more than $10 in the next two weeks. The model’s predictions will be used to adapt each user’s game experience. User data is stored in BigQuery. How should you serve your model while optimizing cost, user experience, and ease of management?

    Choose one answer.

    • Import the model into BigQuery ML. Make predictions using batch reading data from BigQuery, and push the data to Cloud SQL
    • Deploy the model to Vertex AI Prediction. Make predictions using batch reading data from Cloud Bigtable, and push the data to Cloud SQL.
    • Embed the model in the mobile application. Make predictions after every in-app purchase event is published in Pub/Sub, and push the data to Cloud SQL.
    • Embed the model in the streaming Dataflow pipeline. Make predictions after every in-app purchase event is published in Pub/Sub, and push the data to Cloud SQL.
  9. Question 9 · 1

    You are building a linear regression model on BigQuery ML to predict a customer’s likelihood of purchasing your company’s products. Your model uses a city name variable as a key predictive component. In order to train and serve the model, your data must be organized in columns. You want to prepare your data using the least amount of coding while maintaining the predictable variables. What should you do?

    Choose one answer.

    • Use TensorFlow to create a categorical variable with a vocabulary list. Create the vocabulary file, and upload it as part of your model to BigQuery ML.
    • Create a new view with BigQuery that does not include a column with city information
    • Use Cloud Data Fusion to assign each city to a region labeled as 1, 2, 3, 4, or 5, and then use that number to represent the city in the model.
    • Use Dataprep to transform the state column using a one-hot encoding method, and make each city a column with binary values.
  10. Question 10 · 1

    You are an ML engineer at a bank that has a mobile application. Management has asked you to build an ML-based biometric authentication for the app that verifies a customer’s identity based on their fingerprint. Fingerprints are considered highly sensitive personal information and cannot be downloaded and stored into the bank databases. Which learning strategy should you recommend to train and deploy this ML mode?

    Choose one answer.

    • Data Loss Prevention API
    • Federated learning
    • MD5 to encrypt data
    • Differential privacy
  11. Question 11 · 1

    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?

    Choose one answer.

    • There is training-serving skew in your production environment.
    • There is not a sufficient amount of training data.
    • The tables that you created to hold your training and validation records share some records, and you may not be using all the data in your initial table.
    • The RAND() function generated a number that is less than 0.2 in both instances, so every record in the validation table will also be in the training table.
  12. Question 12 · 1

    During batch training of a neural network, you notice that there is an oscillation in the loss. How should you adjust your model to ensure that it converges?

    Choose one answer.

    • Decrease the size of the training batch.
    • Decrease the learning rate hyperparameter.
    • Increase the learning rate hyperparameter.
    • Increase the size of the training batch.
  13. Question 13 · 1

    You are designing an ML recommendation model for shoppers on your company's ecommerce website. You will use Recommendations AI to build, test, and deploy your system. How should you develop recommendations that increase revenue while following best practices?

    Choose one answer.

    • Use the ג€Other Products You May Likeג€ recommendation type to increase the click-through rate.
    • Use the ג€Frequently Bought Togetherג€ recommendation type to increase the shopping cart size for each order.
    • Import your user events and then your product catalog to make sure you have the highest quality event stream.
    • Because it will take time to collect and record product data, use placeholder values for the product catalog to test the viability of the model.
  14. Question 14 · 1

    You work for a toy manufacturer that has been experiencing a large increase in demand. You need to build an ML model to reduce the amount of time spent by quality control inspectors checking for product defects. Faster defect detection is a priority. The factory does not have reliable Wi-Fi. Your company wants to implement the new ML model as soon as possible. Which model should you use?

    Choose one answer.

    • AutoML Vision Edge mobile-high-accuracy-1 model
    • AutoML Vision Edge mobile-low-latency-1 model
    • AutoML Vision model
    • AutoML Vision Edge mobile-versatile-1 model
  15. Question 15 · 1

    You need to build classification workflows over several structured datasets currently stored in BigQuery. Because you will be performing the classification several times, you want to complete the following steps without writing code: exploratory data analysis, feature selection, model building, training, and hyperparameter tuning and serving. What should you do?

    Choose one answer.

    • Train a TensorFlow model on Vertex AI.
    • Train a classification Vertex AutoML model.
    • Run a logistic regression job on BigQuery ML.
    • Use scikit-learn in Notebooks with pandas library.

Each purchase applies to this certification. Prices are one-time payments, not monthly subscriptions.

Starter

$29 USD one time

Full access to one certification's question bank in standard practice mode for 60 days.

  • Full question bank for one certification
  • 60 days of access
  • Standard practice mode
  • Question notes and community discussions
  • Attempt scores and answer review

Professional

$49 USD one time

Full access to one certification's question bank, custom test controls and advanced analytics for 60 days.

  • Custom test builder
  • Timers and question selection
  • Randomized question and answer order
  • Advanced performance and weak-question analytics
  • Priority customer support
Try 15 questions free