PROFESSIONAL-MACHINE-LEARNING-ENGINEER practice question 28 of 35
You need to execute a batch prediction on 100 million records in a BigQuery table with a custom TensorFlow DNN regressor model, and then store the predicted results in a BigQuery table. You want to minimize the effort required to build this inference pipeline. What should you do?
Full set: 283 questionsBigQuery ML is designed to bring machine learning to the data. It supports importing pre-trained TensorFlow models directly into the BigQuery environment. Once the model is imported and registered using a CREATE MODEL statement, you can perform batch predictions on petabyte-scale data using a single, simple SQL query with the ML.PREDICT function. This serverless approach abstracts away all infrastructure management and data movement pipelines, requiring significantly less development and operational effort compared to building custom pipelines with Dataflow or managing separate prediction jobs. This makes it the ideal choice for minimizing effort.
B. This requires writing a custom application with TensorFlow and BigQuery client libraries, managing the execution environment, and handling data I/O manually, which is more complex than a single SQL query.
C. This is a multi-stage process involving a Dataflow job for data conversion, a Vertex AI Batch Prediction job, and managing data flow between services, representing a high-effort solution.
D. Building a custom Dataflow pipeline to read data, load a model, perform inference, and write results requires significant Apache Beam programming effort, which is not minimal.
1. Google Cloud Documentation, "Create a model in BigQuery ML using TensorFlow": This document explicitly describes the process of importing a TensorFlow SavedModel into BigQuery ML. The syntax CREATE MODEL mydataset.importedtfmodel OPTIONS(modeltype='TENSORFLOW', modelpath='gs://yourbucket/yourmodel/') demonstrates the straightforward, SQL-based method for making the model available within BigQuery.
2. Google Cloud Documentation, "The ML.PREDICT function": This page details the usage of ML.PREDICT for inference. It states, "You can use the ML.PREDICT function to predict outcomes using your model... For imported models, the output of the ML.PREDICT function is the output of the model's serving signature." This confirms that a simple SQL function call is all that is needed after the model is imported.
3. Google Cloud Documentation, "Introduction to BigQuery ML": This overview highlights the core value proposition relevant to the question. In the "BigQuery ML capabilities" section, it lists the ability to "Import previously trained TensorFlow... models for evaluation or prediction," reinforcing that this is a primary, built-in feature designed for ease of use.
Keep practicing
Take the free PROFESSIONAL-MACHINE-LEARNING-ENGINEER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PROFESSIONAL-MACHINE-LEARNING-ENGINEER practice questions
- Question 1You work for an advertising company and want to understand the effectiveness of your comp…
- Question 2You developed a custom model by using Vertex Al to forecast the sales of your company s p…
- Question 3You are an ML engineer at a global shoe store. You manage the ML models for the company's…
- Question 5During batch training of a neural network, you notice that there is an oscillation in the…
- Question 6You want to rebuild your ML pipeline for structured data on Google Cloud. You are using P…
- Question 7Your team is building a convolutional neural network (CNN)-based architecture from scratc…
