🔍

PMLE — questions

Page 15 of 17 · 339 total questions.

Topic 1 · Question 281

You work at a large organization that recently decided to move their ML and data workloads to Google Cloud. The data engineering team has exported the structured data to a Cloud Storage bucket in Avro format. You need to propose a workflow that performs analytics, creates features, and hosts the features that your ML models use for online prediction. How should you configure the pipeline?

  • AIngest the Avro files into Cloud Spanner to perform analytics. Use a Dataflow pipeline to create the features, and store them in Vertex AI Feature Store for online prediction.
  • BIngest the Avro files into BigQuery to perform analytics. Use a Dataflow pipeline to create the features, and store them in Vertex AI Feature Store for online prediction. (correct answer)
  • CIngest the Avro files into Cloud Spanner to perform analytics. Use a Dataflow pipeline to create the features, and store them in BigQuery for online prediction.
  • DIngest the Avro files into BigQuery to perform analytics. Use BigQuery SQL to create features and store them in a separate BigQuery table for online prediction.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Ingest the Avro files into BigQuery to perform analytics. Use a Dataflow pipeline to create the features, and store them in Vertex AI Feature Store for online prediction.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. 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 282

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 an 8 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 a text for future applications, such as call summarization and sentiment analysis. How should you implement the voice call transcription feature following Google-recommended best 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)
  • CUpsample the audio recordings to 16 kHz, and transcribe the audio by using the Speech-to-Text API with synchronous recognition.
  • DUpsample the audio recordings to 16 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 283

You work for a multinational organization that has recently begun operations in Spain. Teams within your organization will need to work with various Spanish documents, such as business, legal, and financial documents. You want to use machine learning to help your organization get accurate translations quickly and with the least effort. Your organization does not require domain-specific terms or jargon. What should you do?

  • ACreate a Vertex AI Workbench notebook instance. In the notebook, extract sentences from the documents, and train a custom AutoML text model.
  • BUse Google Translate to translate 1,000 phrases from Spanish to English. Using these translated pairs, train a custom AutoML Translation model.
  • CUse the Document Translation feature of the Cloud Translation API to translate the documents. (correct answer)
  • DCreate a Vertex AI Workbench notebook instance. In the notebook, convert the Spanish documents into plain text, and create a custom TensorFlow seq2seq translation model.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use the Document Translation feature of the Cloud Translation API to translate the documents.

Explanation

Translation API provides neural machine translation between languages.

Topic 1 · Question 284

You have a custom job that runs on Vertex AI on a weekly basis. The job is implemented using a proprietary ML workflow that produces the datasets, models, and custom artifacts, and sends them to a Cloud Storage bucket. Many different versions of the datasets and models were created. Due to compliance requirements, your company needs to track which model was used for making a particular prediction, and needs access to the artifacts for each model. How should you configure your workflows to meet these requirements?

  • AUse the Vertex AI Metadata API inside the custom job to create context, execution, and artifacts for each model, and use events to link them together. (correct answer)
  • BCreate a Vertex AI experiment, and enable autologging inside the custom job.
  • CConfigure a TensorFlow Extended (TFX) ML Metadata database, and use the ML Metadata API.
  • DRegister each model in Vertex AI Model Registry, and use model labels to store the related dataset and model information.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use the Vertex AI Metadata API inside the custom job to create context, execution, and artifacts for each model, and use events to link them together.

Explanation

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

Topic 1 · Question 285

You have recently developed a custom model for image classification by using a neural network. You need to automatically identify the values for learning rate, number of layers, and kernel size. To do this, you plan to run multiple jobs in parallel to identify the parameters that optimize performance. You want to minimize custom code development and infrastructure management. What should you do?

  • ATrain an AutoML image classification model.
  • BCreate a custom training job that uses the Vertex AI Vizier SDK for parameter optimization.
  • CCreate a Vertex AI hyperparameter tuning job. (correct answer)
  • DCreate a Vertex AI pipeline that runs different model training jobs in parallel.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a Vertex AI hyperparameter tuning job.

Explanation

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

Topic 1 · Question 286

You work for a company that builds bridges for cities around the world. To track the progress of projects at the construction sites, your company has set up cameras at each location. Each hour, the cameras take a picture that is sent to a Cloud Storage bucket. A team of specialists reviews the images, filters important ones, and then annotates specific objects in them. You want to propose using an ML solution that will help the company scale and reduce costs. You need the solution to have minimal up-front cost. What method should you propose?

  • ATrain an AutoML object detection model to annotate the objects in the images to help specialists with the annotation task.
  • BUse the Cloud Vision API to automatically annotate objects in the images to help specialists with the annotation task. (correct answer)
  • CCreate a BigQuery ML classification model to classify important images. Use the model to predict which new images are important to help specialists with the filtering task.
  • DUse Vertex AI to train an open source object detection to annotate the objects in the images to help specialists with the annotation task.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use the Cloud Vision API to automatically annotate objects in the images to help specialists with the annotation task. This option delivers the requirement at the lowest cost.

Topic 1 · Question 287

You are tasked with building an MLOps pipeline to retrain tree-based models in production. The pipeline will include components related to data ingestion, data processing, model training, model evaluation, and model deployment. Your organization primarily uses PySpark-based workloads for data preprocessing. You want to minimize infrastructure management effort. How should you set up the pipeline?

  • ASet up a TensorFlow Extended (TFX) pipeline on Vertex AI Pipelines to orchestrate the MLOps pipeline. Write a custom component for the PySpark-based workloads on Dataproc.
  • BSet up a Vertex AI Pipelines to orchestrate the MLOps pipeline. Use the predefined Dataproc component for the PySpark-based workloads. (correct answer)
  • CSet up Kubeflow Pipelines on Google Kubernetes Engine to orchestrate the MLOps pipeline. Write a custom component for the PySparkbased workloads on Dataproc.
  • DSet up Cloud Composer to orchestrate the MLOps pipeline. Use Dataproc workflow templates for the PySpark-based workloads in Cloud Composer.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Set up a Vertex AI Pipelines to orchestrate the MLOps pipeline. Use the predefined Dataproc component for the PySpark-based workloads.

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 288

You have developed an AutoML tabular classification model that identifies high-value customers who interact with your organization's website. You plan to deploy the model to a new Vertex AI endpoint that will integrate with your website application. You expect higher traffic to the website during nights and weekends. You need to configure the model endpoint's deployment settings to minimize latency and cost. What should you do?

  • AConfigure the model deployment settings to use an n1-standard-32 machine type.
  • BConfigure the model deployment settings to use an n1-standard-4 machine type. Set the minReplicaCount value to 1 and the maxReplicaCount value to 8. (correct answer)
  • CConfigure the model deployment settings to use an n1-standard-4 machine type and a GPU accelerator. Set the minReplicaCount value to 1 and the maxReplicaCount value to 4.
  • DConfigure the model deployment settings to use an n1-standard-8 machine type and a GPU accelerator.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Configure the model deployment settings to use an n1-standard-4 machine type. Set the minReplicaCount value to 1 and the maxReplicaCount value to 8.

Topic 1 · Question 289

You developed a BigQuery ML linear regressor model by using a training dataset stored in a BigQuery table. New data is added to the table every minute. You are using Cloud Scheduler and Vertex AI Pipelines to automate hourly model training, and use the model for direct inference. The feature preprocessing logic includes quantile bucketization and MinMax scaling on data received in the last hour. You want to minimize storage and computational overhead. What should you do?

  • APreprocess and stage the data in BigQuery prior to feeding it to the model during training and inference.
  • BUse the TRANSFORM clause in the CREATE MODEL statement in the SQL query to calculate the required statistics. (correct answer)
  • CCreate a component in the Vertex AI Pipelines directed acyclic graph (DAG) to calculate the required statistics, and pass the statistics on to subsequent components.
  • DCreate SQL queries to calculate and store the required statistics in separate BigQuery tables that are referenced in the CREATE MODEL statement.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use the TRANSFORM clause in the CREATE MODEL statement in the SQL query to calculate the required statistics.

Topic 1 · Question 290

You developed a Python module by using Keras to train a regression model. You developed two model architectures, linear regression and deep neural network (DNN), within the same module. You are using the training_method argument to select one of the two methods, and you are using the learning_rate and num_hidden_layers arguments in the DNN. You plan to use Vertex AI's hypertuning service with a budget to perform 100 trials. You want to identify the model architecture and hyperparameter values that minimize training loss and maximize model performance. What should you do?

  • ARun one hypertuning job for 100 trials. Set num_hidden_layers as a conditional hyperparameter based on its parent hyperparameter training_method, and set learning_rate as a non-conditional hyperparameter.
  • BRun two separate hypertuning jobs, a linear regression job for 50 trials, and a DNN job for 50 trials. Compare their final performance on a common validation set, and select the set of hyperparameters with the least training loss.
  • CRun one hypertuning job with training_method as the hyperparameter for 50 trials. Select the architecture with the lowest training loss, and further hypertune it and its corresponding hyperparameters tor 50 trials.
  • DRun one hypertuning job for 100 trials. Set num_hidden_layers and learning_rate as conditional hyperparameters based on their parent hyperparameter training_method. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Run one hypertuning job for 100 trials. Set num_hidden_layers and learning_rate as conditional hyperparameters based on their parent hyperparameter training_method.

Topic 1 · Question 291

You work for a hospital. You received approval to collect the necessary patient data, and you trained a Vertex AI tabular AutoML model that calculates patients' risk score for hospital admission. You deployed the model. However, you're concerned that patient demographics might change over time and alter the feature interactions and impact prediction accuracy. You want to be alerted if feature interactions change, and you want to understand the importance of the features for the predictions. You want your alerting approach to minimize cost. What should you do?

  • ACreate a feature drift monitoring job. Set the sampling rate to 1 and the monitoring frequency to weekly.
  • BCreate a feature drift monitoring job. Set the sampling rate to 0.1 and the monitoring frequency to weekly.
  • CCreate a feature attribution drift monitoring job. Set the sampling rate to 1 and the monitoring frequency to weekly.
  • DCreate a feature attribution drift monitoring job. Set the sampling rate to 0.1 and the monitoring frequency to weekly. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a feature attribution drift monitoring job. Set the sampling rate to 0.1 and the monitoring frequency to weekly. This option delivers the requirement at the lowest cost.

Topic 1 · Question 292

You are developing a TensorFlow Extended (TFX) pipeline with standard TFX components. The pipeline includes data preprocessing steps. After the pipeline is deployed to production, it will process up to 100 TB of data stored in BigQuery. You need the data preprocessing steps to scale efficiently, publish metrics and parameters to Vertex AI Experiments, and track artifacts by using Vertex ML Metadata. How should you configure the pipeline run?

  • ARun the TFX pipeline in Vertex AI Pipelines. Configure the pipeline to use Vertex AI Training jobs with distributed processing.
  • BRun the TFX pipeline in Vertex AI Pipelines. Set the appropriate Apache Beam parameters in the pipeline to run the data preprocessing steps in Dataflow. (correct answer)
  • CRun the TFX pipeline in Dataproc by using the Apache Beam TFX orchestrator. Set the appropriate Vertex AI permissions in the job to publish metadata in Vertex AI.
  • DRun the TFX pipeline in Dataflow by using the Apache Beam TFX orchestrator. Set the appropriate Vertex AI permissions in the job to publish metadata in Vertex AI.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Run the TFX pipeline in Vertex AI Pipelines. Set the appropriate Apache Beam parameters in the pipeline to run the data preprocessing steps in Dataflow.

Explanation

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 293

You are developing a batch process that will train a custom model and perform predictions. You need to be able to show lineage for both your model and the batch predictions. What should you do?

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

The correct answer is D. Option D: 1. Use a Vertex AI Pipelines custom training job component to train 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 294

You work for a company that sells corporate electronic products to thousands of businesses worldwide. Your company stores historical customer data in BigQuery. You need to build a model that predicts customer lifetime value over the next three years. You want to use the simplest approach to build the model. What should you do?

  • ACreate a Vertex AI Workbench notebook. Use IPython magic to run the CREATE MODEL statement to create an ARIMA model.
  • BAccess BigQuery Studio in the Google Cloud console. Run the CREATE MODEL statement in the SQL editor to create an AutoML regression model. (correct answer)
  • CCreate a Vertex AI Workbench notebook. Use IPython magic to run the CREATE MODEL statement to create an AutoML regression model.
  • DAccess BigQuery Studio in the Google Cloud console. Run the CREATE MODEL statement in the SQL editor to create an ARIMA model.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Access BigQuery Studio in the Google Cloud console. Run the CREATE MODEL statement in the SQL editor to create an AutoML regression model.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. AutoML trains high-quality custom models from your data with minimal ML expertise.

Topic 1 · Question 295

You work at a retail company, and are tasked with developing an ML model to predict product sales. Your company’s historical sales data is stored in BigQuery and includes features such as date, store location, product category, and promotion details. You need to choose the most effective combination of a BigQuery ML model and feature engineering to maximize prediction accuracy. What should you do?

  • AUse a linear regression model. Perform one-hot encoding on categorical features, and create additional features based on the date, such as day of the week or month. (correct answer)
  • BUse a boosted tree model. Perform label encoding on categorical features, and transform the date column into numeric values.
  • CUse an autoencoder model. Perform label encoding on categorical features, and normalize the date column.
  • DUse a matrix factorization model. Perform one-hot encoding on categorical features, and create interaction features between the store location and product category variables.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use a linear regression model. Perform one-hot encoding on categorical features, and create additional features based on the date, such as day of the week or month.

Topic 1 · Question 296

Your organization’s employee onboarding team wants you to build an interactive self-help tool for new employees. The tool needs to receive queries from users and provide answers from the organization’s internal documentation. This documentation is spread across standalone documents such as PDF files. You want to build a solution quickly while minimizing maintenance overhead. What should you do?

  • ACreate a custom chatbot user interface hosted on App Engine. Use Vertex AI to fine-tune a Gemini model on the organization’s internal documentation. Send users’ queries to the fine-tuned model by using the custom chatbot and return the model’s responses to the users.
  • BDeploy an internal website to a Google Kubernetes Engine (GKE) cluster. Build a search index by ingesting all of the organization’s internal documentation. Use Vertex AI Vector Search to implement a semantic search that retrieves results from the search index based on the query entered into the search box.
  • CUse Vertex AI Agent Builder to create an agent. Securely index the organization’s internal documentation to the agent’s datastore. Send users’ queries to the agent and return the agent’s grounded responses to the users. (correct answer)
  • DDeploy an internal website to a Google Kubernetes Engine (GKE) cluster. Organize the relevant internal documentation into sections. Collect user feedback on website content and store it in BigQuery. Request that the onboarding team regularly update the links based on user feedback.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use Vertex AI Agent Builder to create an agent. Securely index the organization’s internal documentation to the agent’s datastore. Send users’ queries to the agent and return the agent’s grounded responses to the users.

Explanation

Datastore (Firestore in Datastore mode) is a serverless NoSQL database for user profiles and app state. Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 · Question 297

You work for an ecommerce company that wants to automatically classify products in images to improve user experience. You have a substantial dataset of labeled images depicting various unique products. You need to implement a solution for identifying custom products that is scalable, effective, and can be rapidly deployed. What should you do?

  • ADevelop a rule-based system to categorize the images.
  • BUse a TensorFlow deep learning model that is trained on the image dataset.
  • CUse a pre-trained object detection model from Model Garden.
  • DUse AutoML Vision to train a model using the image dataset. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use AutoML Vision to train a model using the image dataset.

Explanation

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

Topic 1 · Question 298

Your team is developing a customer support chatbot for a healthcare company that processes sensitive patient information. You need to ensure that all personally identifiable information (PII) captured during customer conversations is protected prior to storing or analyzing the data. What should you do?

  • AUse the Cloud Natural Language API to identify and redact PII in chatbot conversations.
  • BUse the Cloud Natural Language API to classify and categorize all data, including PII, in chatbot conversations.
  • CUse the DLP API to encrypt PII in chatbot conversations before storing the data.
  • DUse the DLP API to scan and de-identify PII in chatbot conversations before storing the data. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use the DLP API to scan and de-identify PII in chatbot conversations before storing the data.

Topic 1 · Question 299

Your team is experimenting with developing smaller, distilled LLMs for a specific domain. You have performed batch inference on a dataset by using several variations of your distilled LLMs and stored the batch inference outputs in Cloud Storage. You need to create an evaluation workflow that integrates with your existing Vertex AI pipeline to assess the performance of the LLM versions while also tracking artifacts. What should you do?

  • ADevelop a custom Python component that reads the batch inference outputs from Cloud Storage, calculates evaluation metrics, and writes the results to a BigQuery table.
  • BUse a Dataflow component that processes the batch inference outputs from Cloud Storage, calculates evaluation metrics in a distributed manner, and writes the results to a BigQuery table.
  • CCreate a custom Vertex AI Pipelines component that reads the batch inference outputs from Cloud Storage, calculates evaluation metrics, and writes the results to a BigQuery table.
  • DUse the Automatic side-by-side (AutoSxS) pipeline component that processes the batch inference outputs from Cloud Storage, aggregates evaluation metrics, and writes the results to a BigQuery table. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use the Automatic side-by-side (AutoSxS) pipeline component that processes the batch inference outputs from Cloud Storage, aggregates evaluation metrics, and writes the results to a BigQuery table.

Explanation

Google Cloud Batch schedules and runs batch jobs at scale without managing infrastructure. 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 300

You work for a bank. You need to train a model by using unstructured data stored in Cloud Storage that predicts whether credit card transactions are fraudulent. The data needs to be converted to a structured format to facilitate analysis in BigQuery. Company policy requires that data containing personally identifiable information (PII) remain in Cloud Storage. You need to implement a scalable solution that preserves the data’s value for analysis. What should you do?

  • AUse BigQuery’s authorized views and column-level access controls to restrict access to PII within the dataset.
  • BUse the DLP API to de-identify the sensitive data before loading it into BigQuery. (correct answer)
  • CStore the unstructured data in a separate PII-compliant BigQuery database.
  • DRemove the sensitive data from the files manually before loading them into BigQuery.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use the DLP API to de-identify the sensitive data before loading it into BigQuery.

Explanation

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

Showing questions 281300 of 339 · Page 15 of 17