1. A machine learning engineer is registering a model trained with Databricks Feature Store. During batch inference, the engineer calls FeatureStoreClient.score_batch(). What key advantage does this method provide over calling model.predict() directly on a DataFrame?
- A. It automatically retrains the model if feature values have drifted since the last training run
- B. It automatically looks up and joins the latest feature values from the Feature Store using the primary keys in the input DataFrame, ensuring feature consistency between training and serving✓ Correct
- C. It converts the model to ONNX format for lower-latency inference
- D. It bypasses MLflow tracking to reduce overhead during high-throughput batch jobs
Explanation
score_batch() accepts a DataFrame containing only primary keys (and any on-demand features) and automatically retrieves and joins the latest feature values from the Feature Store tables. This guarantees that the same feature definitions and transformations used during training are applied at inference, eliminating training-serving skew. It does not retrain the model—that requires a separate pipeline. It does not convert models to ONNX; that is a separate optimization step. score_batch() still logs to MLflow when configured; it does not bypass tracking.