πŸ”

PMLE β€” questions

Page 10 of 17 Β· 339 total questions.

Topic 1 Β· Question 181

You work for a bank with strict data governance requirements. You recently implemented a custom model to detect fraudulent transactions. You want your training code to download internal data by using an API endpoint hosted in your project’s network. You need the data to be accessed in the most secure way, while mitigating the risk of data exfiltration. What should you do?

  • AEnable VPC Service Controls for peerings, and add Vertex AI to a service perimeter. (correct answer)
  • BCreate a Cloud Run endpoint as a proxy to the data. Use Identity and Access Management (IAM) authentication to secure access to the endpoint from the training job.
  • CConfigure VPC Peering with Vertex AI, and specify the network of the training job.
  • DDownload the data to a Cloud Storage bucket before calling the training job.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Enable VPC Service Controls for peerings, and add Vertex AI to a service perimeter.

Explanation

VPC Service Controls create a security perimeter around managed services to prevent data exfiltration. A VPC provides a global, software-defined private network for your Google Cloud resources. Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 Β· Question 182

You are deploying a new version of a model to a production Vertex Al endpoint that is serving traffic. You plan to direct all user traffic to the new model. You need to deploy the model with minimal disruption to your application. What should you do?

  • A1. Create a new endpoint2. Create a new model. Set it as the default version. Upload the model to Vertex AI Model Registry3. Deploy the new model to the new endpoint4. Update Cloud DNS to point to the new endpoint
  • B1. Create a new endpoint2. Create a new model. Set the parentModel parameter to the model ID of the currently deployed model and set it as the default version. Upload the model to Vertex AI Model Registry3. Deploy the new model to the new endpoint, and set the new model to 100% of the traffic.
  • C1. Create a new model. Set the parentModel parameter to the model ID of the currently deployed model. Upload the model to Vertex AI Model Registry.2. Deploy the new model to the existing endpoint, and set the new model to 100% of the traffic (correct answer)
  • D1. Create a new model. Set it as the default version. Upload the model to Vertex AI Model Registry2. Deploy the new model to the existing endpoint
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: 1. Create a new model. Set the parentModel parameter to the model ID of the currently deployed model. Upload the model to Vertex AI Model Registry.2. Deploy the new model to the existing endpoint, and set the new mode...

Explanation

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

Topic 1 Β· Question 183

You are training an ML model on a large dataset. You are using a TPU to accelerate the training process. You notice that the training process is taking longer than expected. You discover that the TPU is not reaching its full capacity. What should you do?

  • AIncrease the learning rate
  • BIncrease the number of epochs
  • CDecrease the learning rate
  • DIncrease the batch size (correct answer)
Reveal answer & explanation
Correct answer: D

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

Explanation

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

Topic 1 Β· Question 184

You work for a retail company. You have a managed tabular dataset in Vertex AI that contains sales data from three different stores. The dataset includes several features, such as store name and sale timestamp. You want to use the data to train a model that makes sales predictions for a new store that will open soon. You need to split the data between the training, validation, and test sets. What approach should you use to split the data?

  • AUse Vertex AI manual split, using the store name feature to assign one store for each set
  • BUse Vertex AI default data split
  • CUse Vertex AI chronological split, and specify the sales timestamp feature as the time variable (correct answer)
  • DUse Vertex AI random split, assigning 70% of the rows to the training set, 10% to the validation set, and 20% to the test set
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use Vertex AI chronological split, and specify the sales timestamp feature as the time variable

Explanation

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

Topic 1 Β· Question 185

You have developed a BigQuery ML model that predicts customer chum, and deployed the model to Vertex AI Endpoints. You want to automate the retraining of your model by using minimal additional code when model feature values change. You also want to minimize the number of times that your model is retrained to reduce training costs. What should you do?

  • A1 Enable request-response logging on Vertex AI Endpoints2. Schedule a TensorFlow Data Validation job to monitor prediction drift3. Execute model retraining if there is significant distance between the distributions
  • B1. Enable request-response logging on Vertex AI Endpoints2. Schedule a TensorFlow Data Validation job to monitor training/serving skew3. Execute model retraining if there is significant distance between the distributions
  • C1. Create a Vertex AI Model Monitoring job configured to monitor prediction drift2. Configure alert monitoring to publish a message to a Pub/Sub queue when a monitoring alert is detected3. Use a Cloud Function to monitor the Pub/Sub queue, and trigger retraining in BigQuery
  • D1. Create a Vertex AI Model Monitoring job configured to monitor training/serving skew2. Configure alert monitoring to publish a message to a Pub/Sub queue when a monitoring alert is detected3. Use a Cloud Function to monitor the Pub/Sub queue, and trigger retraining in BigQuery (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: 1. Create a Vertex AI Model Monitoring job configured to monitor training/serving skew2. Configure alert monitoring to publish a message to a Pub/Sub queue when a monitoring alert is detected3. Use a Cloud Function to...

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams. Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 Β· Question 186

You have been tasked with deploying prototype code to production. The feature engineering code is in PySpark and runs on Dataproc Serverless. The model training is executed by using a Vertex AI custom training job. The two steps are not connected, and the model training must currently be run manually after the feature engineering step finishes. You need to create a scalable and maintainable production process that runs end-to-end and tracks the connections between steps. What should you do?

  • ACreate a Vertex AI Workbench notebook. Use the notebook to submit the Dataproc Serverless feature engineering job. Use the same notebook to submit the custom model training job. Run the notebook cells sequentially to tie the steps together end-to-end.
  • BCreate a Vertex AI Workbench notebook. Initiate an Apache Spark context in the notebook and run the PySpark feature engineering code. Use the same notebook to run the custom model training job in TensorFlow. Run the notebook cells sequentially to tie the steps together end-to-end.
  • CUse the Kubeflow pipelines SDK to write code that specifies two components:- The first is a Dataproc Serverless component that launches the feature engineering job- The second is a custom component wrapped in the create_custom_training_job_from_component utility that launches the custom model training jobCreate a Vertex AI Pipelines job to link and run both components (correct answer)
  • DUse the Kubeflow pipelines SDK to write code that specifies two components- The first component initiates an Apache Spark context that runs the PySpark feature engineering code- The second component runs the TensorFlow custom model training codeCreate a Vertex AI Pipelines job to link and run both components.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use the Kubeflow pipelines SDK to write code that specifies two components:- The first is a Dataproc Serverless component that launches the feature engineering job- The second is a custom component wrapped in the crea...

Explanation

Dataproc runs managed Spark and Hadoop clusters for big-data processing. Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 Β· Question 187

You recently deployed a scikit-learn model to a Vertex AI endpoint. You are now testing the model on live production traffic. While monitoring the endpoint, you discover twice as many requests per hour than expected throughout the day. You want the endpoint to efficiently scale when the demand increases in the future to prevent users from experiencing high latency. What should you do?

  • ADeploy two models to the same endpoint, and distribute requests among them evenly
  • BConfigure an appropriate minReplicaCount value based on expected baseline traffic (correct answer)
  • CSet the target utilization percentage in the autoscailngMetricSpecs configuration to a higher value
  • DChange the model’s machine type to one that utilizes GPUs
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Configure an appropriate minReplicaCount value based on expected baseline traffic.

Topic 1 Β· Question 188

You work at a bank. You have a custom tabular ML model that was provided by the bank’s vendor. The training data is not available due to its sensitivity. The model is packaged as a Vertex AI Model serving container, which accepts a string as input for each prediction instance. In each string, the feature values are separated by commas. You want to deploy this model to production for online predictions and monitor the feature distribution over time with minimal effort. What should you do?

  • A1. Upload the model to Vertex AI Model Registry, and deploy the model to a Vertex AI endpoint2. Create a Vertex AI Model Monitoring job with feature drift detection as the monitoring objective, and provide an instance schema (correct answer)
  • B1. Upload the model to Vertex AI Model Registry, and deploy the model to a Vertex AI endpoint2. Create a Vertex AI Model Monitoring job with feature skew detection as the monitoring objective, and provide an instance schema
  • C1. Refactor the serving container to accept key-value pairs as input format2. Upload the model to Vertex AI Model Registry, and deploy the model to a Vertex AI endpoint3. Create a Vertex AI Model Monitoring job with feature drift detection as the monitoring objective.
  • D1. Refactor the serving container to accept key-value pairs as input format2. Upload the model to Vertex AI Model Registry, and deploy the model to a Vertex AI endpoint3. Create a Vertex AI Model Monitoring job with feature skew detection as the monitoring objective
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1. Upload the model to Vertex AI Model Registry, and deploy the model to a Vertex AI endpoint2. Create a Vertex AI Model Monitoring job with feature drift detection as the monitoring objective, and provide an instance...

Explanation

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

Topic 1 Β· Question 189

You are implementing a batch inference ML pipeline in Google Cloud. The model was developed using TensorFlow and is stored in SavedModel format in Cloud Storage. You need to apply the model to a historical dataset containing 10 TB of data that is stored in a BigQuery table. How should you perform the inference?

  • AExport the historical data to Cloud Storage in Avro format. Configure a Vertex AI batch prediction job to generate predictions for the exported data
  • BImport the TensorFlow model by using the CREATE MODEL statement in BigQuery ML. Apply the historical data to the TensorFlow model (correct answer)
  • CExport the historical data to Cloud Storage in CSV format. Configure a Vertex AI batch prediction job to generate predictions for the exported data
  • DConfigure a Vertex AI batch prediction job to apply the model to the historical data in BigQuery
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Import the TensorFlow model by using the CREATE MODEL statement in BigQuery ML. Apply the historical data to the TensorFlow model

Explanation

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

Topic 1 Β· Question 190

You recently deployed a model to a Vertex AI endpoint. Your data drifts frequently, so you have enabled request-response logging and created a Vertex AI Model Monitoring job. You have observed that your model is receiving higher traffic than expected. You need to reduce the model monitoring cost while continuing to quickly detect drift. What should you do?

  • AReplace the monitoring job with a DataFlow pipeline that uses TensorFlow Data Validation (TFDV)
  • BReplace the monitoring job with a custom SQL script to calculate statistics on the features and predictions in BigQuery
  • CDecrease the sample_rate parameter in the RandomSampleConfig of the monitoring job (correct answer)
  • DIncrease the monitor_interval parameter in the ScheduleConfig of the monitoring job
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Decrease the sample_rate parameter in the RandomSampleConfig of the monitoring job.

Topic 1 Β· Question 191

You work for a retail company. You have created a Vertex AI forecast model that produces monthly item sales predictions. You want to quickly create a report that will help to explain how the model calculates the predictions. You have one month of recent actual sales data that was not included in the training dataset. How should you generate data for your report?

  • ACreate a batch prediction job by using the actual sales data. Compare the predictions to the actuals in the report.
  • BCreate a batch prediction job by using the actual sales data, and configure the job settings to generate feature attributions. Compare the results in the report. (correct answer)
  • CGenerate counterfactual examples by using the actual sales data. Create a batch prediction job using the actual sales data and the counterfactual examples. Compare the results in the report.
  • DTrain another model by using the same training dataset as the original, and exclude some columns. Using the actual sales data create one batch prediction job by using the new model and another one with the original model. Compare the two sets of predictions in the report.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a batch prediction job by using the actual sales data, and configure the job settings to generate feature attributions. Compare the results in the report.

Explanation

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

Topic 1 Β· Question 192

Your team has a model deployed to a Vertex AI endpoint. You have created a Vertex AI pipeline that automates the model training process and is triggered by a Cloud Function. You need to prioritize keeping the model up-to-date, but also minimize retraining costs. How should you configure retraining?

  • AConfigure Pub/Sub to call the Cloud Function when a sufficient amount of new data becomes available
  • BConfigure a Cloud Scheduler job that calls the Cloud Function at a predetermined frequency that fits your team’s budget
  • CEnable model monitoring on the Vertex AI endpoint. Configure Pub/Sub to call the Cloud Function when anomalies are detected
  • DEnable model monitoring on the Vertex AI endpoint. Configure Pub/Sub to call the Cloud Function when feature drift is detected (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Enable model monitoring on the Vertex AI endpoint. Configure Pub/Sub to call the Cloud Function when feature drift is detected

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.

Topic 1 Β· Question 193

Your company stores a large number of audio files of phone calls made to your customer call center in an on-premises database. Each audio file is in wav format and is approximately 5 minutes long. You need to analyze these audio files for customer sentiment. You plan to use the Speech-to-Text API You want to use the most efficient approach. What should you do?

  • A1. Upload the audio files to Cloud Storage2. Call the speech:longrunningrecognize API endpoint to generate transcriptions3. Call the predict method of an AutoML sentiment analysis model to analyze the transcriptions.
  • B1. Upload the audio files to Cloud Storage.2. Call the speech:longrunningrecognize API endpoint to generate transcriptions3. Create a Cloud Function that calls the Natural Language API by using the analyzeSentiment method (correct answer)
  • C1. Iterate over your local files in Python2. Use the Speech-to-Text Python library to create a speech.RecognitionAudio object, and set the content to the audio file data3. Call the speech:recognize API endpoint to generate transcriptions4. Call the predict method of an AutoML sentiment analysis model to analyze the transcriptions.
  • D1. Iterate over your local files in Python2. Use the Speech-to-Text Python Library to create a speech.RecognitionAudio object and set the content to the audio file data3. Call the speech:longrunningrecognize API endpoint to generate transcriptions.4. Call the Natural Language API by using the analyzeSentiment method
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: 1. Upload the audio files to Cloud Storage.2. Call the speech:longrunningrecognize API endpoint to generate transcriptions3. Create a Cloud Function that calls the Natural Language API by using the analyzeSentiment me...

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Natural Language API extracts entities and sentiment from text.

Topic 1 Β· Question 194

You work for a social media company. You want to create a no-code image classification model for an iOS mobile application to identify fashion accessories. You have a labeled dataset in Cloud Storage. You need to configure a training workflow that minimizes cost and serves predictions with the lowest possible latency. What should you do?

  • ATrain the model by using AutoML, and register the model in Vertex AI Model Registry. Configure your mobile application to send batch requests during prediction.
  • BTrain the model by using AutoML Edge, and export it as a Core ML model. Configure your mobile application to use the .mlmodel file directly. (correct answer)
  • CTrain the model by using AutoML Edge, and export the model as a TFLite model. Configure your mobile application to use the .tflite file directly.
  • DTrain the model by using AutoML, and expose the model as a Vertex AI endpoint. Configure your mobile application to invoke the endpoint during prediction.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Train the model by using AutoML Edge, and export it as a Core ML model. Configure your mobile application to use the.mlmodel file directly.

Explanation

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

Topic 1 Β· Question 195

You work for a retail company. You have been asked to develop a model to predict whether a customer will purchase a product on a given day. Your team has processed the company’s sales data, and created a table with the following rows: β€’ Customer_id β€’ Product_id β€’ Date β€’ Days_since_last_purchase (measured in days) β€’ Average_purchase_frequency (measured in 1/days) β€’ Purchase (binary class, if customer purchased product on the Date) You need to interpret your model’s results for each individual prediction. What should you do?

  • ACreate a BigQuery table. Use BigQuery ML to build a boosted tree classifier. Inspect the partition rules of the trees to understand how each prediction flows through the trees.
  • BCreate a Vertex AI tabular dataset. Train an AutoML model to predict customer purchases. Deploy the model to a Vertex AI endpoint and enable feature attributions. Use the β€œexplain” method to get feature attribution values for each individual prediction. (correct answer)
  • CCreate a BigQuery table. Use BigQuery ML to build a logistic regression classification model. Use the values of the coefficients of the model to interpret the feature importance, with higher values corresponding to more importance
  • DCreate a Vertex AI tabular dataset. Train an AutoML model to predict customer purchases. Deploy the model to a Vertex AI endpoint. At each prediction, enable L1 regularization to detect non-informative features.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a Vertex AI tabular dataset. Train an AutoML model to predict customer purchases. Deploy the model to a Vertex AI endpoint and enable feature attributions. Use the β€œexplain” method to get feature attribution va...

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 196

You work for a company that captures live video footage of checkout areas in their retail stores. You need to use the live video footage to build a model to detect the number of customers waiting for service in near real time. You want to implement a solution quickly and with minimal effort. How should you build the model?

  • AUse the Vertex AI Vision Occupancy Analytics model. (correct answer)
  • BUse the Vertex AI Vision Person/vehicle detector model.
  • CTrain an AutoML object detection model on an annotated dataset by using Vertex AutoML.
  • DTrain a Seq2Seq+ object detection model on an annotated dataset by using Vertex AutoML.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use the Vertex AI Vision Occupancy Analytics model.

Explanation

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

Topic 1 Β· Question 197

You work as an analyst at a large banking firm. You are developing a robust scalable ML pipeline to tram several regression and classification models. Your primary focus for the pipeline is model interpretability. You want to productionize the pipeline as quickly as possible. What should you do?

  • AUse Tabular Workflow for Wide & Deep through Vertex AI Pipelines to jointly train wide linear models and deep neural networks
  • BUse Google Kubernetes Engine to build a custom training pipeline for XGBoost-based models
  • CUse Tabular Workflow for TabNet through Vertex AI Pipelines to train attention-based models (correct answer)
  • DUse Cloud Composer to build the training pipelines for custom deep learning-based models
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use Tabular Workflow for TabNet through Vertex AI Pipelines to train attention-based models

Explanation

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

Topic 1 Β· Question 198

You developed a Transformer model in TensorFlow to translate text. Your training data includes millions of documents in a Cloud Storage bucket. You plan to use distributed training to reduce training time. You need to configure the training job while minimizing the effort required to modify code and to manage the cluster’s configuration. What should you do?

  • ACreate a Vertex AI custom training job with GPU accelerators for the second worker pool. Use tf.distribute.MultiWorkerMirroredStrategy for distribution. (correct answer)
  • BCreate a Vertex AI custom distributed training job with Reduction Server. Use N1 high-memory machine type instances for the first and second pools, and use N1 high-CPU machine type instances for the third worker pool.
  • CCreate a training job that uses Cloud TPU VMs. Use tf.distribute.TPUStrategy for distribution.
  • DCreate a Vertex AI custom training job with a single worker pool of A2 GPU machine type instances. Use tf.distribute.MirroredStrategv for distribution.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a Vertex AI custom training job with GPU accelerators for the second worker pool. Use tf.distribute.MultiWorkerMirroredStrategy for distribution.

Explanation

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

Topic 1 Β· Question 199

You are developing a process for training and running your custom model in production. You need to be able to show lineage for your model and predictions. What should you do?

  • A1. Create a Vertex AI managed dataset.2. Use a Vertex AI training pipeline to train your model.3. Generate batch predictions in Vertex AI.
  • B1. Use a Vertex AI Pipelines custom training job component to tram your model.2. Generate predictions by using a Vertex AI Pipelines model batch predict component. (correct answer)
  • C1. Upload your dataset to BigQuery.2. Use a Vertex AI custom training job to train your model.3. Generate predictions by using Vertex Al SDK custom prediction routines.
  • D1. Use Vertex AI Experiments to train your model.2. Register your model in Vertex AI Model Registry.3. Generate batch predictions in Vertex AI.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: 1. Use a Vertex AI Pipelines custom training job component to tram your model.2. Generate predictions by using a Vertex AI Pipelines model batch predict component.

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 200

You work for a hotel and have a dataset that contains customers’ written comments scanned from paper-based customer feedback forms, which are stored as PDF files. Every form has the same layout. You need to quickly predict an overall satisfaction score from the customer comments on each form. How should you accomplish this task?

  • AUse the Vision API to parse the text from each PDF file. Use the Natural Language API analyzeSentiment feature to infer overall satisfaction scores.
  • BUse the Vision API to parse the text from each PDF file. Use the Natural Language API analyzeEntitySentiment feature to infer overall satisfaction scores.
  • CUptrain a Document AI custom extractor to parse the text in the comments section of each PDF file. Use the Natural Language API analyzeSentiment feature to infer overall satisfaction scores. (correct answer)
  • DUptrain a Document AI custom extractor to parse the text in the comments section of each PDF file. Use the Natural Language API analyzeEntitySentiment feature to infer overall satisfaction scores.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Uptrain a Document AI custom extractor to parse the text in the comments section of each PDF file. Use the Natural Language API analyzeSentiment feature to infer overall satisfaction scores.

Explanation

Document AI extracts structured data from documents. Natural Language API extracts entities and sentiment from text.

Showing questions 181–200 of 339 Β· Page 10 of 17