
DatabricksCertified Machine Learning Associate
Domain 4Objective 3
Use Pandas to Perform Batch Inference MACHINE-LEARNING-ASSOCIATE Practice Questions (Page 2)
Part of the Section 4: Model Deployment domain, which makes up ~30% of our current practice bank. Databricks does not publish an official question count, but from its 90-minute exam (~35–60 total, ~11–18 in this domain), expect 2–3 from this objective — we provide 15 practice questions to prepare you well beyond it. (estimate)
15questions here
3free pages
5concepts
Questions 6–10
- 6
Which pandas method is commonly used to apply a custom function to each row of a DataFrame when the model's predict method cannot accept the entire DataFrame at once?
Select an answer first - 7
A team has a model that returns predictions as a pandas Series with a custom index. They want to add these predictions to a DataFrame `df` that has a different index. Which code correctly aligns the predictions by position?
Select an answer first - 8
During training, a team standardized numeric features using `StandardScaler` and one-hot encoded categorical features using `OneHotEncoder`. For batch inference on new data, what is the correct approach?
Select an answer first - 9
After batch inference, a team writes the results DataFrame to a CSV file. They later discover that the CSV file contains an extra unnamed index column. Which parameter should they set to avoid this?
Select an answer first - 10
A team trained a model on data where a categorical feature had 5 categories. During batch inference, the new data contains a 6th category that was never seen in training. The team uses a `OneHotEncoder` fitted during training. What will happen?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Databricks. “MACHINE-LEARNING-ASSOCIATE” is a trademark of its owner, used for identification only.