AI0-001 AI Concepts and Foundations Practice Question
This AI0-001 practice question tests your understanding of ai concepts and foundations. 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.
Exhibit
Refer to the exhibit.
def train_model(X_train, y_train):
model = RandomForestClassifier(n_estimators=100, max_depth=5)
model.fit(X_train, y_train)
return model
# Training
model = train_model(X_train, y_train)
# Evaluation on test set
accuracy = model.score(X_test, y_test)
print('Accuracy:', accuracy)
Refer to the exhibit. The data scientist notices that the model achieves 98% accuracy on the training set but only 72% on the test set. Which change to the model parameters is most likely to reduce this gap?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue: "most likely"
Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
Refer to the exhibit.
def train_model(X_train, y_train):
model = RandomForestClassifier(n_estimators=100, max_depth=5)
model.fit(X_train, y_train)
return model
# Training
model = train_model(X_train, y_train)
# Evaluation on test set
accuracy = model.score(X_test, y_test)
print('Accuracy:', accuracy)
A
Increase n_estimators to 500.
Why wrong: More trees may still overfit if each tree is deep.
B
Set max_depth to None to allow trees to grow fully.
Why wrong: Increasing depth often increases overfitting.
C
Reduce max_depth to 3.
Reducing max_depth restricts the tree depth, reducing overfitting.
D
Switch from RandomForest to a linear model like LogisticRegression.
Why wrong: Changing algorithm is not a parameter change and may underfit.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Reduce max_depth to 3.
The model is overfitting: 98% training accuracy vs. 72% test accuracy. Reducing max_depth to 3 limits the depth of each decision tree, preventing them from memorizing noise and forcing them to learn more generalizable patterns. This is a standard regularization technique for tree-based ensembles.
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.
✗
Increase n_estimators to 500.
Why it's wrong here
More trees may still overfit if each tree is deep.
✗
Set max_depth to None to allow trees to grow fully.
Why it's wrong here
Increasing depth often increases overfitting.
✓
Reduce max_depth to 3.
Why this is correct
Reducing max_depth restricts the tree depth, reducing overfitting.
Clue confirmation
The clue word "most likely" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
✗
Switch from RandomForest to a linear model like LogisticRegression.
Why it's wrong here
Changing algorithm is not a parameter change and may underfit.
Common exam traps
Common exam trap: answer the scenario, not the keyword
CompTIA often tests the bias-variance tradeoff by presenting overfitting symptoms and expecting candidates to choose a regularization parameter (like reducing max_depth) rather than increasing model complexity or switching model families entirely.
Detailed technical explanation
How to think about this question
RandomForest reduces variance by averaging many deep trees, but if individual trees are too deep (high variance), the ensemble can still overfit. Limiting max_depth acts as a pre-pruning technique that controls the complexity of each tree, reducing variance at the cost of a slight increase in bias. In practice, tuning max_depth alongside min_samples_split and min_samples_leaf is a common grid-search strategy to find the optimal bias-variance tradeoff.
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 small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.
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.
AI Concepts and Foundations — This question tests AI Concepts and Foundations — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Reduce max_depth to 3. — The model is overfitting: 98% training accuracy vs. 72% test accuracy. Reducing max_depth to 3 limits the depth of each decision tree, preventing them from memorizing noise and forcing them to learn more generalizable patterns. This is a standard regularization technique for tree-based ensembles.
What should I do if I get this AI0-001 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
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 →
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.
This AI0-001 practice question is part of Courseiva's free CompTIA 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 AI0-001 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.