nerdexam
Google

PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #219

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 th

The correct answer is A. Use the Kubeflow Pipelines SDK to implement the pipeline. Use the BigQueryJobOp component. To develop a weekly training pipeline for a TensorFlow wide and deep model, leveraging existing BigQuery SQL preprocessing, the Kubeflow Pipelines SDK should be used with a BigQueryJobOp component to directly execute the preprocessing SQL.

Submitted by yaw92· Apr 18, 2026ML pipeline operationalization

Question

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 data. 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?

Options

  • AUse the Kubeflow Pipelines SDK to implement the pipeline. Use the BigQueryJobOp component
  • BUse the Kubeflow Pipelines SDK to implement the pipeline. Use the DataflowPythonJobOp
  • CUse the TensorFlow Extended SDK to implement the pipeline. Use the ExampleGen component
  • DUse the TensorFlow Extended SDK to implement the pipeline. Implement the preprocessing

How the community answered

(34 responses)
  • A
    71% (24)
  • B
    15% (5)
  • C
    9% (3)
  • D
    6% (2)

Why each option

To develop a weekly training pipeline for a TensorFlow wide and deep model, leveraging existing BigQuery SQL preprocessing, the Kubeflow Pipelines SDK should be used with a `BigQueryJobOp` component to directly execute the preprocessing SQL.

AUse the Kubeflow Pipelines SDK to implement the pipeline. Use the BigQueryJobOp componentCorrect

Since the training dataset preprocessing is already handled by a SQL script in BigQuery, using the Kubeflow Pipelines SDK with a `BigQueryJobOp` (or similar BigQuery component) allows directly executing this existing SQL preprocessing within the pipeline. This approach minimizes model development time by avoiding rewriting or adapting the preprocessing logic in another framework.

BUse the Kubeflow Pipelines SDK to implement the pipeline. Use the DataflowPythonJobOp

Using `DataflowPythonJobOp` would require rewriting the existing SQL preprocessing logic into Python for Dataflow, which increases development time instead of minimizing it.

CUse the TensorFlow Extended SDK to implement the pipeline. Use the ExampleGen component

While TensorFlow Extended (TFX) is a robust framework, using its `ExampleGen` component alone might not be sufficient to directly incorporate complex BigQuery SQL preprocessing, and adapting the SQL logic into TFX's data transformation components would typically involve more development effort.

DUse the TensorFlow Extended SDK to implement the pipeline. Implement the preprocessing

Implementing preprocessing within the TensorFlow Extended (TFX) SDK would necessitate rewriting the existing BigQuery SQL preprocessing logic using `tf.Transform` or similar TFX components, which goes against the goal of minimizing development and training time.

Concept tested: Integrating BigQuery SQL preprocessing in MLOps pipeline

Source: https://cloud.google.com/vertex-ai/docs/pipelines/create-component-from-bigquery-query

Topics

#ML Pipelines#Kubeflow Pipelines#BigQuery#Data Preprocessing

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-MACHINE-LEARNING-ENGINEER Practice