Home / ML Associate practice test / Model Development / Question

Databricks Machine Learning Associate · free practice question

A data scientist builds a scikit-learn Pipeline with several preprocessing steps and one final learning step. Which rule about pipeline steps is correct?

Exam-style question on Model Development from the free ML Associate practice test, with the answer and a full explanation below.

Updated November 10, 2026

Model Development

A data scientist builds a scikit-learn Pipeline with several preprocessing steps and one final learning step. Which rule about pipeline steps is correct?

  1. AEvery step in the pipeline must implement predict_proba, including the preprocessing stages before the final model
  2. BOnly the first step may transform data, while all later steps must be classifiers or regressors that predict
  3. CEach step may be any Python function as long as it accepts a pandas DataFrame and returns a NumPy array
  4. DThe last step may be an estimator without transform, but all earlier steps must be transformers that can fit and transform data
  5. EThe pipeline can contain several final estimators in parallel without wrapping them in another composite estimator
Answer & explanation

Correct answer: D

WHY D: In a standard Pipeline, all intermediate steps must be transformers, while the final step can be a predictor or other estimator. WHY NOT A: Preprocessing steps do not need predict_proba. WHY NOT B: Multiple intermediate transforms are allowed. WHY NOT C: Pipeline steps follow estimator interfaces, not arbitrary function signatures. WHY NOT E: Parallel branches require a different composite estimator such as ColumnTransformer or FeatureUnion.

Take the full ML Associate practice test free →

Would you pass today?

This question is one of 45 in the free, timed Databricks Machine Learning Associate practice test. Take it and get a section-by-section score.

Start the free test →