🔍

PMLE — questions

Page 6 of 17 · 339 total questions.

Topic 1 · Question 101

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?

  • AReduce the number of layers in the model architecture.
  • BReduce the global batch size from 1024 to 256.
  • CReduce the dimensions of the images used in the model.
  • DConfigure your model to use bfloat16 instead of float32. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Configure your model to use bfloat16 instead of float32.

Topic 1 · Question 102

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?

  • AImplement continuous retraining of the model daily using Vertex AI Pipelines.
  • BAdd a model monitoring job where 10% of incoming predictions are sampled 24 hours. (correct answer)
  • CAdd a model monitoring job where 90% of incoming predictions are sampled 24 hours.
  • DAdd a model monitoring job where 10% of incoming predictions are sampled every hour.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Add a model monitoring job where 10% of incoming predictions are sampled 24 hours.

Topic 1 · Question 103

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?

  • ADistribute the dataset with tf.distribute.Strategy.experimental_distribute_dataset
  • BCreate a custom training loop.
  • CUse a TPU with tf.distribute.TPUStrategy.
  • DIncrease the batch size. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Increase the batch size.

Explanation

Google Cloud Batch schedules and runs batch jobs at scale without managing infrastructure.

Topic 1 · Question 104

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?

  • AAdd a regularization term such as the Min-Diff algorithm to the loss function.
  • BTrain a classifier using the chat messages in their original language. (correct answer)
  • CReplace the in-house word2vec with GPT-3 or T5.
  • DRemove moderation for languages for which the false positive rate is too high.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Train a classifier using the chat messages in their original language. This option meets the real-time / low-latency performance requirement.

Topic 1 · Question 105

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?

  • AImport the model into BigQuery ML. Make predictions using batch reading data from BigQuery, and push the data to Cloud SQL (correct answer)
  • BDeploy the model to Vertex AI Prediction. Make predictions using batch reading data from Cloud Bigtable, and push the data to Cloud SQL.
  • CEmbed 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.
  • DEmbed 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.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Import the model into BigQuery ML. Make predictions using batch reading data from BigQuery, and push the data to Cloud SQL

Explanation

Google Cloud Batch schedules and runs batch jobs at scale without managing infrastructure. Cloud SQL is a managed relational database (MySQL/PostgreSQL/SQL Server) that handles patching, backups, and failover. BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 · Question 106

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?

  • AUse 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.
  • BCreate a new view with BigQuery that does not include a column with city information
  • CUse 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.
  • DUse Dataprep to transform the state column using a one-hot encoding method, and make each city a column with binary values. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use Dataprep to transform the state column using a one-hot encoding method, and make each city a column with binary values.

Explanation

Dataprep visually explores, cleans, and prepares data for analysis with no code.

Topic 1 · Question 107

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?

  • AData Loss Prevention API
  • BFederated learning (correct answer)
  • CMD5 to encrypt data
  • DDifferential privacy
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Federated learning.

Topic 1 · Question 108

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?

  • AThere is training-serving skew in your production environment.
  • BThere is not a sufficient amount of training data.
  • CThe 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. (correct answer)
  • DThe 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.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: 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.

Topic 1 · Question 109

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?

  • ADecrease the size of the training batch.
  • BDecrease the learning rate hyperparameter. (correct answer)
  • CIncrease the learning rate hyperparameter.
  • DIncrease the size of the training batch.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Decrease the learning rate hyperparameter.

Topic 1 · Question 110

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?

  • AAutoML Vision Edge mobile-high-accuracy-1 model
  • BAutoML Vision Edge mobile-low-latency-1 model (correct answer)
  • CAutoML Vision model
  • DAutoML Vision Edge mobile-versatile-1 model
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: AutoML Vision Edge mobile-low-latency-1 model

Explanation

AutoML trains high-quality custom models from your data with minimal ML expertise.

Topic 1 · Question 111

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?

  • ATrain a TensorFlow model on Vertex AI.
  • BTrain a classification Vertex AutoML model. (correct answer)
  • CRun a logistic regression job on BigQuery ML.
  • DUse scikit-learn in Notebooks with pandas library.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Train a classification Vertex AutoML model.

Explanation

AutoML trains high-quality custom models from your data with minimal ML expertise. This option needs the least custom development effort.

Topic 1 · Question 112

You are an ML engineer in the contact center of a large enterprise. You need to build a sentiment analysis tool that predicts customer sentiment from recorded phone conversations. You need to identify the best approach to building a model while ensuring that the gender, age, and cultural differences of the customers who called the contact center do not impact any stage of the model development pipeline and results. What should you do?

  • AConvert the speech to text and extract sentiments based on the sentences. (correct answer)
  • BConvert the speech to text and build a model based on the words.
  • CExtract sentiment directly from the voice recordings.
  • DConvert the speech to text and extract sentiment using syntactical analysis.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Convert the speech to text and extract sentiments based on the sentences.

Topic 1 · Question 113

You need to analyze user activity data from your company’s mobile applications. Your team will use BigQuery for data analysis, transformation, and experimentation with ML algorithms. You need to ensure real-time ingestion of the user activity data into BigQuery. What should you do?

  • AConfigure Pub/Sub to stream the data into BigQuery. (correct answer)
  • BRun an Apache Spark streaming job on Dataproc to ingest the data into BigQuery.
  • CRun a Dataflow streaming job to ingest the data into BigQuery.
  • DConfigure Pub/Sub and a Dataflow streaming job to ingest the data into BigQuery,
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Configure Pub/Sub to stream the data into BigQuery.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams. This option meets the real-time / low-latency performance requirement.

Topic 1 · Question 114

You work for a gaming company that manages a popular online multiplayer game where teams with 6 players play against each other in 5-minute battles. There are many new players every day. You need to build a model that automatically assigns available players to teams in real time. User research indicates that the game is more enjoyable when battles have players with similar skill levels. Which business metrics should you track to measure your model’s performance?

  • AAverage time players wait before being assigned to a team
  • BPrecision and recall of assigning players to teams based on their predicted versus actual ability
  • CUser engagement as measured by the number of battles played daily per user (correct answer)
  • DRate of return as measured by additional revenue generated minus the cost of developing a new model
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: User engagement as measured by the number of battles played daily per user This option meets the real-time / low-latency performance requirement.

Topic 1 · Question 115

You are building an ML model to predict trends in the stock market based on a wide range of factors. While exploring the data, you notice that some features have a large range. You want to ensure that the features with the largest magnitude don’t overfit the model. What should you do?

  • AStandardize the data by transforming it with a logarithmic function.
  • BApply a principal component analysis (PCA) to minimize the effect of any particular feature.
  • CUse a binning strategy to replace the magnitude of each feature with the appropriate bin number.
  • DNormalize the data by scaling it to have values between 0 and 1. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Normalize the data by scaling it to have values between 0 and 1.

Topic 1 · Question 116

You work for a biotech startup that is experimenting with deep learning ML models based on properties of biological organisms. Your team frequently works on early-stage experiments with new architectures of ML models, and writes custom TensorFlow ops in C++. You train your models on large datasets and large batch sizes. Your typical batch size has 1024 examples, and each example is about 1 MB in size. The average size of a network with all weights and embeddings is 20 GB. What hardware should you choose for your models?

  • AA cluster with 2 n1-highcpu-64 machines, each with 8 NVIDIA Tesla V100 GPUs (128 GB GPU memory in total), and a n1-highcpu-64 machine with 64 vCPUs and 58 GB RAM
  • BA cluster with 2 a2-megagpu-16g machines, each with 16 NVIDIA Tesla A100 GPUs (640 GB GPU memory in total), 96 vCPUs, and 1.4 TB RAM
  • CA cluster with an n1-highcpu-64 machine with a v2-8 TPU and 64 GB RAM
  • DA cluster with 4 n1-highcpu-96 machines, each with 96 vCPUs and 86 GB RAM (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: A cluster with 4 n1-highcpu-96 machines, each with 96 vCPUs and 86 GB RAM.

Topic 1 · Question 117

You are an ML engineer at an ecommerce company and have been tasked with building a model that predicts how much inventory the logistics team should order each month. Which approach should you take?

  • AUse a clustering algorithm to group popular items together. Give the list to the logistics team so they can increase inventory of the popular items.
  • BUse a regression model to predict how much additional inventory should be purchased each month. Give the results to the logistics team at the beginning of the month so they can increase inventory by the amount predicted by the model.
  • CUse a time series forecasting model to predict each item's monthly sales. Give the results to the logistics team so they can base inventory on the amount predicted by the model. (correct answer)
  • DUse a classification model to classify inventory levels as UNDER_STOCKED, OVER_STOCKED, and CORRECTLY_STOCKEGive the report to the logistics team each month so they can fine-tune inventory levels.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use a time series forecasting model to predict each item's monthly sales. Give the results to the logistics team so they can base inventory on the amount predicted by the model.

Topic 1 · Question 118

You are building a TensorFlow model for a financial institution that predicts the impact of consumer spending on inflation globally. Due to the size and nature of the data, your model is long-running across all types of hardware, and you have built frequent checkpointing into the training process. Your organization has asked you to minimize cost. What hardware should you choose?

  • AA Vertex AI Workbench user-managed notebooks instance running on an n1-standard-16 with 4 NVIDIA P100 GPUs
  • BA Vertex AI Workbench user-managed notebooks instance running on an n1-standard-16 with an NVIDIA P100 GPU
  • CA Vertex AI Workbench user-managed notebooks instance running on an n1-standard-16 with a non-preemptible v3-8 TPU
  • DA Vertex AI Workbench user-managed notebooks instance running on an n1-standard-16 with a preemptible v3-8 TPU (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: A Vertex AI Workbench user-managed notebooks instance running on an n1-standard-16 with a preemptible v3-8 TPU

Explanation

Preemptible/Spot VMs use spare capacity at a large discount for fault-tolerant, interruptible work. Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models. This option delivers the requirement at the lowest cost.

Topic 1 · Question 119

You work for a company that provides an anti-spam service that flags and hides spam posts on social media platforms. Your company currently uses a list of 200,000 keywords to identify suspected spam posts. If a post contains more than a few of these keywords, the post is identified as spam. You want to start using machine learning to flag spam posts for human review. What is the main advantage of implementing machine learning for this business case?

  • APosts can be compared to the keyword list much more quickly.
  • BNew problematic phrases can be identified in spam posts. (correct answer)
  • CA much longer keyword list can be used to flag spam posts.
  • DSpam posts can be flagged using far fewer keywords.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: New problematic phrases can be identified in spam posts.

Topic 1 · Question 120

One of your models is trained using data provided by a third-party data broker. The data broker does not reliably notify you of formatting changes in the data. You want to make your model training pipeline more robust to issues like this. What should you do?

  • AUse TensorFlow Data Validation to detect and flag schema anomalies. (correct answer)
  • BUse TensorFlow Transform to create a preprocessing component that will normalize data to the expected distribution, and replace values that don’t match the schema with 0.
  • CUse tf.math to analyze the data, compute summary statistics, and flag statistical anomalies.
  • DUse custom TensorFlow functions at the start of your model training to detect and flag known formatting errors.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use TensorFlow Data Validation to detect and flag schema anomalies.

Showing questions 101120 of 339 · Page 6 of 17