🔍

PMLE — questions

Page 12 of 17 · 339 total questions.

Topic 1 · Question 221

You work at a leading healthcare firm developing state-of-the-art algorithms for various use cases. You have unstructured textual data with custom labels. You need to extract and classify various medical phrases with these labels. What should you do?

  • AUse the Healthcare Natural Language API to extract medical entities
  • BUse a BERT-based model to fine-tune a medical entity extraction model
  • CUse AutoML Entity Extraction to train a medical entity extraction model (correct answer)
  • DUse TensorFlow to build a custom medical entity extraction model
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use AutoML Entity Extraction to train a medical entity extraction model

Explanation

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

Topic 1 · Question 222

You developed a custom model by using Vertex AI to predict your application's user churn rate. You are using Vertex AI 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 monitoring 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?

  • AKeep the training dataset as is. Deploy the models to two separate endpoints, and submit two Vertex AI Model Monitoring jobs with appropriately selected feature-thresholds parameters.
  • BKeep the training dataset as is. Deploy both models to the same endpoint and submit a Vertex AI Model Monitoring job with a monitoring-config-from-file parameter that accounts for the model IDs and feature selections. (correct answer)
  • CSeparate the training dataset into two tables based on demographic and behavioral features. Deploy the models to two separate endpoints, and submit two Vertex AI Model Monitoring jobs.
  • DSeparate the training dataset into two tables based on demographic and behavioral features. Deploy both models to the same endpoint, and submit a Vertex AI Model Monitoring job with a monitoring-config-from-file parameter that accounts for the model IDs and training datasets.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Keep the training dataset as is. Deploy both models to the same endpoint and submit a Vertex AI Model Monitoring job with a monitoring-config-from-file parameter that accounts for the model IDs and feature selections.

Explanation

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

Topic 1 · Question 223

You work for a pharmaceutical company based in Canada. Your team developed a BigQuery ML model to predict the number of flu infections for the next month in Canada. Weather data is published weekly, and flu infection statistics are published monthly. You need to configure a model retraining policy that minimizes cost. What should you do?

  • ADownload the weather and flu data each week. Configure Cloud Scheduler to execute a Vertex AI pipeline to retrain the model weekly.
  • BDownload the weather and flu data each month. Configure Cloud Scheduler to execute a Vertex AI pipeline to retrain the model monthly.
  • CDownload the weather and flu data each week. Configure Cloud Scheduler to execute a Vertex AI pipeline to retrain the model every month.
  • DDownload the weather data each week, and download the flu data each month. Deploy the model to a Vertex AI endpoint with feature drift monitoring, and retrain the model if a monitoring alert is detected. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Download the weather data each week, and download the flu data each month. Deploy the model to a Vertex AI endpoint with feature drift monitoring, and retrain the model if a monitoring alert is detected.

Explanation

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

Topic 1 · Question 224

You are building a MLOps platform to automate your company’s ML experiments and model retraining. You need to organize the artifacts for dozens of pipelines. How should you store the pipelines’ artifacts?

  • AStore parameters in Cloud SQL, and store the models’ source code and binaries in GitHub.
  • BStore parameters in Cloud SQL, store the models’ source code in GitHub, and store the models’ binaries in Cloud Storage.
  • CStore parameters in Vertex ML Metadata, store the models’ source code in GitHub, and store the models’ binaries in Cloud Storage. (correct answer)
  • DStore parameters in Vertex ML Metadata and store the models’ source code and binaries in GitHub.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Store parameters in Vertex ML Metadata, store the models’ source code in GitHub, and store the models’ binaries in Cloud Storage.

Explanation

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

Topic 1 · Question 225

You work for a telecommunications company. You’re building a model to predict which customers may fail to pay their next phone bill. The purpose of this model is to proactively offer at-risk customers assistance such as service discounts and bill deadline extensions. The data is stored in BigQuery and the predictive features that are available for model training include: - Customer_id - Age - Salary (measured in local currency) - Sex - Average bill value (measured in local currency) - Number of phone calls in the last month (integer) - Average duration of phone calls (measured in minutes) You need to investigate and mitigate potential bias against disadvantaged groups, while preserving model accuracy. What should you do?

  • ADetermine whether there is a meaningful correlation between the sensitive features and the other features. Train a BigQuery ML boosted trees classification model and exclude the sensitive features and any meaningfully correlated features.
  • BTrain a BigQuery ML boosted trees classification model with all features. Use the ML.GLOBAL_EXPLAIN method to calculate the global attribution values for each feature of the model. If the feature importance value for any of the sensitive features exceeds a threshold, discard the model and tram without this feature.
  • CTrain a BigQuery ML boosted trees classification model with all features. Use the ML.EXPLAIN_PREDICT method to calculate the attribution values for each feature for each customer in a test set. If for any individual customer, the importance value for any feature exceeds a predefined threshold, discard the model and train the model again without this feature.
  • DDefine a fairness metric that is represented by accuracy across the sensitive features. Train a BigQuery ML boosted trees classification model with all features. Use the trained model to make predictions on a test set. Join the data back with the sensitive features, and calculate a fairness metric to investigate whether it meets your requirements. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Define a fairness metric that is represented by accuracy across the sensitive features. Train a BigQuery ML boosted trees classification model with all features. Use the trained model to make predictions on a test set...

Explanation

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

Topic 1 · Question 226

You recently trained a XGBoost model that you plan to deploy to production for online inference. Before sending a predict request to your model’s binary, you need to perform a simple data preprocessing step. This step exposes a REST API that accepts requests in your internal VPC Service Controls and returns predictions. You want to configure this preprocessing step while minimizing cost and effort. What should you do?

  • AStore a pickled model in Cloud Storage. Build a Flask-based app, package the app in a custom container image, and deploy the model to Vertex AI Endpoints.
  • BBuild a Flask-based app, package the app and a pickled model in a custom container image, and deploy the model to Vertex AI Endpoints.
  • CBuild a custom predictor class based on XGBoost Predictor from the Vertex AI SDK, package it and a pickled model in a custom container image based on a Vertex built-in image, and deploy the model to Vertex AI Endpoints.
  • DBuild a custom predictor class based on XGBoost Predictor from the Vertex AI SDK, and package the handler in a custom container image based on a Vertex built-in container image. Store a pickled model in Cloud Storage, and deploy the model to Vertex AI Endpoints. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Build a custom predictor class based on XGBoost Predictor from the Vertex AI SDK, and package the handler in a custom container image based on a Vertex built-in container image. Store a pickled model in Cloud Storage,...

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 · Question 227

You work at a bank. You need to develop a credit risk model to support loan application decisions. You decide to implement the model by using a neural network in TensorFlow. Due to regulatory requirements, you need to be able to explain the model’s predictions based on its features. When the model is deployed, you also want to monitor the model’s performance over time. You decided to use Vertex AI for both model development and deployment. What should you do?

  • AUse Vertex Explainable AI with the sampled Shapley method, and enable Vertex AI Model Monitoring to check for feature distribution drift. (correct answer)
  • BUse Vertex Explainable AI with the sampled Shapley method, and enable Vertex AI Model Monitoring to check for feature distribution skew.
  • CUse Vertex Explainable AI with the XRAI method, and enable Vertex AI Model Monitoring to check for feature distribution drift.
  • DUse Vertex Explainable AI with the XRAI method, and enable Vertex AI Model Monitoring to check for feature distribution skew.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use Vertex Explainable AI with the sampled Shapley method, and enable Vertex AI Model Monitoring to check for feature distribution drift.

Explanation

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

Topic 1 · Question 228

You are investigating the root cause of a misclassification error made by one of your models. You used Vertex AI Pipelines to train and deploy the model. The pipeline reads data from BigQuery. creates a copy of the data in Cloud Storage in TFRecord format, trains the model in Vertex AI Training on that copy, and deploys the model to a Vertex AI endpoint. You have identified the specific version of that model that misclassified, and you need to recover the data this model was trained on. How should you find that copy of the data?

  • AUse Vertex AI Feature Store. Modify the pipeline to use the feature store, and ensure that all training data is stored in it. Search the feature store for the data used for the training.
  • BUse the lineage feature of Vertex AI Metadata to find the model artifact. Determine the version of the model and identify the step that creates the data copy and search in the metadata for its location. (correct answer)
  • CUse the logging features in the Vertex AI endpoint to determine the timestamp of the model’s deployment. Find the pipeline run at that timestamp. Identify the step that creates the data copy, and search in the logs for its location.
  • DFind the job ID in Vertex AI Training corresponding to the training for the model. Search in the logs of that job for the data used for the training.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use the lineage feature of Vertex AI Metadata to find the model artifact. Determine the version of the model and identify the step that creates the data copy and search in the metadata for its location.

Explanation

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

Topic 1 · Question 229

You work for a manufacturing company. You need to train a custom image classification model to detect product defects at the end of an assembly line. Although your model is performing well, some images in your holdout set are consistently mislabeled with high confidence. You want to use Vertex AI to understand your model’s results. What should you do?

  • AConfigure feature-based explanations by using Integrated Gradients. Set visualization type to PIXELS, and set clip_percent_upperbound to 95.
  • BCreate an index by using Vertex AI Matching Engine. Query the index with your mislabeled images.
  • CConfigure feature-based explanations by using XRAI. Set visualization type to OUTLINES, and set polarity to positive.
  • DConfigure example-based explanations. Specify the embedding output layer to be used for the latent space representation. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Configure example-based explanations. Specify the embedding output layer to be used for the latent space representation.

Topic 1 · Question 230

You are training models in Vertex AI by using data that spans across multiple Google Cloud projects. You need to find, track, and compare the performance of the different versions of your models. Which Google Cloud services should you include in your ML workflow?

  • ADataplex, Vertex AI Feature Store, and Vertex AI TensorBoard
  • BVertex AI Pipelines, Vertex AI Feature Store, and Vertex AI Experiments
  • CDataplex, Vertex AI Experiments, and Vertex AI ML Metadata (correct answer)
  • DVertex AI Pipelines, Vertex AI Experiments, and Vertex AI Metadata
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Dataplex, Vertex AI Experiments, and Vertex AI ML Metadata

Explanation

Dataplex centrally manages, governs, and organizes data across a data lakehouse. Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 · Question 231

You are using Keras and TensorFlow to develop a fraud detection model. Records of customer transactions are stored in a large table in BigQuery. You need to preprocess these records in a cost-effective and efficient way before you use them to train the model. The trained model will be used to perform batch inference in BigQuery. How should you implement the preprocessing workflow?

  • AImplement a preprocessing pipeline by using Apache Spark, and run the pipeline on Dataproc. Save the preprocessed data as CSV files in a Cloud Storage bucket.
  • BLoad the data into a pandas DataFrame. Implement the preprocessing steps using pandas transformations, and train the model directly on the DataFrame.
  • CPerform preprocessing in BigQuery by using SQL. Use the BigQueryClient in TensorFlow to read the data directly from BigQuery. (correct answer)
  • DImplement a preprocessing pipeline by using Apache Beam, and run the pipeline on Dataflow. Save the preprocessed data as CSV files in a Cloud Storage bucket.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Perform preprocessing in BigQuery by using SQL. Use the BigQueryClient in TensorFlow to read the data directly from BigQuery.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. This option delivers the requirement at the lowest cost.

Topic 1 · Question 232

You need to use TensorFlow to train an image classification model. Your dataset is located in a Cloud Storage directory and contains millions of labeled images. Before training the model, you need to prepare the data. You want the data preprocessing and model training workflow to be as efficient, scalable, and low maintenance as possible. What should you do?

  • A1. Create a Dataflow job that creates sharded TFRecord files in a Cloud Storage directory.2. Reference tf.data.TFRecordDataset in the training script.3. Train the model by using Vertex AI Training with a V100 GPU. (correct answer)
  • B1. Create a Dataflow job that moves the images into multiple Cloud Storage directories, where each directory is named according to the corresponding label2. Reference tfds.folder_dataset:ImageFolder in the training script.3. Train the model by using Vertex AI Training with a V100 GPU.
  • C1. Create a Jupyter notebook that uses an nt-standard-64 V100 GPU Vertex AI Workbench instance.2. Write a Python script that creates sharded TFRecord files in a directory inside the instance.3. Reference tf.data.TFRecordDataset in the training script.4. Train the model by using the Workbench instance.
  • D1. Create a Jupyter notebook that uses an n1-standard-64, V100 GPU Vertex AI Workbench instance.2. Write a Python script that copies the images into multiple Cloud Storage directories, where each. directory is named according to the corresponding label.3. Reference tfds.foladr_dataset.ImageFolder in the training script.4. Train the model by using the Workbench instance.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1. Create a Dataflow job that creates sharded TFRecord files in a Cloud Storage directory.2. Reference tf.data.TFRecordDataset in the training script.3. Train the model by using Vertex AI Training with a V100 GPU.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Dataflow runs serverless Apache Beam pipelines for stream and batch data processing with autoscaling. Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 · Question 233

You are building a custom image classification model and plan to use Vertex AI Pipelines to implement the end-to-end training. Your dataset consists of images that need to be preprocessed before they can be used to train the model. The preprocessing steps include resizing the images, converting them to grayscale, and extracting features. You have already implemented some Python functions for the preprocessing tasks. Which components should you use in your pipeline?

  • ADataprocSparkBatchOp and CustomTrainingJobOp
  • BDataflowPythonJobOp, WaitGcpResourcesOp, and CustomTrainingJobOp (correct answer)
  • Cdsl.ParallelFor, dsl.component, and CustomTrainingJobOp
  • DImageDatasetImportDataOp, dsl.component, and AutoMLImageTrainingJobRunOp
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: DataflowPythonJobOp, WaitGcpResourcesOp, and CustomTrainingJobOp

Explanation

Dataflow runs serverless Apache Beam pipelines for stream and batch data processing with autoscaling.

Topic 1 · Question 234

You work for a retail company that is using a regression model built with BigQuery ML to predict product sales. This model is being used to serve online predictions. Recently you developed a new version of the model that uses a different architecture (custom model). Initial analysis revealed that both models are performing as expected. You want to deploy the new version of the model to production and monitor the performance over the next two months. You need to minimize the impact to the existing and future model users. How should you deploy the model?

  • AImport the new model to the same Vertex AI Model Registry as a different version of the existing model. Deploy the new model to the same Vertex AI endpoint as the existing model, and use traffic splitting to route 95% of production traffic to the BigQuery ML model and 5% of production traffic to the new model. (correct answer)
  • BImport the new model to the same Vertex AI Model Registry as the existing model. Deploy the models to one Vertex AI endpoint. Route 95% of production traffic to the BigQuery ML model and 5% of production traffic to the new model.
  • CImport the new model to the same Vertex AI Model Registry as the existing model. Deploy each model to a separate Vertex AI endpoint.
  • DDeploy the new model to a separate Vertex AI endpoint. Create a Cloud Run service that routes the prediction requests to the corresponding endpoints based on the input feature values.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Import the new model to the same Vertex AI Model Registry as a different version of the existing model. Deploy the new model to the same Vertex AI endpoint as the existing model, and use traffic splitting to route 95%...

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 235

You are using Vertex AI and TensorFlow to develop a custom image classification model. You need the model’s decisions and the rationale to be understandable to your company’s stakeholders. You also want to explore the results to identify any issues or potential biases. What should you do?

  • A1. Use TensorFlow to generate and visualize features and statistics.2. Analyze the results together with the standard model evaluation metrics.
  • B1. Use TensorFlow Profiler to visualize the model execution.2. Analyze the relationship between incorrect predictions and execution bottlenecks.
  • C1. Use Vertex Explainable AI to generate example-based explanations.2. Visualize the results of sample inputs from the entire dataset together with the standard model evaluation metrics.
  • D1. Use Vertex Explainable AI to generate feature attributions. Aggregate feature attributions over the entire dataset.2. Analyze the aggregation result together with the standard model evaluation metrics. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: 1. Use Vertex Explainable AI to generate feature attributions. Aggregate feature attributions over the entire dataset.2. Analyze the aggregation result together with the standard model evaluation metrics.

Topic 1 · Question 236

You work for a large retailer, and you need to build a model to predict customer chum. The company has a dataset of historical customer data, including customer demographics purchase history, and website activity. You need to create the model in BigQuery ML and thoroughly evaluate its performance. What should you do?

  • ACreate a linear regression model in BigQuery ML, and register the model in Vertex AI Model Registry. Evaluate the model performance in Vertex AI .
  • BCreate a logistic regression model in BigQuery ML and register the model in Vertex AI Model Registry. Evaluate the model performance in Vertex AI . (correct answer)
  • CCreate a linear regression model in BigQuery ML. Use the ML.EVALUATE function to evaluate the model performance.
  • DCreate a logistic regression model in BigQuery ML. Use the ML.CONFUSION_MATRIX function to evaluate the model performance.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a logistic regression model in BigQuery ML and register the model in Vertex AI Model Registry. Evaluate the model performance in Vertex AI.

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 237

You are developing a model to identify traffic signs in images extracted from videos taken from the dashboard of a vehicle. You have a dataset of 100,000 images that were cropped to show one out of ten different traffic signs. The images have been labeled accordingly for model training, and are stored in a Cloud Storage bucket. You need to be able to tune the model during each training run. How should you train the model?

  • ATrain a model for object detection by using Vertex AI AutoML.
  • BTrain a model for image classification by using Vertex AI AutoML.
  • CDevelop the model training code for object detection, and train a model by using Vertex AI custom training.
  • DDevelop the model training code for image classification, and train a model by using Vertex AI custom training. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Develop the model training code for image classification, and train a model by using Vertex AI custom training.

Explanation

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

Topic 1 · Question 238

You have deployed a scikit-team model to a Vertex AI endpoint using a custom model server. You enabled autoscaling: however, the deployed model fails to scale beyond one replica, which led to dropped requests. You notice that CPU utilization remains low even during periods of high load. What should you do?

  • AAttach a GPU to the prediction nodes
  • BIncrease the number of workers in your model server (correct answer)
  • CSchedule scaling of the nodes to match expected demand
  • DIncrease the minReplicaCount in your DeployedModel configuration
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Increase the number of workers in your model server.

Topic 1 · Question 239

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?

  • ASend user-submitted images to the Cloud Vision API. Use object localization to identify all objects in the image and compare the results against a list of animals. (correct answer)
  • BDownload an object detection model from TensorFlow Hub. Deploy the model to a Vertex AI endpoint. Send new user-submitted images to the model endpoint to classify whether each photo has an animal.
  • CManually label previously submitted images with bounding boxes around any animals. Build an AutoML object detection model by using Vertex AI. Deploy the model to a Vertex AI endpoint Send new user-submitted images to your model endpoint to detect whether each photo has an animal.
  • DManually label previously submitted images as having animals or not. Create an image dataset on Vertex AI. Train a classification model by using Vertex AutoML to distinguish the two classes. Deploy the model to a Vertex AI endpoint. Send new user-submitted images to your model endpoint to classify whether each photo has an animal.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Send user-submitted images to the Cloud Vision API. Use object localization to identify all objects in the image and compare the results against a list of animals. This option delivers the requirement at the lowest cost.

Topic 1 · Question 240

You work at a mobile gaming startup that creates online multiplayer games. Recently, your company observed an increase in players cheating in the games, leading to a loss of revenue and a poor user experience You built a binary classification model to determine whether a player cheated after a completed game session, and then send a message to other downstream systems to ban the player that cheated. Your model has performed well during testing, and you now need to deploy the model to production. You want your serving solution to provide immediate classifications after a completed game session to avoid further loss of revenue. What should you do?

  • AImport the model into Vertex AI Model Registry. Use the Vertex Batch Prediction service to run batch inference jobs.
  • BSave the model files in a Cloud Storage bucket. Create a Cloud Function to read the model files and make online inference requests on the Cloud Function.
  • CSave the model files in a VM. Load the model files each time there is a prediction request, and run an inference job on the VM
  • DImport the model into Vertex AI Model Registry. Create a Vertex AI endpoint that hosts the model, and make online inference requests. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Import the model into Vertex AI Model Registry. Create a Vertex AI endpoint that hosts the model, and make online inference requests.

Explanation

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

Showing questions 221240 of 339 · Page 12 of 17