QuestionQ29
Custom Model ServingA Data Scientist is developing a product-recommendation model for an online merchant that proposes additional items from a customer’s current shopping basket. To prevent recommending items already in the basket, the model must access the real-time basket contents during inference. The model will be deployed with Databricks Model Serving. The data scientist now needs to implement real-time feature engineering so that the current basket contents are incorporated into the model’s prediction.
Which approach accomplishes this?
- A Create a custom pyfunc model that processes the basket contents as part of the model’s predict() method.
- B Write basket data to a feature table and publish to the online store for low-latency access.
- C Store basket data in a Delta table and configure automatic feature lookup during model serving.
- D Implement feature preprocessing in a separate microservice that feeds the model serving endpoint.
Community Discussion