Courseiva

CCNA Ai Concepts Foundations Questions

75 of 100 questions · Page 1/2 · Ai Concepts Foundations topic · Answers revealed

1
MCQeasy

A data scientist is training a binary classification model to detect fraudulent transactions. The dataset has 99% legitimate transactions and 1% fraudulent. The model achieves 99% accuracy but fails to catch most fraud. Which metric should the team prioritize to evaluate model performance?

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

With 99% legitimate transactions, a model predicting everything as legitimate scores 99% accuracy while catching no fraud. Recall measures the proportion of actual frauds detected, exposing that failure, whereas accuracy is misleading under such class imbalance.

Why this answer

Recall (sensitivity) measures the proportion of actual positive cases (fraud) correctly identified. With 99% accuracy but failing to catch most fraud, the model is biased toward the majority class (legitimate transactions), so recall is the critical metric to ensure fraud detection improves.

Exam trap

CompTIA often tests the misconception that high accuracy implies good model performance, especially in imbalanced datasets, leading candidates to overlook recall as the appropriate metric for minority class detection.

How to eliminate wrong answers

Option A is wrong because F1 score is the harmonic mean of precision and recall; while useful, it does not isolate the model's ability to catch fraud, and in this imbalanced dataset, a high F1 could still mask poor recall if precision is high. Option B is wrong because precision measures how many predicted frauds are actually fraud, but the model's failure to catch most fraud means recall is the primary concern, not the false positive rate. Option C is wrong because accuracy is misleading in imbalanced datasets; 99% accuracy can be achieved by simply predicting 'legitimate' for all transactions, which explains why the model fails to detect fraud.

2
Multi-Selectmedium

When evaluating a binary classification model, which two metrics are most appropriate for imbalanced datasets? (Choose two.)

Select 2 answers
A.Accuracy
B.Mean absolute error
C.Recall
D.R-squared
E.Precision
AnswersC, E

Recall measures the proportion of actual positives correctly identified, so on a 99.9:0.1 dataset it exposes how many rare fraudulent or minority cases the model misses. Accuracy would look deceptively high, making recall essential for imbalanced evaluation.

Why this answer

Recall (C) is correct because it measures the proportion of actual positives that were correctly identified (TP / (TP + FN)), which directly reflects how well the model catches the minority class that would otherwise be swamped in an imbalanced dataset. Precision (E) is correct because it measures the proportion of predicted positives that are truly positive (TP / (TP + FP)), exposing the false-positive cost that becomes critical when the positive class is rare. Together, precision and recall (often summarized by F1 or PR-AUC) focus on minority-class performance rather than being dominated by the majority class.

Accuracy (A) is not appropriate because a trivial majority-class predictor can score very high accuracy while completely missing the minority class. Mean absolute error (B) and R-squared (D) are regression metrics and do not apply to binary classification evaluation.

Exam trap

CompTIA often tests the misconception that accuracy is always the best metric, but the trap here is that accuracy fails on imbalanced datasets, and candidates must recognize that recall and precision are the appropriate pair for evaluating minority class performance.

3
MCQhard

A self-driving car company is testing a perception model that detects pedestrians. The model achieves 99% accuracy on the test set but fails to detect pedestrians wearing dark clothing at night. The company wants to improve the model's robustness. Which action should the team take to best address this specific weakness?

A.Collect and annotate more nighttime images of pedestrians wearing dark clothing and add them to the training set.
B.Increase the model's depth by adding more layers to capture more complex patterns.
C.Apply data augmentation by randomly rotating and flipping existing daytime images.
D.Reduce the model's confidence threshold for pedestrian detection to increase sensitivity.
AnswerA

Adding targeted training data that represents the failure case directly addresses the model's weakness. By exposing the model to more examples of dark-clothed pedestrians at night, it can learn the relevant features and improve detection. This data-centric approach is often the most effective for specific robustness gaps.

Why this answer

Collecting and annotating more nighttime images of pedestrians in dark clothing is the most direct way to address the specific weakness. The model's failure indicates a gap in the training distribution, so adding representative data will help it learn the necessary visual cues. Other options either do not target the root cause or introduce trade-offs without improving fundamental recognition.

Exam trap

The trap here is thinking that increasing model complexity or adjusting the decision threshold can compensate for missing training data, when the core issue is a data distribution gap.

4
MCQeasy

A marketing team wants to segment customers into groups based on purchasing behavior without predefined categories. Which algorithm should they use?

A.K-means clustering
B.Naive Bayes classifier
C.Logistic regression
D.Support vector machine
AnswerA

K-means partitions unlabelled data into k clusters by minimising within-cluster variance, discovering natural groupings in purchasing behaviour without predefined labels. This satisfies the stem's unsupervised, no-categories constraint, unlike classification algorithms that require labelled segment definitions upfront.

Why this answer

K-means clustering is an unsupervised learning algorithm that groups data points into clusters based on similarity without requiring predefined labels. Since the marketing team wants to segment customers based on purchasing behavior without predefined categories, K-means is the correct choice as it discovers natural groupings in the data.

Exam trap

CompTIA often tests the distinction between supervised and unsupervised learning, and the trap here is that candidates may confuse clustering (unsupervised) with classification (supervised) algorithms, leading them to pick a classifier like Naive Bayes or logistic regression instead of K-means.

How to eliminate wrong answers

Option B (Naive Bayes classifier) is wrong because it is a supervised learning algorithm that requires labeled training data to classify instances into predefined categories, making it unsuitable for discovering unknown segments. Option C (Logistic regression) is wrong because it is a supervised learning algorithm used for binary classification tasks, not for unsupervised clustering or segmentation without predefined groups. Option D (Support vector machine) is wrong because it is a supervised learning algorithm that separates data into predefined classes using hyperplanes, not for discovering hidden patterns or groupings in unlabeled data.

5
MCQhard

An AI team is deploying a predictive maintenance model for industrial equipment. The model predicts failure within a 30-day window. The cost of a false positive is 10% of the cost of a false negative. Which evaluation metric should the team prioritize?

A.F2 score (beta=2) to prioritize recall over precision.
B.Area under the ROC curve (AUC-ROC) to measure overall discrimination.
C.F1 score to balance precision and recall equally.
D.Precision to minimize false positives.
AnswerA

F2 score puts more weight on recall, aligning with the higher cost of false negatives.

Why this answer

The F2 score (beta=2) weights recall four times more than precision, which is appropriate because a false negative (missing a failure) costs 10 times more than a false positive (unnecessary maintenance). Prioritizing recall ensures the model captures as many true failures as possible, minimizing the higher-cost error type.

Exam trap

The trap here is that candidates may default to F1 score as a 'balanced' metric without considering the asymmetric cost structure, or they may incorrectly think AUC-ROC captures cost-sensitive performance.

How to eliminate wrong answers

Option B is wrong because AUC-ROC measures overall discrimination across all thresholds and does not account for the asymmetric cost structure between false positives and false negatives. Option C is wrong because the F1 score balances precision and recall equally, which is suboptimal when the cost of a false negative is 10 times higher than a false positive. Option D is wrong because minimizing false positives (maximizing precision) would increase false negatives, leading to higher overall cost due to the 10:1 cost ratio.

6
MCQhard

A retail company deploys a machine learning model to predict customer churn. The model outputs a probability between 0 and 1, and churn is predicted if probability > 0.5. After deployment, the model has a high false positive rate (many non-churning customers labeled as churn), which leads to unnecessary retention offers and increased costs. The data science team confirms the model was trained on historical data with a balanced class distribution. The business team wants to reduce false positives while maintaining a reasonable true positive rate. However, they cannot retrain the model because the original training data is no longer available. What is the best course of action to reduce false positives?

A.Retrain the model using only the most recent three months of data.
B.Increase the decision threshold to a higher value, such as 0.7.
C.Collect new labeled data and perform transfer learning from the original model.
D.Decrease the decision threshold to a lower value, such as 0.3.
AnswerB

Raising the threshold above 0.5 requires stronger churn evidence before labelling a customer positive, directly reducing false positives. It needs no retraining, so it works despite the unavailable training data, though some true positives are lost.

Why this answer

Increasing the decision threshold to a higher value, such as 0.7, reduces false positives because the model will only predict churn when it is more confident. Since the model cannot be retrained, adjusting the threshold is the only way to trade off between precision and recall without modifying the model itself.

Exam trap

CompTIA often tests the misconception that retraining or collecting more data is the only way to fix model performance issues, when in fact threshold tuning is a valid post-deployment technique that does not require retraining.

How to eliminate wrong answers

Option A is wrong because retraining is not possible as the original training data is no longer available, and using only the most recent three months of data would likely introduce data drift and require retraining resources. Option C is wrong because transfer learning typically requires access to the original model architecture and training data, and collecting new labeled data does not directly reduce false positives without retraining or threshold adjustment. Option D is wrong because decreasing the threshold to 0.3 would increase the false positive rate, making the problem worse, not better.

7
MCQmedium

A company deploys a chatbot using a large language model (LLM). After launch, users report that the chatbot sometimes generates plausible but false information. This phenomenon is known as:

A.Gradient explosion
B.Overfitting
C.Concept drift
D.Hallucination
AnswerD

Hallucination describes an LLM producing fluent, confident output that is factually wrong because the model predicts plausible token sequences rather than retrieving verified facts. The stem's "plausible but false" wording maps directly onto this term, not bias, overfitting or latency.

Why this answer

Hallucination in LLMs refers to the generation of plausible but factually incorrect or nonsensical information. This occurs when the model's probabilistic next-token prediction produces confident-sounding outputs that deviate from training data or real-world facts, often due to insufficient grounding or training data gaps.

Exam trap

The trap here is that candidates may confuse hallucination with overfitting, thinking the model is 'making up' data due to memorization errors, but overfitting is about poor generalization to new inputs, not confident false outputs from a well-generalized model.

How to eliminate wrong answers

Option A is wrong because gradient explosion is a training instability issue in deep neural networks where gradients become excessively large, causing weight updates to diverge; it does not relate to post-deployment output inaccuracies. Option B is wrong because overfitting describes a model that memorizes training data too well, performing poorly on unseen data, not generating false information that seems plausible. Option C is wrong because concept drift refers to a change in the statistical properties of the target variable over time, requiring model retraining, not a static LLM generating false outputs.

8
Multi-Selecteasy

A data analyst needs to select two appropriate unsupervised learning techniques for clustering unlabeled data. (Choose two.)

Select 2 answers
A.Linear regression
B.Support vector machine
C.Hierarchical clustering
D.Decision tree
E.K-means
AnswersC, E

Hierarchical clustering builds a nested dendrogram by iteratively merging or splitting clusters, requiring no labels. It satisfies the unlabelled-data constraint, and the dendrogram lets analysts choose cluster granularity after the fact rather than fixing k in advance.

Why this answer

Hierarchical clustering (C) is correct because it is an unsupervised technique that groups unlabeled data by iteratively merging or splitting clusters based on a distance metric, producing a dendrogram without requiring predefined labels. K-means (E) is also correct because it is an unsupervised partitioning algorithm that assigns unlabeled points to k clusters by minimizing within-cluster variance. Linear regression (A) is a supervised method that predicts a continuous target from labeled data, so it is not a clustering technique.

Support vector machine (B) is primarily a supervised classifier (and can be used for regression), not an unsupervised clustering method. Decision tree (D) is a supervised model for classification or regression on labeled data, so it does not fit the unlabeled clustering scenario.

Exam trap

The AI0-001 exam often tests the distinction between supervised and unsupervised learning by including familiar algorithms like linear regression or decision trees as distractors, leading candidates to mistake them for clustering techniques due to their popularity in data analysis contexts.

9
MCQhard

An AI governance committee is reviewing a resume-screening model. The model's accuracy is high overall, but its false negative rate is much higher for applicants from one demographic group than for others. The committee wants to address this disparity. Which action best targets the problem?

A.Increase the model's overall accuracy by adding more training data
B.Remove all demographic attributes from the training data
C.Measure and mitigate bias across demographic groups, including error rates and representation
D.Replace the model with a simpler algorithm that is inherently interpretable
AnswerC

Disparate false negative rates across groups are a fairness and bias signal. Auditing error rates by group, checking training data representation, and applying mitigation such as reweighting or threshold adjustment directly addresses the observed disparity, whereas overall accuracy can hide unequal performance.

Why this answer

The scenario describes unequal false negative rates, a fairness problem that requires measuring performance by demographic group and mitigating the disparity through data or threshold adjustments. Adding data, removing protected attributes, or switching to a simpler algorithm may change accuracy or transparency but does not directly close the group-level error gap.

Exam trap

The trap here is believing that deleting protected attributes makes a model fair, when proxy variables preserve the bias and hide it from measurement.

10
MCQmedium

A company uses an AI model to screen job applications. The model is trained on historical hiring data that reflects past biases. After deployment, the model disproportionately rejects candidates from certain demographics. Which concept does this best illustrate?

A.Overfitting
B.Model drift
C.Algorithmic bias
D.Underfitting
AnswerC

Training on historical hiring data encodes past human decisions, so the model reproduces and amplifies those demographic disparities. This is algorithmic bias: systematic unfair outcomes arising from biased training data rather than explicit discriminatory rules.

Why this answer

Algorithmic bias refers to systematic and unfair discrimination in AI outputs due to biased training data or model design. Option A (overfitting) is about a model that performs well on training data but poorly on new data due to excessive complexity. Option B (model drift) is about performance degradation over time due to changes in data distribution.

Option D (underfitting) is when a model is too simple to capture patterns.

11
MCQmedium

A self-driving car uses an AI model that learns by trial and error, receiving rewards for correct actions and penalties for mistakes. This type of learning is:

A.Supervised learning
B.Unsupervised learning
C.Transfer learning
D.Reinforcement learning
AnswerD

Reinforcement learning trains an agent through reward and penalty signals from interacting with its environment, precisely matching the trial-and-error mechanism described. The car's model optimises actions by maximising cumulative reward, satisfying the stem's constraint of learning from consequences rather than labelled examples.

Why this answer

Reinforcement learning (RL) is the correct answer because the self-driving car's AI model learns through trial and error, receiving rewards for correct actions and penalties for mistakes. This feedback-driven process, where an agent interacts with an environment to maximize cumulative reward, is the defining characteristic of reinforcement learning, not supervised or unsupervised learning.

Exam trap

CompTIA often tests the distinction between reinforcement learning and supervised learning by describing a scenario with feedback (rewards/penalties) but no labeled dataset, leading candidates to mistakenly choose supervised learning because they associate 'feedback' with 'labels'.

How to eliminate wrong answers

Option A is wrong because supervised learning requires labeled input-output pairs (e.g., images tagged with 'stop sign') to train a model, not trial-and-error feedback. Option B is wrong because unsupervised learning finds hidden patterns in unlabeled data (e.g., clustering sensor readings) without any reward or penalty signals. Option C is wrong because transfer learning applies knowledge from a pre-trained model to a new but related task, not learning from scratch via rewards and punishments.

12
Multi-Selectmedium

Which TWO of the following are appropriate uses of unsupervised learning?

Select 2 answers
A.Classifying emails as spam or not spam
B.Predicting the sale price of a house given its features
C.Detecting unusual patterns in network traffic that may indicate a cyberattack
D.Identifying a person from a photo
E.Segmenting customers into groups based on purchasing behavior
AnswersC, E

Anomaly detection flags deviations from learned normal behaviour without labels, so unlabelled network traffic can be modelled and outliers surfacing as possible cyberattacks. This satisfies unsupervised learning's defining constraint: no target labels are required during training.

Why this answer

Option C is correct because anomaly detection in network traffic is a classic unsupervised learning task: the model is trained on normal traffic without labels and flags deviations that may indicate a cyberattack, using techniques like clustering or autoencoders. Option E is correct because customer segmentation is typically performed with unsupervised clustering algorithms such as k-means or hierarchical clustering, which group customers by purchasing behavior without predefined labels. Option A is incorrect because spam classification is supervised learning, requiring labeled examples of spam and non-spam emails.

Option B is incorrect because predicting a house's sale price is supervised regression with labeled target values. Option D is incorrect because identifying a person from a photo is supervised classification (or a related supervised recognition task) trained on labeled images of known individuals.

Exam trap

CompTIA often tests the distinction between supervised and unsupervised learning by presenting tasks that seem 'automatic' but actually require labeled data, tricking candidates into choosing supervised tasks as unsupervised uses.

13
MCQhard

A data scientist trains a deep neural network for image classification. The training loss decreases but validation loss starts increasing after 50 epochs. What should the data scientist do to improve generalization?

A.Decrease batch size
B.Apply dropout and early stopping
C.Add more hidden layers
D.Increase learning rate
AnswerB

Dropout randomly deactivates neurons during training, reducing co-adaptation that drives overfitting, while early stopping halts training once validation loss begins rising. Together they directly counter the divergence at epoch 50, restoring generalisation without altering the model architecture or dataset.

Why this answer

The increasing validation loss while training loss decreases is a classic sign of overfitting. Dropout randomly deactivates neurons during training, which prevents co-adaptation and forces the network to learn more robust features. Early stopping halts training when validation performance stops improving, directly addressing the overfitting by selecting the model with the best generalization before it degrades.

Exam trap

CompTIA often tests the misconception that increasing model complexity (more layers) or adjusting batch size/learning rate can fix overfitting, when in reality these changes either exacerbate the problem or address unrelated training dynamics.

How to eliminate wrong answers

Option A is wrong because decreasing batch size introduces more noise into the gradient estimates, which can actually hurt generalization and may lead to slower convergence or instability, not a direct cure for overfitting. Option C is wrong because adding more hidden layers increases model capacity and complexity, which typically worsens overfitting by allowing the network to memorize the training data even more. Option D is wrong because increasing the learning rate can cause the optimizer to overshoot minima, leading to divergence or poor convergence, and does not address the fundamental issue of the model fitting noise in the training data.

14
Multi-Selecthard

Which TWO of the following are techniques used for reducing overfitting in neural networks? (Choose two.)

Select 2 answers
A.Dropout
B.Boosting
C.L2 regularization
D.Increasing the learning rate
E.Increasing the number of hidden layers
AnswersA, C

Dropout randomly deactivates units each training pass, preventing neurons from co-adapting to noise and forcing redundant representations. This regularising effect reduces overfitting, satisfying the question's requirement for a technique that improves generalisation rather than training accuracy.

Why this answer

Dropout (A) is correct because it randomly deactivates a fraction of neurons during each training iteration, which prevents the network from relying on specific neurons and forces it to learn more robust, generalizable features, thereby reducing overfitting. L2 regularization (C) is correct because it adds a penalty term proportional to the squared magnitude of the weights to the loss function, discouraging large weights and constraining model complexity to improve generalization. Boosting (B) is an ensemble meta-algorithm that combines weak learners to reduce bias, not a neural-network overfitting-reduction technique.

Increasing the learning rate (D) typically causes unstable training or divergence rather than reducing overfitting. Increasing the number of hidden layers (E) raises model capacity and usually worsens overfitting rather than mitigating it.

Exam trap

CompTIA often tests the distinction between regularization techniques and other training strategies, so the trap here is that candidates may confuse boosting (an ensemble method) with regularization, or assume that increasing model complexity (more layers) or learning rate can help reduce overfitting when they actually do the opposite.

15
MCQhard

An organization is developing an AI system to approve loan applications. They want to ensure the model does not discriminate based on race or gender. Which technique BEST addresses this concern?

A.Remove race and gender features from the training data.
B.Use a more complex model to capture nuances.
C.Apply adversarial debiasing during model training.
D.Collect more training data from diverse populations.
AnswerC

Adversarial debiasing trains a predictor alongside an adversary that tries to infer the protected attribute from predictions, forcing representations that cannot distinguish race or gender. This directly reduces disparate impact during training, unlike post-hoc inspection alone.

Why this answer

Adversarial debiasing is a technique that explicitly trains the model to remove sensitive information (like race or gender) from its internal representations, preventing the model from learning discriminatory patterns even if correlated features remain. This directly addresses fairness by making the model's predictions independent of protected attributes, which is more robust than simply removing features (which can still allow proxy discrimination).

Exam trap

CompTIA often tests the misconception that removing protected attributes is sufficient to eliminate bias, when in reality proxy features and correlated variables can still cause discrimination, making adversarial debiasing or other fairness-aware algorithms necessary.

How to eliminate wrong answers

Option A is wrong because simply removing race and gender features does not prevent the model from learning proxies for these attributes (e.g., zip code, income bracket) that can still lead to discriminatory outcomes. Option B is wrong because using a more complex model increases the risk of overfitting to spurious correlations and does not inherently address fairness; it may even amplify biases present in the data. Option D is wrong because collecting more diverse data does not guarantee fairness; biased labeling, historical discrimination, or imbalanced representation can persist, and the model may still learn to discriminate unless debiasing techniques are applied.

16
MCQhard

A cybersecurity firm is developing an AI system to detect zero-day malware using behavior analysis. The team collects a dataset of 1,000 malware samples and 10,000 benign files from corporate endpoints. The model is a random forest classifier. After deployment, the false positive rate is 5%, which is acceptable, but the detection rate for new malware variants drops to 30%. The security analyst suspects the model is overfitting to the specific malware families in the training set. Which improvement should the team implement first?

A.Use a boosting ensemble instead of bagging
B.Collect more malware samples from the same families
C.Replace the random forest with a deep neural network
D.Engineer features that capture generic behavioral patterns
AnswerD

Generic behavioural features let the classifier generalise to unseen malware families instead of memorising training-set signatures. This directly addresses the overfitting that caused detection of new variants to fall to 30%, improving generalisation before other changes.

Why this answer

The core issue is that the model has overfitted to the specific malware families in the training set, causing poor generalization to unseen zero-day variants. Engineering features that capture generic behavioral patterns (e.g., API call sequences, file system interactions, network connection anomalies) reduces reliance on family-specific signatures, improving detection of novel malware. This directly addresses the root cause of the 30% detection rate drop without introducing new model complexity or data imbalance issues.

Exam trap

CompTIA often tests the misconception that more complex models (boosting, DNNs) automatically improve performance, when in reality, feature engineering to address the specific failure mode (overfitting to training families) is the most effective first step.

How to eliminate wrong answers

Option A is wrong because boosting ensembles (e.g., AdaBoost, XGBoost) are more prone to overfitting on noisy data than bagging (Random Forest), which would exacerbate the existing overfitting problem. Option B is wrong because collecting more samples from the same families reinforces the model's bias toward those specific patterns, worsening generalization to new variants. Option C is wrong because replacing Random Forest with a deep neural network (DNN) typically requires significantly more data to avoid overfitting, and with only 1,000 malware samples, a DNN would likely perform worse, not better.

17
MCQhard

An e-commerce company deploys a recommendation system using collaborative filtering. After launch, the system shows high accuracy for popular items but fails to recommend niche products to users who would likely buy them. Which technique should the team implement to improve recommendations for long-tail items?

A.Apply matrix factorization with higher latent factors
B.Switch to a hybrid filtering approach that incorporates item metadata
C.Increase the weight of popular items in the recommendation score
D.Collect more user interaction data over time
AnswerB

Collaborative filtering relies on user-item interaction overlap, so sparse long-tail items receive poor representations. A hybrid approach adds item metadata (content features), letting the model recommend niche products even when interaction data is scarce, directly addressing the stem's long-tail failure.

Why this answer

Collaborative filtering relies on user-item interactions, which are sparse for niche products (the long tail). A hybrid filtering approach that incorporates item metadata (e.g., category, description, attributes) can bridge the gap by using content-based signals to recommend niche items even when interaction data is limited. This directly addresses the cold-start and sparsity problems for long-tail items.

Exam trap

CompTIA often tests the misconception that more data or higher model complexity (like more latent factors) automatically solves sparsity, when in fact the core issue is the lack of interaction signals for niche items, which requires a hybrid approach to incorporate auxiliary information.

How to eliminate wrong answers

Option A is wrong because increasing latent factors in matrix factorization can lead to overfitting and does not inherently solve the sparsity problem for long-tail items; it may even amplify noise. Option C is wrong because increasing the weight of popular items would further bias recommendations toward the head of the distribution, worsening the neglect of niche products. Option D is wrong because simply collecting more user interaction data over time does not guarantee that long-tail items will receive sufficient interactions; the data will still be skewed toward popular items, and the system needs a mechanism to leverage non-interaction signals like metadata.

18
MCQmedium

A data scientist is training a neural network to classify images of animals. The training accuracy is 99%, but validation accuracy is only 65%. Which technique should the data scientist use to address this issue?

A.Apply batch normalization
B.Increase the number of training epochs
C.Add dropout layers to the network
D.Increase the learning rate
AnswerC

Dropout layers randomly deactivate neurons during training, which curbs the network's reliance on particular features and reduces overfitting — the exact cause of the 99% training versus 65% validation gap. This directly targets the memorisation driving that disparity, improving generalisation to unseen images.

Why this answer

The high training accuracy (99%) and low validation accuracy (65%) indicate overfitting, where the model memorizes the training data but fails to generalize. Adding dropout layers randomly drops neurons during training, which forces the network to learn more robust features and reduces overfitting. This technique is specifically designed to improve generalization without requiring more data or altering the learning rate.

Exam trap

CompTIA often tests the distinction between techniques that improve training speed (batch normalization, learning rate tuning) versus those that improve generalization (dropout, regularization), and the trap here is that candidates may confuse overfitting with underfitting or assume that more training always helps.

How to eliminate wrong answers

Option A is wrong because batch normalization normalizes layer inputs to stabilize and accelerate training, but it does not directly address overfitting; it can even slightly reduce the need for dropout but is not the primary solution for this gap. Option B is wrong because increasing the number of training epochs would likely worsen overfitting, as the model would have more opportunities to memorize the training data, further increasing the accuracy gap. Option D is wrong because increasing the learning rate can cause the model to converge too quickly to a suboptimal solution or diverge, and it does not target the root cause of overfitting.

19
MCQmedium

A startup is building a chatbot to handle customer inquiries. They want the chatbot to understand context and provide accurate responses without requiring extensive labeled data. Which AI approach is most suitable?

A.Reinforcement learning from human feedback
B.Rule-based natural language processing
C.Convolutional neural networks (CNNs)
D.Transfer learning with a pre-trained transformer model
AnswerD

Transfer learning reuses a pre-trained transformer's learned language representations, so the chatbot gains contextual understanding from fine-tuning on small labelled datasets. This directly satisfies the constraint of avoiding extensive labelled data, which training a transformer from scratch would require.

Why this answer

Transfer learning with a pre-trained transformer model (e.g., BERT, GPT) is the most suitable approach because it allows the chatbot to understand context and generate accurate responses using knowledge learned from vast general-domain text, requiring only minimal fine-tuning on the startup's specific customer inquiry data. This eliminates the need for extensive labeled datasets, as the model already captures nuanced language patterns and contextual relationships through its self-attention mechanism.

Exam trap

CompTIA often tests the misconception that RLHF alone reduces the need for labeled data, when in fact it requires a pre-trained model and a reward model trained on human preferences, making transfer learning the more direct solution for minimizing labeled data requirements.

How to eliminate wrong answers

Option A is wrong because reinforcement learning from human feedback (RLHF) is a fine-tuning technique that still requires a substantial initial labeled dataset or a reward model, and it is typically applied on top of a pre-trained model rather than being a standalone solution for reducing labeled data needs. Option B is wrong because rule-based NLP relies on handcrafted rules and pattern matching, which cannot handle the variability and contextual ambiguity of natural language in customer inquiries without extensive manual effort and brittle maintenance. Option C is wrong because convolutional neural networks (CNNs) are primarily designed for spatial pattern recognition (e.g., images) and, while they can be applied to text, they lack the sequential context modeling and long-range dependency capture that transformer architectures provide, making them less effective for conversational understanding.

20
MCQeasy

An organization wants to classify support tickets into categories (billing, technical, etc.). Which type of machine learning is most suitable?

A.Unsupervised learning
B.Reinforcement learning
C.Supervised learning
D.Regression
AnswerC

Supervised learning trains on labelled examples mapping ticket text to known categories, letting the model predict the category for new tickets. Classification into predefined labels such as billing or technical is inherently a supervised task, unlike unsupervised clustering or reinforcement learning.

Why this answer

Supervised learning is the correct choice because the organization has labeled historical support tickets (e.g., 'billing' or 'technical') and wants to train a model to map new tickets to these predefined categories. This is a classic classification task, where the algorithm learns from input-output pairs to predict the correct label for unseen data.

Exam trap

CompTIA often tests the distinction between classification (supervised) and clustering (unsupervised), so the trap here is that candidates mistakenly choose unsupervised learning because they think 'grouping tickets' is clustering, ignoring that the categories are predefined and labeled.

How to eliminate wrong answers

Option A is wrong because unsupervised learning discovers hidden patterns or clusters in unlabeled data, but here the categories are known and labeled, so clustering is unnecessary. Option B is wrong because reinforcement learning involves an agent learning through trial-and-error interactions with an environment to maximize a reward signal, which is not applicable to static ticket classification. Option D is wrong because regression predicts continuous numerical values (e.g., ticket resolution time), not discrete categorical labels like 'billing' or 'technical'.

21
MCQmedium

A hospital wants to deploy an AI system that analyzes chest X-rays to detect pneumonia. The radiology team insists that the system provide a confidence score alongside each diagnosis so they can decide whether to trust the output. Which AI concept are they primarily concerned with?

A.Model bias mitigation
B.Model explainability
C.Model confidence calibration
D.Model interpretability
AnswerC

The team wants a confidence score that reflects the model's certainty, which is exactly what confidence calibration provides. A well-calibrated model outputs probabilities that match real-world likelihoods, so a 90% confidence means the prediction is correct about 90% of the time. This helps radiologists set thresholds and decide when to trust or override the AI's diagnosis.

Why this answer

Confidence calibration ensures that the probability a model assigns to its prediction reflects the true likelihood of correctness. In medical imaging, calibrated confidence scores allow clinicians to set actionable thresholds and decide when to rely on the AI. Explainability and interpretability address why a decision was made, while bias mitigation addresses fairness, not certainty.

Exam trap

The trap here is confusing confidence calibration with explainability, assuming that any trust-related requirement automatically means the model must explain its reasoning.

22
MCQmedium

A hospital uses an AI system to prioritize patient triage based on vital signs and medical history. During a trial, the system consistently assigns lower urgency to elderly patients with chronic conditions, even when their symptoms suggest high risk. Which approach best addresses this bias?

A.Use a different dataset from a similar hospital without checking demographics
B.Manually increase the weight of age-related features in the model
C.Replace the neural network with a decision tree to simplify decision logic
D.Audit the training data for representation of elderly patients and retrain with balanced data
AnswerD

Auditing the training data for representation of elderly patients directly addresses the dataset bias causing the system to deprioritise this group. Retraining with balanced data corrects the skewed distribution of chronic-condition cases, satisfying the fairness constraint that the AI must not systematically discriminate based on age. This approach ensures the model learns genuine risk patterns rather than spurious correlations from under-represented subgroups.

Why this answer

The bias originates from the training data underrepresenting elderly patients with chronic conditions, causing the model to learn skewed urgency patterns. Auditing the data for representation and retraining with balanced data directly addresses the root cause by ensuring the model learns from a fair distribution of cases, which is a standard bias mitigation technique in AI systems.

Exam trap

CompTIA often tests the misconception that changing the model architecture (e.g., switching to a decision tree) or manually tweaking feature weights can fix bias, when the real solution lies in auditing and rebalancing the training data.

How to eliminate wrong answers

Option A is wrong because using a different dataset from a similar hospital without checking demographics merely shifts the problem; it does not guarantee balanced representation and may introduce new biases. Option B is wrong because manually increasing the weight of age-related features is a form of ad hoc feature engineering that can overcorrect and introduce new biases, and it does not address the underlying data imbalance. Option C is wrong because replacing the neural network with a decision tree does not inherently fix bias; the decision tree will still learn from the same biased data, and its simpler logic does not prevent it from replicating the skewed patterns.

23
MCQhard

A team is designing an AI system for autonomous driving. They need to decide between an end-to-end deep learning approach versus a modular pipeline (perception, planning, control). Which is a key advantage of the modular approach?

A.It typically has lower inference latency.
B.Each module can be validated separately.
C.It handles novel scenarios better due to joint training.
D.It requires less engineering effort.
AnswerB

A modular pipeline exposes defined interfaces between perception, planning and control, so each stage can be tested and validated in isolation before integration. This satisfies the safety-critical need to localise faults, which an end-to-end network cannot isolate.

Why this answer

The modular pipeline approach decomposes the autonomous driving task into distinct components (e.g., perception, planning, control), each of which can be independently developed, tested, and validated. This separation allows engineers to verify the correctness of each module against its own specification, which is critical for safety-critical systems like autonomous driving. In contrast, end-to-end deep learning models treat the entire system as a black box, making it difficult to isolate and validate individual behaviors.

Exam trap

CompTIA often tests the misconception that end-to-end deep learning is always superior due to its simplicity, but the trap here is that candidates overlook the critical safety validation requirements in autonomous driving, which make the modular approach's separate validation a key advantage.

How to eliminate wrong answers

Option A is wrong because modular pipelines often introduce additional latency due to inter-module communication and serial processing, whereas end-to-end models can be optimized for lower inference latency by combining all computations into a single neural network. Option C is wrong because joint training in end-to-end approaches can improve generalization to novel scenarios by learning holistic representations, while modular pipelines typically struggle with novel scenarios due to rigid hand-crafted interfaces between modules. Option D is wrong because modular pipelines require significant engineering effort to design, implement, and maintain each separate module and their interfaces, whereas end-to-end deep learning reduces the need for hand-engineered components.

24
Multi-Selecteasy

A data scientist is preparing a dataset for supervised learning. Which TWO steps are essential?

Select 2 answers
A.One-hot encoding all features
B.Normalizing features
C.Labeling the data
D.Removing outliers
E.Splitting into training and test sets
AnswersC, E

Correct; supervised learning requires labeled examples.

Why this answer

Labeling the data is essential for supervised learning because the algorithm requires input-output pairs to learn a mapping function. Without labeled data, the model cannot be trained to predict outcomes, as supervised learning relies on ground-truth targets for error correction during training.

Exam trap

CompTIA often tests the distinction between mandatory preprocessing steps and optional optimizations, trapping candidates who confuse best practices (like normalization or outlier removal) with absolute requirements for supervised learning.

25
MCQmedium

Refer to the exhibit. An AI auditor reviews the fairness configuration. What is the purpose of this policy?

A.Ensure equal error rates across groups
B.Ensure equal positive prediction rates across groups
C.Ensure equal accuracy across groups
D.Ensure model interpretability
AnswerB

Equal positive prediction rates across groups is the definition of demographic parity, so the policy constrains the model to produce the same proportion of favourable outcomes for each protected group, regardless of differing base rates or accuracy.

Why this answer

The policy sets a fairness constraint that requires the model's positive prediction rate (the fraction of instances predicted as the positive class) to be equal across all defined groups. This is a standard demographic parity requirement, which is implemented by adjusting the decision threshold or reweighting training data to ensure that each group receives the same proportion of positive predictions, regardless of the actual outcome distribution.

Exam trap

CompTIA often tests the distinction between demographic parity (equal positive prediction rates) and equalized odds (equal error rates), so candidates mistakenly choose 'equal error rates' when they see a fairness policy that actually enforces demographic parity.

How to eliminate wrong answers

Option A is wrong because equal error rates across groups refer to equalized odds (equal false positive and false negative rates), not equal positive prediction rates. Option C is wrong because equal accuracy across groups is a different fairness metric (accuracy parity) that does not guarantee equal positive prediction rates. Option D is wrong because model interpretability is a separate concern about understanding model decisions, not a fairness constraint on prediction rates.

26
MCQhard

An AI system is being developed to diagnose diseases from medical images. The model achieves 99% accuracy on the test set, but when deployed in a different hospital, performance drops significantly. Which of the following is the MOST likely cause?

A.The model is being attacked by adversarial examples.
B.The training data does not represent the new hospital's population or imaging equipment.
C.The model is overfitted to the training data.
D.Data leakage occurred during preprocessing.
AnswerB

Distribution shift explains the drop: the model learned patterns tied to the original hospital's patient demographics and scanner characteristics, so features generalise poorly to different equipment and populations. This directly satisfies the stem's cross-hospital deployment constraint, where 99% test accuracy reflects only in-distribution performance.

Why this answer

The model's high accuracy on the test set but poor performance in a different hospital indicates a distribution shift between the training data and the deployment environment. This is a classic case of dataset shift, where the training data does not represent the new hospital's patient population or imaging equipment, leading to degraded model generalization.

Exam trap

CompTIA often tests the distinction between overfitting and dataset shift, where candidates mistakenly attribute a deployment performance drop to overfitting even when test accuracy is high, missing the real issue of distribution mismatch.

How to eliminate wrong answers

Option A is wrong because adversarial examples are deliberately crafted inputs designed to fool a model, but the scenario describes a general performance drop across all images, not targeted attacks. Option C is wrong because overfitting would cause poor performance on the test set as well, not just on deployment; here the test accuracy is high, ruling out overfitting. Option D is wrong because data leakage would inflate test accuracy artificially, but the drop in deployment is due to distribution mismatch, not leakage during preprocessing.

27
MCQhard

An AI system for autonomous vehicles uses reinforcement learning (RL) to navigate. The reward function encourages reaching the destination quickly but penalizes collisions heavily. The agent learns to drive aggressively, causing minor accidents. Which modification to the reward function would best align the agent's behavior with desired safe driving?

A.Increase the collision penalty to a very large negative value.
B.Remove the time-based reward and only reward reaching the destination.
C.Use a potential-based reward shaping to encourage progress toward destination.
D.Add a penalty term for high acceleration and jerky movements.
AnswerD

Penalizing aggressive actions directly encourages smooth driving.

Why this answer

Adding a penalty for high acceleration and jerky movements directly addresses the root cause of the aggressive driving behavior—smoothness and safety—without undermining the primary goal of reaching the destination. This modification shapes the reward function to penalize unsafe driving patterns, aligning the agent's learned policy with desired safe navigation while preserving the time-based incentive for efficiency.

Exam trap

CompTIA often tests the misconception that simply increasing the penalty for collisions (option A) is sufficient to ensure safe driving, when in reality it can lead to reward hacking or overly conservative policies, and the correct solution requires shaping the reward to penalize the specific unsafe behaviors (e.g., high acceleration) that cause accidents.

How to eliminate wrong answers

Option A is wrong because simply increasing the collision penalty to a very large negative value may cause the agent to become overly cautious, potentially leading to freezing behavior or failure to navigate effectively, and does not address the underlying aggressive driving patterns that cause minor accidents. Option B is wrong because removing the time-based reward eliminates the incentive for efficiency, which could result in the agent taking excessively long routes or failing to prioritize timely arrival, thus not aligning with the desired safe driving behavior. Option C is wrong because potential-based reward shaping encourages progress toward the destination but does not penalize aggressive maneuvers; it may still allow the agent to drive aggressively as long as it makes progress, failing to mitigate the unsafe driving patterns.

28
Multi-Selectmedium

A team is deploying an AI model for credit approval. Which TWO ethical considerations must be addressed?

Select 2 answers
A.Training speed
B.Model interpretability
C.Model accuracy
D.Model fairness to avoid bias
E.Model size
AnswersB, D

Correct; interpretability helps ensure transparency and accountability.

Why this answer

Model interpretability (B) is essential for credit approval because financial decisions must be explainable to regulators and customers under laws like GDPR or ECOA. A black-box model that cannot justify why a loan was denied violates compliance requirements, making interpretability a core ethical and legal necessity.

Exam trap

CompTIA often tests the distinction between ethical requirements (interpretability, fairness) and technical performance metrics (accuracy, speed, size), leading candidates to mistakenly select accuracy as an ethical consideration.

29
MCQeasy

A retail company wants to build a model to predict customer churn based on purchase history and demographics. The dataset includes categorical features like region and gender, and numerical features like total spend. What is the best initial step before training the model?

A.Train a deep neural network directly on raw data
B.One-hot encode categorical variables and normalize numerical variables
C.Remove all categorical features to simplify the model
D.Perform principal component analysis (PCA) on all features
AnswerB

Categorical variables such as region and gender must be converted to numeric form via one-hot encoding, while numerical variables like total spend need normalising so scales align. This preprocessing satisfies the stem's mixed-feature constraint before any model training begins.

Why this answer

Categorical features like region and gender must be converted to numeric form via one-hot encoding (or similar) because most ML algorithms cannot consume raw strings. Numerical features like total spend should be normalized (e.g., min-max or z-score) so that features on different scales contribute equally during training. This preprocessing step is the correct initial action before model training.

Exam trap

AI0-001 often tests whether candidates jump to model architecture (deep neural nets) or dimensionality reduction (PCA) before addressing the fundamental preprocessing requirement of encoding categoricals and scaling numerics.

How to eliminate wrong answers

Option A is wrong because training a deep neural network directly on raw categorical strings will fail — the model cannot interpret non-numeric inputs without encoding. Option C is wrong because removing categorical features discards potentially predictive signal (region and gender may correlate with churn) and is not a best practice. Option D is wrong because PCA is a dimensionality-reduction technique applied after encoding and scaling, not a first step, and it can hurt interpretability for tabular churn models.

30
Multi-Selectmedium

A startup is designing an AI assistant that must handle a wide range of requests, including summarizing text, answering questions, and translating languages. The team is selecting a foundation model approach. Which two characteristics are typical of foundation models? (Choose two.)

Select 2 answers
A.They can be adapted through techniques such as fine-tuning, prompting, or retrieval augmentation
B.They are pretrained on broad, large-scale data and can be adapted to many downstream tasks
C.They require labeled data for every task before they can produce any useful output
D.They are purpose-built for a single narrow task and cannot be reused elsewhere
E.They store a permanent, unchangeable record of every user interaction in their parameters
AnswersA, B

Adaptation methods let one pretrained model serve varied needs without full retraining. Fine-tuning adjusts weights on domain data, prompting steers behavior with instructions, and retrieval augmentation supplies external context, all of which are standard ways to specialize a foundation model for new tasks.

Why this answer

Foundation models are pretrained on broad data and adapted to many tasks through fine-tuning, prompting, or retrieval augmentation, which is exactly what a multi-purpose assistant needs. They do not require task-specific labels before producing output, they are not single-task tools, and they do not permanently encode every interaction in their weights.

Exam trap

The trap here is treating a foundation model like a single-purpose classifier that needs labeled data for each task before it can function.

31
MCQhard

A company develops an AI model that recommends job candidates. The model inadvertently discriminates against a protected group. Which approach is most effective for mitigating this bias?

A.Remove the protected attribute from the training data
B.Use a fairness-aware machine learning algorithm
C.Analyze model predictions after deployment
D.Collect more training data from the protected group
AnswerB

Fairness-aware algorithms incorporate bias constraints or regularisation directly into the training objective, reducing disparate impact at the model level rather than masking it post hoc. This addresses the discriminatory outcome against a protected group, which pre-processing or threshold tweaks alone cannot reliably fix.

Why this answer

Fairness-aware machine learning algorithms explicitly incorporate fairness constraints or objectives during model training, directly addressing and mitigating bias against protected groups. Unlike simple removal of protected attributes, these algorithms can detect and correct for proxy discrimination and disparate impact, ensuring the model's recommendations are equitable by design.

Exam trap

CompTIA often tests the misconception that removing a protected attribute from training data is sufficient to eliminate bias, but the trap is that models can still discriminate through correlated proxy features, making fairness-aware algorithms necessary.

How to eliminate wrong answers

Option A is wrong because simply removing the protected attribute from training data does not eliminate bias; the model can still learn proxies for that attribute from correlated features (e.g., zip code correlating with race), leading to indirect discrimination. Option C is wrong because analyzing model predictions after deployment is a detection step, not a mitigation approach; it can identify bias but does not prevent or correct it in the model's behavior. Option D is wrong because collecting more training data from the protected group does not inherently address bias; it may even amplify existing disparities if the data collection process or underlying societal biases remain unchanged, and it does not adjust the model's learning process to ensure fairness.

32
MCQeasy

A data scientist is preparing a dataset for a classification task. The dataset contains 10,000 rows and 50 features, but many features have missing values. Which approach should the scientist take first to address the missing data?

A.Use a deep learning model to predict missing values without preprocessing.
B.Analyze the pattern and proportion of missing values to choose an appropriate imputation strategy.
C.Remove all rows with any missing values to ensure a clean dataset.
D.Replace missing values with the mean of each feature immediately.
AnswerB

Before imputing, the scientist must understand whether missingness is random or systematic and how much data is affected, since this determines whether mean, median, or model-based imputation is valid. This diagnostic step precedes any imputation choice.

Why this answer

The first step in handling missing data is to understand the pattern and proportion of missingness (e.g., MCAR, MAR, MNAR) to select an appropriate imputation method. Blindly applying imputation or deletion without analysis can introduce bias or reduce model performance. This diagnostic step ensures the chosen strategy aligns with the data's underlying structure and the classification task's requirements.

Exam trap

CompTIA often tests the misconception that immediate imputation (e.g., mean/median) or row deletion is the safest first step, when in reality, a diagnostic analysis of missingness patterns is required before any data modification.

How to eliminate wrong answers

Option A is wrong because deep learning models typically require complete data or sophisticated handling of missingness; using them to predict missing values without preprocessing ignores the need to first understand the missing data mechanism and can lead to overfitting or biased predictions. Option C is wrong because removing all rows with any missing values can discard a significant portion of the dataset (up to 50 features with missingness), potentially losing valuable information and reducing statistical power, especially when missingness is not completely random. Option D is wrong because immediately replacing missing values with the mean of each feature assumes the data is missing completely at random (MCAR) and can distort feature distributions, reduce variance, and introduce bias if the missingness is related to the feature values themselves.

33
MCQmedium

A hospital deploys an AI system to detect pneumonia from chest X-rays. The model achieves 95% accuracy on the test set but later is found to be less accurate for patients under 18. The development team suspects bias. Which step should be taken first to investigate?

A.Automatically retrain the model with a balanced dataset including more pediatric cases.
B.Expand the test set with more pediatric X-rays and re-evaluate overall accuracy.
C.Compute and compare performance metrics for different age subgroups in the test set.
D.Add more features to the model to capture age-related anatomical differences.
AnswerC

Comparing accuracy across age subgroups quantifies whether the model underperforms for under-18 patients, confirming or refuting bias before remediation. This subgroup metric analysis is the necessary first diagnostic step, since overall accuracy alone masks disparate performance.

Why this answer

The first step in investigating suspected model bias is to perform a disaggregated analysis of performance metrics across relevant subgroups, such as age brackets. This directly identifies whether the model's accuracy, precision, recall, or other metrics differ significantly for pediatric patients versus adults, confirming the presence and nature of the bias before any remediation is attempted.

Exam trap

CompTIA often tests the principle that aggregate metrics like overall accuracy can be misleading, and the trap here is that candidates jump to a solution (retraining or adding features) before performing the necessary diagnostic step of subgroup performance analysis.

How to eliminate wrong answers

Option A is wrong because automatically retraining the model with a balanced dataset without first understanding the root cause of the bias could introduce new biases or fail to address the specific issue, and it skips the critical diagnostic step of measuring subgroup performance. Option B is wrong because expanding the test set with more pediatric X-rays and re-evaluating overall accuracy would dilute the subgroup signal into a single aggregate metric, masking the disparity rather than revealing it. Option D is wrong because adding more features to the model without first analyzing the existing bias is a premature intervention; it assumes the bias stems from missing features rather than from imbalanced training data or model behavior, and it could increase complexity without solving the underlying problem.

34
Multi-Selectmedium

A research team is developing an AI system to predict patient outcomes from electronic health records. The team must ensure the system adheres to ethical AI principles. Which TWO practices best align with the principle of transparency and explainability? (Choose two.)

Select 2 answers
A.Document the model's intended use, limitations, and performance across demographic subgroups in a model card.
B.Implement a feature attribution method that shows which patient factors contributed most to each prediction.
C.Restrict access to the model's source code and training data to a small group of developers.
D.Focus solely on maximizing predictive accuracy, as ethical concerns are secondary to clinical outcomes.
E.Use a complex ensemble model and provide only the overall accuracy metric to clinicians.
AnswersA, B

A model card provides structured documentation of a model's development, intended use, and performance characteristics, including subgroup analysis. This practice directly supports transparency by making key information available to stakeholders. It helps clinicians and regulators understand when and how the model should be used, and where it may fail.

Why this answer

The two practices that best align with transparency and explainability are documenting model details in a model card and implementing feature attribution for individual predictions. A model card communicates intended use, limitations, and subgroup performance, while feature attribution explains specific outputs. Together, they enable stakeholders to understand and scrutinize the model, fostering trust and accountability.

Exam trap

The trap here is equating transparency with merely disclosing aggregate accuracy or restricting access, rather than providing meaningful documentation and per-prediction explanations.

35
Multi-Selectmedium

Which TWO statements correctly describe the difference between supervised and unsupervised learning?

Select 2 answers
A.Supervised learning is only used for classification
B.Unsupervised learning always requires a target variable
C.Supervised learning requires labeled data
D.Supervised learning is a subset of reinforcement learning
E.Unsupervised learning discovers hidden patterns
AnswersC, E

Supervised learning trains on labelled datasets, where each input is paired with its known output, enabling the model to map inputs to correct answers. This directly satisfies the stem's requirement to distinguish it from unsupervised learning, which finds patterns in unlabelled data without predefined target values.

Why this answer

Supervised learning relies on labeled datasets where each training example is paired with an output label, enabling the model to learn a mapping from inputs to outputs. This is a fundamental distinction from unsupervised learning, which works with unlabeled data to find inherent structures or patterns.

Exam trap

CompTIA often tests the misconception that supervised learning is synonymous with classification, ignoring regression, or that unsupervised learning requires a target variable, which is a direct contradiction of its definition.

36
MCQmedium

An AI model for detecting fraudulent transactions has high precision but low recall. Which business impact is most likely?

A.The model has no impact on fraud detection
B.The model detects all fraudulent transactions
C.Many fraudulent transactions go undetected
D.Many legitimate transactions are flagged as fraud
AnswerC

Recall measures the proportion of actual fraud cases the model identifies. Low recall means many genuine fraudulent transactions are classified as legitimate, so they pass through undetected and generate direct financial loss, despite precision remaining high.

Why this answer

High precision means that when the model flags a transaction as fraudulent, it is very likely correct. However, low recall indicates that the model misses a significant proportion of actual fraudulent transactions. Therefore, the most likely business impact is that many fraudulent transactions go undetected, leading to financial losses.

Exam trap

CompTIA often tests the distinction between precision and recall by presenting a scenario where candidates confuse high precision with high recall, leading them to incorrectly select option D (many legitimate transactions flagged) instead of recognizing that low recall causes undetected fraud.

How to eliminate wrong answers

Option A is wrong because a model with high precision and low recall does have a significant impact—it fails to catch many fraud cases, which directly affects business outcomes. Option B is wrong because low recall means the model does not detect all fraudulent transactions; it misses many, contradicting the claim of detecting all fraud. Option D is wrong because high precision implies few false positives, so legitimate transactions are rarely flagged as fraud; that scenario would correspond to low precision, not high precision.

37
MCQeasy

A small e-commerce company wants to implement a chatbot to handle customer inquiries about order status and returns. The company has limited historical chat data and wants a solution that can be deployed quickly without extensive training. Which type of AI solution is most appropriate?

A.Train a custom large language model from scratch using the company's product catalog.
B.Fine-tune a pre-trained language model on the company's limited chat data and product information.
C.Use a rule-based chatbot with predefined scripts for common inquiries.
D.Implement a reinforcement learning agent that learns from customer interactions in real time.
AnswerB

Fine-tuning a pre-trained model leverages existing language understanding and adapts it to the company's specific domain with relatively little data. This approach enables quick deployment and handles natural language variations better than rule-based systems. It balances performance and resource constraints effectively.

Why this answer

Fine-tuning a pre-trained language model is the most appropriate because it uses transfer learning to adapt a general model to the company's domain with minimal data. It provides natural language understanding and can be deployed quickly. Other options either require excessive resources, lack flexibility, or are too complex for the scenario.

Exam trap

The trap here is assuming that training a custom model from scratch or using a simple rule-based system is sufficient, when fine-tuning a pre-trained model offers the best balance of speed, data efficiency, and capability.

38
MCQmedium

A support team wants an AI assistant that can answer employee questions by retrieving passages from the company's internal policy documents and generating a response grounded in those passages. The documents change weekly. Which approach should the team implement?

A.Retrieval-augmented generation
B.Training a model from scratch on the policy corpus
C.Fine-tuning the base model on all policy documents
D.Prompting the model with only the user's question
AnswerA

Retrieval-augmented generation combines a retrieval component that fetches relevant passages from an external knowledge store with a generative model that composes an answer from them. Because the policy documents are updated weekly, retrieval keeps responses current without retraining the model, and grounding reduces fabrication.

Why this answer

Retrieval-augmented generation pairs a document retriever with a generative model, so the assistant answers from the latest policy passages instead of relying on memorized weights. This keeps responses current as documents change weekly, supports citation, and reduces hallucination. Fine-tuning, training from scratch, and ungrounded prompting all fail to keep pace with changing content or provide grounding.

Exam trap

The trap here is assuming that any use of company documents requires fine-tuning, when retrieval is the lighter and more current option.

39
MCQmedium

A manufacturing company uses a computer vision AI to inspect products on an assembly line for defects. The AI model was trained on images from a single camera angle under bright, uniform lighting. Recently, the company moved the inspection station to a different part of the factory where lighting is dimmer and varies due to nearby windows. The model now misclassifies many non-defective products as defective, causing false alarms and production delays. The team has limited labeled data from the new environment. Which action should the team take to restore inspection accuracy while minimizing downtime?

A.Apply domain adaptation techniques using a small set of labeled images from the new environment
B.Increase the defect classification threshold to reduce false positives
C.Revert to the previous lighting setup by reinstalling bright, uniform lights
D.Retrain the model from scratch using a large dataset of images from the new environment
AnswerA

Domain adaptation aligns feature distributions between the bright, uniform training images and the dimmer, variable-lit target environment, correcting the covariate shift that causes false positives. Because it fine-tunes with only a small labelled set from the new station, it restores accuracy without collecting extensive labels or halting the assembly line.

Why this answer

Domain adaptation techniques allow a model trained on a source domain (bright, uniform lighting) to generalize to a target domain (dim, variable lighting) using only a small set of labeled images from the new environment. This approach minimizes downtime because it avoids the need for large-scale data collection or retraining from scratch, and it directly addresses the distribution shift that causes false positives.

Exam trap

CompTIA often tests the misconception that simply adjusting a threshold or reverting to old conditions is a valid fix, when the correct approach is to adapt the model to the new data distribution using domain adaptation.

How to eliminate wrong answers

Option B is wrong because increasing the classification threshold reduces false positives at the cost of increasing false negatives, which would allow defective products to pass inspection — a critical safety and quality risk. Option C is wrong because reverting to the previous lighting setup is a workaround that does not solve the underlying domain shift problem and may be impractical or costly if the new location is fixed. Option D is wrong because retraining from scratch requires a large labeled dataset from the new environment, which the team does not have, and would cause significant downtime for data collection and training.

40
MCQhard

An AI model achieves high accuracy on training data but performs poorly on new test data. The data scientist suspects the model has memorized noise. Which technique directly adds a penalty term to the loss function to address this?

A.Batch normalization
B.Data augmentation
C.Dropout
D.L2 regularization
AnswerD

L2 regularization adds a penalty proportional to the squared magnitude of weights to the loss function, directly discouraging the large weight values that let a model memorise noise. This constrains model complexity, satisfying the stem's requirement for a technique that penalises the loss function to reduce overfitting.

Why this answer

L2 regularization (also known as weight decay) directly adds a penalty term proportional to the squared magnitude of the model's weights to the loss function. This discourages the model from fitting the noise in the training data by keeping weights small, thereby reducing overfitting and improving generalization to new test data.

Exam trap

CompTIA often tests the distinction between regularization techniques that modify the loss function (L2) versus those that modify the network architecture or data (dropout, batch normalization, data augmentation), so candidates mistakenly choose dropout because it is a well-known regularization method, even though it does not add a penalty term to the loss function.

How to eliminate wrong answers

Option A is wrong because batch normalization normalizes the inputs of each layer to stabilize and accelerate training, but it does not add a penalty term to the loss function; it addresses internal covariate shift, not overfitting from memorized noise. Option B is wrong because data augmentation artificially expands the training dataset by applying transformations (e.g., rotations, flips) to reduce overfitting, but it does not modify the loss function with a penalty term. Option C is wrong because dropout randomly drops neurons during training to prevent co-adaptation, which is a regularization technique but it does not add a penalty term to the loss function; it works by altering the network architecture during training.

41
MCQmedium

A financial institution uses a regression model to predict credit risk. The model has a high R-squared on training data but low R-squared on test data. Which of the following is the most likely cause?

A.The features were not standardized before training.
B.The model is overfitting the training data.
C.The model is underfitting the training data.
D.There is multicollinearity among the input features.
AnswerB

High training R-squared with low test R-squared is the defining symptom of variance error: the model has fitted noise and idiosyncrasies specific to the training set, so it fails to generalise to unseen credit-risk data.

Why this answer

A high R-squared on training data combined with a low R-squared on test data is the classic symptom of overfitting. The model has memorized noise and specific patterns in the training set rather than learning generalizable relationships, causing poor performance on unseen data.

Exam trap

CompTIA often tests the distinction between overfitting and underfitting by presenting a high training metric with a low test metric, tempting candidates to think the model is 'too good' or that data preprocessing (like standardization) is the fix.

How to eliminate wrong answers

Option A is wrong because feature standardization (scaling) affects convergence speed for some algorithms but does not inherently cause overfitting or the described train-test R-squared gap. Option C is wrong because underfitting would produce low R-squared on both training and test data, not high on training and low on test. Option D is wrong because multicollinearity inflates coefficient variances and can reduce interpretability, but it does not typically cause a large discrepancy between training and test R-squared; it affects both sets similarly.

42
MCQmedium

A hospital's AI governance committee is reviewing a sepsis-prediction model before deployment. The model was trained on five years of historical ICU data in which patients who received early antibiotics had better outcomes, and the model learned to recommend antibiotics for nearly every patient with any fever. The committee wants to determine whether the model has learned a spurious correlation rather than a true clinical signal. Which action best evaluates this concern?

A.Increase the size of the test set by repartitioning the existing data and recompute the AUC.
B.Deploy the model in shadow mode and compare its alerts against clinician judgment for one month.
C.Perform a feature-ablation study, removing fever and antibiotic-administration variables, and measure the change in predictive performance and decision patterns.
D.Retrain the model with a larger learning rate and compare training loss across epochs.
AnswerC

Ablation directly tests whether the model's recommendations depend on the suspected spurious features. If removing fever and antibiotic variables sharply degrades performance or changes which patients receive recommendations, the model likely relied on the confound. This is a targeted causal-probing technique that reveals reliance on specific inputs rather than overall accuracy, which is exactly what the committee needs to assess.

Why this answer

Feature ablation is the most direct way to test whether a model depends on suspected spurious inputs. By removing fever and antibiotic-administration variables and observing changes in performance and recommendation behavior, the committee can determine whether the model's decisions hinge on those confounded features rather than on genuine clinical indicators of sepsis.

Exam trap

The trap here is assuming that a high AUC or strong test-set performance proves the model learned a genuine clinical relationship, when a spurious correlation present throughout the data can produce equally strong metrics.

43
MCQeasy

A hospital wants an AI system to review chest X-ray images and flag those that may show pneumonia, but a radiologist will make the final diagnosis. The IT team must classify this system for documentation. Which category of AI best describes this deployment?

A.Supervised learning
B.General AI
C.Reactive machine
D.Narrow AI
AnswerD

Narrow AI, also called weak AI, is designed to perform a specific task within a limited domain. Flagging possible pneumonia on chest X-rays is a single, well-defined classification task, so the system falls squarely into narrow AI even though it uses deep learning and achieves high accuracy.

Why this answer

The system performs one bounded task—identifying possible pneumonia in chest X-rays—so it is narrow AI. General AI implies human-level breadth across many domains, supervised learning describes how a model is trained rather than what the system is, and reactive machine is an outdated capability category that does not fit a trained deep learning model.

Exam trap

The trap here is confusing a learning method such as supervised learning with a capability category such as narrow AI.

44
MCQmedium

A company uses a pre-trained language model for a legal document classification task. They have limited labeled data (500 documents). Which strategy is MOST effective for adapting the model to this domain?

A.Use a rule-based keyword matching system instead.
B.Train a new model from scratch on the 500 documents.
C.Apply extensive data augmentation to increase dataset size.
D.Fine-tune the pre-trained model on the 500 labeled documents.
AnswerD

Fine-tuning updates the pre-trained weights on the 500 domain-specific legal documents, adapting learned representations to legal vocabulary and phrasing. This transfers general language knowledge while fitting the narrow task, outperforming training from scratch with such limited labelled data.

Why this answer

Fine-tuning a pre-trained language model on 500 labeled legal documents is the most effective strategy because it leverages the model's existing knowledge of language structure and general semantics, requiring only a small amount of domain-specific data to adapt to the legal classification task. This approach avoids the high data requirements of training from scratch and outperforms rule-based or augmentation-only methods by directly optimizing the model's weights for the target domain.

Exam trap

CompTIA often tests the misconception that more data is always better (trap of Option C) or that starting from scratch is safer (trap of Option B), when in fact transfer learning via fine-tuning is the standard approach for low-resource NLP tasks.

How to eliminate wrong answers

Option A is wrong because rule-based keyword matching lacks the semantic understanding needed for legal document classification, where context and nuance are critical, and it cannot generalize beyond predefined patterns. Option B is wrong because training a new model from scratch on only 500 documents is insufficient for deep learning models, leading to severe overfitting and poor generalization due to the lack of pre-trained linguistic knowledge. Option C is wrong because extensive data augmentation on only 500 documents may introduce noise and unrealistic variations, and it does not provide the same benefit as leveraging a pre-trained model's learned representations, which already capture rich language patterns.

45
MCQmedium

A data scientist trains a linear regression model to predict house prices. The model has high bias and low variance. Which action would most likely reduce bias?

A.Apply L2 regularization
B.Increase the training dataset size
C.Add polynomial features
D.Remove irrelevant features
AnswerC

High bias means the linear model underfits because it cannot represent the non-linear relationship between features and price. Adding polynomial features expands the hypothesis space, letting the model capture curvature and thereby reduce bias, though variance may rise.

Why this answer

High bias indicates the model is underfitting the data, meaning it is too simple to capture the underlying patterns. Adding polynomial features increases model complexity by introducing non-linear terms, which allows the linear regression model to better fit the training data and thus reduce bias.

Exam trap

CompTIA often tests the bias-variance tradeoff by making candidates confuse regularization (which reduces variance) with methods that reduce bias, or by implying that more data always fixes underfitting.

How to eliminate wrong answers

Option A is wrong because L2 regularization (Ridge regression) reduces overfitting by penalizing large coefficients, which increases bias to lower variance, making bias worse. Option B is wrong because increasing the training dataset size typically reduces variance (helps with overfitting) but does not address underfitting (high bias) — it may even make bias more apparent. Option D is wrong because removing irrelevant features simplifies the model further, which increases bias and is counterproductive when the goal is to reduce bias.

46
MCQmedium

A data science team is preparing a dataset of loan applications. Each row contains income, credit score, employment length, and a loan amount. Before training a model, the team wants to reduce the influence of income, which is measured in dollars and ranges into the hundreds of thousands, compared with credit score, which ranges from 300 to 850. Which technique should the team apply?

A.One-hot encoding
B.Feature scaling
C.Data augmentation
D.Principal component analysis
AnswerB

Feature scaling transforms numeric features onto comparable ranges, for example through min-max normalization or standardization. Because income values are far larger than credit score values, distance-based and gradient-based algorithms would otherwise weight income too heavily, so scaling the inputs is the appropriate preprocessing step before training.

Why this answer

Income and credit score differ by orders of magnitude, so algorithms that rely on distances or gradients will let income dominate. Feature scaling, whether min-max normalization or standardization, brings numeric features onto comparable ranges and is the standard preprocessing remedy. Encoding, dimensionality reduction, and augmentation change the data in ways that do not resolve the scale disparity.

Exam trap

The trap here is reaching for one-hot encoding whenever preprocessing is mentioned, even though the problem is numeric magnitude rather than categorical text.

47
Multi-Selecthard

An organization is deploying a deep learning model in production. Which THREE components are essential for maintaining model performance over time?

Select 3 answers
A.Performance monitoring
B.Hyperparameter tuning
C.Model retraining pipeline
D.Feature importance analysis
E.Data drift detection
AnswersA, C, E

Continuous monitoring of key metrics alerts teams to degradation in model performance.

Why this answer

Performance monitoring (A) is essential because it provides continuous visibility into model metrics such as accuracy, latency, and throughput, enabling early detection of degradation. Without ongoing monitoring, teams cannot identify when a model's predictions deviate from expected behavior, which is critical for maintaining reliability in production.

Exam trap

CompTIA often tests the distinction between development-phase activities (hyperparameter tuning, feature analysis) and production-phase operational components (monitoring, retraining, drift detection), so candidates mistakenly include tuning or analysis as essential for ongoing maintenance.

48
Multi-Selecthard

A financial services firm is deploying a credit-scoring model that uses alternative data such as utility payments and rental history. The compliance team is concerned about fairness and transparency. Which TWO practices best support responsible AI deployment in this scenario? (Choose two.)

Select 2 answers
A.Provide adverse-action explanations for declined applicants that identify the principal factors influencing the decision.
B.Conduct disparate-impact testing across protected groups and document the results before deployment.
C.Use only the most predictive features and remove any feature that reduces overall accuracy.
D.Retrain the model monthly on all new applications without human review to keep pace with changing data.
E.Encrypt the training data at rest and restrict access to the data science team.
AnswersA, B

Adverse-action explanations are legally required in many credit contexts and directly support transparency. By identifying the principal factors behind a decline, the firm helps applicants understand and potentially contest decisions. This practice also forces the model to be interpretable at the individual level, which is a key responsible-AI requirement when using alternative data that applicants may not expect to influence credit outcomes.

Why this answer

Disparate-impact testing with documentation and adverse-action explanations directly address fairness and transparency in credit scoring. Testing detects discriminatory outcomes across protected groups, while explanations make individual decisions understandable and contestable. Together they satisfy core responsible-AI obligations when alternative data is used.

Exam trap

The trap here is equating data security measures such as encryption with fairness and transparency, when responsible AI in lending specifically requires outcome testing and explainability for affected individuals.

49
MCQeasy

A healthcare provider wants to use AI to predict patient readmission risk. They have structured data (age, diagnosis, lab results) and unstructured clinical notes. Which approach is most appropriate?

A.Convolutional neural network (CNN) on clinical notes
B.Recurrent neural network (RNN) on structured data
C.Logistic regression on structured data only
D.Multimodal model combining structured and text embeddings
AnswerD

Multimodal models fuse structured tabular embeddings with text embeddings from clinical notes, letting one architecture exploit both data types. This satisfies the stem's requirement to handle age, diagnosis and lab results alongside unstructured notes, whereas single-modality approaches discard half the available signal.

Why this answer

The scenario involves both structured data (age, diagnosis, lab results) and unstructured clinical notes. A multimodal model can process both types by combining embeddings from text (e.g., via a transformer or RNN) with structured features, enabling the model to learn cross-modal patterns that improve readmission risk prediction. This approach leverages the complementary strengths of structured and unstructured data, which is essential for capturing the full clinical picture.

Exam trap

The trap here is that candidates may assume a single model type (like CNN or RNN) is sufficient for all data, overlooking the need to combine structured and unstructured data through a multimodal architecture.

How to eliminate wrong answers

Option A is wrong because a convolutional neural network (CNN) on clinical notes alone ignores the structured data (age, diagnosis, lab results), which are critical for readmission prediction; CNNs are also less effective for sequential text than transformers or RNNs. Option B is wrong because a recurrent neural network (RNN) on structured data is suboptimal—structured data is typically tabular and better handled by tree-based models or dense layers, and RNNs are designed for sequential data like time series or text. Option C is wrong because logistic regression on structured data only discards the valuable unstructured clinical notes, missing key risk factors embedded in free text, and logistic regression cannot capture complex nonlinear interactions in the data.

50
MCQeasy

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?

A.Increase n_estimators to 500.
B.Set max_depth to None to allow trees to grow fully.
C.Reduce max_depth to 3.
D.Switch from RandomForest to a linear model like LogisticRegression.
AnswerC

Reducing max_depth to 3 constrains the decision tree's capacity, directly limiting how precisely it can memorise individual training examples. This regularisation addresses the overfitting causing the 98% versus 72% gap, trading some training accuracy for improved generalisation to the test set.

Why this answer

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.

Exam trap

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.

How to eliminate wrong answers

Option A is wrong because increasing n_estimators to 500 would add more trees, which generally improves stability but does not reduce overfitting—it may even exacerbate it if individual trees are already too deep. Option B is wrong because setting max_depth to None allows trees to grow fully, which increases the risk of overfitting by capturing every detail in the training data, widening the accuracy gap. Option D is wrong because switching to a linear model like LogisticRegression is a drastic architectural change that may underfit if the data has non-linear relationships; the goal is to regularize the existing RandomForest, not replace it entirely.

51
MCQmedium

Refer to the exhibit. A data scientist observes the training output. Which issue is most likely?

A.Underfitting
B.Data augmentation failure
C.Overfitting
D.Model compression
AnswerC

Overfitting is indicated when training loss keeps falling while validation loss stops improving or rises, meaning the model memorises training data and generalises poorly. The widening gap between the two curves in the exhibit is the diagnostic signal.

Why this answer

The exhibit shows training loss decreasing while validation loss increases after a certain epoch, which is the classic signature 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 a loss curve where training loss is low but validation loss rises, tricking candidates who focus only on the low training loss without checking validation performance.

How to eliminate wrong answers

Option A is wrong because underfitting would show both training and validation loss remaining high and not decreasing, not the divergence seen here. Option B is wrong because data augmentation failure would typically cause both losses to be high or erratic, not a clear divergence with low training loss. Option D is wrong because model compression reduces model size and may affect accuracy, but it does not produce the specific loss divergence pattern of overfitting.

52
MCQmedium

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

A.Vanishing gradient
B.Learning rate too high
C.Underfitting
D.Overfitting
AnswerD

The exhibit shows training loss continuing to fall while validation loss rises after an early point, the classic divergence signature. The model has memorised training noise rather than generalising, so overfitting is the most likely issue indicated.

Why this answer

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

Exam trap

CompTIA often tests the distinction between overfitting and underfitting by showing a diverging validation loss curve, which candidates may misinterpret as a learning rate issue or vanishing gradient.

How to eliminate wrong answers

Option A is wrong because vanishing gradient typically causes training to stall early with both losses high and flat, not a diverging validation loss. Option B is wrong because a learning rate too high would cause both training and validation losses to oscillate or diverge together, not just validation loss increasing. Option C is wrong because underfitting would show both training and validation losses remaining high and plateauing, not a decreasing training loss.

53
MCQmedium

A machine learning team notices that their model's performance degrades when deployed to a new geographic region. The data distribution in the new region differs from the training data. Which concept best describes this issue?

A.Covariate shift
B.Data leakage
C.Underfitting
D.Overfitting
AnswerA

Covariate shift occurs when the input feature distribution P(X) changes between training and deployment while the conditional label relationship P(Y|X) stays the same. The new region's differing data distribution is exactly this input-distribution change, degrading model performance.

Why this answer

Covariate shift occurs when the distribution of the input features (covariates) changes between training and deployment, while the conditional relationship P(Y|X) remains the same. In this scenario, the model's performance degrades because the new geographic region has a different data distribution than the training data, which is the classic definition of covariate shift. This is a common issue in machine learning when models are deployed in environments not represented in the training set.

Exam trap

CompTIA often tests the distinction between covariate shift and overfitting, where candidates mistakenly think performance degradation on new data is always due to overfitting, but the key is that overfitting implies poor performance on the same distribution, not a different one.

How to eliminate wrong answers

Option B is wrong because data leakage refers to information from outside the training set (e.g., future data or target information) being used to train the model, which artificially inflates performance, not a distribution shift between training and deployment. Option C is wrong because underfitting occurs when a model is too simple to capture patterns in the training data, resulting in poor performance on both training and test sets, not specifically a degradation due to a change in data distribution. Option D is wrong because overfitting happens when a model learns noise or specific patterns in the training data too well, leading to poor generalization on unseen data from the same distribution, not a shift to a different distribution.

54
MCQeasy

A startup is building a chatbot for customer service. They have 500 recorded conversations and want to use a pre-trained language model to generate responses. However, they have limited computational resources and need the chatbot to respond in real-time. They are considering fine-tuning a large model like GPT-3 or using a smaller model like DistilBERT. The conversation data contains industry-specific jargon. Which approach should they take?

A.Use GPT-3 via API without fine-tuning
B.Fine-tune DistilBERT on the conversation data
C.Train a custom RNN from scratch on the conversations
D.Implement a rule-based system with keywords
AnswerB

DistilBERT is smaller, faster, and fine-tuning on domain-specific data will adapt it to jargon while meeting real-time requirements.

Why this answer

Fine-tuning DistilBERT on the 500 recorded conversations allows the model to adapt to industry-specific jargon while maintaining real-time responsiveness due to its smaller size. DistilBERT is a distilled version of BERT that retains 97% of BERT’s language understanding with 40% fewer parameters, making it suitable for limited computational resources. Fine-tuning on domain-specific data is essential here, as pre-trained models like GPT-3 lack exposure to the startup’s specialized terminology, and using a smaller model ensures low-latency inference for real-time chatbot responses.

Exam trap

CompTIA often tests the misconception that larger pre-trained models like GPT-3 are always superior for domain adaptation, ignoring the critical trade-offs of computational cost, latency, and the need for fine-tuning on small, specialized datasets.

How to eliminate wrong answers

Option A is wrong because using GPT-3 via API without fine-tuning would not adapt to the industry-specific jargon in the 500 conversations, leading to generic or incorrect responses, and the API call latency and cost are unsuitable for real-time constraints with limited resources. Option C is wrong because training a custom RNN from scratch on only 500 conversations is insufficient for learning complex language patterns, resulting in poor generalization and high risk of overfitting, while also requiring significant computational resources for training. Option D is wrong because a rule-based system with keywords cannot handle the variability and nuance of natural language in customer service conversations, especially with industry-specific jargon, and would fail to generate coherent, context-aware responses beyond predefined patterns.

55
MCQhard

A financial services firm is deploying a credit-scoring model that uses alternative data such as utility payments and rental history. The model shows high accuracy but the firm is concerned about regulatory compliance and explainability. The firm must provide adverse action notices to applicants who are denied credit. Which approach best satisfies the need for explainability while maintaining model performance?

A.Use a black-box deep learning model and provide only the top-level feature importances from a surrogate model.
B.Replace the model with a simple logistic regression using only traditional credit bureau data.
C.Deploy the model as a black box but disclose the general factors that influence credit decisions in the application terms.
D.Use a gradient boosting model with SHAP values to generate per-applicant reason codes for denials.
AnswerD

SHAP values provide consistent, locally accurate feature attributions for each prediction, which can be translated into reason codes for adverse action notices. Gradient boosting maintains high performance with alternative data. This combination balances explainability and accuracy, meeting regulatory requirements without sacrificing predictive capability.

Why this answer

Gradient boosting with SHAP values is the best choice because SHAP provides per-applicant, locally faithful explanations that can be directly used in adverse action notices. It preserves the model's ability to leverage alternative data for accuracy while delivering the transparency regulators demand. Other options either sacrifice performance, fail to provide specific reasons, or rely on approximations that may not be reliable.

Exam trap

The trap here is assuming that global feature importance or general disclosures are sufficient for per-applicant adverse action notices, when regulations require specific reasons for each denial.

56
MCQmedium

An AI engineer is tuning a deep learning model and observes that the training loss decreases very slowly. The learning rate is set to 0.001. Which adjustment is most likely to speed up convergence?

A.Increase the learning rate to 0.01
B.Add more hidden layers
C.Decrease the learning rate to 0.0001
D.Increase the batch size
AnswerA

A learning rate of 0.001 makes each gradient step tiny, so the model crawls toward the minimum and training loss falls slowly. Raising it to 0.01 increases step size, accelerating convergence, provided the rate stays below the threshold that causes divergence.

Why this answer

A learning rate of 0.001 is causing the model to take very small steps toward the minimum of the loss function, resulting in slow convergence. Increasing the learning rate to 0.01 allows larger weight updates per iteration, which typically speeds up training. However, care must be taken not to overshoot the optimum, as an excessively high learning rate can cause divergence.

Exam trap

CompTIA often tests the misconception that decreasing the learning rate always improves training, when in fact a learning rate that is too low is a primary cause of slow convergence, and the correct adjustment is to increase it within a safe range.

How to eliminate wrong answers

Option B is wrong because adding more hidden layers increases model complexity and the number of parameters, which generally slows training and can exacerbate the slow convergence problem rather than solving it. Option C is wrong because decreasing the learning rate to 0.0001 would make the updates even smaller, further slowing convergence. Option D is wrong because increasing the batch size provides a more accurate gradient estimate but reduces the frequency of updates per epoch, which can actually slow convergence in terms of steps needed to reach a given loss.

57
MCQeasy

A software company wants to add a feature that automatically transcribes customer support phone calls into text for analysis. Which type of AI technology is best suited for this task?

A.Computer vision
B.Natural language processing
C.Reinforcement learning
D.Automatic speech recognition
AnswerD

Automatic speech recognition (ASR) is specifically designed to convert spoken language into written text. It processes audio waveforms and outputs transcriptions, making it the ideal technology for transcribing customer support calls. Modern ASR systems handle various accents and background noise, and can be integrated with NLP for further analysis.

Why this answer

Automatic speech recognition (ASR) is the AI technology that converts spoken language into text. It is the foundational component for transcribing phone calls, enabling subsequent analysis. Computer vision handles images, NLP processes text after transcription, and reinforcement learning is for sequential decision-making, so none of those directly perform the speech-to-text conversion required.

Exam trap

The trap here is confusing natural language processing with speech recognition, assuming that any language-related task falls under NLP, when in fact audio-to-text conversion is a distinct domain.

58
Multi-Selecteasy

Which TWO of the following are common activation functions used in neural networks? (Choose two.)

Select 2 answers
A.Gradient descent
B.LSTM
C.Dropout
D.ReLU
E.Sigmoid
AnswersD, E

ReLU (Rectified Linear Unit) is a standard activation function, outputting the input directly when positive and zero otherwise. Its piecewise-linear form satisfies the question's requirement for common neural network activations, alongside sigmoid and tanh, by enabling efficient gradient propagation during training.

Why this answer

ReLU (Rectified Linear Unit) is a widely used activation function that outputs the input directly if it is positive, and zero otherwise, introducing non-linearity while mitigating the vanishing gradient problem. Sigmoid is another common activation function that maps any real-valued input to a value between 0 and 1, making it useful for binary classification output layers. Both are fundamental building blocks in neural network architectures.

Exam trap

CompTIA often tests the distinction between activation functions and other neural network components like optimizers (gradient descent), architectures (LSTM), or regularization techniques (dropout), expecting candidates to recognize that only ReLU and Sigmoid directly compute a neuron's output from its input.

59
MCQeasy

A company wants to use AI to automatically categorize customer support tickets into topics like 'billing', 'technical', 'account'. They have 10,000 labeled examples. Which algorithm is most suitable for this task?

A.DBSCAN
B.Apriori
C.Principal component analysis (PCA)
D.Logistic regression
AnswerD

Logistic regression is a supervised classifier that learns a decision boundary from the 10,000 labelled examples, outputting category probabilities. It satisfies the labelled multi-class text classification constraint, though multinomial extension is needed beyond binary billing versus non-billing decisions.

Why this answer

Logistic regression is a supervised learning algorithm that models the probability of a categorical outcome based on input features. With 10,000 labeled examples, it can efficiently learn decision boundaries to classify tickets into 'billing', 'technical', or 'account' by using a softmax (multinomial logistic regression) extension for multi-class classification.

Exam trap

CompTIA often tests the distinction between supervised and unsupervised learning, so the trap here is that candidates may confuse clustering (DBSCAN) or dimensionality reduction (PCA) with classification, overlooking that labeled data requires a supervised algorithm like logistic regression.

How to eliminate wrong answers

Option A is wrong because DBSCAN is an unsupervised clustering algorithm that groups data based on density, not classification; it cannot use labeled examples to predict predefined categories. Option B is wrong because Apriori is an association rule mining algorithm used for market basket analysis to find frequent itemsets, not for classifying text into topics. Option C is wrong because PCA is an unsupervised dimensionality reduction technique that transforms features to capture variance, but it does not perform classification or use labels to assign categories.

60
Multi-Selectmedium

Which THREE of the following are types of machine learning paradigms? (Choose three.)

Select 3 answers
A.Gradient boosting
B.Reinforcement learning
C.Unsupervised learning
D.Quantum computing
E.Supervised learning
AnswersB, C, E

Reinforcement learning involves an agent learning from rewards.

Why this answer

Reinforcement learning is a correct machine learning paradigm where an agent learns to make decisions by interacting with an environment, receiving rewards or penalties based on its actions. This trial-and-error approach is distinct from supervised and unsupervised learning, as it focuses on maximizing cumulative reward through exploration and exploitation.

Exam trap

CompTIA often tests candidates by listing specific algorithms (like gradient boosting) or adjacent technologies (like quantum computing) as distractors, hoping you confuse a technique or enabling technology with a fundamental learning paradigm.

61
MCQmedium

An AI model is being developed for medical diagnosis from X-ray images. The dataset contains only frontal chest X-rays. The model achieves high accuracy on test set but fails on lateral views. What is the most likely cause?

A.Dataset bias
B.Underfitting
C.Label noise
D.Overfitting
AnswerA

Dataset bias arises because training data contains only frontal chest X-rays, so the model learns frontal-specific features and cannot generalise to lateral views. The constraint is the narrow training distribution, not model capacity or overfitting to the test set.

Why this answer

The model was trained exclusively on frontal chest X-rays, so it never learned features specific to lateral views. When tested on lateral views, the distribution shift causes poor performance, which is a classic case of dataset bias (sampling bias). The high accuracy on the test set is misleading because the test set also only contained frontal views, masking the model's inability to generalize to other X-ray orientations.

Exam trap

The AI0-001 exam often tests the distinction between overfitting and dataset bias by presenting a scenario where the model performs well on the test set (which shares the same bias) but fails on a different data distribution, leading candidates to mistakenly choose overfitting instead of recognizing the sampling bias.

How to eliminate wrong answers

Option B (Underfitting) is wrong because underfitting would cause poor performance on both the training and test sets, not just on a different distribution of data. Option C (Label noise) is wrong because label noise refers to incorrect ground-truth labels in the training data, which would degrade performance across all data types, not selectively on lateral views. Option D (Overfitting) is wrong because overfitting would manifest as high training accuracy but low test accuracy on the same distribution (e.g., frontal views), not as a failure on an entirely unseen data orientation.

62
MCQeasy

In the AI lifecycle, which phase involves splitting data into training, validation, and test sets?

A.Model training
B.Data preprocessing
C.Data collection
D.Model evaluation
AnswerB

Data preprocessing covers cleaning, transforming and partitioning the dataset, including the train/validation/test split. The split happens here because the model needs held-out data before training begins, ensuring validation tunes hyperparameters and the test set gives an unbiased final evaluation.

Why this answer

Data preprocessing is the phase where raw data is cleaned, transformed, and prepared for modeling. Splitting the dataset into training, validation, and test sets is a critical step during this phase to ensure unbiased evaluation and prevent data leakage. This split occurs before any model training begins, making it part of preprocessing rather than training or evaluation.

Exam trap

CompTIA often tests the misconception that data splitting belongs to model training or evaluation, when in fact it is a preprocessing step that must occur before any model sees the data.

How to eliminate wrong answers

Option A is wrong because model training is the phase where the algorithm learns patterns from the training data, not where the data is split; splitting must happen beforehand to avoid contaminating the evaluation. Option C is wrong because data collection is the initial gathering of raw data from sources, which occurs before any splitting or preprocessing. Option D is wrong because model evaluation uses the already-split test set to assess performance, but the split itself is established during data preprocessing.

63
MCQmedium

A government agency is deploying an AI model to screen loan applications. The model uses features like income, credit score, employment history, and zip code. During fairness auditing, the model is found to deny a disproportionately high number of applicants from a particular demographic group, even when controlling for legitimate financial factors. The agency wants to mitigate this bias without significantly reducing overall accuracy. Which approach should the data scientist prioritize?

A.Adjust the decision threshold for the affected group
B.Remove the zip code feature from the model
C.Apply sample weighting to balance the demographic groups
D.Use adversarial debiasing during model training
AnswerD

Adversarial debiasing trains a predictor alongside an adversary that penalises demographic predictability, directly suppressing the zip-code proxy encoding group membership while retaining legitimate financial signal. This satisfies the stem's dual constraint: reducing disparate denial rates without materially sacrificing overall accuracy, unlike pre-processing fixes that discard predictive information.

Why this answer

Adversarial debiasing is the correct approach because it directly optimizes the model to remove sensitive information (e.g., demographic group membership) from its internal representations while preserving predictive accuracy. This technique trains a primary model to predict the target (loan approval) and an adversary to predict the protected attribute from the model's learned features, forcing the primary model to learn representations that are both accurate and unbiased. It addresses the root cause of bias—correlation between protected attributes and model predictions—without requiring post-hoc threshold adjustments or sacrificing overall performance.

Exam trap

The AI0-001 exam often tests the misconception that simply removing a sensitive feature (like zip code) or reweighting data is sufficient to eliminate bias, when in reality bias can be encoded through correlated proxies and requires algorithmic debiasing during training.

How to eliminate wrong answers

Option A is wrong because adjusting the decision threshold for the affected group is a post-hoc fairness intervention that can reduce accuracy for that group and may violate regulatory requirements for equal treatment; it does not address the underlying model bias. Option B is wrong because removing the zip code feature alone is insufficient—bias can still propagate through correlated features like income or employment history, and this approach may reduce model accuracy without guaranteeing fairness. Option C is wrong because sample weighting can help balance representation but does not prevent the model from learning biased correlations; it may also distort the training distribution and degrade accuracy on the majority group.

64
MCQeasy

A small e-commerce startup has only 800 labeled customer-support tickets and needs to classify new tickets into categories such as billing, shipping, and returns. The team has no budget for large-scale annotation and wants to leverage a model already trained on millions of general text documents. Which approach best fits this constraint?

A.Use a rule-based keyword matcher that assigns categories based on the presence of predefined terms.
B.Apply k-means clustering to the ticket text and label each cluster with the most frequent category.
C.Train a transformer from scratch on the 800 tickets using a high learning rate.
D.Fine-tune a pretrained language model on the 800 labeled tickets for the classification task.
AnswerD

Fine-tuning leverages representations learned from millions of general text documents, so the model already understands language structure and only needs task-specific adjustment. With 800 labeled examples, fine-tuning can achieve strong performance where training from scratch would fail. This approach fits the startup's limited annotation budget and directly addresses the multi-class ticket categorization need.

Why this answer

Fine-tuning a pretrained language model is ideal when labeled data is scarce, because the model already encodes general language knowledge and only needs adaptation to the ticket categories. This approach uses the 800 labels efficiently and outperforms training from scratch, rule-based matching, or unsupervised clustering.

Exam trap

The trap here is assuming that a small labeled dataset requires an unsupervised or rule-based workaround, when transfer learning from a pretrained model is specifically designed to succeed with limited task-specific labels.

65
MCQmedium

A company built a speech-to-text model using a recurrent neural network (RNN). During deployment, the model performs poorly on accented speech. Which action would most effectively improve model robustness?

A.Collect a small sample of accented speech and fine-tune the model on that sample only.
B.Add dropout and reduce the number of RNN layers to prevent overfitting to the current data.
C.Augment the training dataset with various accented audio samples and retrain the model.
D.Replace the RNN with a convolutional neural network (CNN) for feature extraction.
AnswerC

Accented speech is underrepresented in the original training data, so the model never learnt those acoustic patterns. Augmenting with varied accented samples exposes the RNN to that distribution during retraining, directly improving robustness to accents.

Why this answer

Augmenting the training dataset with diverse accented audio samples directly addresses the root cause of poor performance—distribution shift between training and deployment data. Retraining the model on this enriched dataset allows the RNN to learn invariant features across accents, improving generalization without altering the model architecture or risking catastrophic forgetting from fine-tuning on a tiny sample.

Exam trap

CompTIA often tests the misconception that architectural changes (like switching to CNN or adding regularization) can fix data distribution mismatches, when the real solution is to address the missing data diversity through augmentation or retraining.

How to eliminate wrong answers

Option A is wrong because fine-tuning on a small sample of accented speech can cause catastrophic forgetting of the original training distribution and does not provide enough diversity to learn robust accent-invariant features. Option B is wrong because adding dropout and reducing layers addresses overfitting to the current data, but the core problem is underfitting to accented speech due to missing representative training examples, not overfitting. Option D is wrong because replacing the RNN with a CNN for feature extraction does not inherently solve the accent robustness issue; CNNs are effective for spatial patterns but less suited for sequential temporal dependencies in speech, and the fundamental problem remains the lack of accented training data.

66
MCQmedium

A company wants to create an AI system that can identify objects in images. They have a large dataset of labeled images. Which type of neural network architecture is most suitable?

A.Transformer
B.Convolutional neural network (CNN)
C.Generative adversarial network (GAN)
D.Recurrent neural network (RNN)
AnswerB

CNNs apply convolutional filters that exploit spatial locality and translation invariance in pixel grids, learning hierarchical visual features. This suits labelled image data for object identification, where fully connected networks would ignore spatial structure and scale poorly.

Why this answer

Convolutional neural networks (CNNs) are specifically designed to process grid-like data such as images. They use convolutional layers to automatically learn spatial hierarchies of features (edges, textures, objects) from pixel data, making them the most suitable architecture for image classification tasks with labeled datasets.

Exam trap

CompTIA often tests the misconception that any 'neural network' can handle images equally, but the trap is that RNNs and Transformers are sequence-based and not optimized for spatial feature extraction, while GANs are generative, not discriminative.

How to eliminate wrong answers

Option A is wrong because Transformers are primarily designed for sequential data (e.g., text) using self-attention mechanisms; while they can be adapted for vision (Vision Transformers), they require large datasets and are not the standard choice for traditional image classification. Option C is wrong because Generative adversarial networks (GANs) are used for generating new data (e.g., synthetic images) rather than classifying or identifying objects in existing images. Option D is wrong because Recurrent neural networks (RNNs) are designed for sequential or time-series data (e.g., text, speech) and struggle with spatial relationships in images due to vanishing gradients and lack of translation invariance.

67
Multi-Selecthard

A team is deploying a deep learning model that uses a convolutional neural network (CNN) for image recognition. The model achieves high accuracy but is very slow to infer on edge devices. Which THREE optimization techniques should the team consider to speed up inference without significant accuracy loss? (Select three.)

Select 3 answers
A.Use larger convolutional filters (e.g., 7x7 instead of 3x3) to capture more context.
B.Use weight pruning to remove unnecessary connections in the network.
C.Implement knowledge distillation by training a smaller model to mimic the larger one.
D.Increase the number of convolutional layers to improve feature extraction.
E.Apply model quantization to reduce weight precision.
AnswersB, C, E

Pruning reduces computation and memory footprint.

Why this answer

Weight pruning removes redundant or less important connections (weights) from the neural network, reducing the number of computations required during inference. This directly speeds up inference on edge devices while typically causing only a minor drop in accuracy if done carefully, making it a standard optimization technique for deploying CNNs on resource-constrained hardware.

Exam trap

CompTIA often tests the misconception that increasing model capacity (larger filters or more layers) improves performance without considering the trade-off in inference speed, leading candidates to select options that actually worsen latency on edge devices.

68
Multi-Selecthard

Which TWO of the following are key characteristics of unsupervised learning?

Select 2 answers
A.It uses data without labeled responses
B.It predicts a target variable based on input features
C.It discovers hidden patterns or groupings in data
D.It requires a reward signal to learn optimal actions
E.It typically requires a separate validation set for tuning
AnswersA, C

Unsupervised learning works with unlabeled data.

Why this answer

Unsupervised learning algorithms, such as k-means clustering or hierarchical clustering, operate exclusively on input data that has no labeled responses. The model must infer the underlying structure directly from the features without any ground-truth outputs to guide it, which is the defining characteristic of unsupervised learning.

Exam trap

CompTIA often tests the distinction between supervised, unsupervised, and reinforcement learning by presenting a characteristic that is true for one paradigm but not the other, and the trap here is that candidates may confuse 'predicting a target variable' (supervised) with 'discovering hidden patterns' (unsupervised) because both involve analyzing input features.

69
MCQmedium

A financial analyst is using a linear regression model to predict housing prices based on square footage. The model's predictions are consistently off by a large margin for both very small and very large houses, while performing well for average-sized houses. Which phenomenon is most likely occurring?

A.Underfitting
B.Multicollinearity
C.Overfitting
D.Non-linearity in the relationship
AnswerD

The pattern of errors—good fit in the middle but poor at extremes—suggests the true relationship between square footage and price is non-linear. A linear model cannot capture curvature, so it systematically under- or over-predicts at the tails. This is a classic sign of model misspecification due to assuming linearity when a polynomial or other non-linear form is needed.

Why this answer

The model's errors are systematic at the extremes of the predictor range, which is a hallmark of assuming a linear relationship when the true relationship is non-linear. A linear regression cannot bend to fit curved patterns, so it underfits the tails. Overfitting would show high variance, underfitting would show poor fit everywhere, and multicollinearity requires multiple correlated predictors.

Exam trap

The trap here is misdiagnosing systematic errors at the extremes as overfitting or underfitting, when the specific pattern points to a wrong functional form.

70
MCQeasy

A company implements a chatbot using a rule-based system. Users complain the chatbot cannot handle new queries. Which AI approach should be considered to improve flexibility?

A.Expert system
B.Natural language processing (NLP)
C.Robotic process automation
D.Machine learning
AnswerD

Machine learning trains models on example utterances so the chatbot generalises to paraphrases and unseen queries, rather than matching only prewritten rules. This statistical generalisation supplies the flexibility the rule-based system lacks when users phrase requests in new ways.

Why this answer

Machine learning (ML) enables a chatbot to learn from new data and adapt to unseen queries, unlike a static rule-based system. By training on historical conversations, an ML model can generalize patterns and handle novel inputs without requiring explicit rules for every scenario.

Exam trap

CompTIA often tests the misconception that NLP alone is sufficient for adaptive chatbots, but NLP is a component of understanding language, not a learning mechanism—machine learning is required for flexibility.

How to eliminate wrong answers

Option A is wrong because an expert system is also rule-based, relying on a fixed knowledge base and inference engine, which cannot adapt to new queries without manual rule updates. Option B is wrong because natural language processing (NLP) alone provides text understanding (e.g., tokenization, parsing) but does not inherently learn from new data; it must be combined with ML for adaptive behavior. Option C is wrong because robotic process automation (RPA) automates repetitive, rule-based tasks in structured environments and cannot handle the variability of new, unseen queries.

71
MCQeasy

A data scientist wants to group customers into segments based on purchasing behavior without predefined labels. Which type of machine learning is most appropriate?

A.Reinforcement learning
B.Supervised learning
C.Unsupervised learning
D.Semi-supervised learning
AnswerC

Unsupervised learning finds structure in unlabelled data, so clustering algorithms can segment customers by purchasing behaviour without predefined labels. Supervised approaches require labelled targets, which the scenario explicitly lacks, making unsupervised learning the appropriate choice for this discovery task.

Why this answer

Unsupervised learning is the correct choice because the data scientist has no predefined labels and wants to discover natural groupings in customer purchasing behavior. Clustering algorithms, such as K-means or DBSCAN, are used in unsupervised learning to segment data based on inherent patterns without any target variable.

Exam trap

CompTIA often tests the distinction between supervised and unsupervised learning by presenting a scenario with no labels, and the trap is that candidates may confuse clustering (unsupervised) with classification (supervised) or think semi-supervised applies when no labels exist at all.

How to eliminate wrong answers

Option A is wrong because reinforcement learning involves an agent learning from rewards and penalties by interacting with an environment, not grouping unlabeled data. Option B is wrong because supervised learning requires labeled training data with known outcomes, which is not available in this scenario. Option D is wrong because semi-supervised learning uses a small amount of labeled data alongside a larger unlabeled dataset, but the question explicitly states there are no predefined labels.

72
MCQeasy

A company deploys an AI model to predict equipment failure. The model performs well on historical data but fails to generalize to new data from a different factory. Which concept best describes this issue?

A.Transfer learning
B.Underfitting
C.Overfitting
D.Bias-variance tradeoff
AnswerC

Overfitting occurs when a model memorises training data, including noise, rather than learning generalisable patterns. This directly explains the stem's constraint: strong performance on historical data but poor generalisation to new factory data. The model has fitted the training set too closely, so it cannot extrapolate to unseen distributions.

Why this answer

(Overfitting) is correct because the model learned patterns specific to the historical data from the original factory, including noise and factory-specific nuances, rather than generalizable features. When applied to new data from a different factory, those learned patterns do not hold, causing poor performance. This is the classic symptom of overfitting: high accuracy on training data but low accuracy on unseen data.

Exam trap

CompTIA often tests the distinction between overfitting and underfitting by describing a model that performs well on training data but poorly on new data, which candidates may mistakenly attribute to underfitting if they focus only on the poor generalization without noting the strong training performance.

How to eliminate wrong answers

Option A is wrong because transfer learning refers to leveraging knowledge from one task to improve learning on a related task, which is not the issue here—the model fails to generalize, not that it fails to transfer knowledge. Option B is wrong because underfitting occurs when the model is too simple to capture underlying patterns, resulting in poor performance on both training and new data, whereas here the model performs well on historical data. Option D is wrong because bias-variance tradeoff is a broader concept describing the balance between underfitting (high bias) and overfitting (high variance); while overfitting is a manifestation of high variance, the specific issue described is overfitting itself, not the tradeoff.

73
MCQhard

Refer to the exhibit. A team deploys a sentiment analysis model with this policy. After one month, the monitoring system triggers an alert for feature drift. Which action should the team take first?

A.Review the fairness check settings to ensure protected attributes are still relevant.
B.Immediately retrain the model on recent data to adapt to the drift.
C.Compare the current feature distributions with the training set to identify which features drifted.
D.Reduce the classification threshold to 0.5 to increase sensitivity.
AnswerC

Feature drift means input distributions have shifted away from the training data, so the first step is diagnostic: compare current feature distributions against the training set to identify which features drifted and by how much, before deciding whether to retrain or adjust monitoring thresholds.

Why this answer

When a monitoring system triggers an alert for feature drift, the first step is to diagnose which features have changed. Comparing current feature distributions with the training set identifies the specific features that drifted, enabling targeted remediation such as retraining with recent data or feature engineering. This aligns with the standard MLOps workflow for drift detection and response.

Exam trap

CompTIA often tests the misconception that any model alert should trigger immediate retraining, but the correct first step is always to diagnose the drift type and affected features before taking action.

How to eliminate wrong answers

Option A is wrong because fairness check settings and protected attributes are unrelated to feature drift; they address bias, not distribution shifts in input features. Option B is wrong because immediately retraining the model without first identifying which features drifted is premature and may waste resources or fail to address the root cause. Option D is wrong because reducing the classification threshold to 0.5 adjusts the decision boundary for sensitivity but does not correct feature distribution changes; it could degrade model performance further.

74
MCQmedium

A hospital's AI governance committee is reviewing a diagnostic model that performs well on the general population but poorly on a rare disease subgroup. The committee wants to determine whether the model's poor performance on this subgroup is due to a data problem or a model problem. Which action should the committee take FIRST to make this determination?

A.Analyze the distribution of the rare disease subgroup in the training data and compare it to the model's error rates on that subgroup.
B.Replace the model with a more complex neural network architecture that can capture more intricate patterns.
C.Retrain the model on the full dataset with a higher learning rate to improve overall accuracy.
D.Deploy the model only for the general population and exclude the rare disease subgroup from its use.
AnswerA

This action directly investigates whether the subgroup is underrepresented in the training data and whether errors are concentrated there. By comparing subgroup prevalence to error rates, the committee can identify data imbalance or bias as a root cause. It is the most informative first step before considering model architecture or hyperparameter changes.

Why this answer

The correct action is to analyze subgroup representation and error rates because it directly tests whether the poor performance stems from insufficient or unrepresentative training data. If the subgroup is rare in the data, the model may not learn its patterns; if the subgroup is well represented but errors remain high, the issue may be model-related. This diagnostic step guides subsequent fixes.

Exam trap

The trap here is assuming that improving overall accuracy or model complexity will automatically fix subgroup performance without first checking data representation.

75
MCQeasy

A chatbot developer uses a transformer-based model for customer service. Users complain that the chatbot sometimes gives offensive responses. Which technique should be applied first to mitigate this issue?

A.Increase the model size to improve its understanding of context.
B.Decrease the temperature parameter to make outputs more deterministic.
C.Train a separate classifier to detect offensive outputs in real time.
D.Review and filter the training dataset for offensive or biased language, then fine-tune the model.
AnswerD

Offensive outputs often stem from biased or toxic content in the training corpus. Auditing and filtering that dataset, then fine-tuning, removes the underlying cause rather than masking symptoms, making data remediation the correct first step before considering decoding or prompt-level controls.

Why this answer

The root cause of offensive responses in transformer-based models is typically biased or toxic language present in the training data. Reviewing and filtering the dataset to remove such content, followed by fine-tuning the model, directly addresses the source of the problem. This approach aligns with the principle of data-centric AI, where improving data quality is the first step before modifying model architecture or inference parameters.

Exam trap

CompTIA often tests the misconception that modifying inference parameters (like temperature) or adding post-processing classifiers can fix fundamental data quality issues, when in fact the first and most effective mitigation is to address the training data itself.

How to eliminate wrong answers

Option A is wrong because increasing model size does not inherently fix biased or offensive outputs; larger models can actually amplify existing biases in the training data due to increased capacity to memorize patterns. Option B is wrong because decreasing the temperature parameter makes outputs more deterministic (lower randomness) but does not prevent the model from generating offensive content that it has learned from the data; it only reduces creative variation, not toxicity. Option C is wrong because training a separate classifier to detect offensive outputs in real time is a reactive measure that adds latency and complexity, whereas the proactive first step should be to clean the training data; a classifier also cannot prevent the model from generating offensive content in the first place.

Page 1 of 2 · 100 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Ai Concepts Foundations questions.