BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Professional Machine Learning Engineer Exam - Topic 4 Question 123 Discussion

Posted by Ira on Oct 16, 2026 at 09:22 PM

You recently developed a wide and deep model in TensorFlow. You generated training datasets using a SQL script that preprocessed raw data in BigQuery by performing instance-level transformations of the dat

a. You need to create a training pipeline to retrain the model on a weekly basis. The trained model will be used to generate daily recommendations. You want to minimize model development and training time. How should you develop the training pipeline?

Suggested Answer: C

TensorFlow Extended (TFX) is a platform for building end-to-end machine learning pipelines using TensorFlow. TFX provides a set of components that can be orchestrated using either the TFX SDK or Kubeflow Pipelines. TFX components can handle different aspects of the pipeline, such as data ingestion, data validation, data transformation, model training, model evaluation, model serving, and more. TFX components can also leverage other Google Cloud services, such as BigQuery, Dataflow, and Vertex AI.

Why not A: Using the Kubeflow Pipelines SDK to implement the pipeline is a valid option, but using the BigQueryJobOp component to run the preprocessing script is not optimal. This would require writing and maintaining a separate SQL script for data transformation, which could introduce inconsistencies and errors. It would also make it harder to reuse the same preprocessing logic for both training and serving.

Why not B: Using the Kubeflow Pipelines SDK to implement the pipeline is a valid option, but using the DataflowPythonJobOp component to preprocess the data is not optimal. This would require writing and maintaining a separate Python script for data transformation, which could introduce inconsistencies and errors. It would also make it harder to reuse the same preprocessing logic for both training and serving.

Why not D: Using the TensorFlow Extended SDK to implement the pipeline is a valid option, but implementing the preprocessing steps as part of the input_fn of the model is not optimal. This would make the preprocessing logic tightly coupled with the model code, which could reduce modularity and flexibility. It would also make it harder to reuse the same preprocessing logic for both training and serving.


Get Premium Professional Machine Learning Engineer Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
9 comments · newest first
DE
Della 3 days ago
Totally agree with A, it's straightforward and effective!
EL
Elli 8 days ago
D sounds complicated, not sure if it's the best choice.
ID
Idella 13 days ago
C is interesting, but does it really minimize training time?
CH
Christiane 18 days ago
I think B is better for handling large datasets efficiently.
FR
France 23 days ago
Option A seems solid for integration with Vertex AI.
DO
Dorian 29 days ago
I'm a bit confused about the differences between the components in options A and B; they both seem to involve Kubeflow, but I can't remember which one is more efficient for our use case.
LA
Lai 1 month ago
I feel like option D might be the right choice since it mentions implementing preprocessing in the input_fn, which we covered in our last session.
ST
Stephen 1 month ago
I think option C sounds familiar because we practiced using TensorFlow Extended before, but I can't recall the specifics of the ExampleGen component.
ES
Esteban 1 month ago
I remember we discussed using Kubeflow for managing pipelines, but I'm not sure if the BigQueryJobOp or DataflowPythonJobOp is better for preprocessing.
0/2000 characters

Save Cancel