Question 10
Domain 1: Data Preparation for Machine Learning (ML)An ML engineer wants to use a set of survey responses as training data for an ML classifier. All the survey responses are either “yes” or “no.” The ML engineer needs to convert the responses into a feature that will produce better model training results. The ML engineer must not increase the dimensionality of the dataset. Which methods will meet these requirements? (Choose two.)
Correct answer: C
Explanation
Survey responses that are only “yes” or “no” can be converted into a single binary feature, such as 1/0, which preserves one dimension and is standard for classifier training. Because the engineer “must not increase the dimensionality,” methods like one-hot encoding are avoided, while binary encoding or label encoding satisfy the requirement by mapping the two values into one feature.
Why each option is right or wrong
A. Binary encoding
Binary encoding alone is only one valid method; the question asks for two methods.
B. Label encoding
Label encoding alone also fits, but it is not the complete set of correct choices.
C. All of the above
Each of the listed options is a valid answer; all are needed.