nerdexam
Google

PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #153

You have built a model that is trained on data stored in Parquet files. You access the data through a Hive table hosted on Google Cloud. You preprocessed these data with PySpark and exported it as a…

The correct answer is C. Add a ContainerOp to your pipeline that spins a Dataproc cluster, runs a transformation, and then. The recommended approach to parametrize the model training in Kubeflow Pipelines would be to add a ContainerOp to the pipeline that spins up a Dataproc cluster, runs the PySpark transformation step, and saves the transformed data in Cloud Storage. This approach allows for easy…

Submitted by diego_uy· Apr 18, 2026ML pipeline operationalization

Question

You have built a model that is trained on data stored in Parquet files. You access the data through a Hive table hosted on Google Cloud. You preprocessed these data with PySpark and exported it as a CSV file into Cloud Storage. After preprocessing, you execute additional steps to train and evaluate your model. You want to parametrize this model training in Kubeflow Pipelines. What should you do?

Options

  • ARemove the data transformation step from your pipeline.
  • BContainerize the PySpark transformation step, and add it to your pipeline.
  • CAdd a ContainerOp to your pipeline that spins a Dataproc cluster, runs a transformation, and then
  • DDeploy Apache Spark at a separate node pool in a Google Kubernetes Engine cluster. Add a

How the community answered

(35 responses)
  • A
    6% (2)
  • B
    9% (3)
  • C
    83% (29)
  • D
    3% (1)

Explanation

The recommended approach to parametrize the model training in Kubeflow Pipelines would be to add a ContainerOp to the pipeline that spins up a Dataproc cluster, runs the PySpark transformation step, and saves the transformed data in Cloud Storage. This approach allows for easy integration of PySpark transformations with Kubeflow Pipelines while taking advantage of the scalability and efficiency of Dataproc.

Topics

#Kubeflow Pipelines#Dataproc#PySpark#Data Transformation

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-MACHINE-LEARNING-ENGINEER Practice