Question 1
Topic: Model Development
Skill tested: Construct Spark ML pipelines with compatible feature transformers and estimators.
A retailer trains a binary classifier from several hundred million labeled transactions stored in Delta tables. The workflow must tokenize a free-text product description, one-hot encode a categorical channel, assemble the features, and fit a logistic regression model. The data volume is too large for a single machine, and preprocessing must be persisted with the fitted model so batch scoring applies identical transformations. Which design best meets these requirements?
A Spark ML Pipeline chains distributed transformers and an estimator, so the same fitted preprocessing stages can be applied during batch scoring. The distributed logistic regression estimator can train against data too large for one machine. Driver-side pandas processing and collecting the table violate the scale constraint. Independently fitting partition models and averaging coefficients is not equivalent to fitting the intended logistic regression objective and does not provide the required standard pipeline behavior.