Google

Professional Machine Learning Engineer Free Practice Questions — Page 9

Question 82

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?

A. Schedule an increase in the number of online serving nodes in your featurestore prior to the batch ingestion jobs
B. Enable autoscaling of the online serving nodes in your featurestore
C. Enable autoscaling for the prediction nodes of your DeployedModel in the Vertex AI endpoint
D. Increase the worker_count in the ImportFeatureValues request of your batch ingestion job
Show Answer
Correct Answer: A
Explanation:
The bottleneck is the Feature Store online serving nodes during a predictable daily batch ingestion window. Autoscaling is reactive and may not provision capacity quickly enough for known bursts. Pre-scheduling an increase in online serving nodes before the ingestion job ensures sufficient capacity, reducing CPU utilization and feature retrieval latency. Autoscaling of prediction nodes affects model serving, not feature retrieval, and increasing ingestion workers could increase load on the serving nodes.

Question 83

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?

A. Create a Vertex AI Workbench user-managed notebook using the default VM instance, and use the %%bigquerv magic commands in Jupyter to query the tables.
B. Create a Vertex AI Workbench managed notebook to browse and query the tables directly from the JupyterLab interface.
C. Create a Vertex AI Workbench user-managed notebook on a Dataproc Hub, and use the %%bigquery magic commands in Jupyter to query the tables.
D. Create a Vertex AI Workbench managed notebook on a Dataproc cluster, and use the spark-bigquery-connector to access the tables.
Show Answer
Correct Answer: B
Explanation:
A Vertex AI Workbench managed notebook is the best fit for iterative EDA, preprocessing, and model training with minimal operational overhead. Managed notebooks provide built-in integration with BigQuery and Cloud Storage through JupyterLab, reducing development and maintenance effort. User-managed notebooks require more infrastructure management, while Dataproc- and Spark-based options add unnecessary complexity and cost for this workflow.

Question 84

You have developed an application that uses a chain of multiple scikit-learn models to predict the optimal price for your company’s products. The workflow logic is shown in the diagram. Members of your team use the individual models in other solution workflows. You want to deploy this workflow while ensuring version control for each individual model and the overall workflow. Your application needs to be able to scale down to zero. You want to minimize the compute resource utilization and the manual effort required to manage this solution. What should you do?

A. Expose each individual model as an endpoint in Vertex AI Endpoints. Create a custom container endpoint to orchestrate the workflow.
B. Create a custom container endpoint for the workflow that loads each model’s individual files Track the versions of each individual model in BigQuery.
C. Expose each individual model as an endpoint in Vertex AI Endpoints. Use Cloud Run to orchestrate the workflow.
D. Load each model’s individual files into Cloud Run. Use Cloud Run to orchestrate the workflow. Track the versions of each individual model in BigQuery.
Show Answer
Correct Answer: C
Explanation:
Use Vertex AI Endpoints to deploy and version each individual model so they can be reused independently across workflows. Use Cloud Run to orchestrate calls between the endpoints, which supports scale-to-zero and reduces compute costs and operational overhead. Tracking model versions in BigQuery is not the appropriate mechanism for model version management, and using a Vertex AI endpoint itself as the orchestrator does not provide the same scale-to-zero behavior as Cloud Run.

Question 85

You work for an international manufacturing organization that ships scientific products all over the world. Instruction manuals for these products need to be translated to 15 different languages. Your organization’s leadership team wants to start using machine learning to reduce the cost of manual human translations and increase translation speed. You need to implement a scalable solution that maximizes accuracy and minimizes operational overhead. You also want to include a process to evaluate and fix incorrect translations. What should you do?

A. Create a workflow using Cloud Function triggers. Configure a Cloud Function that is triggered when documents are uploaded to an input Cloud Storage bucket. Configure another Cloud Function that translates the documents using the Cloud Translation API, and saves the translations to an output Cloud Storage bucket. Use human reviewers to evaluate the incorrect translations.
B. Create a Vertex AI pipeline that processes the documents launches, an AutoML Translation training job, evaluates the translations and deploys the model to a Vertex AI endpoint with autoscaling and model monitoring. When there is a predetermined skew between training and live data, re-trigger the pipeline with the latest data.
C. Use AutoML Translation to train a model. Configure a Translation Hub project, and use the trained model to translate the documents. Use human reviewers to evaluate the incorrect translations.
D. Use Vertex AI custom training jobs to fine-tune a state-of-the-art open source pretrained model with your data. Deploy the model to a Vertex AI endpoint with autoscaling and model monitoring. When there is a predetermined skew between the training and live data, configure a trigger to run another training job with the latest data.
Show Answer
Correct Answer: C
Explanation:
For domain-specific scientific documentation, AutoML Translation provides higher translation accuracy than generic translation models when trained with parallel data. Translation Hub is the managed service designed to operationalize translation workflows at scale with minimal operational overhead. Human review fits the requirement to evaluate and correct translations. The pipeline and custom-training options add unnecessary operational complexity, while using only the generic Translation API does not maximize accuracy.

Question 86

You recently trained an XGBoost model on tabular data. You plan to expose the model for internal use as an HTTP microservice. After deployment, you expect a small number of incoming requests. You want to productionize the model with the least amount of effort and latency. What should you do?

A. Deploy the model to BigQuery ML by using CREATE MODEL with the BOOSTED_TREE_REGRESSOR statement, and invoke the BigQuery API from the microservice.
B. Build a Flask-based app. Package the app in a custom container on Vertex AI, and deploy it to Vertex AI Endpoints.
C. Build a Flask-based app. Package the app in a Docker image, and deploy it to Google Kubernetes Engine in Autopilot mode.
D. Use a prebuilt XGBoost Vertex container to create a model, and deploy it to Vertex AI Endpoints.
Show Answer
Correct Answer: D
Explanation:
Using the prebuilt XGBoost serving container on Vertex AI Endpoints requires the least engineering effort because it is designed to serve trained XGBoost models directly over HTTP without building and maintaining a custom Flask application or Kubernetes infrastructure. It also provides low-latency managed online prediction suitable for a small volume of requests.

Question 87

You have recently used TensorFlow to train a classification model on tabular data. You have created a Dataflow pipeline that can transform several terabytes of data into training or prediction datasets consisting of TFRecords. You now need to productionize the model, and you want the predictions to be automatically uploaded to a BigQuery table on a weekly schedule. What should you do?

A. Import the model into Vertex AI and deploy it to a Vertex AI endpoint. On Vertex AI Pipelines, create a pipeline that uses the DataflowPythonJobOp and the ModelBacthPredictOp components.
B. Import the model into Vertex AI and deploy it to a Vertex AI endpoint. Create a Dataflow pipeline that reuses the data processing logic sends requests to the endpoint, and then uploads predictions to a BigQuery table.
C. Import the model into Vertex AI. On Vertex AI Pipelines, create a pipeline that uses the DataflowPvthonJobOp and the ModelBatchPredictOp components.
D. Import the model into BigQuery. Implement the data processing logic in a SQL query. On Vertex AI Pipelines create a pipeline that uses the BigquervQueryJobOp and the BigqueryPredictModelJobOp components.
Show Answer
Correct Answer: C
Explanation:
Batch prediction is the appropriate pattern for scheduled, large-scale inference. A Vertex AI endpoint is intended for online prediction and is not required for batch jobs. The existing Beam/Dataflow transformation can be orchestrated in Vertex AI Pipelines with DataflowPythonJobOp to prepare TFRecords, followed by ModelBatchPredictOp to run batch prediction and write results directly to BigQuery. Option D is for BigQuery ML models, not an imported TensorFlow model.

Question 88

You are working on a prototype of a text classification model in a managed Vertex AI Workbench notebook. You want to quickly experiment with tokenizing text by using a Natural Language Toolkit (NLTK) library. How should you add the library to your Jupyter kernel?

A. Install the NLTK library from a terminal by using the pip install nltk command.
B. Write a custom Dataflow job that uses NLTK to tokenize your text and saves the output to Cloud Storage.
C. Create a new Vertex AI Workbench notebook with a custom image that includes the NLTK library.
D. Install the NLTK library from a Jupyter cell by using the !pip install nltk --user command.
Show Answer
Correct Answer: D
Explanation:
For quick experimentation in a managed Vertex AI Workbench Jupyter notebook, installing the package directly from a notebook cell with `!pip install nltk --user` is the fastest and most appropriate approach. A Dataflow job and a custom image are unnecessary for this use case, and while terminal installation can work, the question specifically asks how to add the library to the Jupyter kernel for rapid experimentation.

Question 89

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 and you want to have access to visualization tools. What should you do?

A. Create a Vertex AI Workbench notebook to perform exploratory data analysis. Use IPython magics to create a new BigQuery table with input features. Use the BigQuery console to run the CREATE MODEL statement. Validate the results by using the ML.EVALUATE and ML.PREDICT statements.
B. Run the CREATE MODEL statement from the BigQuery console to create an AutoML model. Validate the results by using the ML.EVALUATE and ML.PREDICT statements.
C. Create a Vertex AI Workbench notebook to perform exploratory data analysis and create input features. Save the features as a CSV file in Cloud Storage. Import the CSV file as a new BigQuery table. Use the BigQuery console to run the CREATE MODEL statement. Validate the results by using the ML.EVALUATE and ML.PREDICT statements.
D. Create a Vertex AI Workbench notebook to perform exploratory data analysis. Use IPython magics to create a new BigQuery table with input features, create the model, and validate the results by using the CREATE MODEL, ML.EVALUATE, and ML.PREDICT statements.
Show Answer
Correct Answer: D
Explanation:
Vertex AI Workbench provides built-in notebook-based visualization and exploratory data analysis, satisfying the visualization requirement. Using BigQuery IPython magics allows you to interact directly with BigQuery, create feature tables, train a BigQuery ML model with CREATE MODEL, and evaluate it with ML.EVALUATE and ML.PREDICT without leaving the notebook. This keeps the workflow simple while providing visualization capabilities. Option B is simpler for modeling alone, but it does not address the stated need for visualization tools.

Question 90

You are developing a training pipeline for a new XGBoost classification model based on tabular data. The data is stored in a BigQuery table. You need to complete the following steps: 1. Randomly split the data into training and evaluation datasets in a 65/35 ratio 2. Conduct feature engineering 3. Obtain metrics for the evaluation dataset 4. Compare models trained in different pipeline executions How should you execute these steps?

A. 1. Using Vertex AI Pipelines, add a component to divide the data into training and evaluation sets, and add another component for feature engineering. 2. Enable autologging of metrics in the training component. 3. Compare pipeline runs in Vertex AI Experiments.
B. 1. Using Vertex AI Pipelines, add a component to divide the data into training and evaluation sets, and add another component for feature engineering. 2. Enable autologging of metrics in the training component. 3. Compare models using the artifacts’ lineage in Vertex ML Metadata.
C. 1. In BigQuery ML, use the CREATE MODEL statement with BOOSTED_TREE_CLASSIFIER as the model type and use BigQuery to handle the data splits. 2. Use a SQL view to apply feature engineering and train the model using the data in that view. 3. Compare the evaluation metrics of the models by using a SQL query with the ML.TRAINING_INFO statement.
D. 1. In BigQuery ML, use the CREATE MODEL statement with BOOSTED_TREE_CLASSIFIER as the model type and use BigQuery to handle the data splits. 2. Use ML TRANSFORM to specify the feature engineering transformations and tram the model using the data in the table. 3. Compare the evaluation metrics of the models by using a SQL query with the ML.TRAINING_INFO statement.
Show Answer
Correct Answer: A
Explanation:
Vertex AI Pipelines is the appropriate orchestration tool for explicitly splitting data, performing feature engineering, and training a custom XGBoost model. Enabling autologging captures evaluation metrics from training runs, and Vertex AI Experiments is designed to compare metrics and artifacts across different pipeline executions. Vertex ML Metadata focuses on lineage rather than experiment comparison, while BigQuery ML options describe in-database model training rather than a custom XGBoost training pipeline with pipeline-run comparison.

Question 91

You work at an ecommerce startup. You need to create a customer churn prediction model. Your company’s recent sales records are stored in a BigQuery table. You want to understand how your initial model is making predictions. You also want to iterate on the model as quickly as possible while minimizing cost. How should you build your first model?

A. Export the data to a Cloud Storage bucket. Load the data into a pandas DataFrame on Vertex AI Workbench and train a logistic regression model with scikit-learn.
B. Create a tf.data.Dataset by using the TensorFlow BigQueryClient. Implement a deep neural network in TensorFlow.
C. Prepare the data in BigQuery and associate the data with a Vertex AI dataset. Create an AutoMLTabularTrainingJob to tram a classification model.
D. Export the data to a Cloud Storage bucket. Create a tf.data.Dataset to read the data from Cloud Storage. Implement a deep neural network in TensorFlow.
Show Answer
Correct Answer: C
Explanation:
AutoML Tabular is the best fit for an initial churn prediction model because it minimizes development effort, enables rapid iteration, integrates directly with BigQuery data preparation, and supports model explainability through Vertex AI Explainable AI for tabular classification models. The TensorFlow deep learning options require substantially more engineering and are less interpretable. A manual scikit-learn logistic regression model is interpretable but requires unnecessary data export and custom training, making iteration slower and less aligned with managed Vertex AI workflows.

$19

Get all 332 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.