
DatabricksCertified Machine Learning Associate
Domain 2Objective 7
Use One-Hot Encoding for Categorical Features MACHINE-LEARNING-ASSOCIATE Practice Questions (Page 3)
Part of the Section 2: Data Processing domain, which makes up ~27% of our current practice bank. Databricks does not publish an official question count, but from its 90-minute exam (~35–60 total, ~9–16 in this domain), expect 1–2 from this objective — we provide 23 practice questions to prepare you well beyond it. (estimate)
23questions here
5free pages
5concepts
Questions 11–15
- 11
What is the benefit of placing one-hot encoding inside a Spark ML pipeline?
Select an answer first - 12
A data engineer is using Spark ML to build a pipeline that one-hot encodes a categorical column 'payment_method' with values 'credit_card', 'debit_card', 'paypal'. They want to ensure that the OneHotEncoder stage is fitted only on the training data and then applied to test data without refitting. How should they set up the pipeline?
Select an answer first - 13
A data analyst is preparing a dataset for a machine learning model. They have a categorical column 'color' with values 'red', 'green', 'blue'. They decide to use one-hot encoding. What is the primary purpose of this encoding?
Select an answer first - 14
What is the primary purpose of one-hot encoding for categorical variables?
Select an answer first - 15
A data scientist is evaluating the impact of one-hot encoding on a logistic regression model's interpretability. They have a categorical feature 'city' with 20 categories. What is the primary effect of one-hot encoding on model interpretability?
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.