- A
Normalize all numerical features to have zero mean and unit variance
Why wrong: Scaling is important but encoding categorical variables is equally essential.
- B
Remove highly correlated features
Why wrong: Feature selection is optional and not essential for all linear regression models.
- C
One-hot encode categorical features
Linear regression requires numerical input; one-hot encoding is needed for categorical variables.
- D
Apply Principal Component Analysis (PCA) to reduce dimensionality
Why wrong: PCA is optional and not always necessary.
Quick Answer
The answer is to one-hot encode categorical features. Linear regression models require numerical input, and one-hot encoding transforms categorical variables like neighborhood into binary columns, allowing the algorithm to interpret each category as a distinct predictor without implying ordinal relationships. This preprocessing step is essential because linear regression assumes a linear relationship between features and the target, and raw categorical labels would be misinterpreted as continuous values. On the AWS Certified Machine Learning Specialty MLS-C01 exam, this concept tests your understanding of data preparation for linear models, often appearing in scenario-based questions where you must identify the mandatory step before scaling or feature selection. A common trap is to jump to scaling or PCA, but encoding must come first since linear regression cannot process text or integer-labeled categories directly. Memory tip: think “categories to columns” — if it’s a category, one-hot it before you regress.
MLS-C01 Modeling Practice Question
This MLS-C01 practice question tests your understanding of modeling. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. 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.
A machine learning team is developing a model to predict housing prices. They have a dataset with numerical features like square footage and number of bedrooms, and categorical features like neighborhood. Which preprocessing step is essential before training a linear regression 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 encode categorical features
One-hot encoding converts categorical features into binary columns, which linear regression requires. Option A is wrong because scaling is important but not the only essential step; encoding is needed first. Option B is wrong because PCA reduces dimensionality but is optional. Option D is wrong because feature selection is not essential for all models.
Key principle: OSPF neighbour adjacency depends on matching area, hello/dead timers, network type, and authentication — IP reachability alone is not enough.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Normalize all numerical features to have zero mean and unit variance
Why it's wrong here
Scaling is important but encoding categorical variables is equally essential.
- ✗
Remove highly correlated features
Why it's wrong here
Feature selection is optional and not essential for all linear regression models.
- ✓
One-hot encode categorical features
Why this is correct
Linear regression requires numerical input; one-hot encoding is needed for categorical variables.
Related concept
OSPF neighbours must agree on key parameters.
- ✗
Apply Principal Component Analysis (PCA) to reduce dimensionality
Why it's wrong here
PCA is optional and not always necessary.
Common exam traps
Common exam trap: OSPF can fail even when IP connectivity looks correct
OSPF neighbour formation depends on matching areas, timers, network type, authentication and passive-interface behaviour. Do not choose an answer only because the devices can ping.
Detailed technical explanation
How to think about this question
OSPF questions usually test the details that control adjacency and route selection. Read the neighbour state, area, router ID and interface configuration before deciding what is wrong.
KKey Concepts to Remember
- OSPF neighbours must agree on key parameters.
- Router ID selection can affect neighbour relationships and LSDB output.
- OSPF cost influences the preferred path.
- A route can appear in OSPF information but not become the installed route.
TExam Day Tips
- Check area mismatch first when OSPF adjacency fails.
- Review passive interfaces when a network is advertised but no neighbour forms.
- Use show ip ospf neighbor and show ip route clues carefully.
Key takeaway
OSPF neighbour adjacency depends on matching area, hello/dead timers, network type, and authentication — IP reachability alone is not enough.
Real-world example
How this comes up in practice
A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. OSPF neighbour adjacency depends on matching area, hello/dead timers, network type, and authentication — IP reachability alone is not enough. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
What to study next
Got this wrong? Here's your next step.
Review OSPF neighbour requirements — matching area type, hello and dead timers, network type, stub flags, and authentication. Study show ip ospf neighbor states (INIT, 2-WAY, FULL). Then practise related MLS-C01 OSPF questions on adjacency and route selection.
- →
Modeling — study guide chapter
Learn the concepts, then practise the questions
- →
Modeling practice questions
Targeted practice on this topic area only
- →
All MLS-C01 questions
1,755 questions across all exam domains
- →
AWS Certified Machine Learning Specialty MLS-C01 study guide
Full concept coverage aligned to exam objectives
- →
MLS-C01 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related MLS-C01 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Data Engineering practice questions
Practise MLS-C01 questions linked to Data Engineering.
Machine Learning Implementation and Operations practice questions
Practise MLS-C01 questions linked to Machine Learning Implementation and Operations.
Modeling practice questions
Practise MLS-C01 questions linked to Modeling.
Exploratory Data Analysis practice questions
Practise MLS-C01 questions linked to Exploratory Data Analysis.
MLS-C01 fundamentals practice questions
Practise MLS-C01 questions linked to MLS-C01 fundamentals.
MLS-C01 scenario practice questions
Practise MLS-C01 questions linked to MLS-C01 scenario.
MLS-C01 troubleshooting practice questions
Practise MLS-C01 questions linked to MLS-C01 troubleshooting.
Practice this exam
Start a free MLS-C01 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 MLS-C01 question test?
Modeling — This question tests Modeling — OSPF neighbours must agree on key parameters..
What is the correct answer to this question?
The correct answer is: One-hot encode categorical features — One-hot encoding converts categorical features into binary columns, which linear regression requires. Option A is wrong because scaling is important but not the only essential step; encoding is needed first. Option B is wrong because PCA reduces dimensionality but is optional. Option D is wrong because feature selection is not essential for all models.
What should I do if I get this MLS-C01 question wrong?
Review OSPF neighbour requirements — matching area type, hello and dead timers, network type, stub flags, and authentication. Study show ip ospf neighbor states (INIT, 2-WAY, FULL). Then practise related MLS-C01 OSPF questions on adjacency and route selection.
What is the key concept behind this question?
OSPF neighbours must agree on key parameters.
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 →
Keep practising
More MLS-C01 practice questions
- A company is using Amazon Kinesis Data Streams to ingest real-time clickstream data. The data is consumed by a Lambda fu…
- A team is building a data pipeline to process terabytes of log data daily using Amazon EMR. The data arrives in 5-minute…
- A data science team is building a real-time fraud detection system. Transactions are streamed via Amazon Kinesis Data St…
- A company uses Amazon SageMaker to train and deploy machine learning models. The training data is stored in Amazon S3 (P…
- A data engineer is building a data pipeline to process user clickstream data. The data arrives as JSON files in an S3 bu…
- A data engineering team is designing a data lake on AWS for machine learning workloads. The data includes structured, se…
Last reviewed: Jun 20, 2026
This MLS-C01 practice question is part of Courseiva's free Amazon Web Services 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 MLS-C01 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.