🔍

PMLE — questions

Page 14 of 17 · 339 total questions.

Topic 1 · Question 261

You are developing a recommendation engine for an online clothing store. The historical customer transaction data is stored in BigQuery and Cloud Storage. You need to perform exploratory data analysis (EDA), preprocessing and model training. You plan to rerun these EDA, preprocessing, and training steps as you experiment with different types of algorithms. You want to minimize the cost and development effort of running these steps as you experiment. How should you configure the environment?

  • ACreate a Vertex AI Workbench user-managed notebook using the default VM instance, and use the %%bigquerv magic commands in Jupyter to query the tables.
  • BCreate a Vertex AI Workbench managed notebook to browse and query the tables directly from the JupyterLab interface. (correct answer)
  • CCreate a Vertex AI Workbench user-managed notebook on a Dataproc Hub, and use the %%bigquery magic commands in Jupyter to query the tables.
  • DCreate a Vertex AI Workbench managed notebook on a Dataproc cluster, and use the spark-bigquery-connector to access the tables.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a Vertex AI Workbench managed notebook to browse and query the tables directly from the JupyterLab interface.

Explanation

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

Topic 1 · Question 262

You recently deployed a model to a Vertex AI endpoint and set up online serving in Vertex AI Feature Store. You have configured a daily batch ingestion job to update your featurestore. During the batch ingestion jobs, you discover that CPU utilization is high in your featurestore’s online serving nodes and that feature retrieval latency is high. You need to improve online serving performance during the daily batch ingestion. What should you do?

  • ASchedule an increase in the number of online serving nodes in your featurestore prior to the batch ingestion jobs (correct answer)
  • BEnable autoscaling of the online serving nodes in your featurestore
  • CEnable autoscaling for the prediction nodes of your DeployedModel in the Vertex AI endpoint
  • DIncrease the worker_count in the ImportFeatureValues request of your batch ingestion job
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Schedule an increase in the number of online serving nodes in your featurestore prior to the batch ingestion jobs

Explanation

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

Topic 1 · Question 263

You are developing a custom TensorFlow classification model based on tabular data. Your raw data is stored in BigQuery. contains hundreds of millions of rows, and includes both categorical and numerical features. You need to use a MaxMin scaler on some numerical features, and apply a one-hot encoding to some categorical features such as SKU names. Your model will be trained over multiple epochs. You want to minimize the effort and cost of your solution. What should you do?

  • A1. Write a SQL query to create a separate lookup table to scale the numerical features.2. Deploy a TensorFlow-based model from Hugging Face to BigQuery to encode the text features.3. Feed the resulting BigQuery view into Vertex AI Training.
  • B1. Use BigQuery to scale the numerical features.2. Feed the features into Vertex AI Training.3. Allow TensorFlow to perform the one-hot text encoding.
  • C1. Use TFX components with Dataflow to encode the text features and scale the numerical features.2. Export results to Cloud Storage as TFRecords.3. Feed the data into Vertex AI Training. (correct answer)
  • D1. Write a SQL query to create a separate lookup table to scale the numerical features.2. Perform the one-hot text encoding in BigQuery.3. Feed the resulting BigQuery view into Vertex AI Training.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: 1. Use TFX components with Dataflow to encode the text features and scale the numerical features.2. Export results to Cloud Storage as TFRecords.3. Feed the data into Vertex AI Training.

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 264

You work for a retail company. You have been tasked with building a model to determine the probability of churn for each customer. You need the predictions to be interpretable so the results can be used to develop marketing campaigns that target at-risk customers. What should you do?

  • ABuild a random forest regression model in a Vertex AI Workbench notebook instance. Configure the model to generate feature importances after the model is trained.
  • BBuild an AutoML tabular regression model. Configure the model to generate explanations when it makes predictions.
  • CBuild a custom TensorFlow neural network by using Vertex AI custom training. Configure the model to generate explanations when it makes predictions.
  • DBuild a random forest classification model in a Vertex AI Workbench notebook instance. Configure the model to generate feature importances after the model is trained. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Build a random forest classification model in a Vertex AI Workbench notebook instance. Configure the model to generate feature importances after the model is trained.

Explanation

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

Topic 1 · Question 265

You work for a company that is developing an application to help users with meal planning. You want to use machine learning to scan a corpus of recipes and extract each ingredient (e.g., carrot, rice, pasta) and each kitchen cookware (e.g., bowl, pot, spoon) mentioned. Each recipe is saved in an unstructured text file. What should you do?

  • ACreate a text dataset on Vertex AI for entity extraction Create two entities called “ingredient” and “cookware”, and label at least 200 examples of each entity. Train an AutoML entity extraction model to extract occurrences of these entity types. Evaluate performance on a holdout dataset. (correct answer)
  • BCreate a multi-label text classification dataset on Vertex AI. Create a test dataset, and label each recipe that corresponds to its ingredients and cookware. Train a multi-class classification model. Evaluate the model’s performance on a holdout dataset.
  • CUse the Entity Analysis method of the Natural Language API to extract the ingredients and cookware from each recipe. Evaluate the model's performance on a prelabeled dataset.
  • DCreate a text dataset on Vertex AI for entity extraction. Create as many entities as there are different ingredients and cookware. Train an AutoML entity extraction model to extract those entities. Evaluate the model’s performance on a holdout dataset.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a text dataset on Vertex AI for entity extraction Create two entities called “ingredient” and “cookware”, and label at least 200 examples of each entity. Train an AutoML entity extraction model to extract occur...

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 266

You work for an organization that operates a streaming music service. You have a custom production model that is serving a “next song” recommendation based on a user's recent listening history. Your model is deployed on a Vertex AI endpoint. You recently retrained the same model by using fresh data. The model received positive test results offline. You now want to test the new model in production while minimizing complexity. What should you do?

  • ACreate a new Vertex AI endpoint for the new model and deploy the new model to that new endpoint. Build a service to randomly send 5% of production traffic to the new endpoint. Monitor end-user metrics such as listening time. If end-user metrics improve between models over time, gradually increase the percentage of production traffic sent to the new endpoint.
  • BCapture incoming prediction requests in BigQuery. Create an experiment in Vertex AI Experiments. Run batch predictions for both models using the captured data. Use the user’s selected song to compare the models performance side by side. If the new model’s performance metrics are better than the previous model, deploy the new model to production.
  • CDeploy the new model to the existing Vertex AI endpoint. Use traffic splitting to send 5% of production traffic to the new model. Monitor end-user metrics, such as listening time. If end-user metrics improve between models over time, gradually increase the percentage of production traffic sent to the new model. (correct answer)
  • DConfigure a model monitoring job for the existing Vertex AI endpoint. Configure the monitoring job to detect prediction drift and set a threshold for alerts. Update the model on the endpoint from the previous model to the new model. If you receive an alert of prediction drift, revert to the previous model.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Deploy the new model to the existing Vertex AI endpoint. Use traffic splitting to send 5% of production traffic to the new model. Monitor end-user metrics, such as listening time. If end-user metrics improve between m...

Explanation

Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models. This option meets the real-time / low-latency performance requirement.

Topic 1 · Question 267

You created a model that uses BigQuery ML to perform linear regression. You need to retrain the model on the cumulative data collected every week. You want to minimize the development effort and the scheduling cost. What should you do?

  • AUse BigQuery’s scheduling service to run the model retraining query periodically. (correct answer)
  • BCreate a pipeline in Vertex AI Pipelines that executes the retraining query, and use the Cloud Scheduler API to run the query weekly.
  • CUse Cloud Scheduler to trigger a Cloud Function every week that runs the query for retraining the model.
  • DUse the BigQuery API Connector and Cloud Scheduler to trigger Workflows every week that retrains the model.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use BigQuery’s scheduling service to run the model retraining query periodically.

Explanation

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

Topic 1 · Question 268

You want to migrate a scikit-learn classifier model to TensorFlow. You plan to train the TensorFlow classifier model using the same training set that was used to train the scikit-learn model, and then compare the performances using a common test set. You want to use the Vertex AI Python SDK to manually log the evaluation metrics of each model and compare them based on their F1 scores and confusion matrices. How should you log the metrics?

  • AUse the aiplatform.log_classification_metrics function to log the F1 score, and use the aiplatform.log_metrics function to log the confusion matrix.
  • BUse the aiplatform.log_classification_metrics function to log the F1 score and the confusion matrix.
  • CUse the aiplatform.log_metrics function to log the F1 score and the confusion matrix.
  • DUse the aiplatform.log_metrics function to log the F1 score: and use the aiplatform.log_classification_metrics function to log the confusion matrix. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use the aiplatform.log_metrics function to log the F1 score: and use the aiplatform.log_classification_metrics function to log the confusion matrix.

Topic 1 · Question 269

You are developing a model to help your company create more targeted online advertising campaigns. You need to create a dataset that you will use to train the model. You want to avoid creating or reinforcing unfair bias in the model. What should you do? (Choose two.)

  • AInclude a comprehensive set of demographic features
  • BInclude only the demographic groups that most frequently interact with advertisements
  • CCollect a random sample of production traffic to build the training dataset
  • DCollect a stratified sample of production traffic to build the training dataset (correct answer)
  • EConduct fairness tests across sensitive categories and demographics on the trained model
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Collect a stratified sample of production traffic to build the training dataset.

Topic 1 · Question 270

You are developing an ML model in a Vertex AI Workbench notebook. You want to track artifacts and compare models during experimentation using different approaches. You need to rapidly and easily transition successful experiments to production as you iterate on your model implementation. What should you do?

  • A1. Initialize the Vertex SDK with the name of your experiment. Log parameters and metrics for each experiment, and attach dataset and model artifacts as inputs and outputs to each execution.2. After a successful experiment create a Vertex AI pipeline. (correct answer)
  • B1. Initialize the Vertex SDK with the name of your experiment. Log parameters and metrics for each experiment, save your dataset to a Cloud Storage bucket, and upload the models to Vertex AI Model Registry.2. After a successful experiment, create a Vertex AI pipeline.
  • C1. Create a Vertex AI pipeline with parameters you want to track as arguments to your PipelineJob. Use the Metrics, Model, and Dataset artifact types from the Kubeflow Pipelines DSL as the inputs and outputs of the components in your pipeline.2. Associate the pipeline with your experiment when you submit the job.
  • D1. Create a Vertex AI pipeline. Use the Dataset and Model artifact types from the Kubeflow Pipelines DSL as the inputs and outputs of the components in your pipeline.2. In your training component, use the Vertex AI SDK to create an experiment run. Configure the log_params and log_metrics functions to track parameters and metrics of your experiment.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1. Initialize the Vertex SDK with the name of your experiment. Log parameters and metrics for each experiment, and attach dataset and model artifacts as inputs and outputs to each execution.2. After a successful exper...

Explanation

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

Topic 1 · Question 271

You recently created a new Google Cloud project. After testing that you can submit a Vertex AI Pipeline job from the Cloud Shell, you want to use a Vertex AI Workbench user-managed notebook instance to run your code from that instance. You created the instance and ran the code but this time the job fails with an insufficient permissions error. What should you do?

  • AEnsure that the Workbench instance that you created is in the same region of the Vertex AI Pipelines resources you will use.
  • BEnsure that the Vertex AI Workbench instance is on the same subnetwork of the Vertex AI Pipeline resources that you will use.
  • CEnsure that the Vertex AI Workbench instance is assigned the Identity and Access Management (IAM) Vertex AI User role. (correct answer)
  • DEnsure that the Vertex AI Workbench instance is assigned the Identity and Access Management (IAM) Notebooks Runner role.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Ensure that the Vertex AI Workbench instance is assigned the Identity and Access Management (IAM) Vertex AI User role.

Explanation

Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models. Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources.

Topic 1 · Question 272

You work for a semiconductor manufacturing company. You need to create a real-time application that automates the quality control process. High-definition images of each semiconductor are taken at the end of the assembly line in real time. The photos are uploaded to a Cloud Storage bucket along with tabular data that includes each semiconductor’s batch number, serial number, dimensions, and weight. You need to configure model training and serving while maximizing model accuracy. What should you do?

  • AUse Vertex AI Data Labeling Service to label the images, and tram an AutoML image classification model. Deploy the model, and configure Pub/Sub to publish a message when an image is categorized into the failing class. (correct answer)
  • BUse Vertex AI Data Labeling Service to label the images, and train an AutoML image classification model. Schedule a daily batch prediction job that publishes a Pub/Sub message when the job completes.
  • CConvert the images into an embedding representation. Import this data into BigQuery, and train a BigQuery ML K-means clustering model with two clusters. Deploy the model and configure Pub/Sub to publish a message when a semiconductor’s data is categorized into the failing cluster.
  • DImport the tabular data into BigQuery, use Vertex AI Data Labeling Service to label the data and train an AutoML tabular classification model. Deploy the model, and configure Pub/Sub to publish a message when a semiconductor’s data is categorized into the failing class.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use Vertex AI Data Labeling Service to label the images, and tram an AutoML image classification model. Deploy the model, and configure Pub/Sub to publish a message when an image is categorized into the failing class.

Explanation

Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams. 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. This option meets the real-time / low-latency performance requirement.

Topic 1 · Question 273

You work for a rapidly growing social media company. Your team builds TensorFlow recommender models in an on-premises CPU cluster. The data contains billions of historical user events and 100,000 categorical features. You notice that as the data increases, the model training time increases. You plan to move the models to Google Cloud. You want to use the most scalable approach that also minimizes training time. What should you do?

  • ADeploy the training jobs by using TPU VMs with TPUv3 Pod slices, and use the TPUEmbeading API (correct answer)
  • BDeploy the training jobs in an autoscaling Google Kubernetes Engine cluster with CPUs
  • CDeploy a matrix factorization model training job by using BigQuery ML
  • DDeploy the training jobs by using Compute Engine instances with A100 GPUs, and use the tf.nn.embedding_lookup API
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Deploy the training jobs by using TPU VMs with TPUv3 Pod slices, and use the TPUEmbeading API.

Topic 1 · Question 274

You are training and deploying updated versions of a regression model with tabular data by using Vertex AI Pipelines, Vertex AI Training, Vertex AI Experiments, and Vertex AI Endpoints. The model is deployed in a Vertex AI endpoint, and your users call the model by using the Vertex AI endpoint. You want to receive an email when the feature data distribution changes significantly, so you can retrigger the training pipeline and deploy an updated version of your model. What should you do?

  • AUse Vertex Al Model Monitoring. Enable prediction drift monitoring on the endpoint, and specify a notification email. (correct answer)
  • BIn Cloud Logging, create a logs-based alert using the logs in the Vertex Al endpoint. Configure Cloud Logging to send an email when the alert is triggered.
  • CIn Cloud Monitoring create a logs-based metric and a threshold alert for the metric. Configure Cloud Monitoring to send an email when the alert is triggered.
  • DExport the container logs of the endpoint to BigQuery. Create a Cloud Function to run a SQL query over the exported logs and send an email. Use Cloud Scheduler to trigger the Cloud Function.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use Vertex Al Model Monitoring. Enable prediction drift monitoring on the endpoint, and specify a notification email.

Topic 1 · Question 275

You have trained an XGBoost model that you plan to deploy on Vertex AI for online prediction. You are now uploading your model to Vertex AI Model Registry, and you need to configure the explanation method that will serve online prediction requests to be returned with minimal latency. You also want to be alerted when feature attributions of the model meaningfully change over time. What should you do?

  • A1. Specify sampled Shapley as the explanation method with a path count of 5.2. Deploy the model to Vertex AI Endpoints.3. Create a Model Monitoring job that uses prediction drift as the monitoring objective. (correct answer)
  • B1. Specify Integrated Gradients as the explanation method with a path count of 5.2. Deploy the model to Vertex AI Endpoints.3. Create a Model Monitoring job that uses prediction drift as the monitoring objective.
  • C1. Specify sampled Shapley as the explanation method with a path count of 50.2. Deploy the model to Vertex AI Endpoints.3. Create a Model Monitoring job that uses training-serving skew as the monitoring objective.
  • D1. Specify Integrated Gradients as the explanation method with a path count of 50.2. Deploy the model to Vertex AI Endpoints.3. Create a Model Monitoring job that uses training-serving skew as the monitoring objective.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1. Specify sampled Shapley as the explanation method with a path count of 5.2. Deploy the model to Vertex AI Endpoints.3. Create a Model Monitoring job that uses prediction drift as the monitoring objective.

Explanation

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

Topic 1 · Question 276

You work at a gaming startup that has several terabytes of structured data in Cloud Storage. This data includes gameplay time data, user metadata, and game metadata. You want to build a model that recommends new games to users that requires the least amount of coding. What should you do?

  • ALoad the data in BigQuery. Use BigQuery ML to train an Autoencoder model.
  • BLoad the data in BigQuery. Use BigQuery ML to train a matrix factorization model. (correct answer)
  • CRead data to a Vertex AI Workbench notebook. Use TensorFlow to train a two-tower model.
  • DRead data to a Vertex AI Workbench notebook. Use TensorFlow to train a matrix factorization model.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Load the data in BigQuery. Use BigQuery ML to train a matrix factorization model.

Explanation

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

Topic 1 · Question 277

You work for a large bank that serves customers through an application hosted in Google Cloud that is running in the US and Singapore. You have developed a PyTorch model to classify transactions as potentially fraudulent or not. The model is a three-layer perceptron that uses both numerical and categorical features as input, and hashing happens within the model. You deployed the model to the us-central1 region on nl-highcpu-16 machines, and predictions are served in real time. The model's current median response latency is 40 ms. You want to reduce latency, especially in Singapore, where some customers are experiencing the longest delays. What should you do?

  • AAttach an NVIDIA T4 GPU to the machines being used for online inference.
  • BChange the machines being used for online inference to nl-highcpu-32.
  • CDeploy the model to Vertex AI private endpoints in the us-central1 and asia-southeast1 regions, and allow the application to choose the appropriate endpoint. (correct answer)
  • DCreate another Vertex AI endpoint in the asia-southeast1 region, and allow the application to choose the appropriate endpoint.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Deploy the model to Vertex AI private endpoints in the us-central1 and asia-southeast1 regions, and allow the application to choose the appropriate endpoint.

Explanation

Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models. This option meets the real-time / low-latency performance requirement.

Topic 1 · Question 278

You need to train an XGBoost model on a small dataset. Your training code requires custom dependencies. You want to minimize the startup time of your training job. How should you set up your Vertex AI custom training job?

  • AStore the data in a Cloud Storage bucket, and create a custom container with your training application. In your training application, read the data from Cloud Storage and train the model. (correct answer)
  • BUse the XGBoost prebuilt custom container. Create a Python source distribution that includes the data and installs the dependencies at runtime. In your training application, load the data into a pandas DataFrame and train the model.
  • CCreate a custom container that includes the data. In your training application, load the data into a pandas DataFrame and train the model.
  • DStore the data in a Cloud Storage bucket, and use the XGBoost prebuilt custom container to run your training application. Create a Python source distribution that installs the dependencies at runtime. In your training application, read the data from Cloud Storage and train the model.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Store the data in a Cloud Storage bucket, and create a custom container with your training application. In your training application, read the data from Cloud Storage and train the model.

Explanation

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

Topic 1 · Question 279

You are creating an ML pipeline for data processing, model training, and model deployment that uses different Google Cloud services. You have developed code for each individual task, and you expect a high frequency of new files. You now need to create an orchestration layer on top of these tasks. You only want this orchestration pipeline to run if new files are present in your dataset in a Cloud Storage bucket. You also want to minimize the compute node costs. What should you do?

  • ACreate a pipeline in Vertex AI Pipelines. Configure the first step to compare the contents of the bucket to the last time the pipeline was run. Use the scheduler API to run the pipeline periodically.
  • BCreate a Cloud Function that uses a Cloud Storage trigger and deploys a Cloud Composer directed acyclic graph (DAG).
  • CCreate a pipeline in Vertex AI Pipelines. Create a Cloud Function that uses a Cloud Storage trigger and deploys the pipeline. (correct answer)
  • DDeploy a Cloud Composer directed acyclic graph (DAG) with a GCSObjectUpdateSensor class that detects when a new file is added to the Cloud Storage bucket.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a pipeline in Vertex AI Pipelines. Create a Cloud Function that uses a Cloud Storage trigger and deploys the pipeline.

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 280

You are using Kubeflow Pipelines to develop an end-to-end PyTorch-based MLOps pipeline. The pipeline reads data from BigQuery, processes the data, conducts feature engineering, model training, model evaluation, and deploys the model as a binary file to Cloud Storage. You are writing code for several different versions of the feature engineering and model training steps, and running each new version in Vertex AI Pipelines. Each pipeline run is taking over an hour to complete. You want to speed up the pipeline execution to reduce your development time, and you want to avoid additional costs. What should you do?

  • AComment out the part of the pipeline that you are not currently updating.
  • BEnable caching in all the steps of the Kubeflow pipeline. (correct answer)
  • CDelegate feature engineering to BigQuery and remove it from the pipeline.
  • DAdd a GPU to the model training step.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Enable caching in all the steps of the Kubeflow pipeline.

Showing questions 261280 of 339 · Page 14 of 17