🔍

PMLE — questions

Page 4 of 17 · 339 total questions.

Topic 1 · Question 61

You are using transfer learning to train an image classifier based on a pre-trained EfficientNet model. Your training dataset has 20,000 images. You plan to retrain the model once per day. You need to minimize the cost of infrastructure. What platform components and configuration environment should you use?

  • AA Deep Learning VM with 4 V100 GPUs and local storage.
  • BA Deep Learning VM with 4 V100 GPUs and Cloud Storage.
  • CA Google Kubernetes Engine cluster with a V100 GPU Node Pool and an NFS Server
  • DAn AI Platform Training job using a custom scale tier with 4 V100 GPUs and Cloud Storage (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: An AI Platform Training job using a custom scale tier with 4 V100 GPUs and Cloud Storage

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed.

Topic 1 · Question 62

While conducting an exploratory analysis of a dataset, you discover that categorical feature A has substantial predictive power, but it is sometimes missing. What should you do?

  • ADrop feature A if more than 15% of values are missing. Otherwise, use feature A as-is.
  • BCompute the mode of feature A and then use it to replace the missing values in feature A.
  • CReplace the missing values with the values of the feature with the highest Pearson correlation with feature A.
  • DAdd an additional class to categorical feature A for missing values. Create a new binary feature that indicates whether feature A is missing. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Add an additional class to categorical feature A for missing values. Create a new binary feature that indicates whether feature A is missing.

Topic 1 · Question 63

You work for a large retailer and have been asked to segment your customers by their purchasing habits. The purchase history of all customers has been uploaded to BigQuery. You suspect that there may be several distinct customer segments, however you are unsure of how many, and you don’t yet understand the commonalities in their behavior. You want to find the most efficient solution. What should you do?

  • ACreate a k-means clustering model using BigQuery ML. Allow BigQuery to automatically optimize the number of clusters. (correct answer)
  • BCreate a new dataset in Dataprep that references your BigQuery table. Use Dataprep to identify similarities within each column.
  • CUse the Data Labeling Service to label each customer record in BigQuery. Train a model on your labeled data using AutoML Tables. Review the evaluation metrics to understand whether there is an underlying pattern in the data.
  • DGet a list of the customer segments from your company’s Marketing team. Use the Data Labeling Service to label each customer record in BigQuery according to the list. Analyze the distribution of labels in your dataset using Data Studio.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a k-means clustering model using BigQuery ML. Allow BigQuery to automatically optimize the number of clusters.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 · Question 64

You recently designed and built a custom neural network that uses critical dependencies specific to your organization’s framework. You need to train the model using a managed training service on Google Cloud. However, the ML framework and related dependencies are not supported by AI Platform Training. Also, both your model and your data are too large to fit in memory on a single machine. Your ML framework of choice uses the scheduler, workers, and servers distribution structure. What should you do?

  • AUse a built-in model available on AI Platform Training.
  • BBuild your custom container to run jobs on AI Platform Training.
  • CBuild your custom containers to run distributed training jobs on AI Platform Training. (correct answer)
  • DReconfigure your code to a ML framework with dependencies that are supported by AI Platform Training.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Build your custom containers to run distributed training jobs on AI Platform Training.

Topic 1 · Question 65

While monitoring your model training’s GPU utilization, you discover that you have a native synchronous implementation. The training data is split into multiple files. You want to reduce the execution time of your input pipeline. What should you do?

  • AIncrease the CPU load
  • BAdd caching to the pipeline
  • CIncrease the network bandwidth
  • DAdd parallel interleave to the pipeline (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Add parallel interleave to the pipeline.

Topic 1 · Question 66

Your data science team is training a PyTorch model for image classification based on a pre-trained RestNet model. You need to perform hyperparameter tuning to optimize for several parameters. What should you do?

  • AConvert the model to a Keras model, and run a Keras Tuner job.
  • BRun a hyperparameter tuning job on AI Platform using custom containers. (correct answer)
  • CCreate a Kuberflow Pipelines instance, and run a hyperparameter tuning job on Katib.
  • DConvert the model to a TensorFlow model, and run a hyperparameter tuning job on AI Platform.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Run a hyperparameter tuning job on AI Platform using custom containers.

Topic 1 · Question 67

You have a large corpus of written support cases that can be classified into 3 separate categories: Technical Support, Billing Support, or Other Issues. You need to quickly build, test, and deploy a service that will automatically classify future written requests into one of the categories. How should you configure the pipeline?

  • AUse the Cloud Natural Language API to obtain metadata to classify the incoming cases.
  • BUse AutoML Natural Language to build and test a classifier. Deploy the model as a REST API. (correct answer)
  • CUse BigQuery ML to build and test a logistic regression model to classify incoming requests. Use BigQuery ML to perform inference.
  • DCreate a TensorFlow model using Google’s BERT pre-trained model. Build and test a classifier, and deploy the model using Vertex AI.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use AutoML Natural Language to build and test a classifier. Deploy the model as a REST API.

Explanation

AutoML trains high-quality custom models from your data with minimal ML expertise. Natural Language API extracts entities and sentiment from text.

Topic 1 · Question 68

You need to quickly build and train a model to predict the sentiment of customer reviews with custom categories without writing code. You do not have enough data to train a model from scratch. The resulting model should have high predictive performance. Which service should you use?

  • AAutoML Natural Language (correct answer)
  • BCloud Natural Language API
  • CAI Hub pre-made Jupyter Notebooks
  • DAI Platform Training built-in algorithms
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: AutoML Natural Language

Explanation

AutoML trains high-quality custom models from your data with minimal ML expertise. Natural Language API extracts entities and sentiment from text. This option needs the least custom development effort.

Topic 1 · Question 69

You need to build an ML model for a social media application to predict whether a user’s submitted profile photo meets the requirements. The application will inform the user if the picture meets the requirements. How should you build a model to ensure that the application does not falsely accept a non-compliant picture?

  • AUse AutoML to optimize the model’s recall in order to minimize false negatives. (correct answer)
  • BUse AutoML to optimize the model’s F1 score in order to balance the accuracy of false positives and false negatives.
  • CUse Vertex AI Workbench user-managed notebooks to build a custom model that has three times as many examples of pictures that meet the profile photo requirements.
  • DUse Vertex AI Workbench user-managed notebooks to build a custom model that has three times as many examples of pictures that do not meet the profile photo requirements.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use AutoML to optimize the model’s recall in order to minimize false negatives.

Explanation

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

Topic 1 · Question 70

You lead a data science team at a large international corporation. Most of the models your team trains are large-scale models using high-level TensorFlow APIs on AI Platform with GPUs. Your team usually takes a few weeks or months to iterate on a new version of a model. You were recently asked to review your team’s spending. How should you reduce your Google Cloud compute costs without impacting the model’s performance?

  • AUse AI Platform to run distributed training jobs with checkpoints.
  • BUse AI Platform to run distributed training jobs without checkpoints.
  • CMigrate to training with Kuberflow on Google Kubernetes Engine, and use preemptible VMs with checkpoints. (correct answer)
  • DMigrate to training with Kuberflow on Google Kubernetes Engine, and use preemptible VMs without checkpoints.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Migrate to training with Kuberflow on Google Kubernetes Engine, and use preemptible VMs with checkpoints.

Explanation

Google Kubernetes Engine runs managed Kubernetes for containerized workloads. Preemptible/Spot VMs use spare capacity at a large discount for fault-tolerant, interruptible work.

Topic 1 · Question 71

You need to train a regression model based on a dataset containing 50,000 records that is stored in BigQuery. The data includes a total of 20 categorical and numerical features with a target variable that can include negative values. You need to minimize effort and training time while maximizing model performance. What approach should you take to train this regression model?

  • ACreate a custom TensorFlow DNN model
  • BUse BQML XGBoost regression to train the model. (correct answer)
  • CUse AutoML Tables to train the model without early stopping.
  • DUse AutoML Tables to train the model with RMSLE as the optimization objective.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use BQML XGBoost regression to train the model.

Topic 1 · Question 72

You are building a linear model with over 100 input features, all with values between –1 and 1. You suspect that many features are non-informative. You want to remove the non-informative features from your model while keeping the informative ones in their original form. Which technique should you use?

  • AUse principal component analysis (PCA) to eliminate the least informative features.
  • BUse L1 regularization to reduce the coefficients of uninformative features to 0. (correct answer)
  • CAfter building your model, use Shapley values to determine which features are the most informative.
  • DUse an iterative dropout technique to identify which features do not degrade the model when removed.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use L1 regularization to reduce the coefficients of uninformative features to 0.

Topic 1 · Question 73

You work for a global footwear retailer and need to predict when an item will be out of stock based on historical inventory data Customer behavior is highly dynamic since footwear demand is influenced by many different factors. You want to serve models that are trained on all available data, but track your performance on specific subsets of data before pushing to production. What is the most streamlined and reliable way to perform this validation?

  • AUse then TFX ModelValidator tools to specify performance metrics for production readiness. (correct answer)
  • BUse k-fold cross-validation as a validation strategy to ensure that your model is ready for production.
  • CUse the last relevant week of data as a validation set to ensure that your model is performing accurately on current data.
  • DUse the entire dataset and treat the area under the receiver operating characteristics curve (AUC ROC) as the main metric.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use then TFX ModelValidator tools to specify performance metrics for production readiness.

Topic 1 · Question 74

You have deployed a model on Vertex AI for real-time inference. During an online prediction request, you get an “Out of Memory” error. What should you do?

  • AUse batch prediction mode instead of online mode.
  • BSend the request again with a smaller batch of instances. (correct answer)
  • CUse base64 to encode your data before using it for prediction.
  • DApply for a quota increase for the number of prediction requests.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Send the request again with a smaller batch of instances.

Explanation

Google Cloud Batch schedules and runs batch jobs at scale without managing infrastructure. This option meets the real-time / low-latency performance requirement.

Topic 1 · Question 75

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?

  • ATrain local surrogate models to explain individual predictions.
  • BConfigure sampled Shapley explanations on Vertex Explainable AI. (correct answer)
  • CConfigure integrated gradients explanations on Vertex Explainable AI.
  • DMeasure the effect of each feature as the weight of the feature multiplied by the feature value.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Configure sampled Shapley explanations on Vertex Explainable AI.

Topic 1 · Question 76

You are working on a classification problem with time series data. After conducting just a few experiments using random cross-validation, you achieved an Area Under the Receiver Operating Characteristic Curve (AUC ROC) value of 99% on the training data. You haven’t explored using any sophisticated algorithms or spent any time on hyperparameter tuning. What should your next step be to identify and fix the problem?

  • AAddress the model overfitting by using a less complex algorithm and use k-fold cross-validation.
  • BAddress data leakage by applying nested cross-validation during model training. (correct answer)
  • CAddress data leakage by removing features highly correlated with the target value.
  • DAddress the model overfitting by tuning the hyperparameters to reduce the AUC ROC value.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Address data leakage by applying nested cross-validation during model training.

Topic 1 · Question 77

You need to execute a batch prediction on 100 million records in a BigQuery table with a custom TensorFlow DNN regressor model, and then store the predicted results in a BigQuery table. You want to minimize the effort required to build this inference pipeline. What should you do?

  • AImport the TensorFlow model with BigQuery ML, and run the ml.predict function. (correct answer)
  • BUse the TensorFlow BigQuery reader to load the data, and use the BigQuery API to write the results to BigQuery.
  • CCreate a Dataflow pipeline to convert the data in BigQuery to TFRecords. Run a batch inference on Vertex AI Prediction, and write the results to BigQuery.
  • DLoad the TensorFlow SavedModel in a Dataflow pipeline. Use the BigQuery I/O connector with a custom function to perform the inference within the pipeline, and write the results to BigQuery.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Import the TensorFlow model with BigQuery ML, and run the ml.predict function.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 · Question 78

You are creating a deep neural network classification model using a dataset with categorical input values. Certain columns have a cardinality greater than 10,000 unique values. How should you encode these categorical values as input into the model?

  • AConvert each categorical value into an integer value.
  • BConvert the categorical string data to one-hot hash buckets. (correct answer)
  • CMap the categorical variables into a vector of boolean values.
  • DConvert each categorical value into a run-length encoded string.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Convert the categorical string data to one-hot hash buckets.

Topic 1 · Question 79

You need to train a natural language model to perform text classification on product descriptions that contain millions of examples and 100,000 unique words. You want to preprocess the words individually so that they can be fed into a recurrent neural network. What should you do?

  • ACreate a hot-encoding of words, and feed the encodings into your model.
  • BIdentify word embeddings from a pre-trained model, and use the embeddings in your model. (correct answer)
  • CSort the words by frequency of occurrence, and use the frequencies as the encodings in your model.
  • DAssign a numerical value to each word from 1 to 100,000 and feed the values as inputs in your model.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Identify word embeddings from a pre-trained model, and use the embeddings in your model.

Topic 1 · Question 80

You work for an online travel agency that also sells advertising placements on its website to other companies. You have been asked to predict the most relevant web banner that a user should see next. Security is important to your company. The model latency requirements are 300ms@p99, the inventory is thousands of web banners, and your exploratory analysis has shown that navigation context is a good predictor. You want to Implement the simplest solution. How should you configure the prediction pipeline?

  • AEmbed the client on the website, and then deploy the model on AI Platform Prediction.
  • BEmbed the client on the website, deploy the gateway on App Engine, deploy the database on Firestore for writing and for reading the user’s navigation context, and then deploy the model on AI Platform Prediction.
  • CEmbed the client on the website, deploy the gateway on App Engine, deploy the database on Cloud Bigtable for writing and for reading the user’s navigation context, and then deploy the model on AI Platform Prediction. (correct answer)
  • DEmbed the client on the website, deploy the gateway on App Engine, deploy the database on Memorystore for writing and for reading the user’s navigation context, and then deploy the model on Google Kubernetes Engine.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Embed the client on the website, deploy the gateway on App Engine, deploy the database on Cloud Bigtable for writing and for reading the user’s navigation context, and then deploy the model on AI Platform Prediction.

Explanation

App Engine is a fully managed platform that runs and autoscales web apps with little operational effort. Cloud Bigtable is a managed, low-latency NoSQL wide-column store for very high-throughput workloads.

Showing questions 6180 of 339 · Page 4 of 17