Courseiva

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

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

Page 3

Page 4 of 11

Page 5
226
MCQeasy

A financial institution is implementing an AI-based fraud detection system. The compliance officer is concerned about potential bias in the model that could lead to unfair treatment of certain customer groups. Which governance practice should be prioritized to address this concern?

A.Increase the diversity of the training data by collecting more samples from underrepresented groups.
B.Schedule regular bias audits using fairness metrics.
C.Retrain the model every month with the latest transaction data.
D.Use SHAP values to provide explanations for each prediction.
AnswerB

Bias audits with metrics like demographic parity can detect unfair treatment and guide mitigation.

Why this answer

Regular bias audits using fairness metrics (Option B) are the correct governance practice because they provide a systematic, quantitative method to detect and measure disparate impact across protected groups. Unlike simply collecting more data, audits directly evaluate model outputs for statistical parity, equal opportunity, or other fairness definitions, enabling the institution to identify and remediate bias proactively. This aligns with regulatory expectations for ongoing monitoring and accountability in AI governance.

Exam trap

CompTIA often tests the distinction between interpretability (explaining a single prediction) and fairness (systematic bias across groups), leading candidates to mistakenly choose SHAP values (Option D) as a bias mitigation technique when it is only an explanation tool.

How to eliminate wrong answers

Option A is wrong because merely increasing training data diversity does not guarantee fairness; the model can still learn biased correlations from the data or amplify existing societal biases, and without fairness metrics, there is no way to measure whether the outcome is equitable. Option C is wrong because retraining monthly with the latest transaction data addresses model drift and concept drift, not bias; bias can persist or even worsen with new data if the underlying data generation process remains biased. Option D is wrong because SHAP values provide local interpretability for individual predictions but do not measure or mitigate systemic bias across groups; they explain why a specific decision was made, not whether the model treats groups fairly overall.

227
Multi-Selecteasy

A startup is training a large language model and wants to reduce its environmental impact. Which TWO practices are considered green AI?

Select 2 answers
A.Train on the largest possible dataset
B.Use energy-efficient hardware (e.g., TPUs)
C.Use redundant backup servers
D.Increase batch size to maximum
E.Optimize model architecture for lower computational cost
AnswersB, E

Energy-efficient hardware reduces power consumption.

Why this answer

Using energy-efficient hardware such as Tensor Processing Units (TPUs) or specialized AI accelerators reduces the power consumption per floating-point operation, directly lowering the carbon footprint of training large language models. This aligns with green AI principles by optimizing the energy-to-performance ratio.

Exam trap

CompTIA often tests the misconception that maximizing hardware utilization (e.g., large batch sizes or datasets) is inherently green, when in fact green AI focuses on minimizing total energy consumption and carbon emissions, not just throughput or utilization metrics.

228
MCQhard

A data scientist is training a large language model on a custom dataset using PyTorch on AWS. The training is taking too long due to GPU memory constraints. The team wants to use multiple GPUs across instances with minimal code changes. Which AWS service should they use?

A.AWS Elastic Fabric Adapter (EFA)
B.Amazon SageMaker with distributed training libraries
C.AWS Batch with GPU instances
D.AWS ParallelCluster with Slurm
AnswerB

SageMaker's distributed libraries (e.g., SageMaker Data Parallelism) enable multi-GPU training with minimal code changes.

Why this answer

SageMaker distributed training libraries support data parallelism and model parallelism with minimal code changes, enabling multi-GPU training across instances efficiently.

229
MCQeasy

A data science team deployed a model for real-time predictions. After two weeks, the model's accuracy dropped from 92% to 80%. The monitoring system shows no data drift in features, but the target variable distribution has shifted. Which approach should the team use to detect this issue?

A.Schedule manual weekly reviews of model predictions
B.Monitor the distribution of the predicted target variable over time
C.Retrain the model immediately with new data
D.Monitor input feature distributions using a KS test
AnswerB

This detects target drift, which indicates concept drift.

Why this answer

Monitoring the distribution of the predicted target variable directly detects concept drift, which occurs when the relationship between features and the target changes. Since the monitoring system shows no data drift in features, the accuracy drop is likely due to a shift in the target variable's distribution, and tracking predictions over time reveals this shift. This approach aligns with MLOps best practices for detecting concept drift without requiring immediate retraining.

Exam trap

CompTIA often tests the distinction between data drift and concept drift, trapping candidates who assume that monitoring input features (Option D) is sufficient to detect all performance degradation.

How to eliminate wrong answers

Option A is wrong because manual weekly reviews are reactive, not proactive, and cannot provide real-time detection of distribution shifts; they also introduce latency and human error. Option C is wrong because retraining the model immediately without diagnosing the root cause may waste resources and could reinforce biased patterns if the drift is temporary or due to a data quality issue. Option D is wrong because monitoring input feature distributions using a KS test detects data drift, but the problem states there is no data drift in features, so this approach would not identify the target variable shift causing the accuracy drop.

230
MCQeasy

A data scientist is preparing a dataset for training a classification model. The dataset has a column with missing values in 5% of rows. Which action should the data engineer take to minimize bias?

A.Impute missing values with the median of the column
B.Remove all rows with missing values
C.Replace missing values with a constant such as 999
D.Use a model that can handle missing values natively
AnswerA

Median imputation preserves the central tendency without being affected by outliers, suitable for low missing rate.

Why this answer

Imputing with the median preserves the distribution without significantly reducing sample size, minimizing bias. Removing rows reduces sample size, constant 999 introduces artificial outlier, and native handling may not be available.

231
Multi-Selecthard

An organization is deploying an LLM-based customer support agent. They want to protect against prompt injection attacks. Which THREE measures should they implement? (Select THREE.)

Select 3 answers
A.Increasing model temperature
B.Rate limiting
C.Disabling system prompts
D.Input sanitization
E.Output filtering
AnswersB, D, E

Rate limiting restricts the number of attempts, slowing down injection attempts.

Why this answer

Input sanitization removes malicious content from user input. Output filtering blocks harmful responses. Rate limiting reduces the ability to conduct automated attacks.

232
Multi-Selectmedium

A data science team is preparing a dataset for a binary classification model to detect fraudulent transactions. The dataset has 99% legitimate and 1% fraudulent examples. Which TWO techniques should the team apply to improve model performance on the minority class?

Select 2 answers
A.Use class weights in the loss function
B.Oversample the minority class using SMOTE
C.Undersample the majority class randomly
D.Apply data normalisation (z-score) to all features
E.Randomly shuffle the dataset to prevent train/test leakage
AnswersA, B

Class weights penalise misclassifications of the minority class more heavily.

Why this answer

Oversampling the minority class (e.g., SMOTE) and using class weights during training are standard approaches to handle imbalanced data. Undersampling the majority class can also help but is less common here; train/test leakage is a separate issue; normalisation may not be needed.

233
MCQmedium

After deploying a model for fraud detection, the data scientist observes a steady decline in precision over two months. Which issue is most likely occurring?

A.Data drift
B.Concept drift
C.Model overfitting
D.Adversarial attack
AnswerB

Precision decline indicates that the model's decision boundary is no longer optimal, a sign of concept drift.

Why this answer

Concept drift occurs when the statistical properties of the target variable change over time, causing the model's decision boundary to become outdated. In fraud detection, fraudsters continuously adapt their methods, so the relationship between input features and the fraud label shifts, leading to a steady decline in precision as false positives increase.

Exam trap

The AI0-001 exam often tests the distinction between data drift and concept drift by describing a scenario where the model's predictions become less accurate over time due to a change in the underlying relationship, not just the input data distribution.

How to eliminate wrong answers

Option A is wrong because data drift refers to changes in the distribution of input features (e.g., transaction amounts shift higher), which would affect recall or overall accuracy but not specifically precision in a steady decline pattern. Option C is wrong because model overfitting would cause poor generalization from the start, not a gradual decline over two months after deployment. Option D is wrong because an adversarial attack typically causes sudden, targeted performance drops or specific misclassifications, not a steady, broad decline in precision over time.

234
MCQhard

A security researcher demonstrates that by adding small perturbations to an image of a stop sign, an autonomous vehicle's AI misclassifies it as a speed limit sign. This is an example of which type of attack?

A.Data poisoning attack
B.Model extraction attack
C.Adversarial example attack
D.Membership inference attack
AnswerC

Adversarial examples are crafted inputs with perturbations that fool the model.

Why this answer

This is an adversarial example attack because the researcher adds imperceptible perturbations to the input image (the stop sign) to cause the AI model to output an incorrect classification (speed limit sign). Adversarial examples exploit the model's sensitivity to small, crafted changes in input data, leading to misclassification without altering the underlying task or training data.

Exam trap

The AI0-001 exam often tests the distinction between attacks that occur during training (poisoning) versus inference (adversarial examples), so candidates mistakenly choose data poisoning when the scenario clearly describes input manipulation at test time.

How to eliminate wrong answers

Option A is wrong because data poisoning attacks involve corrupting the training data (e.g., injecting malicious samples) to manipulate the model's learned behavior, not perturbing inputs at inference time. Option B is wrong because model extraction attacks aim to steal a model's architecture or parameters by querying it (e.g., via API calls), not by modifying inputs to cause misclassification. Option D is wrong because membership inference attacks determine whether a specific data point was used in the model's training set, not by perturbing inputs to cause misclassification.

235
Multi-Selecthard

A healthcare startup is building a diagnostic support system using a large language model. The system must provide accurate, evidence-based answers and avoid generating harmful or fabricated information. Which THREE techniques should be implemented to achieve this? (Choose 3)

Select 3 answers
A.Retrieval-Augmented Generation (RAG)
B.Disabling output filtering to speed up generation
C.Using chain-of-thought prompting for reasoning steps
D.Increasing the temperature parameter to encourage creativity
E.Fine-tuning on medical textbooks and guidelines
AnswersA, C, E

RAG retrieves relevant medical literature to ground responses.

Why this answer

RAG grounds answers in retrieved evidence, fine-tuning can align with medical domain, and prompt engineering can enforce accuracy and safety.

236
MCQeasy

A data scientist discovers that a model trained to predict loan defaults is denying loans at a higher rate for a particular demographic group. Which type of bias is MOST likely present?

A.Confirmation bias
B.Selection bias
C.Algorithmic bias
D.Historical bias
AnswerD

Historical bias is present when the training data encodes past societal biases, which the model then amplifies.

Why this answer

Historical bias occurs when the training data reflects past societal inequalities, leading the model to learn and perpetuate those patterns. In this case, if historical loan data shows higher denial rates for a demographic group due to past discriminatory practices, the model will replicate that bias in its predictions. This is the most likely cause because the model is not inherently biased but inherits bias from the data it was trained on.

Exam trap

The trap here is that candidates may confuse 'algorithmic bias' (a general term) with the specific root cause, failing to recognize that historical bias is the precise type when the bias originates from the training data rather than the algorithm itself.

How to eliminate wrong answers

Option A is wrong because confirmation bias refers to a human tendency to favor information that confirms preexisting beliefs, not a data-driven model bias in loan predictions. Option B is wrong because selection bias arises from non-random sampling of data (e.g., only including certain loan applicants), which is not described in the scenario where the model is trained on historical data. Option C is wrong because algorithmic bias is a broad term that can include historical bias, but the question asks for the most likely specific type, and historical bias directly explains the root cause in the training data.

237
Multi-Selectmedium

A healthcare startup needs to deploy an AI model for real-time patient monitoring on IoT devices with limited battery and compute. The model must run locally with minimal latency. Which TWO strategies are most appropriate?

Select 2 answers
A.Apply model distillation to create a smaller student model
B.Deploy the model on a cloud server and stream data
C.Use TensorFlow Lite to convert and run the model on the device
D.Quantize the model to INT8 precision
E.Use ONNX Runtime with a GPU backend
AnswersC, D

TensorFlow Lite is optimized for on-device machine learning, providing low-latency inference on resource-constrained devices.

Why this answer

TensorFlow Lite is specifically designed to run TensorFlow models on resource-constrained edge devices like IoT sensors. It optimizes the model for low latency inference by using a specialized interpreter and hardware acceleration delegates (e.g., NNAPI, GPU), enabling real-time patient monitoring without cloud dependency.

Exam trap

A common misconception is that model distillation alone is sufficient for edge deployment, when in fact it must be combined with a framework like TensorFlow Lite and quantization to meet hardware constraints in a Comptia AI context.

238
MCQhard

A deep learning engineer is training a transformer model and notices that validation perplexity increases after a few epochs while training perplexity continues to decrease. Which of the following is the MOST likely cause?

A.The temperature parameter is set too high
B.The batch size is too small
C.The learning rate is too low
D.The model is overfitting the training data
AnswerD

Overfitting leads to good training performance but poor generalisation, causing validation metrics to worsen.

Why this answer

The described pattern—decreasing training perplexity alongside increasing validation perplexity—is the classic signature of overfitting. The model is memorizing the training data rather than learning generalizable patterns, causing its performance on unseen validation data to degrade after a certain point in training.

Exam trap

CompTIA AI often tests the distinction between optimization issues (like learning rate or batch size) and generalization issues (like overfitting), and the trap here is that candidates may confuse a rising validation loss with a learning rate that is too high, when in fact the divergence between training and validation metrics is the definitive clue for overfitting.

How to eliminate wrong answers

Option A is wrong because the temperature parameter controls the sharpness of the output probability distribution during inference (e.g., in softmax), not the training dynamics or the divergence between training and validation loss; a high temperature would make predictions more uniform, not cause overfitting. Option B is wrong because a batch size that is too small typically introduces high gradient variance and can slow convergence or cause instability, but it does not directly cause the specific pattern of training loss decreasing while validation loss increases—that is a hallmark of overfitting, not a batch-size issue. Option C is wrong because a learning rate that is too low would cause the model to converge very slowly or get stuck in a local minimum, but both training and validation perplexity would likely plateau or decrease together; it would not produce a divergence where training perplexity continues to drop while validation perplexity rises.

239
MCQhard

An AI system is designed to automatically execute actions on behalf of users, such as sending emails. The security team is concerned about excessive agency. Which mitigation is most effective?

A.Disable output filtering
B.Increase the model's context window
C.Restrict the functions the model can call and require human approval for sensitive actions
D.Use a larger model
AnswerC

This limits the model's agency by restricting its action space and adding human oversight.

Why this answer

Limiting the scope of actions and requiring user confirmation for critical actions reduces the risk of the LLM performing unintended actions. This directly addresses excessive agency.

240
MCQhard

During testing a chatbot, the QA team observes that the bot sometimes responds with harmful content when given adversarial prompts. Which type of testing should be prioritised to catch these edge cases?

A.Red-teaming and adversarial testing
B.Unit tests for data pipeline functions
C.Regression testing on previously fixed bugs
D.Integration tests for API connectivity
AnswerA

Red-teaming systematically probes the model with harmful or tricky inputs to expose weaknesses.

Why this answer

Red-teaming and adversarial testing are specifically designed to probe an AI system for vulnerabilities, including generating harmful or unsafe outputs from adversarial prompts. This approach simulates real-world attacks to uncover edge cases that standard functional tests miss, making it the correct priority for catching harmful content in a chatbot.

Exam trap

The AI0-001 exam often tests the distinction between functional testing (unit, regression, integration) and security-focused testing (red-teaming), trapping candidates who confuse general software testing with AI-specific adversarial evaluation.

How to eliminate wrong answers

Option B is wrong because unit tests for data pipeline functions verify data integrity and transformation logic, not the chatbot's response to malicious inputs. Option C is wrong because regression testing ensures previously fixed bugs remain resolved, but it does not proactively discover new adversarial vulnerabilities. Option D is wrong because integration tests for API connectivity check whether system components communicate correctly, not whether the chatbot produces harmful content under attack.

241
MCQhard

An AI practitioner is fine-tuning a large language model for a domain-specific task using a small labeled dataset (500 examples). They have limited GPU memory. Which technique is MOST suitable?

A.Full fine-tuning of all model parameters
B.QLoRA (Quantized Low-Rank Adaptation)
C.Instruction tuning with the full dataset
D.Retrieval-Augmented Generation (RAG) without fine-tuning
AnswerB

QLoRA quantizes the base model to 4-bit and applies low-rank adapters, enabling fine-tuning with minimal memory without sacrificing performance.

Why this answer

QLoRA (Quantized Low-Rank Adaptation) is the most suitable technique because it combines 4-bit quantization of the base model with low-rank adapter modules, drastically reducing GPU memory usage while still allowing fine-tuning on a small dataset. This approach preserves the model's pre-trained knowledge and avoids catastrophic forgetting, which is critical when only 500 labeled examples are available.

Exam trap

The AI0-001 exam often tests the misconception that 'fine-tuning always means updating all parameters' or that 'RAG alone can replace fine-tuning for domain adaptation,' leading candidates to overlook memory-efficient adapter methods like QLoRA.

How to eliminate wrong answers

Option A is wrong because full fine-tuning updates all model parameters, requiring substantial GPU memory (often >24GB for a 7B model) and risks overfitting on a tiny dataset of 500 examples. Option C is wrong because instruction tuning typically requires a large, diverse dataset of instruction-response pairs (thousands to millions) and does not inherently reduce memory consumption; it is a data-formatting strategy, not a memory-saving technique. Option D is wrong because RAG without fine-tuning does not adapt the model's internal weights to the domain-specific task, so the model cannot learn the specialized patterns or terminology from the small labeled dataset.

242
MCQeasy

A company deploys an AI chatbot that generates product descriptions. The company wants to be transparent about AI-generated content. Which practice should they follow?

A.Clearly label AI-generated content as such
B.Publish a model card, but not label individual outputs
C.Add an invisible watermark but do not inform users
D.Do not disclose that content is AI-generated to avoid user confusion
AnswerA

Transparency requires disclosure that content is AI-generated.

Why this answer

Transparency about AI-generated content is a core principle of AI governance and ethics. Labeling AI-generated outputs as such allows users to make informed decisions about the content they consume, aligning with responsible AI practices.

Exam trap

The trap here is that candidates may think transparency is achieved through documentation alone (like model cards) or through hidden mechanisms, but Cisco tests that direct, user-visible labeling of AI-generated content is the ethical standard.

How to eliminate wrong answers

Option B is wrong because publishing a model card alone does not provide transparency for individual outputs; users need to know which specific content is AI-generated. Option C is wrong because an invisible watermark without informing users defeats the purpose of transparency, as users are unaware of the AI's involvement. Option D is wrong because intentionally hiding AI-generated content to avoid confusion violates ethical guidelines and erodes trust, as users have a right to know when content is AI-generated.

243
MCQeasy

An AI system must extract text from scanned invoices and output structured fields (invoice number, date, total amount). Which type of AI application is this?

A.Chatbot/virtual assistant
B.Code generation
C.Image classification/object detection
D.Document intelligence
AnswerD

Document intelligence extracts structured information from documents using OCR and NLP.

Why this answer

Document intelligence (D) is the correct answer because it specifically refers to AI systems that extract, classify, and structure data from documents like invoices, receipts, and forms. This application uses optical character recognition (OCR) combined with natural language processing (NLP) to identify and output structured fields such as invoice number, date, and total amount, which is exactly what the question describes.

Exam trap

The AI0-001 exam often tests the distinction between general image analysis (object detection) and specialized document processing (document intelligence), so candidates may mistakenly choose image classification because they think scanning an invoice is just 'looking at a picture,' but the key is that the system extracts structured text fields, not just identifies objects.

How to eliminate wrong answers

Option A is wrong because a chatbot/virtual assistant is designed for conversational interactions (e.g., answering questions or performing tasks via dialogue), not for extracting structured data from scanned documents. Option B is wrong because code generation focuses on producing programming code from natural language or other inputs, not on processing scanned invoices. Option C is wrong because image classification/object detection identifies objects or categories within an image (e.g., 'this is a cat' or 'there is a car'), but does not extract specific text fields like invoice numbers or amounts from documents.

244
MCQeasy

During feature engineering, a data scientist creates a new feature that is a linear combination of two existing features. What risk does this pose to the model?

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

Multicollinearity occurs when features are highly correlated, causing unstable estimates and inflated variances.

Why this answer

Creating a new feature as a linear combination of two existing features introduces perfect multicollinearity, where the new feature is an exact linear function of the original ones. This violates the assumption of no perfect multicollinearity in linear models, causing the design matrix to become singular and making coefficient estimates unstable or impossible to compute. Even in non-linear models, high multicollinearity can inflate variance and reduce interpretability.

Exam trap

CompTIA often tests the distinction between multicollinearity and overfitting, trapping candidates who confuse feature redundancy with model complexity.

How to eliminate wrong answers

Option B is wrong because data leakage refers to using information from outside the training set (e.g., future data or target leakage), not to relationships among features within the training data. Option C is wrong because overfitting is caused by a model learning noise or overly complex patterns, not by linear dependencies between features; multicollinearity primarily affects coefficient stability, not generalization error directly. Option D is wrong because underfitting occurs when a model is too simple to capture underlying patterns, whereas multicollinearity is a data structure issue that can actually increase model complexity without improving fit.

245
MCQmedium

An AI system for detecting anomalies in manufacturing sensor data uses a model trained on normal operation data only. During monitoring, the model flags many false positives. Which adjustment is MOST likely to reduce false positives?

A.Switch from an autoencoder to a one-class SVM
B.Add synthetic anomalies to the training set and retrain as a supervised classifier
C.Adjust the anomaly detection threshold to be less sensitive (e.g., require a higher reconstruction error)
D.Increase the size of the training dataset with more normal operation data
AnswerC

Raising the threshold means only more extreme deviations are flagged, reducing false positives.

Why this answer

Changing the anomaly detection threshold (e.g., lowering sensitivity) reduces false positives. Retraining with labeled anomalies is ideal but not always feasible. Using a different model type may not directly reduce false positives.

246
MCQhard

A developer is implementing a RAG system for legal document review. The documents are long (50-100 pages) with dense sections. They need to chunk the documents in a way that preserves semantic coherence while keeping chunks small enough for effective retrieval. Which chunking strategy is MOST appropriate?

A.Hierarchical chunking with parent-child relationships
B.Fixed-size chunking with 512 tokens and no overlap
C.Semantic chunking based on paragraph and section boundaries
D.Chunking by a fixed number of sentences without considering content
AnswerC

Semantic chunking preserves the natural units of legal text, maintaining coherence and improving retrieval quality.

Why this answer

Semantic chunking splits text at natural boundaries (e.g., paragraphs, sections) while ensuring each chunk is coherent, which is crucial for legal documents where meaning can span multiple sentences.

247
MCQmedium

A financial institution uses a machine learning model to approve personal loans. The model was trained on historical data that includes applicant age, income, credit score, and loan amount. Compliance officers have received customer complaints suggesting the model may be discriminating against applicants over 60 years old. Initial analysis shows that the approval rate for applicants over 60 is 20 percentage points lower than for younger applicants with similar credit profiles. The data science team has been asked to investigate and remediate any bias. They have access to the training data, model coefficients, and can retrain or modify the model. What is the FIRST step the team should take?

A.Replace the model with a third-party vendor model that claims to be bias-free.
B.Re-sample the training data to have equal numbers of applicants over and under 60.
C.Conduct a fairness audit using appropriate metrics such as disparate impact ratio on the current model.
D.Remove the age feature from the training data and retrain the model.
AnswerC

An audit quantifies bias and provides a baseline to measure remediation effectiveness.

Why this answer

The first step in addressing potential bias is to conduct a fairness audit using established metrics like the disparate impact ratio (e.g., the 80% rule from the US Equal Employment Opportunity Commission). This quantifies whether the model's approval rate for applicants over 60 is less than 80% of the rate for the younger group, providing a legally and technically sound baseline before any remediation. Without this measurement, any subsequent changes (like resampling or removing features) could be misguided or ineffective.

Exam trap

CompTIA often tests the misconception that removing a protected attribute (like age) is sufficient to eliminate bias, when in fact proxy features can perpetuate discrimination, making a fairness audit the mandatory first step.

How to eliminate wrong answers

Option A is wrong because replacing the model with a third-party vendor model that claims to be bias-free does not address the specific bias found in the current system, and it bypasses the necessary diagnostic step of understanding the root cause; vendor claims are not a substitute for empirical validation. Option B is wrong because resampling the training data to have equal numbers of applicants over and under 60 does not guarantee fairness—it can introduce sampling bias, distort the real-world distribution, and may not correct the underlying model behavior that causes disparate impact. Option D is wrong because simply removing the age feature from the training data and retraining the model is a naive approach; age may be correlated with other features (e.g., income, credit score), so the model could still indirectly discriminate through proxy variables, a phenomenon known as 'bias amplification' or 'redundant encoding'.

248
MCQmedium

An operations team sees the log entries above for a production ML model. What is the MOST likely root cause of the latency spike?

A.A scheduled training job consuming GPU resources on the same node.
B.A memory leak in the model serving container causing gradual slowdown.
C.A network outage between the model server and the client.
D.A bug in the model's preprocessing code causing incorrect predictions.
AnswerB

Memory leak can cause garbage collection overhead and increased latency.

Why this answer

The log entries show a gradual increase in latency over time, which is characteristic of a memory leak in the model serving container. As memory consumption grows, garbage collection pauses become more frequent and longer, eventually causing request processing to slow down. This pattern is distinct from a sudden spike caused by resource contention or network issues.

Exam trap

CompTIA often tests the distinction between gradual vs. sudden performance degradation patterns, where candidates mistakenly attribute a gradual latency increase to a transient resource contention event like a training job or network issue.

How to eliminate wrong answers

Option A is wrong because a scheduled training job consuming GPU resources would cause a sudden, sharp latency spike at the start of training, not a gradual increase over time. Option C is wrong because a network outage would result in complete request failures or timeouts, not a progressive latency degradation. Option D is wrong because a bug in preprocessing code causing incorrect predictions would affect prediction accuracy, not the latency of the serving endpoint.

249
MCQhard

A healthcare AI system diagnosing diabetic retinopathy from retinal images shows high accuracy overall but significantly lower recall for patients with darker skin tones. Which fairness metric would BEST capture this disparity by comparing true positive rates across groups?

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

Equalised odds directly compares true positive rates and false positive rates across groups, making it the correct metric to detect the described recall disparity.

Why this answer

Equalised odds requires that the true positive rate and false positive rate be equal across groups. Demographic parity only checks outcome rates, not error types. Individual fairness compares similar individuals.

Calibration checks confidence alignment.

250
MCQmedium

An AI system is being designed to automatically detect fraudulent transactions in real-time. The system must have low latency and high precision to minimize false alarms. Which algorithm is most appropriate?

A.Logistic regression
B.Convolutional neural network
C.Deep reinforcement learning
D.Random forest
AnswerD

Random forest provides high accuracy and precision with low inference latency, making it ideal for real-time fraud detection.

Why this answer

Random forest is the most appropriate algorithm because it handles high-dimensional transaction data, provides feature importance for interpretability, and achieves high precision with low latency through ensemble decision trees. Its parallelizable structure allows real-time scoring, and it naturally balances precision and recall without the computational overhead of deep learning.

Exam trap

CompTIA often tests the misconception that deep learning (CNNs or reinforcement learning) is always superior for complex tasks, but here the key constraints are low latency and high precision on tabular data, where ensemble methods like random forest outperform deep models.

How to eliminate wrong answers

Option A is wrong because logistic regression assumes linear decision boundaries and cannot capture complex non-linear patterns in transaction data, leading to lower precision. Option B is wrong because convolutional neural networks are designed for spatial data like images, not tabular transaction features, and introduce unnecessary latency and computational cost for real-time fraud detection. Option C is wrong because deep reinforcement learning is used for sequential decision-making in dynamic environments (e.g., game playing, robotics), not for static classification tasks like fraud detection, and its training instability and high latency make it unsuitable for real-time scoring.

251
MCQmedium

A team is using an API from a cloud AI service to generate text. They notice that repeated requests with the same prompt return different outputs. They want consistent responses for testing. Which parameter should they adjust?

A.Increase the top_p parameter to 1.0
B.Set the frequency_penalty to 0
C.Increase the max_tokens parameter
D.Set the temperature to 0
AnswerD

Temperature controls randomness; a value of 0 makes the model deterministic, so the same prompt always yields the same output.

Why this answer

Setting the temperature to 0 makes the model deterministic, producing the same output for the same input, which is ideal for testing.

252
Multi-Selectmedium

A company is deploying a chatbot using a large language model. They want to mitigate the risk of prompt injection attacks. Which TWO measures should be implemented?

Select 2 answers
A.Implement input validation and sanitisation
B.Use a system prompt that strictly defines the chatbot's behavior
C.Fine-tune the model on safe conversational examples
D.Use a larger context window
E.Limit the maximum output token length
AnswersA, B

Input validation and sanitisation filter out harmful or injected content before processing.

Why this answer

Input validation and sanitisation (A) prevent malicious user inputs from being interpreted as instructions by the LLM, directly mitigating prompt injection by stripping or escaping special characters and control sequences. A strict system prompt (B) defines the chatbot's role and boundaries, reducing the attack surface by making it harder for injected prompts to override the intended behavior.

Exam trap

CompTIA often tests the misconception that fine-tuning or output limits can prevent prompt injection, when in fact these measures do not address the root cause of untrusted input being processed as instructions.

253
MCQhard

A financial institution is building a fraud detection system using a supervised learning model. The dataset is highly imbalanced with 99.9% legitimate transactions and 0.1% fraudulent ones. Which approach would be MOST effective to train the model to detect fraud?

A.Train the model using accuracy as the performance metric
B.Undersample the legitimate transactions to match the number of fraudulent ones
C.Use SMOTE to generate synthetic fraudulent transactions
D.Increase the regularization strength in the model
AnswerC

SMOTE creates synthetic samples of the minority class, effectively balancing the dataset without losing data.

Why this answer

SMOTE (Synthetic Minority Oversampling Technique) is the most effective approach because it generates synthetic fraudulent transactions by interpolating between existing minority class samples, thereby balancing the dataset without losing information. This allows the model to learn decision boundaries for fraud detection more effectively than simple undersampling or metric adjustments, especially given the extreme 99.9% vs 0.1% imbalance.

Exam trap

CompTIA often tests the misconception that simply changing the performance metric (like using F1-score or precision-recall) alone is sufficient to handle imbalance, but the trap here is that without addressing the data distribution itself, the model still lacks sufficient fraudulent examples to learn meaningful patterns.

How to eliminate wrong answers

Option A is wrong because accuracy is a misleading metric for highly imbalanced datasets; a model that predicts all transactions as legitimate would achieve 99.9% accuracy but detect zero fraud. Option B is wrong because undersampling the majority class to match the 0.1% fraud rate would discard 99.8% of legitimate transactions, causing severe information loss and poor generalization to real-world data. Option D is wrong because increasing regularization strength reduces model complexity to prevent overfitting, but it does not address the class imbalance; the model would still be biased toward the majority class and fail to learn fraud patterns.

254
MCQmedium

A natural language processing team wants to build a sentiment analysis model for customer reviews. They have 10,000 labeled reviews and 1 million unlabeled reviews. Which approach would MOST effectively leverage the unlabeled data?

A.Use self-supervised learning to pretrain on the unlabeled data, then fine-tune on the labeled data
B.Train a supervised classifier on only the 10,000 labeled reviews
C.Implement a semi-supervised learning algorithm that propagates labels from the labeled to the unlabeled data
D.Use reinforcement learning with the unlabeled data as rewards
AnswerC

Semi-supervised learning leverages the unlabeled data by using the labeled data to infer labels for similar unlabeled examples, improving model generalization.

Why this answer

Semi-supervised learning uses the small labeled set to guide learning from the large unlabeled set. Self-supervised learning would require a pretext task; fine-tuning a pre-trained model is also valid but semi-supervised directly addresses the labeled-unlabeled mix.

255
MCQeasy

Which principle ensures that AI decisions can be traced back and understood by humans?

A.Transparency
B.Privacy
C.Robustness
D.Accountability
AnswerA

Transparency ensures that AI processes are open and understandable.

Why this answer

Transparency is the principle that ensures AI decisions can be traced back and understood by humans. It requires that the internal workings of an AI model, including its inputs, decision paths, and outputs, are documented and interpretable, enabling auditability and trust. Without transparency, stakeholders cannot verify whether the AI system is behaving as intended or complying with ethical and regulatory standards.

Exam trap

The AI0-001 exam often tests the confusion between Accountability and Transparency, where candidates mistakenly think that assigning responsibility (Accountability) automatically ensures the decision path is visible, but in reality, Accountability can exist without full Transparency if the system is a black box.

How to eliminate wrong answers

Option B is wrong because Privacy focuses on protecting personal data and controlling its collection, use, and sharing, not on making AI decisions traceable or understandable. Option C is wrong because Robustness concerns the system's ability to maintain performance under adversarial conditions or unexpected inputs, not the traceability of its decision-making process. Option D is wrong because Accountability refers to assigning responsibility for AI outcomes and ensuring there are mechanisms for redress, but it does not inherently require that the decision-making process itself be transparent or understandable.

256
Multi-Selecthard

A company is deploying an LLM-powered application that answers questions based on internal documents. They want to minimize prompt injection attacks where users trick the model into ignoring instructions. Which THREE measures should they implement? (Select THREE)

Select 3 answers
A.Use a system-level prompt that clearly defines allowed behavior and boundaries
B.Set temperature to 0.0 for all queries
C.Allow the model to execute any code from user prompts for flexibility
D.Implement a separate classifier to detect and block injection attempts
E.Sanitize user inputs to remove special tokens or injection patterns
AnswersA, D, E

A strong system prompt sets context and restricts the model from following malicious instructions.

Why this answer

A is correct because a system-level prompt establishes a foundational instruction set that defines the model's allowed behavior and boundaries. This acts as a first line of defense by explicitly instructing the model to ignore any user attempts to override its core directives, thereby reducing the risk of prompt injection attacks.

Exam trap

The AI0-001 exam often tests the misconception that reducing model temperature or randomness can mitigate security threats, when in fact temperature only affects output creativity, not instruction adherence or input safety.

257
MCQmedium

A data engineering team needs to orchestrate a complex ML pipeline that involves data extraction, transformation, model training, and deployment. They require scheduling, monitoring, and retry logic. Which MLOps tool is BEST suited for this task?

A.Weights & Biases
B.Kubeflow
C.MLflow
D.Apache Airflow
AnswerD

Airflow is a mature, flexible orchestrator for scheduling and monitoring complex pipelines.

Why this answer

Apache Airflow is a workflow orchestration tool that supports complex DAGs, scheduling, monitoring, and retries, making it ideal for ML pipelines.

258
MCQmedium

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

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

Subgroup analysis is the standard first step in fairness auditing.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

259
MCQhard

A team is fine-tuning a BERT model for a document classification task. They notice the model achieves high F1 scores on the training set but low F1 on the validation set. Which regularization technique would be MOST effective?

A.L1 regularization
B.L2 regularization
C.Dropout
D.Reduce batch size
AnswerC

Dropout is widely used in transformer models; increasing dropout rate during fine-tuning can reduce overfitting.

Why this answer

Dropout randomly drops neurons during training, preventing co-adaptation and overfitting. L1 and L2 add penalties to weights but are less common for transformers; L1 induces sparsity, L2 reduces weight magnitude. However, dropout is the standard regularization in BERT-like models.

260
MCQeasy

During an AI model deployment, the operations team notices that inference requests are taking longer than expected. Which component is most likely causing the bottleneck?

A.Input data preprocessing pipeline
B.API gateway rate limiting
C.Database connection pool size
D.The machine learning model's size and architecture
AnswerD

Larger models take longer to compute predictions.

Why this answer

The machine learning model's size and architecture directly determine the computational complexity of inference. Larger models with more parameters or deeper architectures require more matrix multiplications and memory bandwidth, which increases latency per request. This is the most common bottleneck in AI deployment because the model itself is the core computation unit, and its inference time scales with its complexity.

Exam trap

CompTIA often tests the misconception that operational components like API gateways or databases are the primary cause of slow inference, when in fact the model's computational demand is the root cause, especially in scenarios where preprocessing and postprocessing are negligible.

How to eliminate wrong answers

Option A is wrong because input data preprocessing typically involves lightweight operations like normalization or tokenization, which are orders of magnitude faster than model inference and rarely the primary bottleneck unless the pipeline is poorly optimized. Option B is wrong because API gateway rate limiting controls the number of requests per second, not the latency of individual inference requests; it would cause throttling errors, not slow responses. Option C is wrong because database connection pool size affects the ability to fetch or store data concurrently, but inference latency is dominated by model computation, not database lookups, unless the model relies on external data retrieval per request.

261
MCQeasy

An organization is deploying an AI model on edge devices with limited computational resources. Which model optimization technique is most appropriate?

A.Perform additional feature engineering
B.Apply model quantization
C.Use an ensemble of models
D.Increase the training dataset size
AnswerB

Quantization reduces precision, making models smaller and faster.

Why this answer

Model quantization reduces the precision of the model's weights and activations (e.g., from 32-bit floating point to 8-bit integer), which significantly decreases memory footprint and computational requirements. This makes it ideal for deployment on edge devices with limited resources, as it enables faster inference with minimal accuracy loss.

Exam trap

CompTIA often tests the misconception that improving model performance (e.g., via feature engineering or more data) is equivalent to optimizing for deployment constraints, when in fact techniques like quantization directly address resource limitations.

How to eliminate wrong answers

Option A is wrong because feature engineering improves model input quality but does not reduce the computational load or model size required for inference on edge devices. Option C is wrong because using an ensemble of models increases the total number of parameters and inference time, which is counterproductive for resource-constrained edge devices. Option D is wrong because increasing the training dataset size improves model generalization but does not reduce the model's computational requirements during inference; it may even increase training time and model complexity.

262
MCQeasy

During model training, the data science team discovers that many input features contain missing values. Which step should be taken to improve data quality?

A.Implement data validation checks to handle missing data appropriately (e.g., imputation).
B.Increase the model complexity to handle missing data.
C.Ignore missing values and train the model.
D.Remove all records with missing values.
AnswerA

This ensures data quality without losing valuable information.

Why this answer

Data validation checks, such as imputation (e.g., mean, median, or KNN imputation), directly address missing values by estimating plausible replacements based on the available data. This improves data quality and prevents bias or loss of information that could degrade model performance. In the context of AI implementation, handling missing data is a fundamental data preprocessing step to ensure robust model training.

Exam trap

CompTIA often tests the misconception that 'ignoring missing data' or 'removing rows' is acceptable, when in fact proper data validation and imputation are required to maintain data integrity and model validity.

How to eliminate wrong answers

Option B is wrong because increasing model complexity (e.g., adding more layers or parameters) does not inherently handle missing data; it may overfit to noise or propagate errors from incomplete features. Option C is wrong because ignoring missing values can cause algorithms (e.g., linear regression, SVM) to fail during training or produce biased coefficients, as many implementations do not natively support NaN inputs. Option D is wrong because removing all records with missing values can lead to significant data loss, reduce sample size, and introduce selection bias, especially when missingness is not completely at random (MCAR).

263
Multi-Selectmedium

Which TWO of the following are effective techniques for detecting bias in an AI model?

Select 2 answers
A.Fairness metrics such as equal opportunity difference
B.Feature importance scores
C.Confusion matrix on the entire dataset
D.Cross-validation accuracy
E.Disparate impact analysis
AnswersA, E

Quantifies specific fairness criteria.

Why this answer

Fairness metrics such as equal opportunity difference directly quantify bias by measuring the difference in true positive rates between privileged and unprivileged groups. A value of zero indicates perfect fairness, while non-zero values reveal disparate treatment, making it a standard technique for bias detection in AI models.

Exam trap

The AI0-001 exam often tests the distinction between model performance metrics (accuracy, confusion matrix) and fairness-specific metrics, leading candidates to mistakenly select cross-validation accuracy or feature importance as bias detection tools.

264
MCQmedium

A data scientist is building a model to predict credit default using historical loan data. The dataset contains 100,000 records with 50 features, including income, debt-to-income ratio, and loan amount. The target variable is binary (default vs. no default). The goal is to maximize interpretability while maintaining high accuracy. Which algorithm is MOST appropriate?

A.Logistic regression
B.Random forest
C.Gradient boosting machine
D.Decision tree
AnswerA

Logistic regression provides clear odds ratios and feature coefficients, making it highly interpretable, and it performs well on large datasets with moderate feature complexity.

Why this answer

Logistic regression is interpretable (coefficients show feature impact) and performs well on binary classification with a large dataset. Decision trees are interpretable but may overfit; random forests and gradient boosting are less interpretable.

265
MCQeasy

A bank deploys an AI system to approve loan applications. During testing, the model denies a disproportionate number of applicants from a particular demographic group, even after controlling for credit history. Which ethical principle is being violated?

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

Fairness requires equal treatment across demographic groups; the observed disparity indicates bias.

Why this answer

The AI system's disparate impact on a demographic group, even after controlling for credit history, directly violates the principle of fairness. Fairness in AI requires that models do not produce biased outcomes that systematically disadvantage protected groups, regardless of whether the bias stems from training data, feature selection, or algorithmic design. This scenario describes a clear case of algorithmic bias, which fairness principles aim to prevent.

Exam trap

The AI0-001 exam often tests the distinction between fairness and transparency, where candidates mistakenly choose transparency because they confuse 'explaining why the model denied loans' with 'the model being biased against a group.'

How to eliminate wrong answers

Option A is wrong because transparency refers to the openness and explainability of AI decisions, not the presence of biased outcomes; a model can be fully transparent yet still unfair. Option B is wrong because privacy concerns the protection of personal data and consent, not the equitable treatment of groups in decision-making. Option C is wrong because accountability involves assigning responsibility for AI outcomes, but the core ethical breach here is the biased result itself, not the lack of a responsible party.

266
MCQmedium

A credit union uses an AI model to approve personal loans. The model was trained on historical data from the past five years. A recent internal review shows that the model approves loans predominantly for white applicants compared to other ethnicities, even when income and credit scores are similar. The credit union wants to comply with fair lending laws without significantly reducing overall approval rates. The data science team has access to the training data. What is the most appropriate remediation step?

A.Apply a fairness constraint that penalizes the model for disparate impact
B.Discontinue the AI model and use manual approval for all loans
C.Resample the training data to ensure balanced representation of ethnicities
D.Adjust the approval threshold so that approval rates are equal across ethnic groups
AnswerC

Resampling addresses the root cause by balancing training data.

Why this answer

Resampling the training data to ensure balanced representation of ethnicities directly addresses the root cause of the bias—skewed historical data—without altering the model's decision logic or approval thresholds. By rebalancing the dataset (e.g., oversampling underrepresented groups or undersampling the majority), the model learns from a more equitable distribution of features, reducing disparate impact while preserving overall approval rates. This approach aligns with fair lending laws by mitigating bias at the data level, which is the most fundamental and effective remediation step.

Exam trap

CompTIA often tests the misconception that adjusting the approval threshold (Option D) is a valid fairness intervention, but the trap here is that threshold adjustment only changes the cutoff for decisions without fixing the underlying biased feature representations, leading to inconsistent and potentially illegal outcomes under fair lending laws.

How to eliminate wrong answers

Option A is wrong because applying a fairness constraint that penalizes the model for disparate impact is a post-hoc regularization technique that can reduce approval rates overall and may not comply with fair lending laws if it introduces reverse discrimination or violates the business requirement of not significantly reducing overall approval rates. Option B is wrong because discontinuing the AI model and using manual approval for all loans is an extreme measure that abandons automation entirely, likely increasing operational costs and introducing human bias, which does not meet the goal of compliance without significantly reducing approval rates. Option D is wrong because adjusting the approval threshold to equalize approval rates across ethnic groups is a simplistic, outcome-based fix that does not address underlying bias in the model's learned representations; it can lead to inconsistent decisions for similar applicants and may violate the principle of individual fairness under fair lending laws.

267
Multi-Selectmedium

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

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

Dropout randomly drops neurons during training, reducing overfitting.

Why this answer

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

Exam trap

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

268
MCQhard

A financial institution deploys an AI model for loan approval. To meet regulatory requirements under the EU AI Act for high-risk AI systems, they must ensure human oversight. Which implementation best satisfies the requirement for meaningful human intervention?

A.Audit model decisions quarterly for bias
B.Allow users to appeal decisions through a customer service hotline
C.Display a confidence score for each decision
D.Provide a human reviewer with the ability to override the model's decision before finalization
AnswerD

This ensures a human can intervene in individual cases, meeting the oversight requirement.

Why this answer

Human-in-the-loop oversight with an override mechanism allows a qualified human to review and override automated decisions, satisfying the EU AI Act's requirement for high-risk systems.

269
MCQmedium

A company wants to generate realistic images of new product designs. They have a large dataset of existing product images. Which generative AI approach is MOST suitable for creating novel, high-quality images?

A.Large language model (LLM)
B.Variational autoencoder (VAE)
C.Generative adversarial network (GAN)
D.Diffusion model
AnswerC

GANs are designed to generate high-quality, realistic images by adversarial training.

Why this answer

GANs (Generative Adversarial Networks) consist of a generator and discriminator that compete, producing highly realistic images. Diffusion models are also good but GANs are historically the go-to for image generation. VAEs produce blurrier images; LLMs are for text.

270
Multi-Selecthard

A large enterprise is developing an internal LLM-powered assistant that can access the internet and execute code. To mitigate risks from excessive agency (e.g., the model performing unauthorized actions), which THREE security measures should be implemented?

Select 3 answers
A.Deploy monitoring for anomalous input patterns
B.Require human-in-the-loop approval for code execution and write operations
C.Use least-privilege API tokens for external tool access
D.Implement input validation and sanitization to prevent prompt injection
E.Apply output filtering to block sensitive data in responses
AnswersB, C, D

Human approval for high-risk actions prevents the model from autonomously performing destructive or unauthorized operations.

Why this answer

Requiring human-in-the-loop approval for code execution and write operations directly enforces a control over the model's agency, preventing it from performing unauthorized actions such as modifying files or executing arbitrary commands. This measure ensures that any action with side effects is vetted by a human operator, mitigating the risk of excessive agency where the LLM could autonomously cause harm.

Exam trap

The AI0-001 exam often tests the distinction between detection controls (like monitoring) and prevention controls (like human approval), leading candidates to select monitoring as a security measure for excessive agency when it only provides visibility, not restriction.

271
Multi-Selectmedium

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

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

Labels are required for supervised tasks.

Why this answer

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

Exam trap

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

272
MCQeasy

An organization wants to integrate an AI-powered summarization feature into their existing web application. The AI service will be called via API. Which factor is MOST important to consider for cost management?

A.Token pricing of the AI model
B.Authentication method (API key vs. OAuth)
C.Rate limits per minute
D.Network latency to the API endpoint
AnswerA

Token pricing is the primary cost driver; optimizing prompt length and output tokens directly reduces expenses.

Why this answer

Token pricing directly impacts cost because API calls are billed based on the number of tokens (input + output). Understanding token usage helps estimate and control expenses.

273
MCQhard

A healthcare company is developing a predictive model to identify patients at risk of readmission within 30 days. The data engineering team has built a pipeline that collects data from multiple sources, including electronic health records (EHR), lab results, and wearable device data. During initial testing, the model's performance is poor, with high false positives. Upon investigation, the team discovers that the data contains significant temporal misalignment: lab results are timestamped when ordered, not when collected; wearable data is aggregated hourly; and EHR data has inconsistent update frequencies. The data pipeline currently joins all features on the patient ID without aligning timestamps. The data volume is large, and processing time is a concern. Which action should the data engineering team take to most effectively address the issue and improve model performance?

A.Discard all records where timestamps do not match exactly across sources, and only use records with perfect alignment.
B.Implement a window-based feature aggregation (e.g., 6-hour windows) and align all features to the same time windows before joining.
C.Leave the pipeline unchanged and instead adjust the model's classification threshold to reduce false positives.
D.Use a data imputation algorithm to fill in missing timestamps and then join on the nearest timestamp.
AnswerB

This creates consistent timestamps and reduces noise through aggregation, effectively addressing misalignment.

Why this answer

Implementing a window-based feature aggregation with consistent time windows (e.g., 6-hour or 12-hour) and aligning all data to those windows before joining ensures temporal consistency and reduces noise. This approach addresses the root cause of misalignment while managing data volume through aggregation. Simply discarding data or padding with zeros loses valuable information.

Using an interpolation algorithm may introduce unrealistic values for irregularly sampled data. Leaving the pipeline as-is and tuning the model does not fix the data quality issue.

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

Retrieval-Augmented Generation (RAG) avoids retraining by storing policy documents as vector embeddings in a vector store, then retrieving relevant chunks at query time to inject into the language model’s context. This satisfies the constraint of monthly document updates without model retraining, as only the indexed vectors need refreshing, not the underlying generative model’s weights.

Why this answer

RAG (Retrieval-Augmented Generation) allows the LLM to retrieve relevant document sections at inference time, so knowledge stays current without retraining. The other options either require expensive retraining for each update or lack document grounding.

275
Multi-Selecthard

A healthcare AI system is subject to GDPR because it processes patient data. Which THREE requirements must the system satisfy?

Select 3 answers
A.Right to explanation of decisions
B.Explicit consent from all data subjects
C.Meaningful information about the logic involved in automated decision-making
D.Data minimization principles
E.Data retention period of at least 10 years
AnswersA, C, D

Article 22 and Recital 71 provide a right to explanation for automated decisions.

Why this answer

Article 22 of the GDPR grants data subjects the right not to be subject to a decision based solely on automated processing, including profiling, which produces legal effects or similarly significant effects. For healthcare AI systems, this means patients have the right to obtain an explanation of the decision reached by the algorithm, such as how a diagnosis or treatment recommendation was derived. This requirement ensures transparency and accountability in high-stakes automated decisions.

Exam trap

Candidates often confuse the requirements of GDPR for AI systems. A common trap is assuming that explicit consent is always required for healthcare AI processing, but GDPR provides other lawful bases (e.g., vital interests, public health). The right to explanation is a distinct requirement under Article 22 for automated decision-making, and data minimization principles apply broadly.

276
MCQmedium

Refer to the exhibit. An auditor reports that the model's fairness check was bypassed in a recent deployment. Based on the policy, what is the most likely cause?

A.The auditor role lacks 'evaluate' permission
B.Data scientist role has deploy permission, allowing deployment without fairness validation
C.Fairness check threshold is set to 0.8, which is too low
D.External_user role can perform inference, which triggers unfair predictions
AnswerB

The deploy permission may bypass the fairness check if not enforced.

Why this answer

(Data scientist role has deploy permission, allowing deployment without fairness validation) is correct. The policy shows fairness_check required, but if the deployment process does not enforce it, the data scientist could bypass it. Option A (Auditor lacks evaluate) is unrelated to deployment.

Option C (Fairness threshold low) does not cause bypass. Option D (External user inference) is unrelated.

277
MCQhard

A company is building a recommendation system for an e-commerce site. They have historical user-item interaction data. Which approach is most appropriate?

A.Use a large language model to generate random product suggestions
B.Use a pre-trained image classification model to recommend visually similar products
C.Deploy a rule-based system that always recommends best-selling items
D.Train a collaborative filtering model on user-item interactions
AnswerD

Collaborative filtering leverages interaction data to find patterns and make personalized recommendations.

Why this answer

Collaborative filtering uses user-item interactions to recommend items based on patterns from similar users or items, without requiring content features.

278
MCQhard

A team is deploying a fine-tuned LLM for code generation. They need to ensure the model output is always valid JSON. Which prompt engineering technique should they use?

A.Chain-of-thought prompting
B.Few-shot examples of valid JSON outputs
C.Temperature setting to 0
D.Using a larger model variant
AnswerB

Correct. Providing few-shot examples of valid JSON outputs conditions the model to mimic that structure, making it the most direct technique listed.

Why this answer

Few-shot prompting provides the model with examples of valid JSON outputs, conditioning it to mimic the format in its response. This is an effective technique for constraining output structure without requiring model retraining or special modes.

Exam trap

Candidates might mistakenly think that setting temperature to 0 will guarantee valid JSON output, but temperature controls randomness, not format. The only way to enforce a specific format with standard prompting is through explicit instructions and examples.

279
MCQhard

An organization uses a batch prediction pipeline that processes daily customer data to generate marketing recommendations. One month after deployment, the model's performance degrades significantly. The data pipeline logs show that the input data schema has changed — a new categorical feature 'customer_segment' has been added, and the existing feature 'age_group' is now missing. Which step should the operations team take first?

A.Retrain the model using the new schema and redeploy
B.Update the data preprocessing pipeline to handle missing features and add the new feature
C.Revert to the previous week's model version that was performing well
D.Contact the data engineering team to revert the schema change
AnswerB

This adapts the pipeline to the new schema, enabling proper feeding to the model.

Why this answer

The immediate priority is to ensure the data preprocessing pipeline can handle the schema change without breaking. The pipeline must gracefully handle the missing 'age_group' feature (e.g., by imputing or dropping it) and incorporate the new 'customer_segment' feature before any model retraining or rollback. This prevents data drift from causing inference errors and maintains pipeline stability.

Exam trap

CompTIA often tests the misconception that retraining the model (Option A) is the first step to fix performance degradation, but the trap here is that the root cause is a schema mismatch in the preprocessing layer, not the model weights.

How to eliminate wrong answers

Option A is wrong because retraining the model without first fixing the preprocessing pipeline would still fail due to missing or misaligned features, and it assumes the new schema is already compatible. Option C is wrong because reverting to a previous model version does not address the root cause — the input data schema has changed, so the old model would still receive malformed data and produce incorrect predictions. Option D is wrong because contacting the data engineering team to revert the schema change is a reactive, non-technical workaround that ignores the need for the operations team to adapt the pipeline to handle schema evolution autonomously.

280
MCQmedium

A company deploys an LLM-based chatbot that retrieves data from external databases. An attacker embeds malicious instructions in a database record. When the chatbot retrieves that record, it executes the instructions, overriding its system prompt. Which type of attack is this?

A.Model inversion attack
B.Indirect prompt injection
C.Direct prompt injection
D.Membership inference attack
AnswerB

The malicious instructions are embedded in the retrieved data, making it indirect.

Why this answer

This is an indirect prompt injection attack because the malicious instructions are embedded in a third-party data source (the database record) rather than being sent directly by the user. When the LLM retrieves and processes that record, the injected instructions override the system prompt, causing the chatbot to behave contrary to its intended design.

Exam trap

The AI0-001 exam often tests the distinction between direct and indirect prompt injection by making the attack vector (user input vs. external data source) the key differentiator, so candidates must identify where the malicious instructions originate.

How to eliminate wrong answers

Option A is wrong because a model inversion attack aims to reconstruct training data or extract sensitive information from the model's parameters, not to inject instructions via external data. Option C is wrong because direct prompt injection involves an attacker sending malicious input directly to the LLM (e.g., in a user prompt), not embedding it in a retrieved database record. Option D is wrong because a membership inference attack determines whether a specific data point was part of the model's training set, not about injecting instructions into the model's context.

281
MCQmedium

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

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

Low recall indicates a high number of false negatives.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

282
MCQhard

A data scientist is preparing a dataset for a binary classification model to detect fraudulent transactions. The dataset contains 1% fraudulent and 99% legitimate transactions. The goal is to maximize recall for the fraud class while maintaining a precision above 0.5. Which data preparation strategy is MOST effective?

A.Apply random undersampling of the majority class until the dataset is balanced
B.Remove all duplicate transactions from the dataset
C.Use the raw dataset without any resampling, relying on class weights during training
D.Apply SMOTE (Synthetic Minority Oversampling Technique) to generate synthetic fraud examples
AnswerD

SMOTE creates synthetic minority samples, balancing the classes without losing majority data, improving recall while maintaining reasonable precision.

Why this answer

Handling imbalanced data typically requires resampling. For recall maximization with moderate precision constraint, oversampling the minority class (e.g., SMOTE) is effective. Undersampling loses too many majority samples, and using raw data leads the model to predict the majority class.

283
MCQeasy

A data engineer needs to combine two datasets, each with unique customer_id, to include all records from both datasets. Which join type should be used?

A.FULL OUTER JOIN
B.RIGHT JOIN
C.LEFT JOIN
D.INNER JOIN
AnswerA

FULL OUTER JOIN includes all records from both tables, matching where possible and filling nulls elsewhere.

Why this answer

A FULL OUTER JOIN returns all records from both datasets, matching rows where the customer_id is present in both and filling in NULLs for missing matches. This is the only join type that guarantees every unique customer_id from either dataset appears in the result, which is exactly what the requirement specifies.

Exam trap

CompTIA often tests the misconception that LEFT JOIN or RIGHT JOIN can include all records from both datasets, but candidates forget that these asymmetric joins exclude non-matching rows from the opposite side.

How to eliminate wrong answers

Option B (RIGHT JOIN) is wrong because it returns only all rows from the right dataset and matching rows from the left, omitting any customer_id that exists only in the left dataset. Option C (LEFT JOIN) is wrong because it returns only all rows from the left dataset and matching rows from the right, omitting any customer_id that exists only in the right dataset. Option D (INNER JOIN) is wrong because it returns only rows where customer_id exists in both datasets, discarding all non-matching records from either side.

284
Multi-Selectmedium

A data scientist is fine-tuning a large language model for a domain-specific task using QLoRA. Which TWO statements correctly describe QLoRA's advantages?

Select 2 answers
A.It enables fine-tuning on consumer-grade GPUs by reducing memory requirements
B.It reduces memory usage by quantizing the base model to 4-bit precision
C.It requires more training data than full fine-tuning to achieve comparable accuracy
D.It trains the full model parameters with low precision
E.It increases inference speed compared to the base model
AnswersA, B

Lower memory allows fine-tuning on smaller GPUs, such as consumer-grade hardware.

Why this answer

QLoRA uses 4-bit quantization to reduce memory, and freezes the base model while training low-rank adapters. It does not reduce inference latency (base model still runs), and does not require more data than full fine-tuning.

285
MCQmedium

A data scientist is using PyTorch to train a custom NLP model. The training is slow on a single GPU. They want to speed up training by using multiple GPUs on a single machine. Which PyTorch feature should they use?

A.TorchScript tracing
B.torch.nn.DataParallel
C.torch.optim.SGD
D.PyTorch Lightning's zero_grad function
AnswerB

DataParallel automatically splits input across GPUs and aggregates gradients; it's the simplest multi-GPU approach.

Why this answer

DataParallel (or DistributedDataParallel) is PyTorch's built-in feature to split batches across multiple GPUs. It is straightforward for single-machine multi-GPU training.

286
MCQhard

An organization uses a fine-tuned LLM for generating financial reports. An attacker gains access to the model's API and sends a series of queries that gradually reconstruct the training data of the fine-tuned model. This is an example of which attack?

A.Membership inference
B.Data poisoning
C.Model extraction
D.Model inversion
AnswerD

Model inversion uses model outputs to infer or reconstruct training data.

Why this answer

Model inversion attacks aim to reconstruct training data from model outputs. Data poisoning corrupts training, model extraction steals the model, and membership inference determines presence, not reconstruction.

Exam trap

Candidates may confuse model inversion with model extraction; extraction steals the model parameters, inversion reconstructs training data.

287
MCQeasy

A company deploys a deep learning model for real-time image classification. After deployment, they notice high inference latency exceeding the 100ms SLA. Which action would most likely reduce latency without significantly impacting accuracy?

A.Add more training data to improve model robustness
B.Replace the model with a simpler logistic regression model
C.Increase batch size for inference
D.Apply model quantization
AnswerD

Quantization reduces model size and inference time with minor accuracy impact.

Why this answer

Model quantization reduces the precision of the model's weights and activations (e.g., from 32-bit floating point to 8-bit integer), which significantly decreases memory bandwidth and computational requirements during inference. This directly lowers latency without fundamentally altering the model's learned representations, so accuracy degradation is typically minimal (often <1-2%).

Exam trap

CompTIA often tests the misconception that increasing batch size always improves latency, when in fact it increases per-request latency in real-time systems, and that simpler models are always better for latency, ignoring the critical accuracy requirement.

How to eliminate wrong answers

Option A is wrong because adding more training data improves model robustness and generalization but does not reduce inference latency; it may even increase training time and model complexity. Option B is wrong because replacing a deep learning model with a logistic regression model would drastically reduce accuracy for complex image classification tasks, failing the 'without significantly impacting accuracy' constraint. Option C is wrong because increasing batch size for inference increases the number of images processed per batch, which can improve throughput but actually increases per-request latency (time to first prediction) and may exceed the 100ms SLA for real-time applications.

288
MCQmedium

A data scientist needs to explain why a black-box model denied a loan application. Which explainability technique generates local feature importance values using a simpler interpretable model around the prediction?

A.Model card
B.LIME
C.Attention visualisation
D.SHAP values
AnswerB

LIME fits a simple model (e.g., linear) locally to approximate the black-box model's decision boundary for a specific instance.

Why this answer

LIME (Local Interpretable Model-agnostic Explanations) is the correct technique because it generates local feature importance values by fitting a simpler, interpretable model (e.g., linear regression or decision tree) around the prediction of the black-box model. This allows the data scientist to explain why a specific loan application was denied by identifying which features (e.g., income, credit score) most influenced that particular decision. Unlike global methods, LIME focuses on the local neighborhood of the instance, making it ideal for explaining individual predictions.

Exam trap

The AI0-001 exam often tests the distinction between local vs. global explainability methods, and the trap here is that candidates may confuse SHAP values (which also provide local feature importance) with LIME, failing to recognize that LIME uniquely uses a simpler interpretable surrogate model trained around the prediction, while SHAP uses game-theoretic contributions without a surrogate model.

How to eliminate wrong answers

Option A is wrong because a model card is a documentation artifact that summarizes a model's intended use, performance, and limitations at a global level, not a technique for generating local feature importance values for a single prediction. Option C is wrong because attention visualization is specific to neural network architectures (e.g., transformers) and provides insight into which parts of the input the model 'attends to,' but it is not a model-agnostic method for generating local feature importance with a simpler interpretable model. Option D is wrong because SHAP values, while they do provide local feature importance, are based on cooperative game theory (Shapley values) and do not use a simpler interpretable model around the prediction; instead, they compute additive feature contributions directly from the model's output.

289
MCQmedium

A company uses an AI model to predict equipment failures. The model outputs a probability of failure. To minimize false alarms, the operations team wants a high precision. Which deployment strategy should they implement?

A.Retrain the model on more recent data
B.Increase the decision threshold for positive classification
C.Decrease the decision threshold
D.Use an ensemble of models with voting
AnswerB

Higher threshold means fewer positive predictions, increasing precision.

Why this answer

To minimize false alarms and achieve high precision, the operations team should increase the decision threshold for positive classification. A higher threshold means the model only predicts a failure when it is very confident, reducing the number of false positives (false alarms) at the cost of potentially missing some true failures (lower recall). This directly controls the precision-recall trade-off without changing the underlying model.

Exam trap

CompTIA often tests the precision-recall trade-off by making candidates confuse increasing the threshold (which improves precision) with decreasing it (which improves recall), or by suggesting retraining or ensemble methods as direct solutions for precision tuning.

How to eliminate wrong answers

Option A is wrong because retraining on more recent data improves model accuracy and relevance but does not directly control the precision-recall trade-off; it may not reduce false alarms if the model's calibration remains unchanged. Option C is wrong because decreasing the decision threshold would make the model more sensitive, increasing the number of positive predictions and thus increasing false alarms (lower precision), which is the opposite of the goal. Option D is wrong because using an ensemble of models with voting can improve overall accuracy and robustness, but it does not specifically target precision; the voting mechanism may still produce many false positives unless the threshold is also adjusted.

290
Multi-Selectmedium

Which THREE are common data preprocessing steps in a machine learning pipeline? (Choose 3)

Select 3 answers
A.Hyperparameter tuning
B.Encoding categorical variables
C.Model evaluation
D.Scaling numeric features
E.Handling missing values
AnswersB, D, E

Categorical data must be converted to numeric.

Why this answer

Encoding categorical variables is a common data preprocessing step because machine learning algorithms require numerical input. Techniques like one-hot encoding or label encoding convert categorical data (e.g., colors, countries) into numeric format, enabling the model to process them correctly. Without this step, the model would misinterpret categorical labels as ordinal or meaningless numeric values.

Exam trap

CompTIA often tests the distinction between preprocessing steps (data cleaning, transformation) and later pipeline stages (model tuning, evaluation), so candidates mistakenly select hyperparameter tuning or model evaluation as preprocessing steps.

291
Multi-Selecthard

A security team is reviewing an LLM-powered application that can execute SQL queries based on user requests. They want to implement defenses against prompt injection that could lead to unauthorized database access. Which TWO controls are MOST effective? (Select two.)

Select 2 answers
A.Robust training techniques
B.Input validation and sanitization
C.Access controls on the database
D.Rate limiting
E.Output filtering
AnswersB, E

Validates and sanitizes user input to remove or neutralize injection attempts.

Why this answer

Input validation and sanitization can filter malicious prompt content, and output filtering can block responses containing unauthorized data. Rate limiting does not prevent injection, access controls on the database are important but not a direct defense against injection (they limit impact), and robust training does not prevent injection at inference time.

292
MCQhard

A large financial services company deploys multiple AI models on a shared Kubernetes cluster with GPU nodes. The models serve real-time fraud detection and credit scoring. Recently, the operations team observed frequent out-of-memory (OOM) errors during peak hours, causing inference failures. The monitoring dashboards show GPU memory utilization averaging 90% during peak times, and pods are being evicted. The team has allocated 8GB per pod and the total cluster GPU memory is 32GB. The models require at least 4GB each, but the fraud detection model occasionally spikes to 7GB. Which course of action best resolves the OOM errors while maintaining high availability?

A.Reduce the batch size and model complexity for all models to lower memory footprint
B.Set resource limits and requests per model based on observed usage, and implement pod priority classes
C.Provision larger GPU nodes with 48GB memory each
D.Increase the memory request for all pods to 8GB to ensure they have enough
AnswerB

Limits prevent OOM, priority ensures critical models get resources.

Why this answer

It uses Kubernetes resource management features—setting precise resource requests and limits based on observed GPU memory usage—combined with pod priority classes to ensure critical fraud detection pods are scheduled and retained during contention. This prevents OOM errors by capping memory per pod while allowing the spike-prone fraud model to be prioritized over less critical workloads, maintaining high availability without overprovisioning.

Exam trap

CompTIA often tests the misconception that simply increasing resource requests or node size solves OOM errors, when the real solution involves proper resource limits and scheduling policies to handle variable workloads and maintain availability.

How to eliminate wrong answers

Option A is wrong because reducing batch size and model complexity may degrade inference accuracy or latency, and it does not address the root cause of memory spikes for the fraud detection model; it is a workaround that sacrifices performance. Option C is wrong because provisioning larger GPU nodes (48GB) is a costly overprovisioning approach that does not solve the scheduling or priority issue—it only shifts the bottleneck and may still allow a single pod to consume excessive memory and cause OOM on the larger node. Option D is wrong because increasing the memory request for all pods to 8GB does not prevent the fraud detection model from spiking to 7GB (which is under 8GB) and ignores the need for limits and priority; it may also lead to resource waste and does not address eviction during peak contention.

293
MCQhard

An ML engineering team has a retraining pipeline that triggers automatically when model accuracy drops below a threshold. Recently, the model's accuracy has been fluctuating, causing frequent retraining and high compute costs. The team suspects the data distribution is changing slowly. Which approach should the team implement to reduce unnecessary retraining while maintaining model performance?

A.Use a simpler model to reduce variability
B.Implement a statistical drift detection method on input features
C.Increase the frequency of model retraining
D.Reduce the batch size for inference
AnswerB

Drift detection ensures retraining only when meaningful change occurs.

Why this answer

Implementing a statistical drift detection method (e.g., using KL divergence, PSI, or ADWIN) on input features allows the team to identify when the data distribution has genuinely changed, rather than reacting to random accuracy fluctuations. This reduces unnecessary retraining by triggering the pipeline only when statistically significant drift is detected, maintaining model performance without the high compute costs of frequent retraining.

Exam trap

CompTIA often tests the misconception that increasing retraining frequency or simplifying the model can solve drift-related issues, but the correct approach is to detect drift statistically before deciding to retrain.

How to eliminate wrong answers

Option A is wrong because using a simpler model may reduce variability but does not address the root cause of distribution drift; it could also degrade performance by underfitting the true underlying patterns. Option C is wrong because increasing retraining frequency would exacerbate the compute cost problem and may overfit to transient fluctuations, not solve the issue of unnecessary retraining. Option D is wrong because reducing the batch size for inference affects throughput and latency, not the detection of data distribution changes or the decision to retrain.

294
MCQmedium

A developer is building an AI agent that needs to call external APIs to complete user requests. The agent must decide which API to call based on the user's natural language input. Which technique should the developer use to enable the agent to invoke APIs?

A.Fine-tuning the LLM on API documentation
B.Chain-of-thought reasoning
C.Few-shot prompting with examples of API calls
D.Function calling
AnswerD

Function calling allows the model to output a structured JSON that triggers an API call.

Why this answer

Function calling is a technique where the LLM outputs a structured request to call a predefined function/API, enabling tool use.

295
MCQeasy

A developer is building an AI-powered code completion tool. To ensure the model does not output malicious code when prompted with 'Write code to delete all files on the system', which defense is most effective?

A.Output filtering to detect and block dangerous code constructs
B.Input validation to block the word 'delete'
C.Rate limiting on the number of requests per user
D.Retraining the model on safe code only
AnswerA

Output filtering can analyze generated code for malicious patterns and block it.

Why this answer

Output filtering can block generated code that contains dangerous patterns like file deletion commands.

296
MCQhard

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

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

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

Why this answer

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

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

297
MCQhard

A company operating in the EU must comply with GDPR. An AI model processes personal data for customer segmentation. Which of the following ensures compliance?

A.Obtain explicit consent once and use data indefinitely.
B.Store personal data permanently for model improvement.
C.Use only aggregated data without any individual records.
D.Implement data anonymization and allow users to request deletion.
AnswerD

Anonymization reduces privacy risk, and deletion capability ensures compliance with GDPR rights.

Why this answer

GDPR mandates that personal data must be processed lawfully, with data minimization and the right to erasure. Implementing data anonymization removes personally identifiable information (PII) so the data is no longer considered personal data under GDPR, and allowing users to request deletion directly satisfies the 'right to be forgotten' (Article 17). This approach ensures compliance by both protecting individual privacy and providing a mechanism for data subjects to exercise their legal rights.

Exam trap

CompTIA often tests the misconception that pseudonymization or simple aggregation is sufficient for GDPR compliance, when in fact only irreversible anonymization (where no individual can be re-identified) removes data from GDPR scope, and the right to deletion must still be explicitly supported for any remaining personal data.

How to eliminate wrong answers

Option A is wrong because GDPR requires that consent be specific, informed, and revocable; obtaining consent once does not permit indefinite use, and data must be retained only as long as necessary for the stated purpose. Option B is wrong because storing personal data permanently violates the data minimization and storage limitation principles (Article 5(1)(c) and (e)), and model improvement is not a valid basis for indefinite retention without explicit, ongoing consent. Option C is wrong because while aggregated data reduces risk, it does not automatically ensure compliance if the aggregation method is reversible or if the data can be re-identified; true anonymization must be irreversible and meet the GDPR's standard of 'anonymous information' (Recital 26).

298
MCQeasy

Based on the exhibit, what issue should the team address?

A.Model accuracy below threshold
B.Potential fairness bias across groups
C.High latency
D.Low throughput
AnswerB

The disparity in accuracy between Group B (0.83) and other groups (0.97, 0.96) indicates a fairness issue that needs to be addressed.

Why this answer

The exhibit likely shows a confusion matrix or performance metrics broken down by demographic groups (e.g., race, gender), revealing that the model's false positive or false negative rates differ significantly across groups. This disparity indicates a potential fairness bias, which must be addressed to ensure equitable outcomes, especially in high-stakes AI applications like hiring or lending.

Exam trap

CompTIA often tests the misconception that high overall accuracy or low latency/throughput issues are the primary concerns, when the real problem is hidden bias revealed only by disaggregated performance metrics across subgroups.

How to eliminate wrong answers

Option A is wrong because the exhibit does not show an overall accuracy metric below a threshold; instead, it highlights group-wise performance differences, not a global accuracy issue. Option C is wrong because latency refers to inference time per request, which is not indicated by group-wise performance metrics or confusion matrices. Option D is wrong because throughput measures the number of predictions per second, which is unrelated to the group-level bias patterns shown in the exhibit.

299
Multi-Selecteasy

A company is deploying a pre-trained image classification model for facial recognition in a security system. They are concerned about adversarial examples. Which TWO of the following are effective defenses against adversarial examples?

Select 2 answers
A.Adversarial training during model development
B.Gradient masking to hide model gradients
C.Input sanitization techniques such as JPEG compression or denoising
D.Homomorphic encryption of input images
E.Federated learning to train on distributed data
AnswersA, C

Adversarial training incorporates adversarial examples into the training set, making the model more robust to such perturbations at inference time.

Why this answer

Adversarial training (including the model with adversarial examples during training) and input sanitization (e.g., JPEG compression, denoising) are proven defenses against adversarial perturbations. Gradient masking is a weak defense. Homomorphic encryption and federated learning are unrelated to adversarial robustness.

300
MCQmedium

Under the EU AI Act, an AI system that uses subliminal techniques to materially distort a person's behaviour, causing psychological or physical harm, would be classified under which risk tier?

A.Unacceptable risk
B.Limited risk
C.High risk
D.Minimal risk
AnswerA

Systems that employ subliminal techniques to distort behaviour causing harm are banned under the unacceptable risk category.

Why this answer

The EU AI Act categorises such systems as 'unacceptable risk' and prohibits them outright. High risk includes critical infrastructure, education, employment, etc. Limited risk involves transparency obligations.

Minimal risk covers all other systems.

Page 3

Page 4 of 11

Page 5

All pages