AI0-001 Machine Learning and Deep Learning Practice Question
A data science team is preparing a gradient boosting model to predict equipment failure from sensor data. They want to tune hyperparameters that primarily control model complexity and reduce overfitting. Which two hyperparameters should they focus on? (Choose two.)
⚠ Common exam trap
The trap here is treating any configurable training setting as a hyperparameter for overfitting, when operational settings such as thread count, seed, and output paths do not change model complexity.
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
✓
Learning rate
Learning rate and maximum tree depth are structural hyperparameters that govern how much each tree contributes and how complex each tree can become. Lowering them constrains the ensemble's capacity, which reduces variance and overfitting. The other choices affect runtime, reproducibility, or file storage rather than the bias-variance tradeoff.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Random seed for data shuffling
Why it's wrong here
The random seed influences reproducibility and slight run-to-run variation in stochastic training, but it is not a complexity control. Setting it does not systematically constrain the model's capacity or bias-variance tradeoff. A lucky seed may change metrics marginally, yet it cannot reliably reduce overfitting in the way structural hyperparameters do.
- ✗
Output directory for saved model artifacts
Why it's wrong here
The output directory determines where serialized model files are written on disk. It has no effect on training dynamics, tree growth, or the loss function. Confusing storage configuration with model complexity would leave the overfitting problem untouched while the team rearranges filesystem paths.
- ✗
Number of CPU threads used during training
Why it's wrong here
Thread count affects training speed and resource utilization, not the statistical complexity of the learned model. Changing it alters wall-clock time but leaves the objective function, tree structures, and predictions unchanged, so it cannot reduce overfitting or improve generalization on equipment failure data.
- ✓
Learning rate
Why this is correct
The learning rate scales each tree's contribution to the ensemble. A smaller value forces the model to build more trees and take smaller corrective steps, which typically reduces overfitting and improves generalization. Paired with an appropriate number of estimators, tuning the learning rate is a core complexity control in gradient boosting for noisy sensor data.
- ✓
Maximum tree depth
Why this is correct
Maximum depth caps how many interactions each tree can capture. Shallow trees limit the ensemble's capacity to memorize noise in individual sensor readings, directly controlling variance. Along with the learning rate, depth is one of the primary knobs for balancing underfitting and overfitting in gradient boosted models.
About these practice questions
One of 962 original AI0-001 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official CompTIA exam blueprint
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.