🔍

PMLE — questions

Page 9 of 17 · 339 total questions.

Topic 1 · Question 161

You are an ML engineer at a manufacturing company. You are creating a classification model for a predictive maintenance use case. You need to predict whether a crucial machine will fail in the next three days so that the repair crew has enough time to fix the machine before it breaks. Regular maintenance of the machine is relatively inexpensive, but a failure would be very costly. You have trained several binary classifiers to predict whether the machine will fail, where a prediction of 1 means that the ML model predicts a failure. You are now evaluating each model on an evaluation dataset. You want to choose a model that prioritizes detection while ensuring that more than 50% of the maintenance jobs triggered by your model address an imminent machine failure. Which model should you choose?

  • AThe model with the highest area under the receiver operating characteristic curve (AUC ROC) and precision greater than 0.5
  • BThe model with the lowest root mean squared error (RMSE) and recall greater than 0.5.
  • CThe model with the highest recall where precision is greater than 0.5. (correct answer)
  • DThe model with the highest precision where recall is greater than 0.5.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: The model with the highest recall where precision is greater than 0.5.

Topic 1 · Question 162

You built a custom ML model using scikit-learn. Training time is taking longer than expected. You decide to migrate your model to Vertex AI Training, and you want to improve the model’s training time. What should you try out first?

  • ATrain your model in a distributed mode using multiple Compute Engine VMs.
  • BTrain your model using Vertex AI Training with CPUs. (correct answer)
  • CMigrate your model to TensorFlow, and train it using Vertex AI Training.
  • DTrain your model using Vertex AI Training with GPUs.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Train your model using Vertex AI Training with CPUs.

Explanation

Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 · Question 163

You are an ML engineer at a retail company. You have built a model that predicts a coupon to offer an ecommerce customer at checkout based on the items in their cart. When a customer goes to checkout, your serving pipeline, which is hosted on Google Cloud, joins the customer's existing cart with a row in a BigQuery table that contains the customers' historic purchase behavior and uses that as the model's input. The web team is reporting that your model is returning predictions too slowly to load the coupon offer with the rest of the web page. How should you speed up your model's predictions?

  • AAttach an NVIDIA P100 GPU to your deployed model’s instance.
  • BUse a low latency database for the customers’ historic purchase behavior. (correct answer)
  • CDeploy your model to more instances behind a load balancer to distribute traffic.
  • DCreate a materialized view in BigQuery with the necessary data for predictions.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use a low latency database for the customers’ historic purchase behavior.

Topic 1 · Question 164

You work for a small company that has deployed an ML model with autoscaling on Vertex AI to serve online predictions in a production environment. The current model receives about 20 prediction requests per hour with an average response time of one second. You have retrained the same model on a new batch of data, and now you are canary testing it, sending ~10% of production traffic to the new model. During this canary test, you notice that prediction requests for your new model are taking between 30 and 180 seconds to complete. What should you do?

  • ASubmit a request to raise your project quota to ensure that multiple prediction services can run concurrently.
  • BTurn off auto-scaling for the online prediction service of your new model. Use manual scaling with one node always available.
  • CRemove your new model from the production environment. Compare the new model and existing model codes to identify the cause of the performance bottleneck. (correct answer)
  • DRemove your new model from the production environment. For a short trial period, send all incoming prediction requests to BigQuery. Request batch predictions from your new model, and then use the Data Labeling Service to validate your model’s performance before promoting it to production.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Remove your new model from the production environment. Compare the new model and existing model codes to identify the cause of the performance bottleneck.

Topic 1 · Question 165

You want to train an AutoML model to predict house prices by using a small public dataset stored in BigQuery. You need to prepare the data and want to use the simplest, most efficient approach. What should you do?

  • AWrite a query that preprocesses the data by using BigQuery and creates a new table. Create a Vertex AI managed dataset with the new table as the data source. (correct answer)
  • BUse Dataflow to preprocess the data. Write the output in TFRecord format to a Cloud Storage bucket.
  • CWrite a query that preprocesses the data by using BigQuery. Export the query results as CSV files, and use those files to create a Vertex AI managed dataset.
  • DUse a Vertex AI Workbench notebook instance to preprocess the data by using the pandas library. Export the data as CSV files, and use those files to create a Vertex AI managed dataset.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Write a query that preprocesses the data by using BigQuery and creates a new table. Create a Vertex AI managed dataset with the new table as the data source.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 · Question 166

You developed a Vertex AI ML pipeline that consists of preprocessing and training steps and each set of steps runs on a separate custom Docker image. Your organization uses GitHub and GitHub Actions as CI/CD to run unit and integration tests. You need to automate the model retraining workflow so that it can be initiated both manually and when a new version of the code is merged in the main branch. You want to minimize the steps required to build the workflow while also allowing for maximum flexibility. How should you configure the CI/CD workflow?

  • ATrigger a Cloud Build workflow to run tests, build custom Docker images, push the images to Artifact Registry, and launch the pipeline in Vertex AI Pipelines.
  • BTrigger GitHub Actions to run the tests, launch a job on Cloud Run to build custom Docker images, push the images to Artifact Registry, and launch the pipeline in Vertex AI Pipelines.
  • CTrigger GitHub Actions to run the tests, build custom Docker images, push the images to Artifact Registry, and launch the pipeline in Vertex AI Pipelines.
  • DTrigger GitHub Actions to run the tests, launch a Cloud Build workflow to build custom Docker images, push the images to Artifact Registry, and launch the pipeline in Vertex AI Pipelines. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Trigger GitHub Actions to run the tests, launch a Cloud Build workflow to build custom Docker images, push the images to Artifact Registry, and launch the pipeline in Vertex AI Pipelines.

Explanation

Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models. Cloud Build runs managed CI pipelines to build, test, and package code. Artifact Registry stores and manages container images and language packages.

Topic 1 · Question 167

You are working with a dataset that contains customer transactions. You need to build an ML model to predict customer purchase behavior. You plan to develop the model in BigQuery ML, and export it to Cloud Storage for online prediction. You notice that the input data contains a few categorical features, including product category and payment method. You want to deploy the model as quickly as possible. What should you do?

  • AUse the TRANSFORM clause with the ML.ONE_HOT_ENCODER function on the categorical features at model creation and select the categorical and non-categorical features.
  • BUse the ML.ONE_HOT_ENCODER function on the categorical features and select the encoded categorical features and non-categorical features as inputs to create your model.
  • CUse the CREATE MODEL statement and select the categorical and non-categorical features. (correct answer)
  • DUse the ML.MULTI_HOT_ENCODER function on the categorical features, and select the encoded categorical features and non-categorical features as inputs to create your model.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use the CREATE MODEL statement and select the categorical and non-categorical features.

Topic 1 · Question 168

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?

  • AUse Vertex AI Pipelines with the Kubeflow Pipelines SDK to create a pipeline that reads the images from Cloud Storage and trains the model.
  • BUse Vertex AI Pipelines with TensorFlow Extended (TFX) to create a pipeline that reads the images from Cloud Storage and trains the model.
  • CImport the labeled images as a managed dataset in Vertex AI and use AutoML to train the model. (correct answer)
  • DConvert the image dataset to a tabular format using Dataflow Load the data into BigQuery and use BigQuery ML to train the model.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Import the labeled images as a managed dataset in Vertex AI and use AutoML to train the model.

Explanation

Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models. AutoML trains high-quality custom models from your data with minimal ML expertise.

Topic 1 · Question 169

You are developing a model to detect fraudulent credit card transactions. You need to prioritize detection, because missing even one fraudulent transaction could severely impact the credit card holder. You used AutoML to tram a model on users' profile information and credit card transaction data After training the initial model, you notice that the model is failing to detect many fraudulent transactions. How should you adjust the training parameters in AutoML to improve model performance? (Choose two.)

  • AIncrease the score threshold
  • BDecrease the score threshold. (correct answer)
  • CAdd more positive examples to the training set
  • DAdd more negative examples to the training set
  • EReduce the maximum number of node hours for training
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Decrease the score threshold.

Topic 1 · Question 170

You need to deploy a scikit-leam classification model to production. The model must be able to serve requests 24/7, and you expect millions of requests per second to the production application from 8 am to 7 pm. You need to minimize the cost of deployment. What should you do?

  • ADeploy an online Vertex AI prediction endpoint. Set the max replica count to 1
  • BDeploy an online Vertex AI prediction endpoint. Set the max replica count to 100 (correct answer)
  • CDeploy an online Vertex AI prediction endpoint with one GPU per replica. Set the max replica count to 1
  • DDeploy an online Vertex AI prediction endpoint with one GPU per replica. Set the max replica count to 100
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Deploy an online Vertex AI prediction endpoint. Set the max replica count to 100

Explanation

Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 · Question 171

You work with a team of researchers to develop state-of-the-art algorithms for financial analysis. Your team develops and debugs complex models in TensorFlow. You want to maintain the ease of debugging while also reducing the model training time. How should you set up your training environment?

  • AConfigure a v3-8 TPU VM. SSH into the VM to train and debug the model.
  • BConfigure a v3-8 TPU node. Use Cloud Shell to SSH into the Host VM to train and debug the model.
  • CConfigure a n1 -standard-4 VM with 4 NVIDIA P100 GPUs. SSH into the VM and use ParameterServerStraregv to train the model.
  • DConfigure a n1-standard-4 VM with 4 NVIDIA P100 GPUs. SSH into the VM and use MultiWorkerMirroredStrategy to train the model. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Configure a n1-standard-4 VM with 4 NVIDIA P100 GPUs. SSH into the VM and use MultiWorkerMirroredStrategy to train the model.

Topic 1 · Question 172

You created an ML pipeline with multiple input parameters. You want to investigate the tradeoffs between different parameter combinations. The parameter options are • Input dataset • Max tree depth of the boosted tree regressor • Optimizer learning rate You need to compare the pipeline performance of the different parameter combinations measured in F1 score, time to train, and model complexity. You want your approach to be reproducible, and track all pipeline runs on the same platform. What should you do?

  • A1. Use BigQueryML to create a boosted tree regressor, and use the hyperparameter tuning capability.2. Configure the hyperparameter syntax to select different input datasets: max tree depths, and optimizer learning rates. Choose the grid search option.
  • B1. Create a Vertex AI pipeline with a custom model training job as part of the pipeline. Configure the pipeline’s parameters to include those you are investigating.2. In the custom training step, use the Bayesian optimization method with F1 score as the target to maximize.
  • C1. Create a Vertex AI Workbench notebook for each of the different input datasets.2. In each notebook, run different local training jobs with different combinations of the max tree depth and optimizer learning rate parameters.3. After each notebook finishes, append the results to a BigQuery table.
  • D1. Create an experiment in Vertex AI Experiments.2. Create a Vertex AI pipeline with a custom model training job as part of the pipeline. Configure the pipeline’s parameters to include those you are investigating.3. Submit multiple runs to the same experiment, using different values for the parameters. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: 1. Create an experiment in Vertex AI Experiments.2. Create a Vertex AI pipeline with a custom model training job as part of the pipeline. Configure the pipeline’s parameters to include those you are investigating.3. S...

Explanation

Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 · Question 173

You received a training-serving skew alert from a Vertex AI Model Monitoring job running in production. You retrained the model with more recent training data, and deployed it back to the Vertex AI endpoint, but you are still receiving the same alert. What should you do?

  • AUpdate the model monitoring job to use a lower sampling rate.
  • BUpdate the model monitoring job to use the more recent training data that was used to retrain the model. (correct answer)
  • CTemporarily disable the alert. Enable the alert again after a sufficient amount of new production traffic has passed through the Vertex AI endpoint.
  • DTemporarily disable the alert until the model can be retrained again on newer training data. Retrain the model again after a sufficient amount of new production traffic has passed through the Vertex AI endpoint.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Update the model monitoring job to use the more recent training data that was used to retrain the model.

Topic 1 · Question 174

You developed a custom model by using Vertex AI 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 AI Model Monitoring for drift detection and you want to minimize the cost. What should you do?

  • AUse the features for monitoring. Set a monitoring-frequency value that is higher than the default.
  • BUse the features for monitoring. Set a prediction-sampling-rate value that is closer to 1 than 0.
  • CUse the features and the feature attributions for monitoring. Set a monitoring-frequency value that is lower than the default.
  • DUse the features and the feature attributions for monitoring. Set a prediction-sampling-rate value that is closer to 0 than 1. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use the features and the feature attributions for monitoring. Set a prediction-sampling-rate value that is closer to 0 than 1.

Topic 1 · Question 175

You have recently trained a scikit-learn model that you plan to deploy on Vertex AI. This model will support both online and batch prediction. You need to preprocess input data for model inference. You want to package the model for deployment while minimizing additional code. What should you do?

  • A1. Upload your model to the Vertex AI Model Registry by using a prebuilt scikit-ieam prediction container.2. Deploy your model to Vertex AI Endpoints, and create a Vertex AI batch prediction job that uses the instanceConfig.instanceType setting to transform your input data.
  • B1. Wrap your model in a custom prediction routine (CPR). and build a container image from the CPR local model.2. Upload your scikit learn model container to Vertex AI Model Registry.3. Deploy your model to Vertex AI Endpoints, and create a Vertex AI batch prediction job (correct answer)
  • C1. Create a custom container for your scikit learn model.2. Define a custom serving function for your model.3. Upload your model and custom container to Vertex AI Model Registry.4. Deploy your model to Vertex AI Endpoints, and create a Vertex AI batch prediction job.
  • D1. Create a custom container for your scikit learn model.2. Upload your model and custom container to Vertex AI Model Registry.3. Deploy your model to Vertex AI Endpoints, and create a Vertex AI batch prediction job that uses the instanceConfig.instanceType setting to transform your input data.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: 1. Wrap your model in a custom prediction routine (CPR). and build a container image from the CPR local model.2. Upload your scikit learn model container to Vertex AI Model Registry.3. Deploy your model to Vertex AI E...

Explanation

Google Cloud Batch schedules and runs batch jobs at scale without managing infrastructure. Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 · Question 176

You work for a food product company. Your company’s historical sales data is stored in BigQuery.You need to use Vertex AI’s custom training service to train multiple TensorFlow models that read the data from BigQuery and predict future sales. You plan to implement a data preprocessing algorithm that performs mm-max scaling and bucketing on a large number of features before you start experimenting with the models. You want to minimize preprocessing time, cost, and development effort. How should you configure this workflow?

  • AWrite the transformations into Spark that uses the spark-bigquery-connector, and use Dataproc to preprocess the data.
  • BWrite SQL queries to transform the data in-place in BigQuery. (correct answer)
  • CAdd the transformations as a preprocessing layer in the TensorFlow models.
  • DCreate a Dataflow pipeline that uses the BigQuerylO connector to ingest the data, process it, and write it back to BigQuery.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Write SQL queries to transform the data in-place in BigQuery.

Explanation

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

Topic 1 · Question 177

You have created a Vertex AI 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?

  • AAdd a pipeline parameter and an additional pipeline step. Depending on the parameter value, the pipeline step conducts or skips data preprocessing, and starts model training.
  • BCreate another pipeline without the preprocessing step, and hardcode the preprocessed Cloud Storage file location for model training.
  • CConfigure a machine with more CPU and RAM from the compute-optimized machine family for the data preprocessing step.
  • DEnable caching for the pipeline job, and disable caching for the model training step. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Enable caching for the pipeline job, and disable caching for the model training step.

Topic 1 · Question 178

You work for a bank. You have created a custom model to predict whether a loan application should be flagged for human review. The input features are stored in a BigQuery table. The model is performing well, and you plan to deploy it to production. Due to compliance requirements the model must provide explanations for each prediction. You want to add this functionality to your model code with minimal effort and provide explanations that are as accurate as possible. What should you do?

  • ACreate an AutoML tabular model by using the BigQuery data with integrated Vertex Explainable AI.
  • BCreate a BigQuery ML deep neural network model and use the ML.EXPLAIN_PREDICT method with the num_integral_steps parameter.
  • CUpload the custom model to Vertex AI Model Registry and configure feature-based attribution by using sampled Shapley with input baselines. (correct answer)
  • DUpdate the custom serving container to include sampled Shapley-based explanations in the prediction outputs.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Upload the custom model to Vertex AI Model Registry and configure feature-based attribution by using sampled Shapley with input baselines.

Explanation

Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 · Question 179

You recently used XGBoost to train a model in Python that will be used for online serving. Your model prediction service will be called by a backend service implemented in Golang running on a Google Kubernetes Engine (GKE) cluster. Your model requires pre and postprocessing steps. You need to implement the processing steps so that they run at serving time. You want to minimize code changes and infrastructure maintenance, and deploy your model into production as quickly as possible. What should you do?

  • AUse FastAPI to implement an HTTP server. Create a Docker image that runs your HTTP server, and deploy it on your organization’s GKE cluster.
  • BUse FastAPI to implement an HTTP server. Create a Docker image that runs your HTTP server, Upload the image to Vertex AI Model Registry and deploy it to a Vertex AI endpoint.
  • CUse the Predictor interface to implement a custom prediction routine. Build the custom container, upload the container to Vertex AI Model Registry and deploy it to a Vertex AI endpoint. (correct answer)
  • DUse the XGBoost prebuilt serving container when importing the trained model into Vertex AI. Deploy the model to a Vertex AI endpoint. Work with the backend engineers to implement the pre- and postprocessing steps in the Golang backend service.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use the Predictor interface to implement a custom prediction routine. Build the custom container, upload the container to Vertex AI Model Registry and deploy it to a Vertex AI endpoint.

Explanation

Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 · Question 180

You recently deployed a pipeline in Vertex AI Pipelines that trains and pushes a model to a Vertex AI endpoint to serve real-time traffic. You need to continue experimenting and iterating on your pipeline to improve model performance. You plan to use Cloud Build for CI/CD You want to quickly and easily deploy new pipelines into production, and you want to minimize the chance that the new pipeline implementations will break in production. What should you do?

  • ASet up a CI/CD pipeline that builds and tests your source code. If the tests are successful, use the Google. Cloud console to upload the built container to Artifact Registry and upload the compiled pipeline to Vertex AI Pipelines.
  • BSet up a CI/CD pipeline that builds your source code and then deploys built artifacts into a pre-production environment. Run unit tests in the pre-production environment. If the tests are successful deploy the pipeline to production.
  • CSet up a CI/CD pipeline that builds and tests your source code and then deploys built artifacts into a pre-production environment. After a successful pipeline run in the pre-production environment, deploy the pipeline to production. (correct answer)
  • DSet up a CI/CD pipeline that builds and tests your source code and then deploys built artifacts into a pre-production environment. After a successful pipeline run in the pre-production environment, rebuild the source code and deploy the artifacts to production.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Set up a CI/CD pipeline that builds and tests your source code and then deploys built artifacts into a pre-production environment. After a successful pipeline run in the pre-production environment, deploy the pipeline... This option meets the real-time / low-latency performance requirement.

Showing questions 161180 of 339 · Page 9 of 17