πŸ”

PMLE β€” questions

Page 17 of 17 Β· 339 total questions.

Topic 1 Β· Question 321

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 train 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 increase the number of fraudulent transactions that are detected?

  • AAdd more non-fraudulent examples to the training set.
  • BReduce the maximum number of node hours for training.
  • CIncrease the probability threshold to classify a fraudulent transaction.
  • DDecrease the probability threshold to classify a fraudulent transaction. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Decrease the probability threshold to classify a fraudulent transaction.

Topic 1 Β· Question 322

You work at an organization that maintains a cloud-based communication platform that integrates conventional chat, voice, and video conferencing into one platform. The audio recordings are stored in Cloud Storage. All recordings have a 16 kHz sample rate and are more than one minute long. You need to implement a new feature in the platform that will automatically transcribe voice call recordings into text for future applications, such as call summarization and sentiment analysis. How should you implement the voice call transcription feature while following Google-recommended practices?

  • AUse the original audio sampling rate, and transcribe the audio by using the Speech-to-Text API with synchronous recognition.
  • BUse the original audio sampling rate, and transcribe the audio by using the Speech-to-Text API with asynchronous recognition. (correct answer)
  • CDownsample the audio recordings to 8 kHz, and transcribe the audio by using the Speech-to-Text API with synchronous recognition.
  • DDownsample the audio recordings to 8 kHz, and transcribe the audio by using the Speech-to-Text API with asynchronous recognition.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use the original audio sampling rate, and transcribe the audio by using the Speech-to-Text API with asynchronous recognition.

Explanation

Speech-to-Text converts audio into text via an API.

Topic 1 Β· Question 323

You have created multiple versions of an ML model and have imported them to Vertex AI Model Registry. You want to perform A/B testing to identify the best performing model using the simplest approach. What should you do?

  • ASplit incoming traffic to distribute prediction requests among the versions. Monitor the performance of each version using Vertex AI's built-in monitoring tools. (correct answer)
  • BSplit incoming traffic among Google Kubernetes Engine (GKE) clusters, and use Traffic Director to distribute prediction requests to different versions. Monitor the performance of each version using Cloud Monitoring.
  • CSplit incoming traffic to distribute prediction requests among the versions. Monitor the performance of each version using Looker Studio dashboards that compare logged data for each version.
  • DSplit incoming traffic among separate Cloud Run instances of deployed models. Monitor the performance of each version using Cloud Monitoring.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Split incoming traffic to distribute prediction requests among the versions. Monitor the performance of each version using Vertex AI's built-in monitoring tools.

Explanation

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

Topic 1 Β· Question 324

You need to train an XGBoost model on a small dataset. Your training code requires custom dependencies. You need to set up a Vertex AI custom training job. You want to minimize the startup time of the training job while following Google-recommended practices. What should you do?

  • ACreate a custom container that includes the data and the custom dependencies. In your training application, load the data into a pandas DataFrame and train the model.
  • BStore 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 custom dependencies at runtime. In your training application, read the data from Cloud Storage and train the model.
  • CUse the XGBoost prebuilt custom container. Create a Python source distribution that includes the data and installs the custom dependencies at runtime. In your training application, load the data into a pandas DataFrame and train the model.
  • DStore the data in a Cloud Storage bucket, and create a custom container with your training application and its custom dependencies. In your training application, read the data from Cloud Storage and train the model. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Store the data in a Cloud Storage bucket, and create a custom container with your training application and its custom dependencies. 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 325

You are building an ML model to predict customer churn for a subscription service. You have trained your model on Vertex AI using historical data, and deployed it to a Vertex AI endpoint for real-time predictions. After a few weeks, you notice that the model's performance, measured by AUC (area under the ROC curve), has dropped significantly in production compared to its performance during training. How should you troubleshoot this problem?

  • AMonitor the training/serving skew of feature values for requests sent to the endpoint. (correct answer)
  • BMonitor the resource utilization of the endpoint, such as CPU and memory usage, to identify potential bottlenecks in performance.
  • CEnable Vertex Explainable AI feature attribution to analyze model predictions and understand the impact of each feature on the model's predictions.
  • DMonitor the latency of the endpoint to determine whether predictions are being served within the expected time frame.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Monitor the training/serving skew of feature values for requests sent to the endpoint. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 326

You work at an organization that manages a popular payment app. You built a fraudulent transaction detection model by using scikit-learn and deployed it to a Vertex AI endpoint. The endpoint is currently using 1 e2-standard-2 machine with 2 vCPUs and 8 GB of memory. You discover that traffic on the gateway fluctuates to four times more than the endpoint's capacity. You need to address this issue by using the most cost-effective approach. What should you do?

  • ARe-deploy the model with a TPU accelerator.
  • BChange the machine type to e2-highcpu-32 with 32 vCPUs and 32 GB of memory.
  • CSet up a monitoring job and an alert for CPU usage. If you receive an alert, scale the vCPUs as needed.
  • DIncrease the number of maximum replicas to 6 nodes, each with 1 e2-standard-2 machine. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Increase the number of maximum replicas to 6 nodes, each with 1 e2-standard-2 machine. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 327

You are developing an AI text generator that will be able to dynamically adapt its generated responses to mirror the writing style of the user and mimic famous authors if their style is detected. You have a large dataset of various authors' works, and you plan to host the model on a custom VM. You want to use the most effective model. What should you do?

  • ADeploy Llama 3 from Model Garden, and use prompt engineering techniques.
  • BFine-tune a BERT-based model from TensorFlow Hub.
  • CFine-tune Llama 3 from Model Garden on Vertex AI Pipelines. (correct answer)
  • DUse the Gemini 1.5 Flash foundational model to build the text generator.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Fine-tune Llama 3 from Model Garden on Vertex AI Pipelines.

Explanation

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

Topic 1 Β· Question 328

You are a lead ML architect at a small company that is migrating from on-premises to Google Cloud. Your company has limited resources and expertise in cloud infrastructure. You want to serve your models from Google Cloud as soon as possible. You want to use a scalable, reliable, and cost-effective solution that requires no additional resources. What should you do?

  • AConfigure Compute Engine VMs to host your models.
  • BCreate a Cloud Run function to deploy your models as serverless functions.
  • CCreate a managed cluster on Google Kubernetes Engine (GKE), and deploy your models as containers.
  • DDeploy your models on Vertex AI endpoints. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Deploy your models on Vertex AI endpoints.

Explanation

Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 329

You deployed a conversational application that uses a large language model (LLM). The application has 1,000 users. You collect user feedback about the verbosity and accuracy of the model 's responses. The user feedback indicates that the responses are factually correct but users want different levels of verbosity depending on the type of question. You want the model to return responses that are more consistent with users' expectations, and you want to use a scalable solution. What should you do?

  • AImplement a keyword-based routing layer. If the user's input contains the words "detailed" or "description," return a verbose response. If the user's input contains the word "fact." re-prompt the language model to summarize the response and return a concise response. (correct answer)
  • BAsk users to provide examples of responses with the appropriate verbosity as a list of question and answer pairs. Use this dataset to perform supervised fine tuning of the foundational model. Re-evaluate the verbosity of responses with the tuned model.
  • CAsk users to indicate all scenarios where they expect concise responses versus verbose responses. Modify the application 's prompt to include these scenarios and their respective verbosity levels. Re-evaluate the verbosity of responses with updated prompts.
  • DExperiment with other proprietary and open-source LLMs. Perform A/B testing by setting each model as your application's default model. Choose a model based on the results.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Implement a keyword-based routing layer. If the user's input contains the words "detailed" or "description," return a verbose response. If the user's input contains the word "fact." re-prompt the language model to sum...

Topic 1 Β· Question 330

You are using Vertex AI to manage your ML models and datasets. You recently updated one of your models. You want to track and compare the new version with the previous one and incorporate dataset versioning. What should you do?

  • AUse Vertex AI TensorBoard to visualize the training metrics of the new model version, and use Data Catalog to manage dataset versioning.
  • BUse Vertex AI Model Monitoring to monitor the performance of the new model version, and use Vertex AI Training to manage dataset versioning.
  • CUse Vertex AI Experiments to track and compare model artifacts and versions, and use Vertex ML Metadata to manage dataset versioning.
  • DUse Vertex AI Experiments to track and compare model artifacts and versions, and use Vertex AI managed datasets to manage dataset versioning. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use Vertex AI Experiments to track and compare model artifacts and versions, and use Vertex AI managed datasets to manage dataset versioning.

Explanation

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

Topic 1 Β· Question 331

You are creating a retraining policy for a customer churn prediction model deployed in Vertex AI. New training data is added weekly. You want to implement a model retraining process that minimizes cost and effort. What should you do?

  • ARetrain the model when a significant shift in the distribution of customer attributes is detected in the production data compared to the training data. (correct answer)
  • BRetrain the model when the model's latency increases by 10% due to increased traffic.
  • CRetrain the model when the model accuracy drops by 10% on the new training dataset.
  • DRetrain the model every week when new training data is available.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Retrain the model when a significant shift in the distribution of customer attributes is detected in the production data compared to the training data.

Topic 1 Β· Question 332

You are an AI engineer with an apparel retail company. The sales team has observed seasonal sales patterns over the past 5-6 years. The sales team analyzes and visualizes the weekly sales data stored in CSV files. You have been asked to estimate weekly sales for future seasons to optimize inventory and personnel workloads. You want to use the most efficient approach. What should you do?

  • AUpload the files into Cloud Storage. Use Python to preprocess and load the tabular data into BigQuery. Use time series forecasting models to predict weekly sales. (correct answer)
  • BUpload the files into Cloud Storage. Use Python to preprocess and load the tabular data into BigQuery. Train a logistic regression model by using BigQuery ML to predict each product's weekly sales as one of three categories: high, medium, or low.
  • CLoad the files into BigQuery. Preprocess data by using BigQuery SQL. Connect BigQuery to Looker. Create a Looker dashboard that shows weekly sales trends in real time and can slice and dice the data based on relevant filters.
  • DCreate a custom conversational application using Vertex AI Agent Builder. Include code that enables file upload functionality, and upload the files. Use few-shot prompting and retrieval-augmented generation (RAG) to predict future sales trends by using the Gemini large language model (LLM).
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Upload the files into Cloud Storage. Use Python to preprocess and load the tabular data into BigQuery. Use time series forecasting models to predict weekly sales.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 333

Your company's business stakeholders want to understand the factors driving customer churn to inform their business strategy. You need to build a customer churn prediction model that prioritizes simple interpretability of your model's results. You need to choose the ML framework and modeling technique that will explain which features led to the prediction. What should you do?

  • ABuild a TensorFlow deep neural network (DNN) model, and use SHAP values for feature importance analysis.
  • BBuild a PyTorch long short-term memory (LSTM) network, and use attention mechanisms for interpretability.
  • CBuild a logistic regression model in scikit-learn, and interpret the model's output coefficients to understand feature impact. (correct answer)
  • DBuild a linear regression model in scikit-learn, and interpret the model's standardized coefficients to understand feature impact.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Build a logistic regression model in scikit-learn, and interpret the model's output coefficients to understand feature impact.

Topic 1 Β· Question 334

You are responsible for managing and monitoring a Vertex AI model that is deployed in production. You want to automatically retrain the model when its performance deteriorates. What should you do?

  • ACreate a Vertex AI Model Monitoring job to track the model's performance with production data, and trigger retraining when specific metrics drop below predefined thresholds. (correct answer)
  • BCollect feedback from end users, and retrain the model based on their assessment of its performance.
  • CConfigure a scheduled job to evaluate the model's performance on a static dataset, and retrain the model if the performance drops below predefined thresholds.
  • DUse Vertex Explainable AI to analyze feature attributions and identify potential biases in the model. Retrain when significant shifts in feature importance or biases are detected.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a Vertex AI Model Monitoring job to track the model's performance with production data, and trigger retraining when specific metrics drop below predefined thresholds.

Explanation

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

Topic 1 Β· Question 335

You have recently developed a new ML model in a Jupyter notebook. You want to establish a reliable and repeatable model training process that tracks the versions and lineage of your model artifacts. You plan to retrain your model weekly. How should you operationalize your training process?

  • A1. Create an instance of the CustomTrainingJob class with the Vertex AI SDK to train your model.2. Using the Notebooks API, create a scheduled execution to run the training code weekly.
  • B1. Create an instance of the CustomJob class with the Vertex AI SDK to train your model.2. Use the Metadata API to register your model as a model artifact.3. Using the Notebooks API, create a scheduled execution to run the training code weekly.
  • C1. Create a managed pipeline in Vertex AI Pipelines to train your model by using a Vertex AI CustomTrainingJobOp component.2. Use the ModelUploadOp component to upload your model to Vertex AI Model Registry.3. Use Cloud Scheduler and Cloud Run functions to run the Vertex AI pipeline weekly. (correct answer)
  • D1. Create a managed pipeline in Vertex AI Pipelines to train your model using a Vertex AI HyperParameterTuningJobRunOp component.2. Use the ModelUploadOp component to upload your model to Vertex AI Model Registry.3. Use Cloud Scheduler and Cloud Run functions to run the Vertex AI pipeline weekly.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: 1. Create a managed pipeline in Vertex AI Pipelines to train your model by using a Vertex AI CustomTrainingJobOp component.2. Use the ModelUploadOp component to upload your model to Vertex AI Model Registry.3. Use Clo...

Explanation

Cloud Run runs stateless containers serverlessly and scales to zero, minimizing operational overhead. Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 Β· Question 336

You have developed a custom ML model using Vertex AI and want to deploy it for online serving. You need to optimize the model's serving performance by ensuring that the model can handle high throughput while minimizing latency. You want to use the simplest solution. What should you do?

  • ADeploy the model to a Vertex AI endpoint resource to automatically scale the serving backend based on the throughput. Configure the endpoint's autoscaling settings to minimize latency. (correct answer)
  • BImplement a containerized serving solution using Cloud Run. Configure the concurrency settings to handle multiple requests simultaneously.
  • CApply simplification techniques such as model pruning and quantization to reduce the model's size and complexity. Retrain the model using Vertex AI to improve its performance, latency, memory, and throughput.
  • DEnable request-response logging for the model hosted in Vertex AI. Use Looker Studio to analyze the logs, identify bottlenecks, and optimize the model accordingly.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Deploy the model to a Vertex AI endpoint resource to automatically scale the serving backend based on the throughput. Configure the endpoint's autoscaling settings to minimize latency.

Explanation

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

Topic 1 Β· Question 337

Your company needs to generate product summaries for vendors. You evaluate a foundation model from Model Garden for text summarization and find the style of the summaries are not aligned with your company's brand voice. How should you improve this LLM-based summarization model to better meet your business objectives?

  • AReplace the pre-trained model with another model in Model Garden.
  • BFine-tune the model using a company-specific dataset. (correct answer)
  • CIncrease the model's temperature parameter.
  • DTune the token output limit in the response.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Fine-tune the model using a company-specific dataset.

Topic 1 Β· Question 338

You built a custom Vertex AI pipeline job that preprocesses images and trains an object detection model. The pipeline currently uses 1 n1-standard-8 machine with 1 NVIDIA Tesla V100 GPU. You want to reduce the model training time without compromising model accuracy. What should you do?

  • AReduce the number of layers in your object detection model.
  • BTrain the same model on a stratified subset of your dataset.
  • CUpdate the WorkerPoolSpec to use a machine with 24 vCPUs and 1 NVIDIA Tesla V100 GPU.
  • DUpdate the WorkerPoolSpec to use a machine with 24 vCPUs and 3 NVIDIA Tesla V100 GPUs. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Update the WorkerPoolSpec to use a machine with 24 vCPUs and 3 NVIDIA Tesla V100 GPUs.

Topic 1 Β· Question 339

You are a SQL analyst. You need to utilize a TensorFlow customer segmentation model stored In Cloud Storage. You want to use the simplest and most efficient approach. What should you do?

  • AImport the model into Vertex AI Model Registry. Deploy the model to a Vertex AI endpoint, and use SQL for inference in BigQuery.
  • BDeploy the model by using TensorFlow Serving, and call for inference from BigQuery.
  • CConvert the model into a BigQuery ML model, and use SQL for inference.
  • DImport the model into BigQuery, and use SQL for inference. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Import the model into BigQuery, and use SQL for inference.

Explanation

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

Showing questions 321–339 of 339 Β· Page 17 of 17