Professional Machine Learning Engineer Exam QuestionsBrowse all questions from this exam

Professional Machine Learning Engineer Exam - Question 77


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?

Show Answer
Correct Answer: D

To execute a batch prediction on 100 million records in a BigQuery table with a custom TensorFlow DNN regressor model, the most suitable approach is to utilize a Dataflow pipeline. By loading the TensorFlow SavedModel in the Dataflow pipeline, using the BigQuery I/O connector with a custom function to perform the inference within the pipeline, and writing the results back to BigQuery, you can effectively handle large-scale data and leverage the distributed processing capabilities of Dataflow. This method ensures efficiency and scalability for handling a large volume of data and performing complex model inferences.

Discussion

9 comments
Sign in to comment
hiromiOption: A
Dec 18, 2022

A should work with less effort - https://cloud.google.com/bigquery-ml/docs/making-predictions-with-imported-tensorflow-models#api - https://towardsdatascience.com/how-to-do-batch-predictions-of-tensorflow-models-directly-in-bigquery-ffa843ebdba6

enghabethOption: A
Feb 9, 2023

for this: https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-inference-overview Predict the label, either a numerical value for regression tasks or a categorical value for classification tasks on DNN regresion

JamesDoeOption: A
Mar 28, 2023

https://cloud.google.com/bigquery-ml/docs/making-predictions-with-imported-tensorflow-models

M25Option: A
May 9, 2023

Went with A

pawan94Option: C
Jan 9, 2024

Simplest doesn't mean it is the most effecient/optimal. If I follow the Best practices offered by Google for Serving / Inference Pipeline I would go with Vertex AI predictions. Read More for correct details : https://cloud.google.com/architecture/ml-on-gcp-best-practices#machine-learning-development

etienne0
Mar 2, 2024

Agreed, i'll also go with C.

LearnSodasOption: A
Dec 11, 2022

Answer A as the simplest

ares81Option: A
Dec 11, 2022

ml.predict: https://cloud.google.com/bigquery-ml/docs/making-predictions-with-imported-tensorflow-models#api --> A

etienne0Option: C
Mar 2, 2024

Went with C

livewalkOption: D
Jun 8, 2024

BigQuery ML might not support custom TensorFlow DNN models directly.