Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Databricks logo

DatabricksCertified Machine Learning Associate

Domain 2Objective 7

Use One-Hot Encoding for Categorical Features MACHINE-LEARNING-ASSOCIATE Practice Questions (Page 4)

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 16–20

  1. 16application · easy

    A data engineer is using Spark ML to one-hot encode a categorical column 'size' with values 'S', 'M', 'L'. They use StringIndexer with default settings. What is the output of StringIndexer for a row with 'M'?

    Select an answer first
  2. 17foundation · easy

    How does one-hot encoding typically affect model interpretability compared to label encoding?

    Select an answer first
  3. 18foundation · easy

    How does Spark ML's StringIndexer handle unseen categories that appear in new data during inference?

    Select an answer first
  4. 19expert · hard

    A data team is building a Spark ML pipeline with multiple stages: imputation, one-hot encoding, scaling, and model training. They want to ensure that the one-hot encoding stage is applied only to categorical columns and not to numeric columns. What is the best way to achieve this in a Pipeline?

    Select an answer first
  5. 20foundation · easy

    In Spark ML, which transformer is used to convert a column of categorical indices into a vector of binary indicators?

    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.