🔥 3-day streak
Databricks Certified Machine Learning Associate123 / 137
Question 123 of 137

A data engineer needs to score a 200-million-row Spark DataFrame using a registered scikit-learn model in Unity Catalog. Before prediction, each row must be enriched by calling a preprocessing function that depends on grouping records by 'store_id' to compute a rolling group-level statistic that the model expects as a feature. The engineer wants the enrichment and prediction to run in a single distributed pass. Which approach best satisfies these requirements?

Reviewed for accuracy · Report an issueNext question