Courseiva

CompTIA AI+ AI0-001 (AI0-001) — Questions 76150

754 questions total · 11pages · All types, answers revealed

Page 1

Page 2 of 11

Page 3
76
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

Correct; RL uses rewards to learn optimal actions.

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.

77
Multi-Selectmedium

A company is building an AI-based resume screening tool. They want to ensure the system is secure against data poisoning attacks during the training phase. Which THREE of the following are appropriate defensive measures?

Select 3 answers
A.Apply input sanitization to inference-time queries
B.Use robust statistical methods (e.g., trimmed mean) that are less sensitive to outliers
C.Validate and clean training data to remove anomalies and outliers
D.Restrict training data sources to trusted, verified providers only
E.Implement differential privacy during model training
AnswersB, C, D

Robust aggregation techniques reduce the impact of maliciously inserted outliers on the model's learned parameters.

Why this answer

Robust statistical methods like trimmed mean reduce the influence of outlier data points that could be injected by an adversary during training. By discarding extreme values, the model becomes less sensitive to poisoned samples, which is a key defense against data poisoning attacks that aim to corrupt the learned parameters.

Exam trap

The AI0-001 exam often tests the distinction between training-phase attacks (data poisoning) and inference-phase attacks (evasion), so candidates mistakenly apply inference-time defenses like input sanitization to training security.

78
MCQmedium

A company using an AI-based hiring tool receives a candidate request for explanation of an automated rejection. Which GDPR principle is most directly relevant?

A.Right to erasure
B.Right to data portability
C.Right to access
D.Right to explanation
AnswerD

Article 22 and Recitals 71-72 of GDPR provide a right to explanation of decisions based solely on automated processing.

Why this answer

The GDPR includes a right to explanation for automated individual decision-making, including profiling. The right to access is broader. The right to erasure is about deletion.

The right to data portability is about data transfer.

79
MCQhard

A company trains a sentiment analysis model on customer reviews. An attacker submits hundreds of reviews with the word 'excellent' attached to negative feedback, causing the model to classify negative reviews as positive. This is an example of which attack?

A.Data poisoning
B.Model extraction
C.Adversarial example
D.Prompt injection
AnswerA

Data poisoning involves corrupting the training dataset to alter model behavior.

Why this answer

Data poisoning occurs when an attacker deliberately corrupts the training data to manipulate the model's behavior. By injecting hundreds of reviews that pair the word 'excellent' with negative sentiment, the attacker shifts the model's learned decision boundary, causing it to misclassify genuinely negative reviews as positive. This directly undermines the integrity of the training dataset, which is the hallmark of a data poisoning attack.

Exam trap

The AI0-001 exam often tests the distinction between attacks that occur during training (data poisoning) versus attacks that occur during inference (adversarial examples), so candidates mistakenly choose adversarial example because they focus on the input manipulation rather than the stage of the attack lifecycle.

How to eliminate wrong answers

Option B is wrong because model extraction involves querying a model to reconstruct its parameters or architecture, not corrupting its training data. Option C is wrong because adversarial examples are crafted inputs that fool a trained model at inference time, not during training. Option D is wrong because prompt injection targets large language models by manipulating input prompts to override instructions, not by corrupting training data.

80
Multi-Selectmedium

A company is training a model on proprietary data and wants to prevent data poisoning. Which TWO practices are most important? (Select TWO.)

Select 2 answers
A.Implementing access controls on the training dataset
B.Validating the integrity of training data
C.Using a larger model
D.Increasing training epochs
E.Using homomorphic encryption
AnswersA, B

Access controls restrict who can modify the training data, reducing the risk of poisoning.

Why this answer

Implementing access controls on the training dataset (Option A) is critical because it restricts who can read, modify, or delete the data, thereby preventing unauthorized actors from injecting malicious samples. This is a fundamental security measure to protect the integrity of the training pipeline against data poisoning attacks. Validating the integrity of training data (Option B) ensures that the data has not been tampered with, for example by using checksums or cryptographic hashes, which directly counters poisoning attempts that rely on corrupted input.

Exam trap

The AI0-001 exam often tests the distinction between security controls that prevent attacks (access controls, integrity validation) versus performance tuning (model size, epochs) or privacy techniques (homomorphic encryption), leading candidates to confuse data poisoning prevention with unrelated optimizations.

81
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 often uses unsupervised methods.

Why this answer

Unsupervised learning discovers hidden patterns or structures in unlabeled data. Detecting unusual patterns in network traffic (option C) is a classic anomaly detection task, often performed using clustering or autoencoders, where the model learns 'normal' behavior and flags deviations without requiring labeled attack data.

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.

82
MCQeasy

A data scientist is deploying a machine learning model to production. The model was trained on an imbalanced dataset. Which technique should be used during deployment to mitigate bias without retraining the model?

A.Apply post-processing calibration to adjust decision thresholds
B.Use an ensemble of models trained on balanced subsets
C.Rebalance the dataset using SMOTE before inference
D.Remove sensitive features from the input data
AnswerA

Post-processing calibration adjusts thresholds to improve fairness without retraining.

Why this answer

Post-processing calibration adjusts the decision threshold of the model to account for the class imbalance present in the training data. This technique modifies the output probabilities or classification boundary without requiring access to the original training data or retraining the model, making it suitable for deployment scenarios where the model is already fixed.

Exam trap

CompTIA often tests the distinction between techniques applied during training versus deployment, and the trap here is that candidates mistakenly choose SMOTE or ensemble methods, which require retraining, instead of recognizing that threshold adjustment is a valid post-deployment bias mitigation strategy.

How to eliminate wrong answers

Option B is wrong because using an ensemble of models trained on balanced subsets requires retraining or modifying the model architecture, which violates the constraint of not retraining the model. Option C is wrong because SMOTE (Synthetic Minority Over-sampling Technique) is a data preprocessing method applied before training to balance the dataset, not during inference; applying it at inference time would require access to the original training data and would alter the input distribution, which is not feasible or correct. Option D is wrong because simply removing sensitive features does not mitigate bias caused by imbalanced data; bias can still propagate through correlated features, and this approach does not address the class imbalance issue directly.

83
MCQmedium

A company deploys a machine learning model for fraud detection. After one month, the false positive rate has increased significantly. The model is retrained weekly on all historical data. What is the MOST effective immediate action?

A.Replace the model with a simpler logistic regression model.
B.Continue retraining weekly on all historical data.
C.Adjust the classification threshold to reduce false positives.
D.Retrain the model on only the most recent 30 days of data.
AnswerD

Recent data captures current fraud patterns, reducing false positives.

Why this answer

The false positive rate increase suggests the model is reacting to a shift in the underlying data distribution (concept drift). Retraining on only the most recent 30 days of data (option D) is the most effective immediate action because it focuses the model on the current fraud patterns, discarding stale historical data that may no longer be representative. This approach directly addresses the drift by adapting the model to the latest behavior.

Exam trap

CompTIA often tests the misconception that adjusting the classification threshold is a sufficient fix for model degradation, when in reality it only trades off error types without addressing the underlying data drift that caused the false positive increase.

How to eliminate wrong answers

Option A is wrong because replacing the model with a simpler logistic regression model does not address the root cause of concept drift and may reduce predictive performance without solving the false positive issue. Option B is wrong because continuing to retrain weekly on all historical data will dilute the influence of recent patterns with outdated data, likely perpetuating the high false positive rate. Option C is wrong because adjusting the classification threshold is a post-hoc fix that reduces false positives at the cost of increasing false negatives, and it does not correct the underlying model drift or data quality issue.

84
MCQhard

A financial institution uses a deep learning model for loan approvals. Under the EU AI Act, this is considered a high-risk AI system. Which mandatory requirement must the institution fulfill before deployment?

A.Obtain certification from an ISO 27001 auditor
B.Publish the model's source code publicly
C.Register the AI system with the national data protection authority
D.Conduct a risk assessment and bias testing
AnswerD

The EU AI Act mandates a risk management system and bias audits for high-risk systems.

Why this answer

Under the EU AI Act, high-risk AI systems must undergo a conformity assessment that includes a risk assessment and bias testing to ensure fairness, transparency, and non-discrimination before deployment. This requirement is mandated by Articles 9 and 10 of the Act, which specifically address risk management and data governance for high-risk systems. Option D correctly identifies this mandatory step, as the institution must demonstrate that the model does not produce biased outcomes that could lead to discriminatory lending practices.

Exam trap

The AI0-001 exam often tests the misconception that all AI systems require public transparency or external certification, but the EU AI Act specifically mandates internal risk and bias assessments for high-risk systems, not broad publication or ISO standards.

How to eliminate wrong answers

Option A is wrong because ISO 27001 certification pertains to information security management systems, not to AI-specific risk or bias compliance under the EU AI Act; the Act does not require ISO 27001 certification for high-risk AI systems. Option B is wrong because the EU AI Act does not mandate public disclosure of source code; doing so could violate trade secrets and intellectual property rights, and transparency requirements are limited to documentation and logging, not open-source publication. Option C is wrong because registration with a national data protection authority is not a pre-deployment requirement for high-risk AI systems under the EU AI Act; instead, the Act requires registration in an EU-wide database managed by the European Commission, not individual national authorities.

85
Multi-Selectmedium

A healthcare organization is deploying an AI model to predict patient readmission risk. They must comply with regulations that protect patient privacy. Which TWO techniques should they implement to enhance privacy preservation?

Select 2 answers
A.Data augmentation
B.Differential privacy
C.Model quantization
D.Federated learning
E.Dropout regularization
AnswersB, D

Differential privacy limits information leakage about individuals.

Why this answer

Differential privacy (B) is correct because it adds calibrated noise to the training data or model outputs, ensuring that the inclusion or exclusion of any single patient's record does not significantly affect the model's predictions. This provides a formal mathematical guarantee of privacy, which is essential for complying with regulations like HIPAA that protect patient data.

Exam trap

The AI0-001 exam often tests the misconception that any regularization or optimization technique (like dropout or quantization) can provide privacy, when in fact only methods that explicitly limit information leakage (like differential privacy and federated learning) are designed for that purpose.

86
Multi-Selecthard

Which THREE are effective methods for ensuring data privacy in AI training? (Choose three.)

Select 3 answers
A.Data encryption at rest
B.Data anonymization
C.Differential privacy
D.Data replication
E.Federated learning
AnswersB, C, E

Removes personally identifiable information.

Why this answer

Data anonymization (B) is correct because it removes or obfuscates personally identifiable information (PII) from training datasets, ensuring that individuals cannot be re-identified. This is a foundational privacy technique that directly addresses regulatory requirements like GDPR and CCPA by breaking the link between data and specific individuals.

Exam trap

The AI0-001 exam often tests the distinction between security controls (like encryption) and privacy-preserving techniques, trapping candidates who confuse data protection at rest with privacy during model training.

87
MCQmedium

A company is fine-tuning a large language model using PEFT (Parameter-Efficient Fine-Tuning) to reduce GPU memory usage. They have limited hardware and need to fine-tune a 70B parameter model on a single GPU with 24 GB VRAM. Which technique is MOST suitable?

A.Full fine-tuning with gradient checkpointing
B.QLoRA (Quantization-aware LoRA) with 4-bit quantization
C.Instruction tuning with a smaller 7B model
D.LoRA (Low-Rank Adaptation) alone
AnswerB

QLoRA quantizes the base model to 4-bit, drastically reducing memory usage, and uses LoRA adapters for fine-tuning, fitting a 70B model in 24GB VRAM.

Why this answer

QLoRA combines quantization (4-bit) and LoRA to fine-tune very large models on limited hardware, achieving significant memory reduction while maintaining performance.

88
MCQeasy

A data scientist notices that a binary classification model consistently predicts the majority class. Which data engineering technique should be applied?

A.Feature scaling
B.Dimensionality reduction
C.Polynomial features
D.Oversampling
AnswerD

Oversampling (e.g., SMOTE) creates synthetic samples of the minority class to balance the dataset.

Why this answer

Oversampling (Option D) is correct because the model's bias toward the majority class indicates a class imbalance problem. By synthetically increasing the number of minority class samples (e.g., using SMOTE or random oversampling), the training data becomes more balanced, allowing the classifier to learn decision boundaries that are not skewed toward the majority class.

Exam trap

CompTIA often tests the misconception that feature scaling or dimensionality reduction can fix class imbalance, when in reality these techniques address different issues like feature magnitude or curse of dimensionality, not skewed target distributions.

How to eliminate wrong answers

Option A is wrong because feature scaling normalizes the range of input features (e.g., via min-max scaling or standardization) but does not address class imbalance; it only prevents features with larger magnitudes from dominating gradient-based optimization. Option B is wrong because dimensionality reduction (e.g., PCA or t-SNE) reduces the number of features to combat overfitting or noise, but it does not alter the class distribution, so the majority class bias remains. Option C is wrong because polynomial features create interaction or higher-degree terms from existing features to capture non-linear relationships, but they do not change the ratio of majority to minority samples, leaving the imbalance untouched.

89
Multi-Selecthard

An AI engineer is fine-tuning a transformer-based language model for a domain-specific task. They want to improve the model's factual accuracy and reduce hallucinations. Which THREE strategies should they consider? (Select THREE)

Select 3 answers
A.Increase the model's context window size beyond the training limit
B.Fine-tune the model on a curated domain-specific corpus
C.Use a higher temperature setting during generation
D.Apply chain-of-thought prompting for complex queries
E.Implement Retrieval-Augmented Generation (RAG)
AnswersB, D, E

Fine-tuning adapts the model's knowledge to the domain, improving accuracy.

Why this answer

Fine-tuning on a curated domain-specific corpus directly aligns the model with the factual patterns and terminology of the target domain. This supervised learning process adjusts the model's weights to reduce the probability of generating incorrect or hallucinated content by reinforcing ground-truth examples from the domain.

Exam trap

The CompTIA AI+ exam often tests the misconception that increasing randomness (higher temperature) or extending context windows beyond training limits can improve factual accuracy, when in fact these techniques degrade reliability.

90
MCQhard

A team is training a recurrent neural network (RNN) with LSTM units to predict stock prices. The validation loss is significantly higher than the training loss. Which action is MOST likely to reduce the gap?

A.Increase the number of LSTM units
B.Increase the number of training epochs
C.Reduce the sequence length
D.Increase the dropout rate in LSTM layers
AnswerD

Dropout regularises the network, reducing overfitting and closing the train-validation gap.

Why this answer

A large gap between training and validation loss indicates overfitting. Increasing dropout (a regularisation technique) reduces overfitting by preventing co-adaptation of neurons. Increasing LSTM units or epochs would worsen overfitting, and reducing sequence length may lose important temporal patterns.

91
MCQhard

A team is fine-tuning a large language model using LoRA. They have limited GPU memory. Which technique can further reduce memory consumption while maintaining similar fine-tuning quality?

A.Fine-tune all layers instead of using LoRA
B.Increase the rank of LoRA adapters
C.Use QLoRA with 4-bit quantization of the base model
D.Use a larger batch size
AnswerC

QLoRA quantizes the base model to 4 bits, significantly reducing memory while LoRA adapters handle fine-tuning.

Why this answer

QLoRA combines 4-bit quantization of the base model with LoRA adapters, drastically reducing memory usage while preserving fine-tuning performance.

92
MCQmedium

A data scientist is building a regression model to predict house prices. The dataset contains features such as square footage, number of bedrooms, and year built. Initial model performance is poor, and the scientist suspects that feature engineering could help. Which approach is most likely to improve model accuracy?

A.Use only linear features because polynomial terms overfit
B.Remove all features except square footage to reduce noise
C.Create interaction terms such as bedrooms times square footage
D.Add random noise to the target variable to increase variance
AnswerC

Interaction terms capture combined effects of features, often improving regression models.

Why this answer

Creating interaction terms like bedrooms × square footage captures non-linear relationships and synergies between features that a linear model alone cannot represent. In real estate, the effect of square footage on price often depends on the number of bedrooms (e.g., a large house with few bedrooms may be less valuable), so interaction terms allow the model to learn these conditional patterns, directly improving predictive accuracy.

Exam trap

CompTIA often tests the misconception that adding more features always causes overfitting, when in fact carefully engineered interaction terms can reduce bias without excessive variance if regularized properly.

How to eliminate wrong answers

Option A is wrong because restricting to only linear features ignores potentially valuable non-linear patterns; polynomial terms can be regularized to avoid overfitting and are often necessary for complex relationships. Option B is wrong because removing all features except square footage discards important predictors like bedrooms and year built, which carry significant signal for house prices, thus increasing bias and reducing accuracy. Option D is wrong because adding random noise to the target variable artificially increases variance and corrupts the ground truth, making it harder for the model to learn the true underlying patterns and degrading performance.

93
MCQeasy

A data science team is preparing a dataset for a supervised learning task. They split the data into training and test sets. The team then normalizes the features using the mean and standard deviation calculated from the entire dataset before splitting. What issue does this introduce?

A.It improves model generalization
B.It introduces train/test leakage
C.It causes the model to overfit the training data
D.It reduces the variance of the features
AnswerB

Correct: normalizing using global statistics means test set information is used to transform training data, leaking information.

Why this answer

Using statistics from the entire dataset before splitting causes test data information to influence the training process, leading to train/test leakage and overly optimistic performance estimates.

94
Multi-Selecthard

Which TWO strategies are effective for handling missing values in a dataset when the missingness is not random (MNAR)?

Select 2 answers
A.Multiple imputation using chained equations
B.Treat missing as a separate category (e.g., for categorical features)
C.Listwise deletion
D.KNN imputation
E.Mean imputation
AnswersA, B

Multiple imputation can handle MNAR if the imputation model incorporates variables that predict missingness.

Why this answer

Multiple imputation using chained equations (MICE) is effective for MNAR because it models each variable with missing values as a function of other variables, iteratively generating plausible values that preserve the relationships and uncertainty in the data. This approach can account for the systematic pattern of missingness by incorporating auxiliary variables that are correlated with both the missing values and the missingness mechanism, making it robust even when missingness depends on unobserved data.

Exam trap

CompTIA often tests the misconception that mean imputation or KNN imputation are safe defaults for any missing data pattern, but the trap here is that MNAR requires methods that explicitly model the missingness mechanism, which simple imputation techniques fail to do.

95
MCQhard

Refer to the exhibit. A data engineer notices that the batch processing step is taking too long and causing delays. Which change would most likely reduce the latency?

A.Increase the parallelism of the Spark job
B.Move feature engineering to the stream processing step in Flink
C.Replace Apache Flink with Apache Storm for stream processing
D.Change the output format from Parquet to CSV
AnswerB

Performing feature engineering in stream reduces batch processing time and overall latency.

Why this answer

Moving feature engineering from the batch Spark job to the stream processing Flink job reduces the workload on the batch step, making it faster. Replacing Flink, increasing parallelism, or changing output format do not address the bottleneck as effectively.

96
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

97
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 ignores neurons during training to reduce overfitting, and early stops when validation loss worsens, preventing further overfitting.

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.

98
MCQmedium

An LLM-based chatbot is being deployed for customer support. The security team wants to prevent the bot from generating toxic or harmful responses. Which defense is MOST appropriate?

A.Input validation and sanitization
B.Rate limiting on API requests
C.Output filtering and guardrails
D.Red teaming the AI system
AnswerC

Output filters and guardrails can detect and block harmful content in real-time.

Why this answer

Output filtering and guardrails can block harmful content before it reaches the user. Input validation sanitizes inputs, red teaming identifies vulnerabilities, and rate limiting prevents abuse but not toxic content.

99
MCQhard

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

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

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

Why this answer

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

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

100
MCQmedium

A data scientist is using a linear regression model to predict house prices and observes that the model performs well on training data but poorly on test data. Which regularisation technique is MOST appropriate to reduce overfitting?

A.L1 regularisation (Lasso)
B.Dropout
C.L2 regularisation (Ridge)
D.Data augmentation
AnswerC

Ridge adds squared magnitude penalty, shrinking coefficients smoothly, which helps generalise.

Why this answer

L2 regularisation (Ridge) adds a penalty term equal to the sum of the squared coefficients to the loss function, which shrinks coefficient magnitudes without forcing them to zero. This reduces variance and overfitting by making the model less sensitive to individual features, which is ideal when the model performs well on training data but poorly on test data due to high variance.

Exam trap

CompTIA often tests the distinction between L1 and L2 regularisation by presenting a scenario where feature selection is not needed, and candidates mistakenly choose Lasso because they confuse 'reducing coefficients' with 'eliminating coefficients'.

How to eliminate wrong answers

Option A is wrong because L1 regularisation (Lasso) performs feature selection by shrinking some coefficients exactly to zero, which is more appropriate when you suspect many features are irrelevant, not for general variance reduction. Option B is wrong because Dropout is a regularisation technique specific to neural networks, not linear regression models. Option D is wrong because data augmentation is used to artificially increase the size of the training dataset, typically for image or text data, and does not directly address overfitting in a linear regression context.

101
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 drops neurons to reduce overfitting.

Why this answer

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

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.

102
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

Correct; adversarial debiasing learns fair representations.

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.

103
MCQeasy

A bank uses an AI model to approve loans. During an audit, it is found that the model denies loans at a higher rate for a certain ethnic group. Which governance principle is primarily violated?

A.Accountability
B.Fairness
C.Transparency
D.Privacy
AnswerB

Fairness requires non-discrimination, which is violated here.

Why this answer

The model's disparate impact on a specific ethnic group directly violates the principle of Fairness, which requires that AI systems do not discriminate based on protected attributes such as race, ethnicity, or gender. In lending, fairness is often assessed using metrics like demographic parity or equal opportunity, and a higher denial rate for one group indicates a lack of algorithmic fairness.

Exam trap

The AI0-001 exam often tests the distinction between Fairness and Transparency, where candidates mistakenly choose Transparency because they think 'explaining the bias' is the primary issue, but the question asks which principle is violated by the biased outcome itself.

How to eliminate wrong answers

Option A is wrong because Accountability refers to the assignment of responsibility for the model's decisions and outcomes, not the presence of bias itself; while the bank must be accountable for the bias, the primary violation here is the discriminatory outcome. Option C is wrong because Transparency concerns the ability to explain and understand how the model makes decisions (e.g., through interpretability or documentation), but the core issue is the biased result, not a lack of explanation. Option D is wrong because Privacy involves the protection of personal data and compliance with regulations like GDPR or CCPA; the scenario does not describe unauthorized data use or exposure, only discriminatory lending decisions.

104
MCQhard

A company uses Azure OpenAI to generate customer support responses. The team notices that repeated queries with similar context incur high costs due to token usage. They want to reduce costs without affecting response quality. Which strategy is MOST effective?

A.Use a larger model to improve efficiency
B.Increase the frequency penalty
C.Reduce the max_tokens parameter
D.Implement prompt caching
AnswerD

Prompt caching avoids recomputing common prefixes, reducing token usage.

Why this answer

Prompt caching stores and reuses tokens from previous queries, reducing token consumption for similar requests and lowering costs without quality loss.

105
MCQeasy

An AI practitioner needs to measure the performance of a binary classification model for disease detection, where the cost of false negatives is very high. Which metric should be prioritized?

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

Recall measures the proportion of actual positives correctly identified, directly addressing the cost of false negatives.

Why this answer

Recall (true positive rate) minimises false negatives, which is critical when missing a positive case is dangerous.

106
MCQmedium

A data science team is training an image classification model for a medical imaging application. To prevent data leakage, they must partition the dataset correctly. Which approach ensures that no patient images appear in both training and test sets?

A.Split by patient ID so that all images of a patient go to one set only
B.Shuffle the dataset and take the first 80% for training and last 20% for testing
C.Use k-fold cross-validation without grouping
D.Randomly split all images into training and test sets
AnswerA

Splitting by patient ID ensures no patient appears in both training and test, preventing leakage.

Why this answer

Data leakage occurs when information from the test set leaks into training. Splitting by patient ID ensures that all images from the same patient are kept together in one partition.

107
Multi-Selecteasy

A data engineer is preparing a dataset for a binary classification model. The dataset has 10,000 samples with 100 features. To improve model performance and reduce training time, the engineer decides to perform feature selection. Which two techniques are appropriate for this task? (Select TWO).

Select 2 answers
A.Normalization
B.Recursive Feature Elimination (RFE)
C.L1 Regularization
D.One-Hot Encoding
E.Principal Component Analysis (PCA)
AnswersB, C

RFE selects features by removing the least important ones iteratively.

Why this answer

Recursive Feature Elimination (RFE) is an appropriate feature selection technique because it iteratively removes the least important features based on a model's feature importance scores or coefficients, directly reducing the feature count from 100 to a smaller subset. This improves model performance by eliminating irrelevant or redundant features and reduces training time by decreasing dimensionality.

Exam trap

CompTIA often tests the distinction between feature selection (keeping original features) and dimensionality reduction (creating new features), so candidates mistakenly select PCA thinking it selects features, when it actually transforms them into principal components.

108
MCQmedium

Based on the exhibit, what is the most likely cause of the pod failure and its solution?

A.The node has insufficient CPU; add more CPU.
B.The pod is configured with wrong GPU drivers; update drivers.
C.The model is too large; use a smaller model.
D.The container memory limit is too low; increase the memory limit in the pod spec.
AnswerD

OOMKilled specifically indicates memory exhaustion; raising the limit is the direct fix.

Why this answer

The pod failure is caused by an OOMKilled (Out of Memory) error, as indicated by the pod status in the exhibit. When a container exceeds its memory limit, Kubernetes terminates it with an OOMKilled exit code. Increasing the memory limit in the pod spec allows the container to allocate more memory, resolving the failure.

Exam trap

CompTIA often tests the distinction between resource exhaustion errors (OOMKilled vs. CPU throttling) and configuration errors (driver issues), leading candidates to incorrectly attribute a memory limit issue to a hardware or driver problem.

How to eliminate wrong answers

Option A is wrong because the exhibit shows no CPU-related errors or resource pressure; the failure is due to memory exhaustion, not insufficient CPU. Option B is wrong because GPU driver issues would manifest as device plugin errors or initialization failures, not an OOMKilled status. Option C is wrong because the model size is not directly indicated as the cause; the pod is failing due to memory limits, and using a smaller model might reduce memory usage but does not address the misconfigured resource limit.

109
MCQmedium

A data scientist is building a recommendation system using Apache Spark for feature engineering. They need to process streaming user click data in real-time before feeding into the model. Which tool should they use for the streaming data ingestion?

A.Amazon S3
B.Apache Kafka
C.Airflow
D.Snowflake
AnswerB

Kafka supports high-throughput, real-time data streams that can be processed by Spark.

Why this answer

Apache Kafka is the correct choice because it is a distributed streaming platform designed for high-throughput, fault-tolerant, real-time data ingestion. It acts as a durable message broker that can ingest streaming click data and make it available for Spark Structured Streaming to process in micro-batches or continuous processing mode, which is essential for real-time feature engineering in a recommendation system.

Exam trap

CompTIA often tests the distinction between storage, orchestration, and streaming tools, and the trap here is that candidates confuse batch-oriented tools like S3 or Airflow with real-time streaming ingestion, overlooking Kafka's role as a dedicated event streaming platform.

How to eliminate wrong answers

Option A is wrong because Amazon S3 is an object storage service, not a streaming ingestion tool; it lacks the low-latency, pub-sub messaging capabilities required for real-time data streaming. Option C is wrong because Airflow is a workflow orchestration tool for scheduling batch jobs, not a real-time streaming ingestion platform; it cannot handle continuous, event-driven data streams. Option D is wrong because Snowflake is a cloud-based data warehouse optimized for analytical queries on structured data, not for real-time streaming ingestion; it does not provide a pub-sub or message queue interface for live click data.

110
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 features (e.g., process creation frequency, registry changes) help the model learn behaviors common to malware, improving detection of new variants.

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.

111
MCQeasy

During data preparation for a classification model, the data scientist notices that one class has 95% of the samples and the other has only 5%. Which technique is MOST appropriate to address this imbalance?

A.Shuffle the data randomly before each training epoch
B.Remove the minority class samples entirely
C.Use a larger learning rate to force the model to pay attention to the minority class
D.Apply SMOTE (Synthetic Minority Over-sampling Technique) to generate synthetic samples for the minority class
AnswerD

SMOTE creates synthetic minority samples, balancing the dataset and improving model performance without discarding data.

Why this answer

Resampling techniques like SMOTE generate synthetic samples for the minority class or undersample the majority class, directly addressing class imbalance.

112
MCQmedium

A data engineer needs to design a data pipeline for a real-time fraud detection system. The system requires low-latency processing of streaming transactions. Which architecture is most appropriate?

A.Stream processing with Apache Kafka and Flink
B.Data lake with Apache Spark
C.Batch processing with Apache Hadoop
D.Microservices architecture with REST APIs
AnswerA

Stream processing provides low-latency real-time analysis.

Why this answer

Apache Kafka provides a distributed, fault-tolerant event streaming platform that ingests high-throughput transaction data with low latency, while Apache Flink offers true stream processing with exactly-once semantics and sub-second event-time processing. Together, they enable real-time fraud detection by analyzing transactions as they arrive, without the delays inherent in batch or micro-batch approaches.

Exam trap

CompTIA often tests the distinction between true stream processing (e.g., Flink, Kafka Streams) and micro-batch or near-real-time processing (e.g., Spark Streaming), where candidates mistakenly assume that any 'streaming' API (like Spark Streaming) is equivalent to low-latency stream processing.

How to eliminate wrong answers

Option B is wrong because a data lake with Apache Spark typically relies on micro-batch processing (e.g., Spark Streaming with a minimum batch interval of ~100ms), which introduces higher latency than true stream processing and is unsuitable for sub-second fraud detection. Option C is wrong because batch processing with Apache Hadoop (e.g., MapReduce) is designed for high-throughput, high-latency processing of large static datasets, not for real-time streaming where transactions must be evaluated within milliseconds. Option D is wrong because microservices architecture with REST APIs is a design pattern for building distributed services, not a data pipeline technology; REST APIs introduce synchronous request-response overhead and cannot natively handle continuous, unbounded data streams with low-latency stateful processing.

113
MCQmedium

A team is developing a sentiment analysis model and obtains the following performance on the test set: accuracy=0.92, precision=0.75, recall=0.80, F1=0.77. The baseline majority-class classifier achieves 0.85 accuracy. Which conclusion is MOST justified?

A.The model should use a different evaluation metric like BLEU
B.The model likely suffers from class imbalance, as the gap between accuracy and precision suggests
C.The model is excellent because accuracy is high
D.The model has high variance and is overfitting
AnswerB

High accuracy with lower precision/recall is a classic sign of imbalance; the model predicts majority class too often.

Why this answer

Accuracy is high but precision and recall are notably lower, indicating class imbalance where the model biases toward the majority class, inflating accuracy.

114
MCQmedium

An AI system used for hiring has been found to exhibit racial bias against certain candidates. Which step should the organization take to mitigate this?

A.Remove all demographic features from the model.
B.Use a different algorithm that is inherently unbiased.
C.Regularly audit model predictions across demographic groups and retrain with fairness constraints.
D.Hire more diverse data scientists.
AnswerC

This approach identifies and corrects bias systematically.

Why this answer

Bias in AI systems is often embedded in training data or model behavior, not just in feature selection. Regularly auditing predictions across demographic groups and retraining with fairness constraints (e.g., demographic parity or equalized odds) allows the organization to detect and correct disparate impact without sacrificing model performance. This aligns with the AI0-001 focus on continuous monitoring and iterative improvement in AI operations.

Exam trap

CompTIA often tests the misconception that removing sensitive attributes (like race or gender) automatically makes a model fair, when in reality proxy features and biased training data can perpetuate discrimination.

How to eliminate wrong answers

Option A is wrong because simply removing demographic features does not eliminate bias; proxy features (e.g., zip code, education level) can still encode the same discriminatory patterns, and the model may learn biased correlations from the remaining data. Option B is wrong because no algorithm is inherently unbiased; bias arises from data, labeling, and deployment context, so switching algorithms without addressing root causes will not guarantee fairness. Option D is wrong because hiring more diverse data scientists, while beneficial for broader perspectives, does not directly mitigate existing model bias; technical interventions like auditing and retraining with fairness constraints are required.

115
Multi-Selecthard

An organization is implementing an AI governance framework. Which THREE components are essential for compliance with ethical AI standards?

Select 3 answers
A.Data privacy protection measures (e.g., differential privacy).
B.Open-source licensing of all models.
C.Maximizing model accuracy to increase revenue.
D.Model explainability and interpretability mechanisms.
E.Regular bias auditing of models.
AnswersA, D, E

Privacy is a key ethical requirement.

Why this answer

Data privacy protection measures like differential privacy are essential for compliance with ethical AI standards because they ensure that individual data points cannot be re-identified from model outputs. Differential privacy works by adding calibrated noise to training data or query responses, providing mathematical guarantees against membership inference attacks. This directly addresses regulatory requirements such as GDPR and CCPA, making it a core component of any AI governance framework.

Exam trap

The AI0-001 exam often tests the misconception that open-source licensing or maximizing accuracy are ethical imperatives, when in fact they are operational or business choices that do not directly satisfy the core pillars of ethical AI (privacy, fairness, transparency, accountability).

116
MCQmedium

A data engineering team is designing a pipeline to train a model on streaming data. The data arrives in a time-series format. Which approach should they use to ensure the model reflects current trends without catastrophic forgetting?

A.Implement incremental learning with periodic validation
B.Use a sliding window of the most recent data for training
C.Deploy an ensemble of models trained on different time periods
D.Retrain the entire model from scratch every week
AnswerA

Incremental learning adapts to new data while retaining previous knowledge.

Why this answer

Incremental learning (also called online learning) allows the model to update its parameters continuously as new streaming data arrives, without requiring access to historical data. By coupling this with periodic validation on a held-out set, the team can detect concept drift and ensure the model adapts to current trends while avoiding catastrophic forgetting, which occurs when new updates overwrite previously learned patterns.

Exam trap

CompTIA often tests the misconception that a sliding window of recent data alone prevents catastrophic forgetting, but without a mechanism like elastic weight consolidation or replay buffers, the model still forgets older but recurring patterns.

How to eliminate wrong answers

Option B is wrong because a sliding window of only the most recent data discards older patterns entirely, which can cause catastrophic forgetting of long-term seasonality or trends. Option C is wrong because an ensemble of models trained on different time periods does not inherently adapt to streaming data; it requires retraining or adding new models over time and can become computationally expensive without addressing forgetting in individual models. Option D is wrong because retraining the entire model from scratch every week is inefficient for streaming data, introduces latency, and may still cause forgetting of intra-week patterns if the retraining window is too narrow.

117
MCQeasy

A company is building a recommendation system for an e-commerce platform. They want the system to learn from user purchase history and browsing behavior to suggest products. Which type of machine learning is most appropriate for this task?

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

Unsupervised learning can find patterns in user behavior without labels, suitable for recommendations.

Why this answer

Unsupervised learning is the most appropriate because the system must discover hidden patterns and groupings in user purchase history and browsing behavior without labeled outcomes. Recommendation systems often use clustering or association rule mining (e.g., market basket analysis) to identify product affinities and user segments, which are core unsupervised techniques. This allows the system to suggest products based on learned co-occurrence patterns rather than predefined categories.

Exam trap

CompTIA often tests the misconception that recommendation systems always require labeled data, leading candidates to choose supervised learning, but the key is that unsupervised learning excels at finding hidden structures in unlabeled behavioral data.

How to eliminate wrong answers

Option A is wrong because supervised learning requires labeled training data (e.g., explicit ratings or purchase/no-purchase labels), which the scenario does not provide; the system must learn from unlabeled behavioral data. Option B is wrong because semi-supervised learning still requires a small amount of labeled data to guide the learning, but the problem statement specifies only raw purchase history and browsing behavior with no labels. Option D is wrong because transfer learning involves applying knowledge from a pre-trained model on a different but related task, which is unnecessary here since the system can learn directly from the available data without needing to transfer from another domain.

118
MCQeasy

Which similarity metric is MOST appropriate for comparing dense vector embeddings in a vector store used for document retrieval, when the embeddings are normalized to unit length?

A.Jaccard similarity
B.Manhattan distance
C.Cosine similarity
D.Euclidean distance
AnswerC

Cosine similarity measures the angle between vectors and is standard for normalized embeddings, yielding best semantic match.

Why this answer

Cosine similarity is equivalent to dot product for normalized vectors and is the most common metric for semantic similarity. Euclidean distance is sensitive to magnitude and not ideal for normalized vectors.

119
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

Hybrid filtering uses item features to recommend niche items even with sparse interaction data.

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.

120
MCQmedium

A hospital deploys an AI diagnostic assistant that analyzes medical images. The system has been in use for six months, and radiologists have reported that the AI is increasingly confident in its predictions, but sometimes misses rare conditions. The AI ethics board is concerned about overreliance and potential harm from false negatives. They want to implement a governance framework that ensures appropriate human oversight. The hospital has a limited IT budget. What is the best approach?

A.Implement a human-in-the-loop process where the AI flags low-confidence or rare condition predictions for mandatory radiologist review
B.Add a warning to the AI interface that says 'This tool may miss rare conditions'
C.Require all AI predictions to be reviewed by a radiologist before final diagnosis
D.Increase the AI's false positive threshold to reduce missed cases
AnswerA

This balances efficiency with safety, ensuring oversight where it matters.

Why this answer

A human-in-the-loop process that triggers mandatory radiologist review only for low-confidence or rare-condition predictions directly addresses the risk of overreliance and false negatives without overwhelming the limited IT budget. This targeted oversight ensures that the AI's increasing confidence does not lead to missed rare conditions, while still allowing routine high-confidence predictions to proceed efficiently. The approach balances safety and resource constraints by focusing human attention where the AI is most likely to err.

Exam trap

CompTIA AI often tests the distinction between passive warnings (like option B) and active workflow controls (like option A), where candidates mistakenly believe that a simple disclaimer is sufficient for governance when actual process enforcement is required.

How to eliminate wrong answers

Option B is wrong because adding a static warning does not enforce any change in workflow or guarantee that radiologists will actually catch missed rare conditions; it merely shifts liability without reducing the risk of false negatives. Option C is wrong because requiring all AI predictions to be reviewed by a radiologist before final diagnosis would be prohibitively expensive and slow, defeating the purpose of using AI to improve throughput and contradicting the limited IT budget constraint. Option D is wrong because increasing the false positive threshold would reduce false negatives but would also increase false positives, potentially overwhelming radiologists with unnecessary alerts and degrading trust in the system, while not addressing the core issue of overreliance on the AI's confidence.

121
MCQmedium

A machine learning engineer is training a neural network for image classification. The training loss decreases slowly and the model accuracy improves only marginally each epoch. Which hyperparameter adjustment is MOST likely to accelerate convergence?

A.Add more hidden layers
B.Increase the batch size
C.Increase the learning rate
D.Decrease the number of epochs
AnswerC

A small learning rate causes slow convergence; increasing it can accelerate training.

Why this answer

The training loss decreasing slowly and accuracy improving marginally each epoch indicates that the learning rate is too small, causing the optimizer to take very small steps toward the minimum of the loss function. Increasing the learning rate allows the optimizer to take larger steps per update, which accelerates convergence. Option C is correct because adjusting the learning rate directly addresses the step size in gradient descent.

Exam trap

CompTIA AI often tests the misconception that adding more layers or increasing batch size always improves training speed, when in fact the learning rate is the primary hyperparameter controlling convergence rate.

How to eliminate wrong answers

Option A is wrong because adding more hidden layers increases model complexity and can lead to slower convergence or overfitting, not faster convergence. Option B is wrong because increasing the batch size reduces the variance of gradient estimates but does not directly speed up convergence; it can actually slow down training due to fewer weight updates per epoch. Option D is wrong because decreasing the number of epochs reduces training time but does not accelerate convergence per epoch; it may stop training before the model has converged.

122
MCQhard

A fraud detection model has high precision but low recall. The cost of false negatives is very high. Which threshold adjustment should be made?

A.Use class weights during training
B.Apply SMOTE to the training data
C.Decrease classification threshold
D.Increase classification threshold
AnswerC

Decreasing the threshold increases the number of positive predictions, raising recall and reducing false negatives.

Why this answer

Decreasing the classification threshold makes the model more sensitive, classifying more instances as positive. This increases recall by catching more true positives, directly addressing the high cost of false negatives, even though precision may drop.

Exam trap

The AI0-001 exam often tests the distinction between training-time techniques (like class weights or SMOTE) and post-training threshold tuning, trapping candidates who confuse data-level remedies with decision boundary adjustments.

How to eliminate wrong answers

Option A is wrong because using class weights during training rebalances the loss function to penalize false negatives more, which is a training-time adjustment, not a post-training threshold change. Option B is wrong because SMOTE oversamples the minority class in the training data to address class imbalance, which is a data preprocessing step, not a threshold adjustment. Option D is wrong because increasing the classification threshold makes the model more conservative, reducing false positives but further lowering recall, which worsens the false negative problem.

123
MCQmedium

A company is evaluating fairness metrics for a hiring model. They want to ensure that the model has similar true positive rates (TPR) across demographic groups. Which fairness metric should they use?

A.Calibration
B.Individual fairness
C.Demographic parity
D.Equalized odds
AnswerD

Equalized odds requires equal true positive rates and equal false positive rates across groups.

Why this answer

Equalized odds requires that the true positive rate and false positive rate are equal across groups. Demographic parity requires equal selection rates. Individual fairness requires similar individuals to be treated similarly.

Calibration ensures predicted probabilities match actual outcomes for each group. The scenario specifies TPR, which is part of equalized odds.

124
MCQmedium

A hospital wants to train a diagnostic model using data from multiple hospitals without sharing raw patient data. Which technique allows model training across decentralised data while preserving privacy?

A.Differential privacy applied to the combined dataset
B.Centralising all data in one location and anonymising it
C.Federated learning
D.Using pseudonymisation and then pooling the data
AnswerC

Federated learning enables collaborative model training without sharing raw data, keeping data at each hospital.

Why this answer

Federated learning trains a shared model by aggregating updates from local data without moving the data itself, preserving privacy. Differential privacy adds noise but doesn't decentralise data. Data centralisation violates privacy.

Anonymisation alone doesn't allow collaborative training.

125
MCQmedium

A bank wants to detect fraudulent transactions in real-time. The dataset is highly imbalanced (99.9% legitimate, 0.1% fraud). Which evaluation metric is MOST appropriate for model performance?

A.AUC-ROC
B.Accuracy
C.Recall
D.Precision
AnswerA

AUC-ROC is robust to imbalance and evaluates the model's ability to distinguish classes.

Why this answer

AUC-ROC is the most appropriate metric because it evaluates the model's ability to distinguish between the minority fraud class (0.1%) and the majority legitimate class across all classification thresholds, without being biased by the extreme class imbalance. Unlike accuracy, AUC-ROC remains robust when the dataset is 99.9% legitimate, as it measures the true positive rate against the false positive rate, providing a comprehensive view of model performance for rare event detection.

Exam trap

CompTIA often tests the misconception that accuracy is a reliable metric for imbalanced datasets, leading candidates to overlook that AUC-ROC or precision-recall curves are required when the minority class is extremely rare.

How to eliminate wrong answers

Option B (Accuracy) is wrong because in a highly imbalanced dataset (99.9% legitimate), a model that predicts all transactions as legitimate would achieve 99.9% accuracy, masking its complete failure to detect fraud. Option C (Recall) is wrong because while recall measures the proportion of actual fraud cases correctly identified, it ignores false positives, which can lead to an overwhelming number of false alerts in real-time transaction systems, degrading user experience and operational efficiency. Option D (Precision) is wrong because precision focuses only on the proportion of flagged transactions that are actually fraud, but it does not account for missed fraud cases (false negatives), which is critical in fraud detection where undetected fraud causes direct financial loss.

126
MCQmedium

A data scientist is selecting a model for a binary classification task where interpretability is critical because of regulatory requirements. The dataset has 20 features and 10,000 samples. Which model is MOST appropriate?

A.Neural network (MLP)
B.Decision tree
C.Gradient boosting machine
D.Random forest classifier
AnswerB

A single decision tree provides clear, human-readable decision rules, meeting regulatory interpretability needs.

Why this answer

Decision trees are inherently interpretable, showing the decision rules. Random forests and gradient boosting are ensembles that sacrifice interpretability for accuracy. Neural networks are black-box models.

127
MCQhard

A financial institution uses an AI model to approve loan applications. The model was trained on historical data that included biased lending practices. The bank's ethics committee wants to mitigate bias without removing protected attributes. Which approach best balances fairness and model performance?

A.Retrain the model using a balanced dataset
B.Remove all protected attributes from the training data
C.Post-process model outputs to adjust for demographic parity
D.Apply adversarial debiasing during training
AnswerD

Adversarial debiasing reduces bias by learning non-discriminatory representations.

Why this answer

Adversarial debiasing is the best approach because it directly optimizes the model to reduce bias during training while preserving predictive accuracy. It uses an adversarial network that tries to predict the protected attribute from the model's predictions, forcing the main model to learn representations that are less correlated with that attribute. This allows the bank to keep protected attributes in the data (as required by the ethics committee) while actively mitigating bias.

Exam trap

CompTIA often tests the misconception that simply removing protected attributes (Option B) is sufficient to eliminate bias, when in reality proxy features and correlated variables can perpetuate discrimination.

How to eliminate wrong answers

Option A is wrong because retraining on a balanced dataset only addresses representation bias (e.g., equal numbers of approved/rejected loans across groups) but does not remove the underlying biased correlations learned from historical lending practices; it may also reduce model performance by discarding real-world data distributions. Option B is wrong because removing all protected attributes does not eliminate bias—correlated features (e.g., zip code, income) can act as proxies for race or gender, leading to indirect discrimination, and the ethics committee explicitly wants to keep protected attributes. Option C is wrong because post-processing adjusts outputs after the model is trained, which can improve demographic parity but often at the cost of significant accuracy loss and does not address bias embedded in the model's internal representations.

128
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 randomly deactivates neurons, which reduces overfitting by making the model less sensitive to specific weights.

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.

129
Multi-Selecthard

A company is forming an AI ethics board to oversee the development of a high-stakes AI system for bail decision recommendations. Which THREE responsibilities should the board primarily undertake?

Select 3 answers
A.Review model outputs for disparate impact across demographic groups
B.Market the AI system to potential clients
C.Establish human-in-the-loop requirements for high-risk decisions
D.Define fairness criteria and acceptable bias thresholds
E.Write the production code for the AI model
AnswersA, C, D

The board should audit and review model behaviour for ethical compliance.

Why this answer

An AI ethics board should define fairness criteria, review models for bias, and establish a human oversight process. Designing the algorithm is a technical task for engineers. Marketing the system is a business function, not an ethics board duty.

130
Multi-Selectmedium

A data scientist is preparing a dataset for training a customer churn prediction model. To prevent train/test leakage, which TWO practices should be followed? (Select TWO)

Select 2 answers
A.Remove duplicate records only from the test set to ensure uniqueness
B.Shuffle the entire dataset randomly before splitting into train and test sets
C.Split the data chronologically (e.g., use data before a certain date for training, after for testing)
D.Normalize numerical features using statistics computed on the entire dataset before splitting
E.Perform feature selection using only the training data, then apply the same features to the test set
AnswersC, E

Chronological splitting preserves the temporal order, preventing future data from leaking into the training set.

Why this answer

To prevent leakage, time-based splitting respects temporal order (no future data in training). Not normalizing before splitting avoids information from the test set influencing training. The other options either cause leakage or are unrelated.

131
MCQhard

A global retailer uses an AI model to forecast demand across thousands of stores. After deployment, the model's predictions become less accurate during holiday seasons. The training data included two years of holiday periods. What is the most effective operational strategy to handle this recurring seasonal drift?

A.Deploy an anomaly detection system to flag holiday prediction outliers
B.Implement a scheduled retraining cycle just before each holiday period
C.Use an ensemble of models trained on different time periods
D.Increase the volume of training data by including five years of history
AnswerB

Proactive retraining with recent holiday data mitigates seasonal drift.

Why this answer

Scheduled retraining just before each holiday season directly addresses the recurring seasonal drift by updating the model with the most recent holiday data patterns. This is the most effective operational strategy because it proactively aligns the model with the known, periodic shift in demand behavior, rather than reacting to errors or relying on static historical data.

Exam trap

CompTIA often tests the misconception that more data or anomaly detection is the universal solution to drift, but the trap here is that candidates overlook the need for proactive, scheduled updates tailored to known recurring patterns rather than reactive or static fixes.

How to eliminate wrong answers

Option A is wrong because anomaly detection only flags outliers after predictions are made, it does not correct the underlying model drift or improve forecast accuracy during the holiday period. Option C is wrong because an ensemble of models trained on different time periods may reduce variance but does not specifically target the recurring seasonal pattern; it could still suffer from drift if none of the models are updated for the current holiday context. Option D is wrong because simply adding more historical data (five years) does not guarantee the model will adapt to the most recent seasonal shifts; older data may even introduce outdated patterns that dilute the relevance of recent holiday trends.

132
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 leverages pre-trained language models and fine-tunes with small data.

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.

133
MCQmedium

A developer is using a pre-trained BERT model for a question-answering system. They want to ensure the model can handle out-of-vocabulary words. Which component of the BERT architecture is responsible for this?

A.Positional encoding
B.Feed-forward layers
C.WordPiece tokenisation
D.Attention mechanism
AnswerC

WordPiece tokenisation splits rare words into subwords, enabling handling of any input.

Why this answer

WordPiece tokenisation is the component of BERT that handles out-of-vocabulary (OOV) words by breaking them into subword units (e.g., 'playing' → 'play' + '##ing'). This allows the model to represent any word, even unseen ones, as a sequence of known subword tokens, ensuring no word is truly out of vocabulary.

Exam trap

The trap here is that candidates often associate 'handling unknown words' with the attention mechanism or positional encoding, but the CompTIA exam specifically tests the understanding that tokenisation—not the model's internal layers—is what makes BERT robust to OOV words.

How to eliminate wrong answers

Option A is wrong because positional encoding adds information about the position of tokens in a sequence, not about handling unknown words. Option B is wrong because feed-forward layers apply non-linear transformations to the attention output and do not address tokenisation or vocabulary coverage. Option D is wrong because the attention mechanism computes relationships between tokens but relies on the tokeniser to first convert input text into known subword pieces; it cannot handle OOV words on its own.

134
MCQhard

Refer to the exhibit. Which model is NOT in full compliance with the policy?

A.ChurnPredict v1
B.FraudDetect v4
C.CreditScorer v2
D.LoanApproval v3
AnswerC

CreditScorer v2 uses a black-box neural network that cannot provide explainability, violating the policy's requirement for model interpretability.

Why this answer

CreditScorer v2 is not in full compliance because it uses a black-box neural network that cannot provide explainability for its credit decisions, violating the policy's requirement for model interpretability and transparency. The policy mandates that all models must support post-hoc explanation methods such as SHAP or LIME, which CreditScorer v2 lacks due to its opaque architecture.

Exam trap

CompTIA AI often tests the misconception that all machine learning models are equally compliant if they achieve high accuracy, ignoring the specific governance requirement for interpretability in high-stakes domains like credit scoring.

How to eliminate wrong answers

Option A is wrong because ChurnPredict v1 uses a gradient-boosted decision tree (XGBoost) with built-in feature importance and SHAP support, satisfying the policy's interpretability requirement. Option B is wrong because FraudDetect v4 employs a logistic regression model with L1 regularization, which is inherently interpretable through coefficient analysis and passes the transparency audit. Option D is wrong because LoanApproval v3 is a rule-based system using a decision tree with a maximum depth of 5, providing full traceability and meeting the policy's compliance criteria.

135
MCQmedium

A data science team is fine-tuning a large language model for a domain-specific task using LoRA. They have a limited GPU budget and want to minimize memory usage during training. Which technique should they use?

A.Use LoRA (Low-Rank Adaptation) with the base model in full precision
B.Use PEFT (Parameter-Efficient Fine-Tuning) without specifying a specific method
C.Use QLoRA (Quantized LoRA) with a 4-bit quantized base model
D.Full fine-tuning of the entire model
AnswerC

QLoRA quantizes the base model to 4-bit, significantly reducing memory usage while applying LoRA adapters for efficient fine-tuning.

Why this answer

QLoRA (Quantized LoRA) quantizes the base model to 4-bit, drastically reducing memory usage while still applying LoRA adapters. Standard LoRA uses full precision. PEFT is a category, not a specific technique.

Full fine-tuning uses the most memory.

136
Multi-Selectmedium

Which THREE are key principles of trustworthy AI according to the OECD?

Select 3 answers
A.Profitability
B.Robustness
C.Transparency
D.Scalability
E.Accountability
AnswersB, C, E

Robustness ensures AI systems perform reliably under varied conditions.

Why this answer

Robustness is a key principle of trustworthy AI according to the OECD, ensuring that AI systems operate reliably and securely under a wide range of conditions, including handling errors, adversarial inputs, and unexpected scenarios. This principle directly supports the goal of maintaining system integrity and preventing harm, which is fundamental to trustworthiness.

Exam trap

The AI0-001 exam often tests candidates by including plausible-sounding business or operational terms like 'profitability' or 'scalability' as distractors, leading them to confuse general system attributes with the specific ethical and governance principles outlined by the OECD.

137
Multi-Selecthard

Which THREE of the following are key components of an AI governance framework?

Select 3 answers
A.Cloud infrastructure configuration
B.Model accuracy benchmarks
C.Risk assessment and mitigation plans
D.Transparency and explainability policies
E.Data management and privacy controls
AnswersC, D, E

Essential for identifying and managing AI risks.

Why this answer

Risk assessment and mitigation plans are a core component of an AI governance framework, ensuring that potential harms, biases, and security vulnerabilities are identified and addressed before deployment. This aligns with frameworks like NIST AI RMF, which mandates continuous risk monitoring and mitigation strategies to maintain ethical and secure AI operations.

Exam trap

CompTIA often tests the distinction between governance (policies, ethics, risk) and operational/technical components (infrastructure, model tuning), so candidates mistakenly select cloud configuration or accuracy benchmarks as governance elements.

138
MCQmedium

A developer is building an LLM-powered code assistant. They want to prevent the model from generating insecure code. Which OWASP LLM Top 10 category is most relevant to this risk?

A.Sensitive information disclosure
B.Insecure output handling
C.Model denial of service
D.Prompt injection
AnswerB

Insecure output handling covers risks from failing to validate LLM outputs, such as generating unsafe code.

Why this answer

Insecure output handling (B) is the most relevant OWASP LLM Top 10 category because the risk is that the LLM generates insecure code, which is a direct output from the model. This category specifically addresses failures to validate, sanitize, or restrict the model's output before it is used in downstream applications, such as a code assistant. By not properly handling the generated code, the assistant could introduce vulnerabilities like SQL injection or command injection into the user's codebase.

Exam trap

The AI0-001 exam often tests the distinction between input-based attacks (prompt injection) and output-based risks (insecure output handling), so candidates mistakenly choose prompt injection because they focus on how the model is manipulated rather than on the security of what the model produces.

How to eliminate wrong answers

Option A is wrong because sensitive information disclosure focuses on the model leaking confidential data from its training set or user inputs, not on the model generating insecure code. Option C is wrong because model denial of service concerns attacks that overwhelm the model with resource-intensive requests, leading to service unavailability, which is unrelated to the security of the generated code. Option D is wrong because prompt injection involves manipulating the model's input to bypass controls or extract data, whereas the risk here is about the model's output (the code) being insecure, not about the input being malicious.

139
MCQhard

A machine learning team is developing a model to predict server failure from telemetry data. They use a deep neural network with 3 hidden layers. After training, the model achieves 99% accuracy on training data but only 85% on validation data. Which technique should the team apply to reduce the generalization error?

A.Increase the number of hidden layers
B.Apply L2 regularization
C.Increase the learning rate
D.Add more training data
AnswerB

Regularization adds a penalty on large weights, reducing overfitting and improving generalization.

Why this answer

The model exhibits high variance (overfitting) because it achieves 99% accuracy on training data but only 85% on validation data. L2 regularization (also known as weight decay) adds a penalty proportional to the squared magnitude of the weights to the loss function, which discourages the network from fitting noise in the training data and improves generalization. This directly reduces the gap between training and validation performance.

Exam trap

CompTIA often tests the distinction between techniques that address overfitting (regularization) versus those that address underfitting (more layers, higher learning rate) or data quantity, leading candidates to mistakenly choose adding more data or increasing model complexity.

How to eliminate wrong answers

Option A is wrong because increasing the number of hidden layers would increase model capacity, making overfitting worse and further increasing generalization error. Option C is wrong because increasing the learning rate can cause the optimizer to overshoot minima or diverge, but it does not directly address overfitting; it may even prevent convergence. Option D is wrong because while adding more training data can help reduce overfitting, it is not the most direct or practical technique when the team already has a model that overfits; regularization is a more immediate and targeted solution.

140
Multi-Selectmedium

Which TWO of the following are common methods for mitigating bias in AI models?

Select 2 answers
A.Using adversarial training
B.Reweighting training samples based on sensitive attributes
C.Applying L1 regularization
D.Adding fairness constraints during training
E.Performing k-fold cross-validation
AnswersB, D

Reweighting can adjust for underrepresented groups to reduce bias.

Why this answer

Reweighting training samples based on sensitive attributes is a common pre-processing bias mitigation technique. It assigns higher weights to underrepresented groups or lower weights to overrepresented groups to balance the dataset, thereby reducing the model's reliance on biased correlations. This method directly addresses data-level bias before model training begins.

Exam trap

CompTIA often tests the distinction between bias mitigation techniques (pre-processing, in-processing, post-processing) and general ML best practices like regularization or cross-validation, leading candidates to confuse L1 regularization or k-fold cross-validation with fairness methods.

141
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

142
Multi-Selecthard

A company is deploying an LLM-based chatbot that must output responses in a structured JSON format for downstream processing. Which THREE prompt engineering techniques should the team use to ensure the output is valid and correctly structured? (Select three.)

Select 3 answers
A.Include few-shot examples of correct JSON outputs
B.Set temperature to 0 to increase determinism
C.Enable JSON mode or structured output mode in the model API
D.Define the expected JSON schema in the system prompt
E.Use chain-of-thought prompting to reason before output
AnswersA, C, D

Why this answer

A system prompt defining JSON structure, few-shot examples of valid JSON, and JSON mode in the model API all help produce valid structured output. Chain-of-thought and temperature adjustment do not directly enforce JSON format.

143
Multi-Selectmedium

Which THREE of the following are key components of an AI governance framework?

Select 3 answers
A.Regular auditing and monitoring for compliance.
B.Cloud-based deployment for scalability.
C.Ethical guidelines for AI development and deployment.
D.Explainability mechanisms for model decisions.
E.Model accuracy thresholds for production deployment.
AnswersA, C, D

Auditing ensures ongoing adherence to policies and regulations.

Why this answer

Regular auditing and monitoring for compliance (A) is a key component of an AI governance framework because it ensures that AI systems operate within legal, ethical, and organizational policies over time. Continuous monitoring detects drift, bias, or security violations, while audits provide evidence of adherence to standards such as ISO/IEC 42001 or internal governance rules. Without this, governance becomes a static policy with no enforcement or verification.

Exam trap

CompTIA often tests the distinction between governance components (policies, ethics, oversight) and operational or technical metrics (deployment, accuracy thresholds), leading candidates to confuse performance requirements with governance pillars.

144
MCQhard

A credit risk model is being developed to predict loan defaults. The dataset has 95% non-default and 5% default instances. The data scientist trains a logistic regression model and obtains 95% accuracy, but the recall for defaults is only 10%. Which action is most appropriate to improve the model's ability to identify defaults?

A.Apply principal component analysis (PCA) to reduce dimensionality
B.Collect more data from loan applicants to increase dataset size
C.Undersample the non-default class to match the number of defaults
D.Use SMOTE to oversample the default class
AnswerD

SMOTE creates synthetic samples, balancing classes and improving recall.

Why this answer

SMOTE (Synthetic Minority Oversampling Technique) is the most appropriate action because it generates synthetic samples for the minority class (defaults) rather than simply duplicating existing ones. This directly addresses the severe class imbalance (95% non-default vs. 5% default) that causes the logistic regression model to achieve high accuracy by predicting nearly all instances as non-default, while failing to identify actual defaults (recall of only 10%). By creating realistic synthetic default instances, SMOTE balances the training data and forces the model to learn decision boundaries that better capture the minority class.

Exam trap

CompTIA often tests the misconception that undersampling the majority class is always better than oversampling the minority class, but in this scenario, undersampling would discard valuable non-default patterns and reduce model robustness, whereas SMOTE generates new, realistic default samples without data loss.

How to eliminate wrong answers

Option A is wrong because PCA reduces dimensionality by projecting data onto principal components, which does not address class imbalance and can even discard variance that distinguishes defaults from non-defaults. Option B is wrong because simply collecting more data does not guarantee a better ratio of defaults; if the underlying population imbalance remains, the model will still be biased toward the majority class. Option C is wrong because undersampling the non-default class discards a large amount of potentially useful data, which can lead to loss of information and reduced model performance, especially when the majority class contains important patterns.

145
MCQmedium

A company wants to build a customer service chatbot that answers questions about their internal policy documents. The documents are updated monthly, and the team cannot afford to retrain a model each time. Which approach is MOST appropriate?

A.Use Retrieval-Augmented Generation (RAG) with the policy documents indexed in a vector store
B.Train a custom model from scratch on the policy documents each month
C.Use a larger foundation model with a longer context window and paste all documents into each prompt
D.Fine-tune a base LLM on the policy documents monthly
AnswerA

RAG retrieves relevant document chunks at query time, ensuring the chatbot always answers from the latest uploaded documents without any model retraining.

Why this answer

Retrieval-Augmented Generation (RAG) is the most appropriate approach because it allows the chatbot to answer questions by retrieving relevant chunks from the policy documents stored in a vector store, without requiring model retraining. When documents are updated monthly, RAG simply re-indexes the new content, keeping the system current while avoiding the cost and complexity of fine-tuning or retraining a model each cycle.

Exam trap

CompTIA often tests the distinction between retrieval-based approaches (RAG) and fine-tuning, where candidates mistakenly choose fine-tuning because they think it 'customizes' the model, but the key constraint here is avoiding monthly retraining, which RAG uniquely satisfies.

How to eliminate wrong answers

Option B is wrong because training a custom model from scratch each month is prohibitively expensive and time-consuming, requiring large datasets and GPU resources, and contradicts the requirement to avoid retraining. Option C is wrong because pasting all policy documents into each prompt exceeds typical context window limits (e.g., 4K–128K tokens for most models), leading to truncation, high latency, and increased cost per query. Option D is wrong because fine-tuning a base LLM monthly still requires retraining, which the team cannot afford, and fine-tuning may cause catastrophic forgetting of previous policies unless carefully managed with multi-epoch training on all historical data.

146
MCQeasy

An AI ethics board is reviewing a model that recommends criminal sentencing lengths. They want to ensure that the model's false positive rates for different demographic groups are equal. Which fairness metric should they use?

A.Calibration
B.Individual fairness
C.Equalized odds
D.Demographic parity
AnswerC

Equalized odds requires both false positive rates and true positive rates to be equal across groups.

Why this answer

Equalized odds requires that the model's true positive rates and false positive rates are equal across groups. Demographic parity only requires equal selection rates. Individual fairness ensures similar individuals are treated similarly but does not define group rates.

Calibration ensures predicted probabilities match actual outcomes for each group but does not enforce equal error rates.

147
MCQhard

A large e-commerce company has deployed a real-time product recommendation system using a neural collaborative filtering model. The model was trained on six months of user click and purchase data. For the first three months after deployment, the click-through rate (CTR) improved by 15%. However, starting in the fourth month, CTR began decreasing steadily despite no changes to the system infrastructure or data pipeline. The product manager suspects model decay but the engineering team insists the model is static and should not degrade. The data science lead suggests investigating further. They have access to production logs, A/B testing framework, and historical model versions. What is the BEST course of action to diagnose and address the issue?

A.Re-deploy the model with additional features such as time of day and user device.
B.Increase the frequency of batch inference from hourly to every 10 minutes to improve responsiveness.
C.Set up an A/B test comparing the current model against the original baseline model using recent traffic.
D.Retrain the model on only the most recent 30 days of data and replace the current model.
AnswerC

A/B testing isolates whether the current model underperforms relative to a known good version, confirming decay.

Why this answer

Setting up an A/B test comparing the current model against the original baseline model using recent traffic directly isolates whether the model's predictive performance has degraded due to concept drift (changes in user behavior over time). Since the model is static but the data distribution has shifted, the A/B test provides empirical evidence of decay by measuring CTR differences under identical conditions, which is the standard diagnostic step before any retraining or feature engineering.

Exam trap

CompTIA often tests the principle that diagnosing model decay requires a controlled comparison (A/B test) rather than immediately retraining or adding features, and the trap here is assuming that a static model cannot degrade when the underlying data distribution changes.

How to eliminate wrong answers

Option A is wrong because adding features like time of day or user device without first diagnosing the root cause of CTR decline may introduce noise or overfitting, and does not address the likely concept drift. Option B is wrong because increasing batch inference frequency improves latency but does not affect model accuracy or counteract data distribution shifts; the model's predictions remain unchanged regardless of inference cadence. Option D is wrong because retraining on only the most recent 30 days of data could discard valuable long-term patterns and may cause catastrophic forgetting, and it bypasses the necessary diagnostic step of confirming that model decay is indeed the issue.

148
MCQhard

A data scientist is evaluating a binary classifier for a hiring tool. They compute demographic parity and find that the selection rate for Group A is 0.2 and for Group B is 0.4. Which action would MOST directly address this disparity?

A.Use a different evaluation metric such as equalized odds
B.Remove the sensitive attribute from the training data
C.Collect more data for Group A to increase its representation
D.Retrain the model with a fairness constraint that enforces demographic parity
AnswerD

Enforcing demographic parity during training directly addresses the disparate selection rates.

Why this answer

Demographic parity requires equal selection rates. Retraining with a fairness constraint that enforces demographic parity directly adjusts the model to achieve equal rates. Rebalancing the dataset (if the disparity stems from imbalanced labels) might help, but it does not guarantee parity.

Modifying thresholds can also achieve parity, but post-processing without retraining may degrade other metrics; retraining with constraint is more direct.

149
MCQmedium

A team is deploying an AI model that predicts patient readmission risk. The model was trained on data from three hospitals but will be used in a fourth hospital with different patient demographics. What is the most important security risk to assess?

A.Data poisoning during training
B.Adversarial attacks that cause misclassification
C.Model inversion to extract patient data
D.Data breach of the inference API
AnswerB

The shift in demographics can make the model more vulnerable to adversarial examples that cause incorrect readmission predictions.

Why this answer

Using a model on data from a different distribution (population shift) can degrade performance, but from a security perspective, the main risk is adversarial attacks that exploit the model's unfamiliarity with new data. Model inversion and poisoning are training-time attacks; data breach is an operational risk but not specific to this scenario.

150
MCQeasy

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

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

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

Why this answer

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

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

Page 1

Page 2 of 11

Page 3

All pages