- A
Normalization.
Why wrong: Normalization scales numerical values to a range.
- B
One-hot encoding.
One-hot encoding creates binary columns for each category, making them usable in models.
- C
Principal component analysis.
Why wrong: PCA is a dimensionality reduction technique, not a transformation for categorical data.
- D
Standardization.
Why wrong: Standardization is for numerical features, not categorical.
AI Associate Data for AI Practice Question
This AI Associate practice question tests your understanding of data for ai. Compare every option against the stated constraints before choosing — the best answer satisfies all requirements, not just the most obvious one. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Which data transformation is most appropriate for converting categorical variables into numerical format for a machine learning model?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
One-hot encoding.
One-hot encoding is the correct transformation because it converts categorical variables into a binary vector representation, where each category becomes a separate column with a 1 or 0. This allows machine learning models to interpret categorical data without implying any ordinal relationship, which is essential for algorithms that rely on numerical distances or linear algebra.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Normalization.
Why it's wrong here
Normalization scales numerical values to a range.
- ✓
One-hot encoding.
Why this is correct
One-hot encoding creates binary columns for each category, making them usable in models.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Principal component analysis.
Why it's wrong here
PCA is a dimensionality reduction technique, not a transformation for categorical data.
- ✗
Standardization.
Why it's wrong here
Standardization is for numerical features, not categorical.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Salesforce often tests the distinction between data preprocessing techniques (normalization, standardization) and encoding methods, trapping candidates who confuse scaling with categorical conversion.
Detailed technical explanation
How to think about this question
Under the hood, one-hot encoding creates a sparse matrix where each row has exactly one '1' and the rest '0's, which can significantly increase the feature space for high-cardinality categories. In real-world scenarios, this can lead to the 'curse of dimensionality' or memory issues, so techniques like hashing or target encoding are sometimes used as alternatives. Additionally, some tree-based models can handle label encoding directly, but one-hot encoding remains the safest default for linear models and neural networks.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A practitioner preparing for the AI Associate exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Data for AI — study guide chapter
Learn the concepts, then practise the questions
- →
Data for AI practice questions
Targeted practice on this topic area only
- →
All AI Associate questions
506 questions across all exam domains
- →
Salesforce AI Associate AI Associate study guide
Full concept coverage aligned to exam objectives
- →
AI Associate practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related AI Associate practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
AI Fundamentals practice questions
Practise AI Associate questions linked to AI Fundamentals.
AI Capabilities in CRM practice questions
Practise AI Associate questions linked to AI Capabilities in CRM.
Ethical Considerations of AI practice questions
Practise AI Associate questions linked to Ethical Considerations of AI.
Data for AI practice questions
Practise AI Associate questions linked to Data for AI.
AI Associate fundamentals practice questions
Practise AI Associate questions linked to AI Associate fundamentals.
AI Associate scenario practice questions
Practise AI Associate questions linked to AI Associate scenario.
AI Associate troubleshooting practice questions
Practise AI Associate questions linked to AI Associate troubleshooting.
Practice this exam
Start a free AI Associate practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this AI Associate question test?
Data for AI — This question tests Data for AI — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: One-hot encoding. — One-hot encoding is the correct transformation because it converts categorical variables into a binary vector representation, where each category becomes a separate column with a 1 or 0. This allows machine learning models to interpret categorical data without implying any ordinal relationship, which is essential for algorithms that rely on numerical distances or linear algebra.
What should I do if I get this AI Associate question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 30, 2026
This AI Associate practice question is part of Courseiva's free Salesforce certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI Associate exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.