Home / ML Associate practice test / Model Deployment / Question

Databricks Machine Learning Associate · free practice question

A data scientist wants to score a stored MLflow model against a pandas DataFrame inside Python code, without calling a remote serving endpoint. Which workflow…

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

Updated November 10, 2026

Model Deployment

A data scientist wants to score a stored MLflow model against a pandas DataFrame inside Python code, without calling a remote serving endpoint. Which workflow is the standard MLflow approach?

  1. ALoad the model with mlflow.pyfunc.load_model and call predict directly on the in-memory pandas DataFrame
  2. BConvert the DataFrame to SQL text and send it through a REST invocation URL even for local batch scoring
  3. CWrap the DataFrame with spark.readStream first, as pandas objects are not valid inputs for pyfunc prediction
  4. DRegister the DataFrame as a Unity Catalog table first, as pyfunc models score named tables and not in-memory data
  5. ECall mlflow.start_run before each prediction batch, as pyfunc predict requires an active tracking run to score
Answer & explanation

Correct answer: A

WHY A: MLflow pyfunc models support pandas.DataFrame inputs directly, so the normal pattern is load_model followed by predict.

WHY NOT B: A remote REST call is unnecessary for local batch scoring, and the stem rules out a serving endpoint.

WHY NOT C: pandas DataFrames are explicitly supported pyfunc inputs; no streaming reader is involved.

WHY NOT D: In-memory DataFrames can be scored directly without registering a table.

WHY NOT E: Prediction does not require an active MLflow run.

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 →