exam questions

Exam Professional Machine Learning Engineer All Questions

View all questions & answers for the Professional Machine Learning Engineer exam

Exam Professional Machine Learning Engineer topic 1 question 211 discussion

Actual exam question from Google's Professional Machine Learning Engineer
Question #: 211
Topic #: 1
[All Professional Machine Learning Engineer Questions]

You need to develop a custom TensorFlow model that will be used for online predictions. The training data is stored in BigQuery You need to apply instance-level data transformations to the data for model training and serving. You want to use the same preprocessing routine during model training and serving. How should you configure the preprocessing routine?

  • A. Create a BigQuery script to preprocess the data, and write the result to another BigQuery table.
  • B. Create a pipeline in Vertex AI Pipelines to read the data from BigQuery and preprocess it using a custom preprocessing component.
  • C. Create a preprocessing function that reads and transforms the data from BigQuery. Create a Vertex AI custom prediction routine that calls the preprocessing function at serving time.
  • D. Create an Apache Beam pipeline to read the data from BigQuery and preprocess it by using TensorFlow Transform and Dataflow.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
guilhermebutzke
Highly Voted 8 months, 1 week ago
Selected Answer: D
My answer: D According to this documentation, it is very clear that using BigQuery is not a good approach for online prediction at the instance level. That's because we won't use the same code for both training and prediction serving. In the same documentation, the final table on the page recommends using Dataflow with TensorFlow Transform for instance-level data transformation. https://www.tensorflow.org/tfx/guide/tft_bestpractices
upvoted 7 times
...
pinimichele01
Most Recent 6 months, 1 week ago
Selected Answer: D
https://www.tensorflow.org/tfx/guide/tft_bestpractices#preprocessing_options_summary
upvoted 1 times
...
Yan_X
8 months, 2 weeks ago
Selected Answer: D
D - Apache Beam + tf.transform or Dataflow. https://notebook.community/GoogleCloudPlatform/training-data-analyst/courses/machine_learning/deepdive/04_advanced_preprocessing/a_dataflow
upvoted 2 times
...
BlehMaks
9 months, 1 week ago
Selected Answer: A
the simplest way
upvoted 1 times
...
shadz10
9 months, 1 week ago
Selected Answer: D
D- Vertex AI isn't designed for instance-level data transformations
upvoted 1 times
shadz10
9 months, 1 week ago
This document also provides an overview of TensorFlow Transform (tf.Transform), a library for TensorFlow that lets you define both instance-level and full-pass data transformation through data preprocessing pipelines. These pipelines are executed with Apache Beam, and they create artifacts that let you apply the same transformations during prediction as when the model is served. https://www.tensorflow.org/tfx/guide/tft_bestpractices
upvoted 1 times
...
...
shadz10
9 months, 1 week ago
D- Vertex AI isn't designed for instance-level data transformations
upvoted 3 times
...
pikachu007
9 months, 2 weeks ago
Selected Answer: C
Addressing limitations of other options: A. Data validation: While essential, it doesn't guarantee consistency if the preprocessing logic itself differs between pipeline and endpoint. C. Sharing code with end users: This shifts the preprocessing burden to end users, potentially leading to inconsistencies and errors, and isn't feasible for real-time inference. D. Batching real-time requests: This introduces latency and might not align with real-time requirements, as users expect immediate responses.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago