1. A registered scikit-learn model is loaded for batch scoring in Spark. Why is applying it as an MLflow pyfunc/Spark UDF advantageous?
- A. It applies the model in parallel across the cluster while reusing the logged model's environment for consistent results✓ Correct
- B. It retrains the model on each partition
- C. It requires no model to be logged
- D. It only works for a single row at a time
Explanation
Wrapping the MLflow model as a Spark UDF distributes scoring across the cluster and reuses the logged environment, giving scalable, consistent inference. It doesn't retrain per partition (B), it needs a logged model (C), and it scales beyond one row (D).