Courseiva

CCNA Machine Learning Deep Learning Questions

49 questions · Machine Learning Deep Learning topic · All types, answers revealed

1
Multi-Selectmedium

A team is designing a deep learning pipeline for a computer vision task. They want to reduce overfitting. Which two techniques are specifically effective for this purpose? (Select TWO.)

Select 2 answers
A.Dropout
B.Using a smaller batch size
C.Adding more layers
D.L2 weight regularization
E.Increasing the learning rate
AnswersA, D

Dropout randomly deactivates neurons, reducing overfitting by preventing reliance on specific features.

Why this answer

Dropout is a regularization technique that randomly drops a fraction of neurons during training, which prevents the network from relying too heavily on any single neuron and forces it to learn more robust features. This reduces overfitting by introducing noise that improves generalization.

Exam trap

This exam often tests the misconception that increasing model capacity (more layers) or adjusting batch size directly reduces overfitting, when in fact these changes typically require additional regularization to be effective.

2
Multi-Selecteasy

A data scientist is preparing a dataset for a binary classification neural network. The dataset contains both numerical and categorical features, and some rows have identical entries. Which TWO preprocessing steps are most essential to improve model performance and avoid overfitting?

Select 2 answers
A.Removing duplicate records
B.Scaling numerical features to have zero mean and unit variance
C.Increasing the batch size
D.Applying PCA for dimensionality reduction
E.Using dropout regularization in the model
AnswersA, B

Duplicate records can cause the model to overfit to repeated patterns.

Why this answer

Removing duplicate records (A) is essential because identical rows can artificially inflate the importance of certain patterns, leading the model to memorize noise rather than generalize. This directly reduces overfitting by ensuring the training set reflects true data distribution. Scaling numerical features (B) to zero mean and unit variance (standardization) is critical for neural networks as it prevents features with larger magnitudes from dominating gradient updates, enabling faster convergence and stable training.

Exam trap

The AI0-001 exam often tests the distinction between preprocessing steps (applied to raw data) and model-level regularization techniques (like dropout), tricking candidates into selecting dropout as a preprocessing step when it is actually part of the model architecture.

3
Multi-Selectmedium

Which TWO techniques are commonly used to handle missing data in a machine learning dataset? (Choose TWO.)

Select 2 answers
A.Normalization
B.Imputation with mean or median
C.Deletion of rows with missing values
D.One-hot encoding
E.Dimensionality reduction
AnswersB, C

Replacing missing values with mean/median is a common imputation method.

Why this answer

Imputation with mean or median is a standard technique for handling missing numerical data because it preserves the dataset size and avoids introducing bias from simply discarding rows. By replacing missing values with the central tendency of the observed data, the model can still learn patterns without losing information, though it may reduce variance slightly.

Exam trap

CompTIA often tests the distinction between data preprocessing techniques (like normalization and encoding) and actual missing data handling methods, so candidates mistakenly select normalization or one-hot encoding as solutions for missing values.

4
MCQeasy

A data scientist is building a classification model to detect fraudulent transactions. The dataset is highly imbalanced with only 1% fraudulent cases. Which approach should the scientist use to evaluate model performance most effectively?

A.F1 score
B.Accuracy
C.Recall
D.Precision
AnswerA

F1 score is the harmonic mean of precision and recall, providing a balanced measure for imbalanced datasets.

Why this answer

In highly imbalanced datasets like fraud detection (1% positive class), accuracy is misleading because a model that predicts all transactions as legitimate would achieve 99% accuracy yet fail to detect any fraud. The F1 score (harmonic mean of precision and recall) is the most effective metric because it balances both false positives and false negatives, providing a single score that reflects the model's ability to correctly identify the minority class without being skewed by class imbalance.

Exam trap

CompTIA often tests the misconception that accuracy is always the best metric for classification, but in imbalanced datasets, accuracy is a trap because it does not reflect performance on the minority class, leading candidates to overlook metrics like F1 score that directly address class imbalance.

How to eliminate wrong answers

Option B (Accuracy) is wrong because it is dominated by the majority class (99% legitimate transactions), so a trivial model that never predicts fraud can still achieve 99% accuracy, masking poor fraud detection performance. Option C (Recall) is wrong because it only measures the proportion of actual fraud cases correctly identified (true positives / (true positives + false negatives)), ignoring false positives; a model that flags every transaction as fraud would have perfect recall but be unusable in practice. Option D (Precision) is wrong because it only measures the proportion of predicted fraud cases that are actually fraud (true positives / (true positives + false positives)), ignoring false negatives; a model that makes very few fraud predictions but with high precision would miss many actual frauds, which is unacceptable in fraud detection.

5
MCQmedium

An e-commerce company uses a gradient boosting model to forecast daily sales. Recently, the model's predictions have become less accurate, showing a significant drop in R-squared on validation data. The data scientist checks for data drift but finds no significant changes in feature distributions. The model was trained on data from the past 24 months and is retrained monthly. Upon inspecting the feature importance, the data scientist notices that the top feature 'promotion_flag' has decreased in importance over time. What is the most likely cause of the performance degradation, and what should be done?

A.The model is overfitting to historical promotions; apply more regularization
B.Concept drift has occurred; retrain the model more frequently with recent data only, or use an online learning approach
C.The model's hyperparameters need tuning; perform a grid search
D.The promotion_flag feature is leaking future information; remove it
AnswerB

Concept drift changes the relationship between features and target; frequent retraining adapts to new patterns.

Why this answer

(overfitting to promotions) does not explain the drop over time. Option C (hyperparameter tuning) is unlikely to fix the temporal change. Option D (leakage) would have caused issues from the start.

Option B correctly identifies concept drift (changing relationship) and suggests retraining more frequently or using online learning to adapt.

6
MCQmedium

A data engineer is designing a pipeline to train a linear regression model on a dataset with 10 million rows and 50 features. The dataset fits in memory. Which approach should the engineer use to train the model efficiently?

A.Normal equation
B.Batch gradient descent
C.Principal component analysis
D.Stochastic gradient descent
AnswerD

SGD updates weights per sample, making it efficient for large datasets.

Why this answer

Stochastic gradient descent (SGD) is the most efficient approach for training a linear regression model on a dataset with 10 million rows and 50 features because it updates the model parameters using only one training example per iteration, leading to much faster convergence per epoch compared to batch methods. Since the dataset fits in memory, SGD can still be implemented efficiently without the overhead of loading data in batches from disk, and it scales well to large datasets where the normal equation or batch gradient descent would be computationally prohibitive.

Exam trap

CompTIA often tests the misconception that the normal equation is always the best for small feature sets, but the trap here is that candidates overlook the massive computational cost of the O(n * f^2) matrix multiplication when n is large (10 million rows), even though f is small (50 features).

How to eliminate wrong answers

Option A is wrong because the normal equation requires computing (X^T X)^{-1} X^T y, which involves inverting a 50x50 matrix (feasible) but also computing X^T X, which is O(n * f^2) = 10 million * 2500 = 25 billion operations, making it extremely slow and memory-intensive for 10 million rows. Option B is wrong because batch gradient descent processes the entire 10-million-row dataset in each iteration, requiring O(n * f) = 500 million operations per epoch, which is computationally expensive and converges slowly compared to SGD. Option C is wrong because principal component analysis (PCA) is a dimensionality reduction technique used for feature reduction or visualization, not a method for training a linear regression model; it does not perform parameter optimization.

7
MCQhard

A media company uses a natural language processing (NLP) model to classify news articles into topics. The model was trained on articles from 2015-2018. In 2023, the model's F1 score drops significantly. The data scientists find that the word embeddings no longer capture the meaning of some terms (e.g., 'covid', 'metaverse'). The model uses static word embeddings (Word2Vec) trained on the original corpus. Which solution BEST addresses the observed degradation? A. Replace static embeddings with contextual embeddings from a transformer model like BERT, then fine-tune the classifier. B. Retrain the static Word2Vec embeddings on a larger corpus from 2023. C. Apply data augmentation to the original training data by replacing words with synonyms. D. Increase the dimensionality of the static embeddings.

A.Retrain the static Word2Vec embeddings on a larger corpus from 2023.
B.Increase the dimensionality of the static embeddings.
C.Replace static embeddings with contextual embeddings from a transformer model like BERT, then fine-tune the classifier.
D.Apply data augmentation to the original training data by replacing words with synonyms.
AnswerC

Contextual embeddings dynamically represent words based on context, handling semantic shift effectively.

Why this answer

Contextual embeddings (e.g., BERT) capture meaning based on context, adapting to new uses of words like 'covid' meaning pandemic. Fine-tuning the classifier on new data would update the model. Option A (retraining static embeddings) might capture new word senses but still assigns a single vector per word, missing context.

Option B (increasing dimensionality) does not address the semantic shift. Option D (data augmentation) does not introduce new word meanings.

8
MCQhard

A data scientist is training a convolutional neural network (CNN) for object detection. The training loss decreases rapidly but then plateaus at a high value, and the validation loss starts increasing. Which action should the scientist take to improve the model?

A.Increase the learning rate
B.Increase the number of epochs
C.Reduce the model complexity
D.Add more convolutional layers
AnswerC

Reducing complexity (e.g., fewer layers) can reduce overfitting and improve validation performance.

Why this answer

The training loss decreasing rapidly then plateauing at a high value while validation loss increases is classic overfitting. Reducing model complexity (Option C) directly addresses overfitting by decreasing the number of parameters or applying regularization (e.g., dropout, L2), which forces the network to learn more generalizable features rather than memorizing noise in the training data.

Exam trap

CompTIA often tests the misconception that high training loss plateau means underfitting or insufficient learning, leading candidates to increase model complexity or epochs, when the real issue is overfitting indicated by the validation loss increase.

How to eliminate wrong answers

Option A is wrong because increasing the learning rate would likely cause the loss to oscillate or diverge, not fix the plateau or overfitting; it addresses convergence speed, not generalization. Option B is wrong because increasing epochs would continue training on an already overfitting model, worsening the validation loss divergence. Option D is wrong because adding more convolutional layers increases model complexity, which would exacerbate overfitting by adding more parameters to memorize training data.

9
MCQeasy

A healthcare startup is developing a diagnostic system using medical images. The team has collected 10,000 labeled images of skin lesions. They plan to train a convolutional neural network (CNN) from scratch. However, training converges slowly, and the validation accuracy plateaus at 70%. The data scientist suspects overfitting. The dataset contains 8,000 images of benign lesions and 2,000 of malignant. The team has limited GPU resources. Which of the following is the MOST effective course of action to improve validation accuracy? A. Reduce the number of convolutional layers. B. Apply transfer learning using a pre-trained model on ImageNet. C. Increase the learning rate by a factor of 10. D. Add more dropout after every convolutional layer.

A.Increase the learning rate by a factor of 10.
B.Reduce the number of convolutional layers.
C.Add more dropout after every convolutional layer.
D.Apply transfer learning using a pre-trained model on ImageNet.
AnswerD

Transfer learning provides a strong feature extractor learned from a large dataset, which can significantly improve performance with limited data.

Why this answer

Transfer learning leverages a model pre-trained on a large dataset (e.g., ImageNet), which provides useful features for medical images and reduces the need for large amounts of data and computational resources. It is particularly effective when the dataset is small and imbalanced. Option A (increasing learning rate) might cause divergence or overshoot minima.

Option B (reducing layers) may reduce capacity and underfit. Option C (adding dropout) can help with overfitting but is unlikely to jump from 70% to a significantly higher accuracy given limited data; transfer learning provides a stronger boost.

10
MCQhard

A company uses a neural network for fraud detection. The dataset has 99% legitimate, 1% fraudulent. The model achieves 99% accuracy but fails to detect most frauds. Which metric should they focus on?

A.Precision
B.F1-score
C.Recall
D.AUC-ROC
AnswerC

Correct: Recall measures the proportion of actual frauds that are correctly identified.

Why this answer

Recall (sensitivity) measures the proportion of actual positives correctly identified. In this fraud detection scenario with 99% legitimate and 1% fraudulent transactions, a 99% accuracy can be achieved by simply predicting all transactions as legitimate, which yields 0% recall for the fraud class. Focusing on recall ensures the model captures the majority of fraudulent cases, addressing the critical failure to detect fraud despite high accuracy.

Exam trap

The AI0-001 exam often tests the misconception that high accuracy implies good model performance, especially in imbalanced datasets, leading candidates to overlook recall as the critical metric for detecting rare events like fraud.

How to eliminate wrong answers

Option A is wrong because precision measures the proportion of predicted positives that are actually positive; while important for avoiding false alarms, it does not directly address the failure to detect fraud (false negatives). Option B is wrong because F1-score is the harmonic mean of precision and recall; although it balances both, the primary issue here is low recall, so focusing on recall directly is more appropriate. Option D is wrong because AUC-ROC measures the model's ability to distinguish between classes across all thresholds, but it can be misleadingly high even when recall for the minority class is poor, especially in imbalanced datasets; it does not directly target the failure to detect fraud.

11
MCQmedium

While training a deep neural network, the loss function fails to converge and oscillates wildly. Which adjustment is most likely to stabilize training?

A.Increase the number of hidden layers
B.Decrease the batch size
C.Reduce the learning rate
D.Use a test set
AnswerC

Lower learning rate reduces step size, stabilizing training.

Why this answer

When the loss function oscillates wildly and fails to converge, it typically indicates that the learning rate is too high, causing the optimizer to overshoot the minima. Reducing the learning rate allows the gradient descent updates to take smaller, more stable steps, which helps the loss converge smoothly. This is a fundamental hyperparameter tuning step in deep learning training.

Exam trap

CompTIA often tests the misconception that increasing model complexity (more layers) or using more data (test set) directly fixes training instability, when in fact the learning rate is the primary culprit for oscillation and non-convergence.

How to eliminate wrong answers

Option A is wrong because increasing the number of hidden layers adds more parameters and non-linearity, which can exacerbate instability and overfitting, not stabilize training. Option B is wrong because decreasing the batch size increases the variance in gradient estimates, which often leads to noisier updates and can worsen oscillation, not reduce it. Option D is wrong because using a test set is for evaluating generalization performance after training, not for stabilizing the training process itself.

12
MCQeasy

A data scientist is training a binary classification model to detect fraudulent transactions. The dataset is highly imbalanced with 99% legitimate and 1% fraudulent. Which evaluation metric should be prioritized to assess model performance?

A.Accuracy
B.F1-score
C.Mean Squared Error
D.Log Loss
AnswerB

F1-score balances precision and recall, making it ideal for imbalanced classification.

Why this answer

In a highly imbalanced dataset (99% legitimate, 1% fraudulent), accuracy is misleading because a model that predicts all transactions as legitimate would achieve 99% accuracy without detecting any fraud. The F1-score combines precision and recall into a single metric, making it the preferred choice for evaluating binary classification performance on imbalanced data, as it penalizes both false positives and false negatives equally.

Exam trap

The trap here is that candidates often default to accuracy as the primary metric, not realizing that in highly imbalanced scenarios, accuracy can be artificially high and meaningless, while the F1-score reveals the true performance on the minority class.

How to eliminate wrong answers

Option A is wrong because accuracy is not suitable for imbalanced datasets; a naive model predicting the majority class can achieve high accuracy while failing to detect any fraudulent transactions. Option C is wrong because Mean Squared Error (MSE) is a regression metric used for continuous outputs, not for binary classification tasks. Option D is wrong because Log Loss measures the probabilistic confidence of predictions and, while useful, does not directly account for class imbalance in the same way the F1-score does; it can be dominated by the majority class's probabilities.

13
MCQeasy

A team is implementing a machine learning pipeline to classify images for a defect detection system. They are considering using a pre-trained convolutional neural network (CNN) and fine-tuning it on their small dataset. What is the primary advantage of transfer learning in this scenario?

A.It ensures the model is not biased toward the original dataset
B.It eliminates the need for data preprocessing
C.It allows the model to leverage learned features from a large dataset, reducing training time and required data
D.It reduces the risk of overfitting by using a larger model
AnswerC

Transfer learning uses features from a large dataset, so fine-tuning requires less data and time.

Why this answer

Transfer learning allows the team to start with a pre-trained CNN (e.g., trained on ImageNet) that has already learned general features like edges, textures, and shapes from a massive dataset. By fine-tuning only the later layers on their small defect dataset, they dramatically reduce training time and the amount of labeled data needed, while still achieving high accuracy.

Exam trap

The trap here is that candidates may think transfer learning eliminates all bias or preprocessing needs (options A and B), or mistakenly believe a larger model inherently reduces overfitting (option D), when in fact the core benefit is leveraging pre-learned features to reduce data and training time.

How to eliminate wrong answers

Option A is wrong because transfer learning does not eliminate bias from the original dataset; in fact, it intentionally leverages that bias (learned features) as a starting point, and fine-tuning may still carry some original dataset bias. Option B is wrong because transfer learning does not eliminate the need for data preprocessing; images must still be resized, normalized, and augmented to match the pre-trained model's input requirements. Option D is wrong because using a larger model (e.g., deeper CNN) actually increases the risk of overfitting on a small dataset, not reduces it; transfer learning mitigates overfitting by providing a strong feature initialization, not by using a larger model.

14
MCQhard

Refer to the exhibit. A data scientist is training a binary classifier. Based on the training log, which problem is the model experiencing?

A.Underfitting
B.Data leakage
C.Overfitting
D.Vanishing gradient
AnswerC

Training loss decreases while validation loss increases, a classic sign of overfitting.

Why this answer

The training log shows that the model's training accuracy continues to improve while the validation accuracy plateaus or degrades after a certain number of epochs. This divergence between training and validation performance is the hallmark of overfitting, where the model memorizes the training data noise rather than learning generalizable patterns.

Exam trap

CompTIA often tests the distinction between overfitting and underfitting by showing a training log where training accuracy is high but validation accuracy is low, leading candidates to mistakenly think the model is underfitting because validation performance is poor.

How to eliminate wrong answers

Option A is wrong because underfitting would show poor performance on both training and validation sets, not the divergence seen here. Option B is wrong because data leakage typically causes unrealistically high performance on both sets or sudden jumps in metrics, not a gradual divergence after convergence. Option D is wrong because vanishing gradient affects deep networks by causing gradients to approach zero, preventing weight updates and stalling training, which would manifest as flat loss curves, not the overfitting pattern observed.

15
MCQeasy

A hospital wants to deploy a machine learning model to predict patient readmission risk within 30 days. They have a dataset with 10,000 records, 70 features including demographics, lab results, and past admissions. The target variable is binary (readmitted or not). The data scientist trains a logistic regression model and achieves an AUC of 0.85 on the test set. However, the hospital's clinicians require interpretability of predictions to trust the model. Which action should the data scientist take to ensure the model meets the interpretability requirement while maintaining performance?

A.Reduce the number of features to 10 using PCA and retrain the logistic regression
B.Replace logistic regression with a random forest model and use feature importance plots
C.Train a deep neural network and apply LIME or SHAP for explanations
D.Use the logistic regression model as is, since it is inherently interpretable with coefficients
AnswerD

Logistic regression coefficients provide direct interpretability for each feature.

Why this answer

(PCA + logistic regression) reduces dimensionality but loses interpretability and may degrade performance. Option B (random forest with feature importance) is less interpretable than logistic regression. Option C (deep neural network with LIME/SHAP) adds complexity and may reduce transparency.

Option D (keep logistic regression) provides inherent interpretability through coefficients, meeting the requirement without sacrificing performance.

16
Multi-Selectmedium

Which TWO techniques are commonly used to prevent overfitting in deep neural networks?

Select 2 answers
A.Using a larger learning rate
B.Dropout
C.L1 regularization
D.Early stopping
E.Increasing the number of layers
AnswersB, D

Dropout randomly drops neurons during training, reducing overfitting.

Why this answer

Dropout is a regularization technique that randomly drops a fraction of neurons during training, which prevents the network from relying too heavily on any single neuron and forces it to learn more robust features. This reduces overfitting by introducing noise and effectively training an ensemble of sub-networks.

Exam trap

CompTIA often tests the distinction between regularization techniques that reduce overfitting (like dropout and early stopping) versus hyperparameters or architectural changes that increase model capacity (like larger learning rates or more layers), which candidates mistakenly think help with overfitting.

17
MCQhard

An e-commerce company deploys a deep learning model for product recommendation. After a new data pipeline is implemented, the model's online performance degrades: recall drops by 20% and the click-through rate decreases. The data scientists suspect data drift. They compare the distribution of the input features between the training data and recent production data. The Kolmogorov-Smirnov test shows significant differences for two numerical features (price and rating). The team also notices that the frequency of categorical feature 'category' has changed. Which of the following is the MOST appropriate first step? A. Immediately retrain the model on all available data including new production data. B. Roll back to the previous data pipeline and investigate the root cause of drift. C. Use feature selection to remove the drifting features and retrain. D. Implement a monitoring dashboard to track drift over time and set up alerts.

A.Implement a monitoring dashboard to track drift over time and set up alerts.
B.Roll back to the previous data pipeline and investigate the root cause of drift.
C.Use feature selection to remove the drifting features and retrain.
D.Immediately retrain the model on all available data including new production data.
AnswerB

Rolling back restores the previous stable distribution; investigating the root cause prevents recurrence.

Why this answer

Since the drift occurred after a pipeline change, rolling back and investigating the root cause is the most prudent first step before making model changes. Retraining on drifted data (A) might incorporate a faulty distribution. Removing drifting features (C) could lose important information and may not fully address the issue.

Implementing monitoring (D) is useful for long-term but does not address the immediate degradation.

18
MCQeasy

A data scientist is training a neural network to classify images of handwritten digits. The model achieves 99% accuracy on training data but only 85% on validation data. Which technique should the scientist apply first to address this issue?

A.Remove one or more hidden layers from the network
B.Increase the number of training epochs
C.Apply L2 regularization to the network weights
D.Add more features to the input data
AnswerC

L2 regularization penalizes large weights and reduces overfitting.

Why this answer

The model shows high training accuracy (99%) but lower validation accuracy (85%), which is a classic sign of overfitting. L2 regularization (option C) adds a penalty term to the loss function proportional to the squared magnitude of the weights, discouraging the network from learning overly complex patterns that do not generalize. This directly addresses overfitting without reducing the model's capacity too aggressively.

Exam trap

CompTIA often tests the distinction between overfitting and underfitting, and the trap here is that candidates may confuse increasing epochs (option B) as a solution to low validation accuracy, when in fact it exacerbates overfitting in this scenario.

How to eliminate wrong answers

Option A is wrong because removing hidden layers reduces the model's capacity, which may underfit and does not specifically target the overfitting problem; the network already has sufficient capacity to memorize the training data. Option B is wrong because increasing the number of training epochs would likely worsen overfitting by allowing the model to further memorize noise in the training data, not improve validation performance. Option D is wrong because adding more features to the input data (e.g., additional pixel-level transformations) would increase the dimensionality and risk of overfitting, not reduce it, and is not a standard technique for addressing overfitting in neural networks.

19
Multi-Selectmedium

Which THREE are common activation functions used in neural networks? (Choose THREE.)

Select 3 answers
A.ReLU
B.Softmax
C.Sigmoid
D.Linear
E.Tanh
AnswersA, C, E

Rectified Linear Unit is widely used in hidden layers.

Why this answer

ReLU (Rectified Linear Unit) is a common activation function in neural networks because it introduces non-linearity while being computationally efficient. It outputs the input directly if positive, otherwise zero, which helps mitigate the vanishing gradient problem compared to sigmoid or tanh. This makes it a default choice for hidden layers in many deep learning architectures.

Exam trap

CompTIA often tests the distinction between activation functions used in hidden layers versus output layers, so candidates mistakenly select Softmax as a general activation function when it is only appropriate for the final layer in classification tasks.

20
MCQeasy

A machine learning engineer needs to choose an algorithm for grouping customers into segments based on purchasing behavior without any labels. Which algorithm should the engineer use?

A.K-means clustering
B.Random forest classifier
C.Linear regression
D.Support vector machine
AnswerA

K-means is unsupervised and groups data based on feature similarity.

Why this answer

K-means clustering is an unsupervised learning algorithm that groups unlabeled data into clusters based on feature similarity, making it ideal for segmenting customers by purchasing behavior without predefined labels. It partitions data into K clusters by minimizing within-cluster variance, which directly addresses the requirement of discovering natural groupings in the data.

Exam trap

The AI0-001 exam often tests the distinction between supervised and unsupervised learning, and the trap here is that candidates may confuse clustering with classification, picking a supervised algorithm like Random Forest or SVM because they think of 'grouping' as a classification task.

How to eliminate wrong answers

Option B (Random forest classifier) is wrong because it is a supervised ensemble method that requires labeled training data to classify instances, not suitable for unlabeled customer segmentation. Option C (Linear regression) is wrong because it is a supervised regression algorithm used to predict continuous values from labeled data, not for grouping unlabeled data. Option D (Support vector machine) is wrong because it is a supervised classification algorithm that requires labeled data to find a separating hyperplane, and cannot perform unsupervised clustering without modifications.

21
MCQhard

A financial institution is developing a fraud detection model using historical transaction data. The dataset contains over 10 million records, but only 0.01% of transactions are fraudulent. The current model uses a neural network trained with standard cross-entropy loss, and the team applies random undersampling of the majority class to create a balanced training set. However, the model still produces a high number of false positives (legitimate transactions flagged as fraud) and misses approximately 30% of actual fraud cases. The business requires that at least 95% of frauds be caught, and the false positive rate must be below 1% to avoid overwhelming fraud analysts. The team has limited resources to collect additional data and cannot change the model architecture significantly. Which approach should the team take to best meet the business requirements?

A.Use cost-sensitive learning by assigning a higher misclassification cost to the fraud class.
B.Apply feature selection to remove noisy predictors and then retrain the current model.
C.Switch to an anomaly detection algorithm such as Isolation Forest or One-Class SVM.
D.Collect more transaction data, especially fraudulent examples, to naturally balance the classes.
AnswerA

This directly penalizes false negatives more, encouraging the model to catch more frauds while maintaining a low false positive rate through tuning.

Why this answer

Cost-sensitive learning adjusts the loss function to penalize false negatives more heavily, directly addressing the need to catch more frauds while controlling false positives. Collecting more data is impractical and may not resolve the imbalance. Anomaly detection models treat fraud as outliers but often have high false positive rates in this context.

Feature selection does not inherently solve the imbalance or performance metric trade-off.

22
MCQmedium

A team is training a convolutional neural network (CNN) for medical image diagnosis. They have a limited dataset of 500 labeled images. Which strategy is most effective to improve model generalization?

A.Increasing network depth
B.Data augmentation
C.Using a larger batch size
D.Reducing the number of filters
AnswerB

Augmentation (e.g., rotation, flip) generates more training examples, improving generalization.

Why this answer

With only 500 labeled medical images, the primary challenge is overfitting due to limited data. Data augmentation (e.g., random rotations, flips, zooms) artificially expands the training set by creating varied but realistic transformations, which forces the CNN to learn invariant features and significantly improves generalization to unseen data.

Exam trap

The AI0-001 exam often tests the misconception that increasing model complexity (depth or filters) always improves performance, but with limited data, the correct strategy is to use regularization techniques like data augmentation to combat overfitting.

How to eliminate wrong answers

Option A is wrong because increasing network depth adds more parameters, which exacerbates overfitting on a small dataset and requires more data to train effectively. Option C is wrong because using a larger batch size provides a noisier gradient estimate and can lead to sharper minima, often reducing generalization, especially with limited data. Option D is wrong because reducing the number of filters lowers the model's capacity, which may cause underfitting and fail to capture the complex patterns needed for medical image diagnosis.

23
MCQmedium

A machine learning engineer is building a spam filter. The dataset contains 10,000 emails, of which 1,000 are spam. The engineer decides to use a Random Forest classifier. Which preprocessing step is most critical to ensure the model generalizes well to new, unseen emails?

A.Apply Principal Component Analysis (PCA) to reduce dimensionality
B.Normalize the numerical features to have zero mean and unit variance
C.Split the data into training and testing sets before any other preprocessing
D.Encode all features using one-hot encoding
AnswerC

Splitting first prevents data leakage and ensures realistic evaluation.

Why this answer

Splitting the data into training and testing sets before any other preprocessing prevents data leakage. If preprocessing like normalization or PCA is applied to the entire dataset first, the test set information influences the training process, leading to overly optimistic performance estimates and poor generalization to new, unseen emails.

Exam trap

CompTIA often tests the concept of data leakage by presenting preprocessing steps that seem harmless but actually incorporate test set information, tricking candidates into thinking scaling or dimensionality reduction is always necessary for tree-based models.

How to eliminate wrong answers

Option A is wrong because PCA is an unsupervised dimensionality reduction technique that, if applied before splitting, would leak information from the test set into the training set, and Random Forest is robust to high-dimensional sparse data, making PCA unnecessary for generalization. Option B is wrong because Random Forest is a tree-based ensemble method that is invariant to monotonic transformations and does not require feature scaling; normalizing before splitting would also risk data leakage if done on the full dataset. Option D is wrong because one-hot encoding is only relevant for categorical features, and applying it before splitting could introduce data leakage if the encoding uses levels present only in the test set; moreover, not all features in an email dataset are categorical, and Random Forest can handle label encoding without one-hot encoding.

24
Multi-Selecthard

Which TWO are valid techniques to reduce overfitting in a deep neural network? (Choose TWO.)

Select 2 answers
A.Increase batch size
B.Increase learning rate
C.L2 regularization
D.Gradient clipping
E.Dropout
AnswersC, E

L2 regularization adds a penalty for large weights, discouraging complex models.

Why this answer

L2 regularization (option C) is a valid technique to reduce overfitting by adding a penalty term proportional to the square of the weight magnitudes to the loss function. This discourages the network from learning overly complex patterns, effectively shrinking weights and improving generalization. Dropout (option E) randomly drops a fraction of neurons during training, which prevents co-adaptation of features and forces the network to learn more robust representations, also reducing overfitting.

Exam trap

CompTIA often tests the distinction between techniques that improve training stability (like gradient clipping or adjusting batch size/learning rate) versus those that directly regularize the model to reduce overfitting (like L2 regularization and dropout), leading candidates to confuse optimization tricks with regularization methods.

25
MCQeasy

A team is building a recommendation system using collaborative filtering. They have a sparse user-item matrix. Which technique should they use to handle the sparsity and improve recommendations?

A.Association rule mining
B.Matrix factorization
C.k-nearest neighbors
D.Content-based filtering
AnswerB

Matrix factorization reduces dimensionality and captures latent features, effectively handling sparsity.

Why this answer

Matrix factorization (B) is the correct technique because it decomposes the sparse user-item matrix into lower-dimensional latent factor matrices, effectively capturing underlying patterns and filling in missing entries. This directly addresses sparsity by learning dense representations that generalize beyond observed interactions, which is a core strength in collaborative filtering for recommendation systems.

Exam trap

CompTIA often tests the misconception that k-nearest neighbors (k-NN) is the go-to for collaborative filtering, but candidates fail to recognize that k-NN's performance collapses under high sparsity, whereas matrix factorization explicitly models latent factors to overcome this.

How to eliminate wrong answers

Option A is wrong because association rule mining (e.g., Apriori algorithm) is designed for market basket analysis to find frequent itemsets and rules, not for handling sparse user-item matrices in collaborative filtering; it fails to generalize from sparse data and does not model latent factors. Option C is wrong because k-nearest neighbors (k-NN) is a memory-based collaborative filtering method that relies on direct similarity computations between users or items, which degrades severely with high sparsity due to lack of overlapping ratings, leading to poor recommendations. Option D is wrong because content-based filtering uses item features (e.g., genre, keywords) to recommend similar items, not the user-item interaction matrix; it does not address sparsity in collaborative filtering and ignores collaborative signals from other users.

26
Multi-Selecteasy

Which TWO of the following are common activation functions used in deep neural networks?

Select 2 answers
A.Linear Regression
B.Support Vector Machine
C.K-means
D.ReLU
E.Sigmoid
AnswersD, E

ReLU is the most common activation for hidden layers.

Why this answer

ReLU (Rectified Linear Unit) is a common activation function in deep neural networks because it introduces non-linearity while being computationally efficient, outputting the input directly if positive and zero otherwise. It helps mitigate the vanishing gradient problem, making it a default choice for hidden layers in many architectures.

Exam trap

CompTIA AI often tests the distinction between machine learning algorithms (like Linear Regression, SVM, K-means) and neural network components (like activation functions), so candidates mistakenly select algorithms as activation functions because they recognize them as common ML terms.

27
MCQeasy

A data analyst wants to predict housing prices based on square footage, number of bedrooms, and location. Which machine learning approach is most suitable?

A.K-means clustering
B.Decision tree regression
C.Association rule mining
D.Linear regression
AnswerD

Linear regression models the linear relationship between input features and a continuous output.

Why this answer

Linear regression is the most suitable approach because the problem involves predicting a continuous numeric target (housing prices) from multiple independent variables (square footage, bedrooms, location). Linear regression models the linear relationship between the features and the target, providing interpretable coefficients and efficient training for this type of regression task.

Exam trap

The trap here is that candidates may confuse regression (predicting a continuous value) with classification or unsupervised learning, and incorrectly select decision tree regression or clustering because they see 'prediction' and assume any tree-based or grouping method works.

How to eliminate wrong answers

Option A is wrong because K-means clustering is an unsupervised learning algorithm used for grouping unlabeled data into clusters, not for predicting a continuous target variable. Option B is wrong because decision tree regression can be used for regression, but it is not the most suitable here; it tends to overfit and lacks the interpretability and simplicity of linear regression for a straightforward linear relationship. Option C is wrong because association rule mining is an unsupervised technique for discovering frequent itemsets and rules in transactional data, not for predicting numeric values.

28
MCQhard

A deep learning model for image classification is overfitting the training data. The team has already tried data augmentation and dropout. Which additional technique should they implement to reduce overfitting?

A.Batch normalization
B.Increase number of epochs
C.Gradient clipping
D.Early stopping
AnswerD

Early stopping monitors validation loss and stops training when it starts to increase, reducing overfitting.

Why this answer

Early stopping (Option D) is the correct additional technique because it halts training when validation performance stops improving, directly preventing the model from memorizing noise in the training data. Since data augmentation and dropout are already in use, early stopping provides a complementary regularization effect by limiting the number of training iterations before overfitting occurs.

Exam trap

CompTIA often tests the distinction between techniques that address overfitting versus those that solve optimization issues, leading candidates to confuse batch normalization or gradient clipping as overfitting solutions when they are not.

How to eliminate wrong answers

Option A is wrong because batch normalization primarily accelerates training and stabilizes learning by normalizing layer inputs, but it does not directly reduce overfitting—it can even have a slight regularizing effect, but it is not a primary overfitting countermeasure. Option B is wrong because increasing the number of epochs would exacerbate overfitting by giving the model more opportunities to memorize training data, making the problem worse. Option C is wrong because gradient clipping is used to prevent exploding gradients in deep networks, especially in RNNs, and does not address overfitting from excessive model capacity or insufficient regularization.

29
MCQhard

A healthcare startup is developing a deep learning model to detect diabetic retinopathy from retinal fundus images. The dataset contains 50,000 images, but only 5% are labeled as positive for the disease. The team uses a convolutional neural network (CNN) with a final sigmoid layer and binary cross-entropy loss. After training for 20 epochs, the model achieves 95% accuracy on the test set, but the recall for the positive class is only 10%. The team suspects the model is biased toward the negative class due to class imbalance. The data is stored in a secure environment, and no additional labeled data can be obtained. The team has access to the following techniques: oversampling the minority class, undersampling the majority class, using class weights in the loss function, applying data augmentation, and using a different architecture. Which course of action is most likely to improve recall for the positive class while maintaining reasonable overall performance?

A.Undersample the majority class to balance the dataset
B.Oversample the minority class using synthetic image generation
C.Assign higher class weights to the positive class in the loss function
D.Replace the CNN with a transformer-based architecture
AnswerC

Class weights force the model to focus on the minority class, improving recall.

Why this answer

Assigning higher class weights to the positive class in the loss function directly penalizes misclassifications of the minority class during training. This forces the model to pay more attention to positive samples without altering the dataset distribution, which is critical when no additional labeled data can be obtained and the data is in a secure environment. It improves recall by increasing the gradient contribution from positive samples, while maintaining overall performance because the model still sees the original data distribution.

Exam trap

The trap here is that candidates often choose oversampling (Option B) as the default solution for class imbalance, but fail to recognize that synthetic image generation for medical images can introduce unrealistic patterns and is not a standard or safe technique, whereas class weights are a lightweight, data-preserving approach that directly addresses the loss function.

How to eliminate wrong answers

Option A is wrong because undersampling the majority class discards a large number of negative samples, which can lead to loss of valuable information and degrade overall accuracy, especially with a 95% negative class. Option B is wrong because oversampling the minority class using synthetic image generation (e.g., SMOTE) is not directly applicable to high-dimensional image data without careful adaptation, and it may introduce unrealistic artifacts that harm generalization; the question specifies 'synthetic image generation' which is not a standard or safe approach for retinal fundus images. Option D is wrong because replacing the CNN with a transformer-based architecture does not address the class imbalance problem; transformers are not inherently better at handling imbalanced data and would require more data and computational resources, which are not available here.

30
MCQeasy

A company wants to deploy a machine learning model that requires continuous learning as new data arrives. The model must be able to adapt to changing patterns without retraining from scratch. Which approach should be used?

A.Transfer learning
B.Online learning
C.Batch learning
D.Unsupervised learning
AnswerB

Online learning updates the model incrementally, allowing adaptation to new data without full retraining.

Why this answer

Online learning (also called incremental learning) updates the model incrementally as each new data point arrives, without requiring full retraining. This makes it ideal for scenarios where data arrives continuously and patterns shift over time, as the model can adapt its parameters on the fly.

Exam trap

CompTIA often tests the distinction between training paradigms (online vs. batch) and other ML concepts like transfer learning or unsupervised learning, so candidates may confuse 'continuous learning' with 'transfer learning' or incorrectly assume that any learning method can handle streaming data.

How to eliminate wrong answers

Option A is wrong because transfer learning reuses a pre-trained model on a new but related task, but it does not inherently support continuous adaptation to streaming data—it typically requires a separate fine-tuning phase. Option C is wrong because batch learning trains the model on the entire dataset at once and requires retraining from scratch when new data arrives, making it unsuitable for continuous learning. Option D is wrong because unsupervised learning is a paradigm for finding patterns in unlabeled data, not a deployment strategy for handling streaming data or model updates.

31
MCQmedium

A machine learning engineer is tuning a neural network for image classification. The training loss decreases steadily, but the validation loss starts increasing after 50 epochs. Which action best addresses this issue?

A.Increase the number of hidden layers
B.Add more training data
C.Apply early stopping with a patience of 10 epochs
D.Increase the batch size
AnswerC

Early stopping monitors validation loss and stops training when it starts increasing, directly addressing overfitting.

Why this answer

The described behavior—decreasing training loss with increasing validation loss—is a classic sign of overfitting. Early stopping with a patience of 10 epochs directly addresses this by halting training when the validation loss fails to improve for a specified number of epochs, preventing further overfitting while retaining the best model weights.

Exam trap

The AI0-001 exam often tests the distinction between underfitting and overfitting symptoms, and the trap here is that candidates may confuse a rising validation loss with a need for more data or a deeper network, when the correct action is to stop training early to combat overfitting.

How to eliminate wrong answers

Option A is wrong because increasing the number of hidden layers increases model capacity, which typically worsens overfitting by allowing the network to memorize training data more easily. Option B is wrong because adding more training data can help reduce overfitting in general, but it is not the most direct or immediate fix for the specific problem of validation loss increasing after 50 epochs; early stopping is a more targeted and efficient solution. Option D is wrong because increasing the batch size provides a more accurate gradient estimate but does not prevent overfitting; it may even lead to sharper minima and poorer generalization, making the validation loss issue worse.

32
Multi-Selecteasy

Which TWO are characteristics of supervised learning?

Select 2 answers
A.Does not require target variable
B.Requires labeled data
C.Uses reinforcement signals
D.Learns to cluster data
E.Predicts continuous or categorical output
AnswersB, E

Supervised learning uses input-output pairs for training.

Why this answer

Supervised learning requires labeled data because the model learns a mapping from input features to a known target variable. The correct answer B is fundamental: without labeled examples, the algorithm cannot calculate a loss function to adjust its weights during training.

Exam trap

The AI0-001 exam often tests the distinction between supervised and unsupervised learning by presenting 'clustering' or 'reinforcement signals' as plausible characteristics of supervised learning, trapping candidates who confuse task types.

33
MCQhard

The exhibit shows a model configuration for a classification task with 10 classes. What is wrong with this setup?

A.The loss function should be categorical crossentropy, not mean squared error
B.The metric should be precision, not accuracy
C.The activation should be sigmoid in hidden layers
D.The optimizer should be SGD, not Adam
AnswerA

Correct: MSE is for regression; classification requires crossentropy loss.

Why this answer

In a multi-class classification task with 10 classes, the correct loss function is categorical crossentropy because it measures the dissimilarity between the true probability distribution and the predicted probability distribution. Mean squared error (MSE) is designed for regression tasks and penalizes errors in a way that is not suitable for classification probabilities, leading to poor gradient behavior and slower convergence.

Exam trap

The AI0-001 exam often tests the misconception that MSE can be used as a generic loss function for any task, but in classification, crossentropy is specifically designed to handle probability distributions and one-hot encoding.

How to eliminate wrong answers

Option B is wrong because accuracy is the standard metric for multi-class classification tasks; precision is typically used for binary classification or when focusing on specific class performance, but it is not a general replacement for accuracy. Option C is wrong because sigmoid activation in hidden layers can cause vanishing gradients and is not optimal; ReLU or its variants are preferred for hidden layers to mitigate gradient issues. Option D is wrong because Adam is a widely used optimizer that adapts learning rates and often outperforms SGD in practice; there is no inherent problem with using Adam for this setup.

34
MCQmedium

An AI engineer is training a deep neural network for image recognition. The training loss decreases steadily for the first few epochs but then plateaus and starts to oscillate. Which adjustment is most likely to improve convergence?

A.Add more layers
B.Increase the learning rate
C.Increase the batch size
D.Reduce the learning rate
AnswerD

A lower learning rate can smooth convergence and reduce oscillation.

Why this answer

The plateau and oscillation of the training loss indicate that the optimizer is overshooting the minimum due to a learning rate that is too high. Reducing the learning rate allows the optimizer to take smaller, more precise steps, dampening oscillations and enabling convergence to a lower loss. This is a standard technique in gradient descent optimization, often implemented via learning rate schedules or adaptive methods like Adam.

Exam trap

CompTIA often tests the misconception that increasing the learning rate speeds up convergence, when in fact it causes divergence or oscillation, and that adding layers always improves performance, ignoring the risk of overfitting and optimization difficulty.

How to eliminate wrong answers

Option A is wrong because adding more layers increases model complexity, which typically exacerbates overfitting and can worsen convergence issues when the loss is already oscillating. Option B is wrong because increasing the learning rate would make the oscillations larger and more erratic, moving the optimizer further from the minimum. Option C is wrong because increasing the batch size reduces the variance of gradient estimates but does not address the fundamental issue of an overly large step size causing oscillations; it may even slow convergence by requiring more epochs to process the same data.

35
MCQhard

An AI developer observes that the training accuracy of a neural network is high, but the test accuracy is low. The model uses a ReLU activation function and Adam optimizer. Which approach is most likely to improve test accuracy?

A.Increase the learning rate
B.Add L2 regularization to the loss function
C.Switch to a stochastic gradient descent optimizer
D.Increase the number of epochs
AnswerB

L2 regularization penalizes large weights, preventing overfitting.

Why this answer

L2 regularization adds a penalty on large weights, reducing overfitting and improving test accuracy.

36
MCQhard

Refer to the exhibit. An AI specialist reviews the model evaluation report for a binary classifier. The specialist wants to improve recall. Which action is most likely effective?

A.Decrease the classification threshold
B.Collect more training data for the minority class
C.Increase the classification threshold
D.Add more features
AnswerB

More minority data provides the model with more patterns, often improving recall.

Why this answer

Collecting more training data for the minority class directly addresses class imbalance, which is a common cause of low recall. By providing more examples of the positive (minority) class, the model can learn better decision boundaries and reduce false negatives, thereby improving recall without altering the classification threshold.

Exam trap

This exam often tests the misconception that adjusting the classification threshold is the primary way to improve recall, when in fact data-level strategies like collecting more minority class data are more effective for addressing class imbalance.

How to eliminate wrong answers

Option A is wrong because decreasing the classification threshold increases the number of positive predictions, which may improve recall but at the cost of precision, and it does not address the underlying data imbalance that limits recall. Option C is wrong because increasing the classification threshold reduces the number of positive predictions, which typically lowers recall further by increasing false negatives. Option D is wrong because adding more features does not guarantee improved recall; it may introduce noise or irrelevant features, and it does not directly address the lack of minority class examples that causes low recall.

37
MCQhard

A data scientist is training a multi-class classifier with 10 classes. The training log shows the above output for the first two epochs. What is the most likely cause?

A.Batch normalization is disabled
B.The learning rate is set to zero
C.The dataset is imbalanced
D.The model is overfitting
AnswerB

A zero learning rate prevents any weight updates, so the model outputs remain at initial random values.

Why this answer

When the learning rate is set to zero, the optimizer makes no updates to the model weights regardless of the computed gradients. The training loss remains constant across epochs because the parameters never change, which matches the log showing identical loss values for both epochs. This is a common debugging scenario where a misconfigured learning rate prevents any learning from occurring.

Exam trap

CompTIA often tests the misconception that a flat loss curve is always due to data issues or model capacity, when in fact it is a classic symptom of a zero or extremely small learning rate that prevents any weight updates.

How to eliminate wrong answers

Option A is wrong because disabling batch normalization would cause training instability and fluctuating loss values, not a perfectly flat loss across epochs. Option C is wrong because an imbalanced dataset affects final accuracy and per-class performance, but the loss would still decrease (or oscillate) as the model learns the majority classes. Option D is wrong because overfitting is characterized by decreasing training loss with increasing validation loss, not a completely static training loss.

38
MCQmedium

A machine learning team is deploying a model that predicts customer churn. They notice that the model's predictions are highly sensitive to small changes in input features, leading to inconsistent outputs. Which technique should the team apply to improve model stability?

A.Increase learning rate
B.Feature scaling
C.Regularization
D.Cross-validation
AnswerC

Regularization adds a penalty for large weights, reducing overfitting and sensitivity to input variations.

Why this answer

Regularization (Option C) is the correct technique because it adds a penalty term to the loss function (e.g., L1 or L2 regularization), which constrains the model's weights. This reduces variance and prevents overfitting to noise in the training data, directly addressing the high sensitivity to small input changes (brittleness). By shrinking coefficients, regularization forces the model to learn more general patterns, improving stability and consistency in predictions.

Exam trap

CompTIA often tests the misconception that feature scaling alone can fix model instability, but scaling only normalizes inputs and does not penalize large weights, which is the root cause of sensitivity to small input changes.

How to eliminate wrong answers

Option A is wrong because increasing the learning rate makes gradient descent steps larger, which can cause the model to overshoot minima and increase instability, not reduce sensitivity to input changes. Option B is wrong because feature scaling normalizes input ranges (e.g., via standardization or min-max scaling) to help gradient descent converge faster, but it does not address model variance or overfitting that causes prediction instability. Option D is wrong because cross-validation is a technique for evaluating model performance and tuning hyperparameters, not a method to directly improve model stability or reduce sensitivity to input perturbations.

39
MCQmedium

Based on the exhibit, what is the most likely issue with the trained model?

A.Overfitting because training accuracy is much higher than validation accuracy
B.Data leakage artificially inflating training accuracy
C.Vanishing gradients causing no learning
D.Underfitting due to insufficient epochs
AnswerA

Training accuracy (99.32%) is significantly higher than validation accuracy (78.9%), a classic sign of overfitting.

Why this answer

The exhibit shows a significant gap between high training accuracy and lower validation accuracy, which is the classic symptom of overfitting. The model has memorized the training data rather than learning generalizable patterns, leading to poor performance on unseen validation data.

Exam trap

The AI0-001 exam often tests the distinction between overfitting and underfitting by presenting accuracy curves where candidates must recognize that high training accuracy with low validation accuracy indicates overfitting, not data leakage or gradient issues.

How to eliminate wrong answers

Option B is wrong because data leakage would cause both training and validation accuracy to be artificially high and closely aligned, not a large gap. Option C is wrong because vanishing gradients prevent the model from learning at all, resulting in both training and validation accuracy remaining low or random, not high training accuracy. Option D is wrong because underfitting due to insufficient epochs would show low accuracy on both training and validation sets, not a high training accuracy with a lower validation accuracy.

40
MCQmedium

A company is deploying a machine learning model to predict customer churn. The dataset is highly imbalanced (95% non-churn, 5% churn). The model achieves 96% accuracy, but the F1-score for the churn class is only 0.2. Which metric should the team prioritize to evaluate model performance for this business problem?

A.F1-score
B.Accuracy
C.Log loss
D.AUC-ROC
AnswerA

F1-score balances precision and recall, suitable for imbalanced data.

Why this answer

In a highly imbalanced dataset (95% non-churn, 5% churn), accuracy is misleading because a model can achieve 96% accuracy by simply predicting the majority class for all instances. The F1-score, which is the harmonic mean of precision and recall, specifically measures the model's performance on the minority (churn) class. A low F1-score of 0.2 indicates the model fails to correctly identify churners, which is the critical business outcome, making F1-score the correct metric to prioritize.

Exam trap

CompTIA often tests the misconception that high accuracy is always good, especially in imbalanced datasets, leading candidates to overlook the F1-score as the appropriate metric for minority class performance.

How to eliminate wrong answers

Option B is wrong because accuracy is a poor metric for imbalanced datasets; a model can achieve high accuracy by always predicting the majority class, which does not reflect its ability to detect the minority churn class. Option C is wrong because log loss measures the confidence of probability predictions across all classes, but it does not directly address the imbalance or provide a clear threshold-based evaluation of the minority class performance like F1-score does. Option D is wrong because AUC-ROC evaluates the model's ability to rank positive and negative instances, but it can be overly optimistic in highly imbalanced scenarios and does not directly reflect precision and recall for the minority class, which are critical for churn prediction.

41
MCQhard

A financial institution uses a deep learning model for fraud detection. The model is a feedforward neural network with three hidden layers. It was trained on a balanced dataset of 100,000 transactions. During deployment, the model achieves high accuracy on the test set but the fraud detection rate (true positive rate) is only 40% while the false positive rate is 0.1%. The business requires a true positive rate of at least 80%. Which of the following actions is most likely to achieve the required true positive rate while minimizing the increase in false positives?

A.Increase the number of hidden layers to five to capture more complex patterns
B.Use synthetic minority oversampling (SMOTE) to rebalance the training set
C.Change the threshold for classifying a transaction as fraud from the default 0.5 to a lower value
D.Add L2 regularization to reduce overfitting
AnswerC

Lowering threshold increases TPR; the optimal threshold can be chosen based on the precision-recall curve.

Why this answer

(increase hidden layers) may capture more complexity but does not directly increase TPR and could overfit. Option B (SMOTE) rebalances the training set, but the dataset is already balanced, so this is unlikely to improve TPR. Option D (L2 regularization) reduces overfitting but increases bias, which could lower TPR.

Option C (change threshold) is the most direct approach: lowering the classification threshold increases the true positive rate, and by tuning, it can achieve 80% TPR with a minimal increase in false positives.

42
MCQmedium

Based on the exhibit, what is the likely problem with the model?

A.Batch size too small
B.Overfitting
C.Learning rate too high
D.Underfitting
AnswerB

Correct: Training loss decreases but validation loss increases, classic overfitting.

Why this answer

The exhibit shows training loss decreasing to near zero while validation loss increases after a certain point, which is a classic sign of overfitting. The model is memorizing the training data rather than learning generalizable patterns, leading to poor performance on unseen data.

Exam trap

CompTIA often tests the distinction between overfitting and underfitting by showing loss curves where candidates mistakenly focus on the low training loss alone, ignoring the rising validation loss that confirms overfitting.

How to eliminate wrong answers

Option A is wrong because a batch size that is too small typically causes noisy gradient updates and slower convergence, not the divergence between training and validation loss seen here. Option C is wrong because a learning rate that is too high usually causes the loss to oscillate or diverge entirely, not a steady decrease in training loss with a rise in validation loss. Option D is wrong because underfitting would show high loss on both training and validation sets, not the low training loss and high validation loss pattern in the exhibit.

43
Multi-Selecthard

A data scientist is using an ensemble method to combine multiple models. Which three statements about bagging (Bootstrap Aggregating) are true? (Select THREE.)

Select 3 answers
A.It requires the base models to be of different types
B.It reduces variance without increasing bias
C.It can be used with decision trees to create random forests
D.It reduces the error by combining weak learners
E.It trains models independently on bootstrap samples
AnswersB, C, E

Bagging averages predictions from models trained on bootstrap samples, reducing variance while bias remains similar.

Why this answer

Bagging reduces variance by training models on different bootstrap samples of the data and averaging their predictions. Since each model is trained independently on a random sample with replacement, the ensemble's variance decreases without introducing additional bias, as the expected prediction remains unbiased. This is a key property that distinguishes bagging from boosting, which reduces both bias and variance.

Exam trap

A common trap is confusing variance reduction (bagging) with bias reduction (boosting), leading candidates to incorrectly select option D.

44
MCQhard

A machine learning engineer notices that the gradient values in a deep network are becoming extremely small during backpropagation. What is this problem?

A.Dead ReLU
B.Exploding gradient
C.Covariate shift
D.Vanishing gradient
AnswerD

Correct: Vanishing gradient makes weights stop updating effectively.

Why this answer

The vanishing gradient problem occurs when gradients become extremely small during backpropagation, especially in deep networks with many layers. This causes the weights in earlier layers to update very slowly or not at all, severely hindering training. The correct answer is D because the scenario directly describes the hallmark symptom of vanishing gradients.

Exam trap

The AI0-001 exam often tests the distinction between vanishing and exploding gradients by describing the symptom (small vs. large gradients) and expects candidates to recognize that vanishing gradients cause slow learning in early layers, not just any training difficulty.

How to eliminate wrong answers

Option A is wrong because Dead ReLU refers to neurons that become permanently inactive (outputting zero) due to negative inputs, not to gradients becoming small across the network. Option B is wrong because exploding gradient is the opposite problem, where gradients grow exponentially large, causing unstable updates and NaN values. Option C is wrong because covariate shift is a change in the input distribution between training and test data, addressed by batch normalization, and is unrelated to gradient magnitude during backpropagation.

45
MCQhard

An autonomous vehicle system uses a deep reinforcement learning agent to navigate. The agent's reward function gives +1 for reaching the destination and -0.1 for each time step. After training, the agent learns to circle the block repeatedly without reaching the destination. Which modification is most likely to fix this behavior?

A.Increase the time penalty to -1 per step
B.Increase the reward for reaching the destination to +10
C.Use a discount factor closer to 0
D.Add a penalty for each turn the vehicle makes
AnswerA

A higher penalty per step makes circling less rewarding and encourages reaching the destination quickly.

Why this answer

The agent learns to circle the block because the cumulative penalty for each time step (-0.1) is too small relative to the reward for reaching the destination (+1). By increasing the time penalty to -1 per step, the agent will incur a much larger cost for delaying, making it optimal to reach the destination quickly rather than looping indefinitely. This directly addresses the reward structure imbalance that causes the undesirable behavior.

Exam trap

CompTIA often tests the misconception that increasing the terminal reward alone will fix reward hacking, when in fact the per-step penalty must be large enough to make delay costly relative to the goal reward.

How to eliminate wrong answers

Option B is wrong because simply increasing the destination reward to +10 does not change the per-step penalty; the agent can still accumulate a small penalty while circling, and the total reward from looping may still outweigh the delayed +10 reward if the discount factor is high. Option C is wrong because using a discount factor closer to 0 makes the agent myopic, focusing only on immediate rewards; this would actually encourage short-term circling behavior rather than long-term goal achievement. Option D is wrong because adding a penalty for each turn does not address the core issue of the agent preferring to delay reaching the destination; the agent could still circle without turning (e.g., driving in a straight loop) or the penalty might not be large enough to overcome the reward structure.

46
Multi-Selecteasy

A company is preparing a dataset for training a supervised machine learning model. The dataset contains missing values, outliers, and categorical features. Which two preprocessing steps are typically performed to prepare the data? (Choose two.)

Select 2 answers
A.Normalize numerical features to a standard range
B.Impute missing values with the mean
C.Encode categorical variables using one-hot encoding
D.Remove all features with low variance
E.Increase the number of features using PCA
AnswersB, C

Imputation handles missing data and is commonly done.

Why this answer

Imputing missing values with the mean is a standard technique to handle incomplete data, ensuring the model can process all records without discarding potentially valuable information. Option C is correct because one-hot encoding converts categorical features into a binary vector representation, which is required by most machine learning algorithms that expect numerical input.

Exam trap

The AI0-001 exam often tests the distinction between mandatory preprocessing steps (like handling missing values and encoding categories) and optional optimization techniques (like normalization or feature selection), leading candidates to select scaling or PCA as default steps when they are not universally required.

47
Multi-Selecthard

Which THREE of the following are best practices for preventing overfitting in deep learning models?

Select 3 answers
A.L2 regularization
B.Increasing the number of layers
C.Dropout
D.Using a larger batch size
E.Data augmentation
AnswersA, C, E

L2 adds penalty on weights, keeping them small and reducing overfitting.

Why this answer

L2 regularization (also known as weight decay) adds a penalty term proportional to the square of the weight magnitudes to the loss function. This discourages the model from learning overly complex patterns by forcing weights to remain small, which reduces variance and helps prevent overfitting. It is a standard technique in deep learning frameworks like TensorFlow and PyTorch, where it is implemented via the `kernel_regularizer` or `weight_decay` parameter.

Exam trap

The AI0-001 exam often tests the misconception that increasing model complexity (e.g., more layers) or adjusting batch size are regularization techniques, when in fact they either worsen overfitting or serve different purposes like optimization speed.

48
Multi-Selecteasy

A data scientist is tuning hyperparameters for a support vector machine (SVM) with an RBF kernel. Which two hyperparameters most significantly affect model performance? (Select TWO.)

Select 2 answers
A.gamma (kernel coefficient)
B.learning rate
C.epsilon (for epsilon-SVR)
D.degree (for polynomial kernel)
E.C (regularization parameter)
AnswersA, E

gamma determines the radius of influence of support vectors.

Why this answer

Gamma defines the influence of a single training example, with low values meaning a far reach and high values meaning a close reach. C controls the trade-off between achieving a low error on the training data and minimizing the margin, directly impacting overfitting. Together, they are the two most critical hyperparameters for an SVM with an RBF kernel.

Exam trap

Candidates often mistake kernel-specific hyperparameters (e.g., degree for polynomial, gamma for RBF) for general SVM parameters, selecting options like degree or epsilon without realizing they do not apply to the RBF kernel.

49
MCQmedium

A retail company uses a gradient boosting model to predict customer lifetime value (CLV). The model currently uses 50 features including purchase history, demographics, and web behavior. The model's RMSE on the test set is 120. The data science team wants to improve the model's accuracy without increasing training time significantly. They have access to additional data: customer support interaction logs (text), social media sentiment (text), and third-party credit scores (numeric). They also have the ability to perform feature engineering, hyperparameter tuning, and ensemble methods. Which approach is most likely to yield the best improvement in predictive performance with minimal increase in training time?

A.Add the customer support text as a feature using TF-IDF vectors
B.Use an ensemble of gradient boosting and random forest models
C.Perform hyperparameter tuning using grid search
D.Engineer new features such as average purchase value and recency
AnswerD

Feature engineering can capture patterns without adding new data sources or significant time.

Why this answer

Engineering domain-relevant features like average purchase value and recency directly captures the underlying behavioral patterns that drive customer lifetime value, often providing a higher signal-to-noise ratio than adding raw text or third-party data. This approach leverages existing data without significantly increasing the feature dimensionality or training time, unlike adding TF-IDF vectors which would dramatically expand the feature space and slow training.

Exam trap

CompTIA often tests the misconception that adding more data (especially text) or complex ensemble methods always improves model accuracy, while the correct approach is to engineer features that capture domain-specific patterns with minimal computational overhead.

How to eliminate wrong answers

Option A is wrong because adding customer support text as TF-IDF vectors would introduce thousands of sparse features, significantly increasing training time and risking overfitting without guaranteed improvement in RMSE. Option B is wrong because ensembling gradient boosting with random forest typically increases training time substantially (both models must be trained) and may not outperform a well-tuned single gradient boosting model on structured data. Option C is wrong because hyperparameter tuning using grid search is computationally expensive, often requiring many model fits, and would increase training time more than feature engineering without leveraging the new data sources.

Ready to test yourself?

Try a timed practice session using only Machine Learning Deep Learning questions.