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

1000 questions total · 14pages · All types, answers revealed

Page 2

Page 3 of 14

Page 4
151
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.

152
MCQeasy

An AI developer needs to store large amounts of unstructured data (e.g., images, logs) for training datasets. Which cloud storage solution is purpose-built for data lakes?

A.Amazon DynamoDB
B.Amazon RDS
C.Amazon S3
D.Amazon Redshift
AnswerC

S3 is an object store that is the foundation of many data lake architectures.

Why this answer

Amazon S3 is purpose-built for data lakes because it provides virtually unlimited scalability, high durability (99.999999999% or 11 nines), and supports any type of unstructured data (images, logs, videos) with a flat object storage architecture. Its integration with AWS Glue, Athena, and Lake Formation enables schema-on-read analytics, making it the foundational service for building a data lake on AWS.

Exam trap

Candidates often mistake Redshift for a data lake solution because they associate 'data' with 'warehouse' rather than recognizing that data lakes require raw object storage.

How to eliminate wrong answers

Option A is wrong because Amazon DynamoDB is a NoSQL key-value and document database optimized for low-latency transactional workloads, not for storing large volumes of unstructured data for analytics. Option B is wrong because Amazon RDS is a relational database service for structured data with fixed schemas, and it cannot scale to petabyte-scale unstructured data storage. Option D is wrong because Amazon Redshift is a petabyte-scale data warehouse designed for structured, columnar data and SQL-based analytics, not for storing raw unstructured data like images or logs.

153
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.

154
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.

155
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.

156
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.

157
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.

158
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.

159
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.

160
MCQeasy

An ML team wants to prevent attackers from stealing a proprietary model by repeatedly querying the public API. Which defense is most effective?

A.Using a smaller model to reduce query cost
B.Encrypting model weights at rest
C.Adding random noise to all outputs
D.Rate limiting on the API endpoint
AnswerD

Rate limiting slows down extraction attempts by capping query volume.

Why this answer

Option D is correct because rate limiting restricts the number of API requests a single client can make within a given time window, directly impeding an attacker's ability to collect enough query-response pairs to reconstruct or steal the model. This defense targets the attack vector itself—repeated queries—without degrading model performance for legitimate users. Techniques like token bucket or sliding window rate limiting are commonly implemented at the API gateway level.

Exam trap

CompTIA often tests the misconception that encryption or obfuscation of model artifacts is sufficient to prevent extraction attacks, when in fact the primary threat is from live API queries that bypass those protections.

How to eliminate wrong answers

Option A is wrong because using a smaller model reduces computational cost but does not prevent an attacker from querying the API repeatedly to extract the model's behavior; the attack surface remains unchanged. Option B is wrong because encrypting model weights at rest protects against offline theft of stored model files, but does nothing to stop an attacker from querying the live API endpoint to perform model extraction. Option C is wrong because adding random noise to all outputs degrades the model's accuracy for all users and can be mitigated by averaging multiple queries, making it an ineffective and impractical defense against model stealing.

161
MCQmedium

A team is using Hugging Face Transformers to serve an LLM via a REST API. They notice high latency during inference. The model is deployed on a single GPU. Which optimisation would reduce inference latency WITHOUT changing the model architecture?

A.Use model quantisation to FP16
B.Add more GPUs and distribute the model
C.Increase the batch size to process multiple requests simultaneously
D.Switch from GPU to CPU
AnswerA

FP16 half-precision reduces memory and compute, lowering latency on compatible hardware.

Why this answer

FP16 quantization reduces the memory footprint and computational load of the model by using half-precision floating-point numbers, which allows the GPU to process more operations per second and reduces memory bandwidth usage. This directly lowers inference latency without altering the model's architecture, making it the correct choice for a single-GPU deployment.

Exam trap

CompTIA often tests the distinction between latency and throughput, and the trap here is that candidates confuse increasing batch size (which improves throughput) with reducing per-request latency, leading them to incorrectly select Option C.

How to eliminate wrong answers

Option B is wrong because adding more GPUs and distributing the model (model parallelism) does not reduce latency for a single request; it primarily increases throughput for multiple requests and can actually increase per-request latency due to inter-GPU communication overhead. Option C is wrong because increasing batch size improves throughput (requests per second) but increases per-request latency, as the GPU must process a larger batch before returning results. Option D is wrong because switching from GPU to CPU would dramatically increase inference latency, as CPUs are not optimized for the parallel matrix operations required by LLMs.

162
Multi-Selecteasy

A machine learning engineer is preparing to train a deep neural network for image classification. To avoid overfitting, which TWO techniques should the engineer apply? (Select TWO.)

Select 2 answers
A.Use dropout regularization.
B.Use data augmentation.
C.Increase the number of layers.
D.Remove all non-linear activation functions.
E.Reduce the training dataset size.
AnswersA, B

Dropout is a regularization technique that helps prevent overfitting by randomly dropping units.

Why this answer

Dropout regularization is a technique that randomly drops a fraction of neurons during training, which prevents the network from relying too heavily on any single neuron and reduces co-adaptation. This acts as a form of ensemble learning and significantly reduces overfitting by improving generalization.

Exam trap

The CompTIA AI+ exam often tests the misconception that increasing model complexity (like adding layers) or reducing data helps with overfitting, when in reality these actions worsen it, while regularization and data augmentation are the correct countermeasures.

163
MCQhard

A machine learning engineer is troubleshooting a recurrent neural network that fails to learn long-range dependencies in sequential data. The gradients are computed using backpropagation through time. Which phenomenon is most likely occurring, and what architectural change would best address it?

A.Underfitting; increase the number of time steps
B.Vanishing gradients; use LSTM or GRU units
C.Exploding gradients; apply gradient clipping
D.Overfitting; reduce the number of layers
AnswerB

Vanishing gradients prevent learning long-range patterns; LSTMs and GRUs have gating mechanisms to preserve gradients.

Why this answer

The correct answer is B. In standard RNNs, backpropagation through time (BPTT) multiplies gradients across many time steps, causing them to shrink exponentially (vanishing gradients). This prevents the network from learning long-range dependencies.

LSTM or GRU units introduce gating mechanisms that preserve gradient flow over many time steps, directly solving this problem.

Exam trap

The trap here is that candidates may confuse 'failure to learn long-range dependencies' with exploding gradients, but the correct clue is the inability to capture distant patterns, not training instability or NaN losses.

How to eliminate wrong answers

Option A is wrong because increasing the number of time steps would exacerbate the vanishing gradient problem, not fix it; underfitting is not the core issue here. Option C is wrong because exploding gradients cause large gradient values and training instability, but the described symptom (failure to learn long-range dependencies) is classic vanishing gradients, not exploding gradients; gradient clipping addresses exploding gradients, not vanishing ones. Option D is wrong because overfitting is characterized by high variance and poor generalization, not by an inability to learn long-range patterns; reducing layers would reduce capacity and could worsen underfitting, not solve the gradient propagation issue.

164
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

Option C is correct because 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.

165
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

Cisco 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).

166
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.

167
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.

168
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.

169
MCQeasy

A data scientist trains a linear regression model on housing prices. The training error is low, but test error is high. What is the most likely issue?

A.Overfitting
B.Multicollinearity
C.Data leakage
D.Underfitting
AnswerA

Correct: low training error and high test error is classic overfitting.

Why this answer

Low training error combined with high test error is the classic symptom of overfitting, where the model has memorized the training data, including its noise, rather than learning the underlying patterns. This causes the model to perform poorly on unseen data, which is exactly what the high test error indicates.

Exam trap

CompTIA often tests the distinction between overfitting and underfitting by presenting a scenario where training error is low but test error is high, leading candidates to mistakenly choose underfitting because they focus only on the high test error without considering the low training error.

How to eliminate wrong answers

Option B (Multicollinearity) is wrong because while it can inflate the variance of coefficient estimates and make them unstable, it does not typically cause a large gap between low training error and high test error; the model can still fit the training data well. Option C (Data leakage) is wrong because data leakage usually results in overly optimistic performance on both training and test sets during evaluation, not a high test error after low training error. Option D (Underfitting) is wrong because underfitting produces high error on both the training and test sets, not low training error with high test error.

170
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.

171
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

Option A is correct because 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.

172
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.

173
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

Cisco 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.

174
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.

175
MCQmedium

A machine learning engineer is training a logistic regression model and notices that the loss is decreasing very slowly. The learning rate is set to 0.001. What is the MOST likely cause and appropriate fix?

A.The learning rate is too low; increase it to 0.01
B.The learning rate is too high; decrease it to 0.0001
C.The model is overfitting; add L2 regularisation
D.The batch size is too large; reduce it
AnswerA

A learning rate of 0.001 is very small; increasing it to 0.01 will speed up convergence without causing divergence.

Why this answer

A learning rate of 0.001 is very low for many logistic regression implementations, causing the gradient descent algorithm to take extremely small steps toward the minimum of the loss function. This results in a slow decrease in loss because each weight update is minimal. Increasing the learning rate to 0.01 allows larger steps per iteration, accelerating convergence without typically causing divergence in well-scaled data.

Exam trap

A common misconception is that a slow decrease in loss always indicates a learning rate that is too high, when in fact a very low learning rate is the typical cause for slow convergence.

How to eliminate wrong answers

Option B is wrong because a learning rate that is too high would cause the loss to oscillate or diverge, not decrease slowly; decreasing it further would worsen the slow convergence. Option C is wrong because overfitting manifests as low training loss but high validation loss, not as a slow decrease in training loss; L2 regularization addresses overfitting, not convergence speed. Option D is wrong because a large batch size can slow training in terms of wall-clock time per epoch but does not inherently cause the loss to decrease slowly per iteration; it actually provides more stable gradient estimates.

176
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.

177
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.

178
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.

179
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.

180
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.

181
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.

182
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.

183
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.

184
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.

185
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.

186
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.

187
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.

188
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

Cisco 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.

189
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

Option C is correct because 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.

190
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

Cisco 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.

191
MCQmedium

A manufacturing company uses a predictive maintenance AI system to schedule equipment repairs. The system was trained on sensor data from machinery. Recently, the system has been missing failures, leading to unexpected downtime. An investigation reveals that the sensor data from one plant has been corrupted due to a sensor malfunction. The corrupted data was used in retraining. The company needs to restore system accuracy quickly. The data science team can access the training logs. What is the best course of action?

A.Roll back to the previous model version before the corrupt data was ingested, then clean the sensor data and retrain
B.Switch to a simpler linear regression model that is less sensitive to data quality issues
C.Retrain the model using all available data, including the corrupted sensor data
D.Apply a weight to sensor data from that plant to reduce its influence
AnswerA

Reverting removes the damage, cleaning ensures future data is correct, and retraining updates the model.

Why this answer

Rolling back to the previous model version isolates the system from the corrupted sensor data that caused accuracy degradation. Cleaning the sensor data before retraining ensures the model learns from accurate patterns, restoring predictive maintenance reliability. This approach directly addresses the root cause—data corruption—without introducing new risks.

Exam trap

CompTIA often tests the misconception that simpler models are inherently more robust to data issues, but the trap here is that model complexity is not the root cause—data integrity is, so the correct fix is to revert and clean the data, not change the algorithm.

How to eliminate wrong answers

Option B is wrong because switching to a simpler linear regression model would reduce the model's capacity to capture complex sensor patterns, likely worsening failure detection rather than fixing the data corruption issue. Option C is wrong because retraining with corrupted data would perpetuate the errors, as the model would learn from faulty sensor readings and continue missing failures. Option D is wrong because applying a weight to reduce influence does not remove the corrupted data's harmful patterns; the model would still learn from inaccurate sensor values, leading to degraded performance.

192
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.

193
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.

194
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.

195
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.

196
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.

197
MCQmedium

An AI security team is mapping threats specific to their ML pipeline using the STRIDE framework. Which threat category is primarily addressed by ensuring that training data is not tampered with?

A.Spoofing
B.Tampering
C.Repudiation
D.Information disclosure
AnswerB

Tampering covers unauthorized changes to data or code, including training data.

Why this answer

Ensuring that training data is not tampered with directly addresses the Tampering threat category in the STRIDE framework. Tampering involves the unauthorized modification of data, and in an ML pipeline, corrupted training data can lead to model poisoning, where the model learns incorrect patterns or backdoors. By protecting the integrity of the training dataset, the team mitigates the risk of adversarial manipulation that could degrade model performance or introduce vulnerabilities.

Exam trap

CompTIA AI exams often test the distinction between Tampering (data integrity) and Spoofing (identity deception), so candidates may confuse 'tampering with data' with 'spoofing a data source' and incorrectly choose Spoofing.

How to eliminate wrong answers

Option A is wrong because Spoofing refers to impersonating a user, system, or component (e.g., identity fraud), not the integrity of data. Option C is wrong because Repudiation concerns the ability to deny an action (e.g., lack of non-repudiation logs), not data modification. Option D is wrong because Information disclosure involves unauthorized access to sensitive data (e.g., model inversion attacks), not the integrity of training data.

198
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.

199
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.

200
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.

201
MCQmedium

A financial institution uses an AI model to approve small business loans. The model has a high approval rate for women-owned businesses but low for minority-owned businesses. The compliance officer is concerned about disparate impact. Which governance process should be implemented first?

A.Remove gender and ethnicity features from the model
B.Conduct a bias audit and fairness assessment using relevant metrics
C.Publish the model's decision-making criteria to the public
D.Immediately adjust the approval threshold to equalize rates
AnswerB

An audit identifies the extent and sources of bias to inform remediation.

Why this answer

Option B is correct: a bias audit and fairness assessment should be conducted first to quantify the disparate impact and identify root causes. Option A is wrong because simply removing sensitive features does not guarantee fairness and may be insufficient or illegal. Option C is wrong because publishing decision-making criteria without first addressing bias could expose the institution to liability and undermine trust.

Option D is wrong because adjusting the approval threshold without thorough analysis can be arbitrary, may not address underlying bias, and could lead to reverse discrimination or mask systemic issues.

202
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

Option C is correct because 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.

203
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.

204
MCQeasy

Which AWS service would a developer use to integrate a pre-built foundation model into an application via API, without managing underlying infrastructure?

A.Amazon Bedrock
B.Amazon EC2
C.Amazon SageMaker
D.AWS Lambda
AnswerA

Bedrock offers a managed API to foundation models from various providers.

Why this answer

Amazon Bedrock is a fully managed service that provides access to pre-built foundation models (FMs) from providers like AI21 Labs, Anthropic, Cohere, Meta, and Stability AI via a unified API. It eliminates the need to manage underlying infrastructure such as servers, GPUs, or scaling, allowing developers to integrate FMs into applications with minimal operational overhead.

Exam trap

CompTIA often tests the distinction between managed AI services (Bedrock) and infrastructure-heavy services (EC2, SageMaker) by framing the question around 'pre-built models' and 'no infrastructure management,' leading candidates to mistakenly choose SageMaker because it is associated with AI/ML, even though it requires model hosting and endpoint management.

How to eliminate wrong answers

Option B (Amazon EC2) is wrong because EC2 requires you to manually provision, configure, and manage virtual servers and GPU instances, including patching, scaling, and infrastructure maintenance, which contradicts the 'without managing underlying infrastructure' requirement. Option C (Amazon SageMaker) is wrong because SageMaker is a machine learning platform focused on building, training, and deploying custom models; while it can host models, it does not provide pre-built foundation models via a simple API and still involves managing endpoints, instances, and model artifacts. Option D (AWS Lambda) is wrong because Lambda is a serverless compute service for running code in response to events, not a service for integrating pre-built foundation models; it lacks native APIs for invoking FMs and would require you to write custom code to call external model endpoints.

205
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.

206
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

Option D is correct. 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.

207
MCQmedium

A developer is integrating an AI microservice that accepts image uploads and returns classification labels. The service must handle spikes of up to 1,000 requests per minute but average 100 requests per minute. Which deployment architecture BEST meets these requirements with cost efficiency?

A.Expose the model via a serverless function (e.g., AWS Lambda) with synchronous invocation
B.Use an async processing queue (e.g., RabbitMQ) with a pool of worker instances that auto-scale based on queue depth
C.Deploy the service as a synchronous REST API on a single always-on VM sized for peak load
D.Stream results directly from the model to the client using WebSockets
AnswerB

Async queue buffers spikes, workers scale only when needed, reducing cost while handling bursts.

Why this answer

Async processing with a queue allows buffering during spikes, scaling workers as needed. A synchronous always-on service would be over-provisioned for average load. Serverless with auto-scaling offers cost efficiency.

208
Multi-Selectmedium

A data science team is developing a churn prediction model. Which TWO data preparation best practices are MOST important to prevent overfitting and ensure generalization?

Select 2 answers
A.Split data into training and test sets before any preprocessing
B.Normalize all features using the entire dataset's statistics
C.Use cross-validation to tune hyperparameters
D.Remove outliers based on the full dataset distribution
E.Encode categorical variables with target encoding on the full dataset
AnswersA, C

Splitting first avoids leaking test information into scaling or imputation.

Why this answer

Splitting data before any preprocessing prevents leakage from test set into training. Cross-validation provides a more robust estimate of generalization than a single hold-out set.

209
MCQhard

A company's AI governance board requires each model to have a model card documenting intended use, performance metrics, and limitations. What is the primary purpose of a model card?

A.To provide transparent documentation of model capabilities and limitations
B.To specify the exact training algorithm and hyperparameters
C.To outline a complete risk assessment framework
D.To serve as a legal contract between developers and users
AnswerA

They promote accountability and informed deployment.

Why this answer

A model card is a standardized documentation framework that provides transparent, concise information about a machine learning model's intended use, performance metrics, and limitations. This transparency enables stakeholders to understand the model's capabilities and potential biases, ensuring responsible deployment and governance as required by AI ethics and governance frameworks.

Exam trap

Cisco often tests the distinction between documentation for transparency (model card) and detailed technical specifications (hyperparameters) or legal instruments, so candidates mistakenly choose B or D because they confuse 'documentation' with exhaustive technical detail or binding agreements.

How to eliminate wrong answers

Option B is wrong because specifying the exact training algorithm and hyperparameters is a detail of model development documentation, not the primary purpose of a model card, which focuses on high-level transparency for governance and end-users. Option C is wrong because a complete risk assessment framework is a broader governance artifact (e.g., an AI risk register) that may reference model cards but is not the primary purpose of the card itself. Option D is wrong because a model card is not a legal contract; it is a technical documentation tool for transparency, and legal agreements are separate documents governed by terms of service or licensing.

210
MCQeasy

A company streams sensor data from IoT devices. The data arrives as JSON messages at high velocity. Which data pipeline architecture is BEST suited to handle this streaming data for near-real-time analytics?

A.Batch processing using Hadoop MapReduce every 24 hours.
B.Batch processing using nightly ETL jobs.
C.Single-node database with periodic inserts.
D.Stream processing using Apache Kafka and Spark Streaming.
AnswerD

Kafka ingests streaming data, Spark Streaming processes it with low latency.

Why this answer

Apache Kafka acts as a distributed, fault-tolerant ingestion layer that can handle high-velocity JSON messages, while Spark Streaming processes the data in micro-batches for near-real-time analytics. This combination provides the low-latency, scalable pipeline required for streaming IoT sensor data, unlike batch or single-node approaches.

Exam trap

CompTIA often tests the distinction between batch and stream processing by presenting batch options that seem 'reliable' or 'traditional,' trapping candidates who overlook the explicit 'near-real-time' requirement in the question.

How to eliminate wrong answers

Option A is wrong because Hadoop MapReduce is designed for batch processing of large static datasets, not for continuous high-velocity streaming data, and a 24-hour cycle cannot meet near-real-time requirements. Option B is wrong because nightly ETL jobs introduce hours of latency, making them unsuitable for near-real-time analytics on streaming data. Option C is wrong because a single-node database with periodic inserts cannot scale to handle high-velocity IoT data streams and will become a bottleneck, failing to provide near-real-time processing.

211
MCQmedium

An organization uses a machine learning model to approve loans. The model shows higher false positive rates for a protected group. Which data engineering step should be taken to mitigate this?

A.Remove the protected attribute from training data
B.Use adversarial debiasing technique
C.Increase model complexity
D.Add synthetic data to balance groups
AnswerB

Adversarial debiasing forces the model to be invariant to protected attributes, reducing bias.

Why this answer

Adversarial debiasing is a technique that trains the model to minimize prediction error while simultaneously preventing an adversary from predicting the protected attribute from the model's outputs. This directly reduces disparate impact by forcing the model to learn representations that are uncorrelated with the protected group, thereby lowering false positive rates for that group without simply removing the attribute.

Exam trap

A common misconception tested in CompTIA AI is that removing the protected attribute is sufficient to eliminate bias, when in reality proxy features and correlated variables can perpetuate discrimination, making adversarial debiasing a more robust solution.

How to eliminate wrong answers

Option A is wrong because simply removing the protected attribute from training data does not eliminate proxy features (e.g., zip code, income) that correlate with the protected group, so bias can persist through correlated features. Option C is wrong because increasing model complexity typically exacerbates overfitting and can amplify existing biases rather than mitigate them, as the model may learn spurious correlations tied to the protected group. Option D is wrong because adding synthetic data to balance groups addresses class imbalance but does not directly correct the model's decision boundary bias that causes higher false positives for a specific group; it may even introduce artifacts if synthetic data is not carefully generated.

212
MCQeasy

In the AI project lifecycle, which phase involves splitting the dataset into training, validation, and test sets while ensuring no data leakage?

A.Data preparation
B.Problem definition
C.Data acquisition
D.Model evaluation
AnswerA

Data preparation includes splitting and ensuring no leakage from future information.

Why this answer

Splitting the dataset into training, validation, and test sets is a core data preparation step that must be performed before any model training begins. This phase ensures that data leakage is prevented by keeping the test set completely isolated until final evaluation, which is critical for obtaining an unbiased estimate of model performance. In the AI project lifecycle, data preparation encompasses cleaning, transforming, and partitioning the data, making option A the correct phase.

Exam trap

The trap here is that candidates confuse 'data acquisition' (collecting data) with 'data preparation' (cleaning and splitting), leading them to incorrectly choose option C when the question specifically asks about splitting and leakage prevention.

How to eliminate wrong answers

Option B is wrong because problem definition focuses on identifying business objectives and success criteria, not on technical data partitioning or leakage prevention. Option C is wrong because data acquisition involves collecting raw data from sources (e.g., databases, APIs, sensors) and does not include the splitting or leakage-avoidance steps. Option D is wrong because model evaluation occurs after training and uses the already-split test set to assess performance; it does not involve creating the splits or addressing data leakage.

213
MCQmedium

A batch inference pipeline fails intermittently with out-of-memory errors when processing large datasets. The pipeline uses pandas DataFrames and feeds a pre-trained model. Which change would most effectively reduce memory consumption?

A.Increase the instance size of the compute node
B.Use a database instead of CSV files
C.Convert the model to use half-precision
D.Split the data into smaller chunks and process sequentially
AnswerD

Chunking reduces peak memory by processing subsets of the data at a time.

Why this answer

Option D is correct because splitting a large dataset into smaller chunks and processing them sequentially directly addresses the root cause of the out-of-memory error: the entire dataset is loaded into memory at once via pandas DataFrames. By processing data in batches, each chunk fits within the available RAM, preventing memory exhaustion while still allowing the pipeline to complete the full inference workload.

Exam trap

CompTIA often tests the misconception that scaling up hardware (Option A) is the best solution, when in fact architectural changes like chunking (Option D) are more effective and cost-efficient for batch processing workloads.

How to eliminate wrong answers

Option A is wrong because increasing the instance size merely adds more memory, which is a temporary workaround that does not fix the underlying inefficiency and increases cost; the pipeline will still fail if the dataset grows beyond the new limit. Option B is wrong because using a database instead of CSV files changes the storage layer but does not inherently reduce memory consumption during inference—pandas still loads the entire result set into a DataFrame unless chunked queries are explicitly used. Option C is wrong because converting the model to half-precision (FP16) reduces model memory footprint but does not address the primary memory consumer, which is the pandas DataFrame holding the large dataset; the model is typically much smaller than the data.

214
MCQmedium

During a security audit of an AI system, the auditor applies the STRIDE threat model. Which threat category is MOST relevant to an attacker manipulating the training data to cause the model to misbehave on specific inputs?

A.Spoofing
B.Repudiation
C.Information disclosure
D.Tampering
AnswerD

Tampering covers unauthorized modification, such as corrupting training data.

Why this answer

Tampering refers to unauthorized modification of data or code. Data poisoning is a form of tampering with the training dataset.

215
MCQeasy

A company uses linear regression to predict sales based on advertising spend. The model's residuals show a pattern of increasing variance as spend increases. Which assumption of linear regression is violated?

A.Normality
B.Homoscedasticity
C.Linearity
D.Independence
AnswerB

Homoscedasticity requires constant variance of residuals; increasing variance violates it.

Why this answer

The pattern of increasing residual variance with higher advertising spend violates the assumption of homoscedasticity, which requires constant variance of errors across all levels of the independent variable. In linear regression, heteroscedasticity like this can lead to inefficient coefficient estimates and unreliable confidence intervals, often detected via a Breusch-Pagan test or residual plot analysis.

Exam trap

CompTIA AI exams often test the distinction between homoscedasticity and normality, trapping candidates who confuse residual variance patterns with residual distribution shape, especially when the question describes a 'fan' or 'cone' shape in the residual plot.

How to eliminate wrong answers

Option A is wrong because normality refers to the distribution of residuals being approximately normal, not the variance pattern; heteroscedasticity does not directly violate normality. Option C is wrong because linearity assumes a straight-line relationship between spend and sales, which is not indicated by changing variance; the residual pattern here concerns spread, not curvature. Option D is wrong because independence assumes errors are uncorrelated with each other, typically violated in time-series data or clustered samples, not by variance changes across the predictor range.

216
Multi-Selectmedium

A company is adopting the EU AI Act's risk-based approach. They are classifying an AI system used for credit scoring. Which TWO risk tiers apply to credit scoring according to the Act?

Select 1 answer
A.Limited risk
B.Minimal risk
C.General purpose AI
D.High risk
E.Unacceptable risk
AnswersD

Credit scoring is explicitly listed as a high-risk AI system in Annex III.

Why this answer

Under the EU AI Act, credit scoring systems are classified as high risk because they determine access to financial resources and can significantly impact individuals' lives. This classification is based on the system's use in evaluating creditworthiness, which falls under Annex III's list of high-risk AI applications. Therefore, Option D is correct.

The other options are not applicable: limited risk involves transparency obligations, minimal risk is for systems with little impact, general-purpose AI is a separate category, and unacceptable risk includes social scoring by governments.

Exam trap

Candidates often mistakenly think credit scoring is limited risk due to its commonality, but the EU AI Act explicitly lists it as high risk because of its impact on financial access and potential for bias.

217
MCQhard

A team is deploying a model on Kubernetes using Kubeflow. They want to automatically scale the number of inference pods based on request latency. Which Kubernetes-native feature should they configure?

A.Horizontal Pod Autoscaler (HPA) with custom metrics
B.Kubeflow Pipelines component
C.Cluster Autoscaler
D.Vertical Pod Autoscaler (VPA)
AnswerA

HPA scales the number of pods based on metrics like latency, which is what the team needs.

Why this answer

The Horizontal Pod Autoscaler (HPA) with custom metrics is the correct choice because it allows scaling based on application-level metrics like request latency, not just CPU or memory. By configuring HPA to use a custom metric (e.g., from Prometheus or a metrics adapter), the team can automatically adjust the number of inference pods to maintain target latency thresholds, which is essential for responsive inference serving.

Exam trap

The distinction between pod-level scaling (HPA) and node-level scaling (Cluster Autoscaler) is important. The trap is that candidates may confuse Cluster Autoscaler with pod autoscaling, or assume VPA can handle latency-based scaling when it only adjusts resource limits.

How to eliminate wrong answers

Option B is wrong because Kubeflow Pipelines is a workflow orchestration component for building and managing ML pipelines, not a scaling mechanism; it cannot directly scale pods based on latency. Option C is wrong because Cluster Autoscaler adjusts the number of nodes in the Kubernetes cluster, not the number of pods, and does not respond to request latency metrics. Option D is wrong because Vertical Pod Autoscaler (VPA) adjusts CPU/memory resource requests for existing pods, not the number of pods, and is not designed for latency-based scaling.

218
Multi-Selectmedium

A team is deploying an AI microservice for real-time object detection in streaming video. Which TWO integration patterns are most appropriate? (Choose two.)

Select 2 answers
A.Streaming responses for real-time inference
B.Batch processing with nightly jobs
C.Synchronous request-response with long timeouts
D.Monolithic application deployment
E.AI microservice architecture
AnswersA, E

Streaming enables low-latency, continuous output for video frames.

Why this answer

AI microservices are deployed as independent services, and streaming responses are needed for real-time video processing.

219
MCQeasy

A data scientist is training a model to classify customer support tickets into categories. The dataset has 10,000 labeled examples, but the 'billing' category contains 8,000 examples while the 'technical' category contains 2,000. Which technique is most appropriate to address this imbalance before training?

A.Apply random oversampling on the 'technical' category.
B.Remove all examples except 'billing' and use a one-class classifier.
C.Use accuracy as the only evaluation metric.
D.Train the model as is, then adjust thresholds post-training.
AnswerA

Correct; oversampling balances the classes.

Why this answer

Option A is correct because random oversampling duplicates examples from the minority class ('technical') to balance the class distribution, preventing the model from becoming biased toward the majority class ('billing'). This technique directly addresses the class imbalance before training, which is critical for classification tasks where the minority class is underrepresented.

Exam trap

CompTIA often tests the misconception that adjusting thresholds post-training can compensate for class imbalance, but the trap here is that the model's internal weights are already skewed by the imbalanced training data, making threshold tuning ineffective without prior balancing.

How to eliminate wrong answers

Option B is wrong because removing all 'billing' examples discards the majority of the data, forcing a one-class classifier that cannot learn to distinguish between categories, which defeats the purpose of multi-class classification. Option C is wrong because accuracy is a misleading metric for imbalanced datasets; a model that always predicts 'billing' would achieve 80% accuracy without learning anything about 'technical' tickets. Option D is wrong because training the model as is on imbalanced data will bias the model toward the majority class, and post-training threshold adjustment alone cannot fix the underlying skewed decision boundary learned during training.

220
Multi-Selecthard

A data scientist is preparing a dataset for a text classification model. To prevent train/test leakage, which THREE practices should they follow?

Select 3 answers
A.Shuffle the entire dataset before splitting to ensure randomness
B.Use time-based splitting for temporal data
C.Perform train/test split before any data cleaning or normalization
D.Apply feature scaling to the entire dataset before splitting
E.Remove duplicate samples and ensure that no text from the same document appears in both sets
AnswersB, C, E

For time-series or evolving data, splitting by time ensures the model is not trained on future information.

Why this answer

Option B is correct because time-based splitting preserves the temporal order of data, which is critical for time-series or temporal text data to prevent the model from learning from future information that would not be available at inference time. This avoids train/test leakage where future data leaks into the training set, artificially inflating model performance.

Exam trap

Cisco often tests the misconception that shuffling the entire dataset is always safe, but for temporal data or when duplicates exist, shuffling can introduce leakage by mixing future and past samples or spreading identical text across train and test sets.

221
MCQeasy

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

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

Classification uses labeled data to predict categories.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

222
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

223
MCQeasy

Which NIST AI RMF function involves identifying the context, risks, and potential impacts of an AI system, including mapping the AI lifecycle and stakeholders?

A.Manage
B.Measure
C.Map
D.Govern
AnswerC

Map is the function for understanding the AI system's context, risks, and impacts.

Why this answer

The AI RMF's four functions are: Govern, Map, Measure, Manage. Map focuses on context and risk identification. Govern sets policies.

Measure evaluates metrics. Manage addresses risks through controls.

224
MCQmedium

A company deploys an LLM-based application that retrieves external web content to answer user queries. An attacker crafts a webpage that, when retrieved, injects a hidden instruction telling the LLM to ignore its system prompt and output sensitive internal data. What type of attack is this?

A.Direct prompt injection
B.Jailbreaking
C.Model inversion attack
D.Indirect prompt injection
AnswerD

Indirect prompt injection involves malicious instructions hidden in data the LLM retrieves from external sources.

Why this answer

Indirect prompt injection occurs when malicious instructions are embedded in content retrieved by the LLM, as opposed to direct injection where the user themselves provides the malicious prompt.

225
MCQmedium

A data analyst wants to use a model that provides feature importance scores to understand which factors most influence customer churn. They also need the model to handle both numerical and categorical data with minimal preprocessing. Which algorithm is BEST suited?

A.Random forest
B.Support vector machine (SVM) with RBF kernel
C.Logistic regression
D.k-nearest neighbours (k-NN)
AnswerA

Random forests output feature importance, handle mixed data, and are robust to scaling.

Why this answer

Random forests provide feature importance, handle mixed data types, and require little preprocessing.

Page 2

Page 3 of 14

Page 4