Courseiva

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

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

Page 6

Page 7 of 11

Page 8
451
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

452
Multi-Selecthard

A data scientist is evaluating a binary classification model for fraud detection. The dataset is highly imbalanced (99% non-fraud, 1% fraud). Which TWO metrics are most appropriate for assessing model performance? (Choose two.)

Select 2 answers
A.Precision
B.Recall
C.F1 score
D.Area under the ROC curve (AUC-ROC)
E.Accuracy
AnswersA, B

Precision measures the proportion of predicted fraud that is actually fraud, important to avoid false positives.

Why this answer

Precision is appropriate because it measures the proportion of predicted fraud cases that are actually fraudulent, which is critical when false positives (flagging legitimate transactions as fraud) are costly. In a highly imbalanced dataset like this (99% non-fraud), precision directly evaluates the model's ability to avoid overwhelming fraud analysts with false alarms.

Exam trap

CompTIA often tests the misconception that AUC-ROC is always the best metric for imbalanced datasets, but the trap here is that AUC-ROC can be misleadingly high even when the model performs poorly on the minority class, whereas precision and recall directly address the class imbalance.

453
MCQhard

A research lab trains a language model using DP-SGD. What primary privacy risk does this technique mitigate?

A.Data poisoning attacks
B.Membership inference attacks
C.Adversarial patch attacks
D.Model inversion attacks
AnswerB

DP-SGD explicitly bounds the contribution of each datapoint, making membership inference harder.

Why this answer

DP-SGD (Differentially Private Stochastic Gradient Descent) mitigates membership inference attacks by adding calibrated noise to gradients during training, which bounds the influence any single training example can have on the final model. This differential privacy guarantee makes it difficult for an adversary to determine whether a specific data point was included in the training set, directly addressing the core risk of membership inference.

Exam trap

The AI0-001 exam often tests the distinction between privacy risks (membership inference, model inversion) and security risks (poisoning, adversarial examples), and the trap here is that candidates confuse 'privacy risk' with 'security risk' and pick data poisoning or adversarial attacks instead of recognizing that DP-SGD is specifically designed for differential privacy against membership inference.

How to eliminate wrong answers

Option A is wrong because data poisoning attacks involve injecting malicious data to corrupt model behavior, which DP-SGD does not specifically prevent—it only limits per-example influence but does not detect or filter poisoned inputs. Option C is wrong because adversarial patch attacks target image classifiers by placing physical patches on objects to cause misclassification, which is a computer vision robustness issue unrelated to the privacy guarantees of DP-SGD. Option D is wrong because model inversion attacks aim to reconstruct training data features or attributes from the model, and while DP-SGD provides some defense, its primary and most direct mitigation is against membership inference, not full inversion which requires stronger assumptions and additional techniques.

454
MCQmedium

You are an AI governance officer at a bank that uses a machine learning model to predict credit risk. The model was developed by an external vendor and uses a proprietary algorithm. The bank's compliance team has determined that the model must be explainable to meet regulatory requirements. However, the vendor claims the model is a 'black box' and cannot provide explanations. You need to ensure compliance while maintaining the model's performance. What is the best course of action?

A.Ignore the requirement as the model is proprietary
B.Ask the vendor to develop a custom explanation module
C.Replace the model with a simpler, interpretable model
D.Use a model-agnostic explanation technique like SHAP
AnswerD

SHAP provides explanations for any model, satisfying regulatory needs.

Why this answer

D is correct because model-agnostic explanation techniques like SHAP (SHapley Additive exPlanations) can provide post-hoc interpretability for any black-box model without requiring access to its internal structure or proprietary algorithm. This allows the bank to meet regulatory explainability requirements while preserving the vendor's proprietary model and its predictive performance.

Exam trap

The trap here is that candidates may assume that a 'black box' model cannot be explained at all, leading them to choose replacement with a simpler model (Option C), when in fact model-agnostic techniques like SHAP or LIME can provide explanations without altering the model itself.

How to eliminate wrong answers

Option A is wrong because ignoring regulatory requirements is not a viable option for a financial institution; it would lead to non-compliance and potential penalties. Option B is wrong because asking the vendor to develop a custom explanation module would require the vendor to modify their proprietary algorithm, which they have stated is a 'black box' and cannot provide explanations, making this request impractical and likely impossible. Option C is wrong because replacing the model with a simpler, interpretable model would sacrifice the predictive performance that the current model provides, which may be critical for accurate credit risk assessment.

455
MCQeasy

A dataset used for training a classification model contains 10% missing values in a feature that is known to be important. The data scientist decides to impute the missing values. Which imputation method is most robust if the data is not missing completely at random?

A.Delete all rows with missing values
B.Use multiple imputation to model missing values
C.Replace missing values with the mean of the feature
D.Fill missing values with 0
AnswerB

Multiple imputation provides unbiased estimates under missing at random assumption.

Why this answer

Multiple imputation is the most robust method when data is not missing completely at random (NMAR) because it uses a statistical model to account for the relationships between the missing feature and other observed features, generating multiple plausible values and combining them to produce unbiased estimates and valid standard errors. This approach preserves the variability and structure of the data, unlike simpler methods that can introduce bias when missingness depends on unobserved data.

Exam trap

The AI0-001 exam often tests the misconception that mean imputation is a safe default for missing data, but the trap here is that mean imputation assumes data is missing completely at random (MCAR), which is rarely true in real-world datasets, and it fails to account for the underlying missing data mechanism.

How to eliminate wrong answers

Option A is wrong because deleting rows with missing values reduces sample size and can introduce selection bias, especially when data is not missing completely at random (NMAR), leading to loss of statistical power and potentially skewed model performance. Option C is wrong because replacing missing values with the mean of the feature ignores the correlation with other features and reduces variance, which can distort the distribution and bias the model when missingness is not random. Option D is wrong because filling missing values with 0 is arbitrary and assumes the missing value is zero, which is rarely valid for continuous features and can severely distort the feature's distribution and model coefficients.

456
Multi-Selecteasy

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

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

ReLU is a widely used activation function.

Why this answer

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

Exam trap

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

457
Multi-Selecthard

An AI operations team is monitoring a deployed image classification model. They notice a gradual increase in prediction confidence but a drop in accuracy. Which THREE actions should they take to diagnose the issue?

Select 3 answers
A.Analyze the model's calibration curve to see if confidence scores align with actual accuracy.
B.Increase the size of the training dataset by collecting more unlabeled data.
C.Compare the distribution of input features between training and recent production data.
D.Evaluate model performance on a held-out test set collected at deployment time.
E.Retrain the model immediately with the most recent data.
AnswersA, C, D

Calibration analysis reveals if model is overconfident due to drift.

Why this answer

A calibration curve (reliability diagram) directly compares predicted confidence scores against actual accuracy. In this scenario, increasing confidence with dropping accuracy indicates miscalibration—the model is becoming overconfident. Analyzing the calibration curve reveals whether the confidence scores systematically deviate from true probabilities, which is the core diagnostic step for this specific symptom.

Exam trap

CompTIA often tests the distinction between diagnostic actions and corrective actions—candidates mistakenly jump to retraining (Option E) or data collection (Option B) instead of first analyzing calibration and data distribution (Options A, C, D) to identify the specific type of drift or miscalibration.

458
MCQmedium

An organization wants to implement an AI system to automatically categorize support tickets into predefined categories. They have a labeled dataset of 10,000 tickets. Which approach is MOST appropriate?

A.Use a rule-based system with keyword matching
B.Use a prompt-based LLM with few-shot examples
C.Fine-tune a pre-trained text classification model
D.Train a custom neural network from scratch
AnswerC

Fine-tuning leverages existing knowledge and works well with 10k labeled examples.

Why this answer

Fine-tuning a pre-trained text classification model is a standard and effective approach for supervised classification when labeled data is available.

459
MCQeasy

In the AI project lifecycle, which phase involves partitioning the dataset into training, validation, and test sets?

A.Data acquisition
B.Model selection
C.Data preparation
D.Problem definition
AnswerC

Data preparation encompasses cleaning, normalisation, and splitting into train/validation/test sets.

Why this answer

Data preparation includes splitting the data to evaluate model performance and prevent leakage.

460
MCQmedium

A company is building an AI-powered document intelligence system to extract key fields from scanned invoices. The data contains 95% of invoices from one vendor and 5% from others. During model training, the F1 score is 0.95 on the overall test set, but the performance on the minority vendor invoices is very poor. What is the MOST likely cause?

A.The model is overfitting on the minority class
B.The dataset is imbalanced, and the model is biased toward the majority class
C.The data has a train/test leakage problem
D.The feature extraction is incorrect for the minority vendor invoices
AnswerB

Imbalanced data causes the model to optimize for the majority class, ignoring minority classes.

Why this answer

The imbalanced dataset causes the model to learn mostly from the majority class, leading to poor performance on the minority class. The other options are less likely given the high overall F1 score.

461
MCQhard

A model trained on a dataset with imbalanced classes achieves 98% accuracy but only 50% recall for the minority class. Which technique should be applied first to address the imbalance?

A.Apply cost-sensitive learning
B.Reduce the majority class size
C.Use SMOTE to generate synthetic samples
D.Collect more data for the minority class
AnswerA

Cost-sensitive learning adjusts class weights in the loss function, directly tackling imbalance without data modification.

Why this answer

Cost-sensitive learning directly modifies the model's loss function to penalize misclassifications of the minority class more heavily than those of the majority class. This approach addresses the root cause of the imbalance—the model's bias toward the majority class—without altering the dataset distribution, making it the most immediate and effective first step.

Exam trap

CompTIA often tests the misconception that data-level techniques like SMOTE or undersampling should always be the first approach, when in fact cost-sensitive learning is a simpler, less invasive, and often more effective initial step that directly adjusts the model's learning objective.

How to eliminate wrong answers

Option B is wrong because reducing the majority class size (random undersampling) discards potentially valuable data, which can lead to loss of information and increased variance in the model, and it is not typically the first technique applied. Option C is wrong because SMOTE generates synthetic samples for the minority class, which can introduce noise and is a data-level augmentation technique that should be considered after cost-sensitive adjustments or as a complementary method, not as the first step. Option D is wrong because collecting more data for the minority class is often impractical, time-consuming, and may not be feasible in real-world scenarios; it is not a guaranteed or immediate solution to the imbalance.

462
Multi-Selectmedium

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

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

Reinforcement learning involves an agent learning from rewards.

Why this answer

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

Exam trap

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

463
MCQmedium

A company uses AI to generate marketing images. They want to ensure that the images are clearly identified as AI-generated to comply with transparency obligations. Which approach is most effective?

A.Add a disclaimer in the platform's terms of service
B.Include metadata in the image file indicating it is AI-generated
C.Embed a visible watermark stating 'AI-generated' in each image
D.Rely on deepfake detection algorithms to flag the images
AnswerC

Visible watermarks are easily noticed and cannot be removed without degrading the image, ensuring clear disclosure.

Why this answer

Watermarking AI-generated content with visible or invisible markers is a direct way to disclose AI origin. Using metadata alone can be stripped; disclaimers in terms of service are not visible to users; relying on human detection is unreliable.

464
MCQmedium

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

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

The training set lacks lateral views, causing bias; the model has not learned to recognize features specific to lateral X-rays.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

465
MCQeasy

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

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

Correct; preprocessing includes cleaning, transforming, and splitting data.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

466
MCQeasy

A model's training accuracy is 99% but validation accuracy drops to 60%. What is the most likely issue?

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

Overfitting leads to high training accuracy but low validation accuracy.

Why this answer

A training accuracy of 99% with a validation accuracy of only 60% is a classic symptom of overfitting. The model has memorized the training data, including noise and outliers, rather than learning generalizable patterns, causing it to perform poorly on unseen validation data.

Exam trap

CompTIA often tests the distinction between overfitting and data leakage by presenting a large accuracy gap, where candidates might mistakenly attribute the issue to data leakage instead of recognizing that leakage typically inflates both accuracies rather than creating a divergence.

How to eliminate wrong answers

Option A is wrong because data leakage typically causes both training and validation accuracy to be artificially high, not a large gap between them; it occurs when information from outside the training set inadvertently influences the model. Option C is wrong because multicollinearity refers to high correlation among input features in regression models, which affects coefficient stability and interpretability, not a drastic accuracy drop between training and validation sets. Option D is wrong because underfitting would result in low accuracy on both training and validation sets (e.g., both below 70%), not a high training accuracy with a low validation accuracy.

467
MCQhard

A retail company uses a time-series model to forecast daily sales for inventory management. The model is a seasonal ARIMA trained on three years of daily data. It performed well during initial validation but after deployment, forecasts became inaccurate during holiday seasons, often underestimating demand by up to 40%. The data science team examined the features and found that the training data did not include any holiday indicators. They also discovered that the model's residuals show strong autocorrelation during holiday weeks. The company needs to improve the forecast for the upcoming holiday season. They have access to historical sales data with holiday dates and are considering several approaches. Which approach will BEST address the issue?

A.Engineer holiday-related features (e.g., holiday flag, days before/after) and retrain the ARIMA model with these features as exogenous variables.
B.Decrease the learning rate and increase the number of training epochs.
C.Create an ensemble of the ARIMA model and a seasonal naive model to average forecasts.
D.Replace the ARIMA model with a deep learning LSTM model trained on the same data.
AnswerA

Incorporating holiday information directly addresses the root cause of the forecast error.

Why this answer

The core issue is that the ARIMA model lacks holiday-related information, causing systematic underestimation during holiday periods. By engineering holiday features (e.g., binary flags, days-before/after indicators) and including them as exogenous variables in a SARIMAX model, the model can directly learn the demand spikes associated with holidays. This directly addresses the residual autocorrelation during holiday weeks and improves forecast accuracy without changing the underlying time-series framework.

Exam trap

CompTIA often tests the misconception that adding more data or switching to a more complex model (like LSTM) automatically fixes forecasting issues, when the real problem is missing relevant features that can be addressed with a simpler, interpretable approach like SARIMAX with exogenous variables.

How to eliminate wrong answers

Option B is wrong because decreasing the learning rate and increasing epochs is a hyperparameter tuning technique for gradient-based models (e.g., neural networks), not applicable to ARIMA which is trained via maximum likelihood estimation or least squares. Option C is wrong because averaging forecasts from an ARIMA and a seasonal naive model would dilute the ARIMA's signal and still fail to capture holiday effects, as the naive model also lacks holiday features. Option D is wrong because replacing ARIMA with an LSTM does not automatically solve the missing holiday indicator problem; the LSTM would also need engineered holiday features to learn the pattern, and the question asks for the best approach given available data, not a complete model swap.

468
MCQmedium

A data engineer is reviewing an S3 bucket policy for a machine learning project. The policy is intended to allow access to training data only from the corporate network (10.0.0.0/16). However, users in the corporate network report access denied. Which issue is most likely causing the problem?

A.The policy is missing a Deny statement.
B.The resource ARN is incorrect.
C.The policy does not include s3:ListBucket action, which is needed to list objects.
D.The IP address condition is not matching because the corporate network uses a different CIDR.
AnswerC

Users need ListBucket to see objects before getting them.

Why this answer

The condition key uses "aws:SourceIp" but the correct key for IP address condition is "aws:SourceIp". However, the exhibit shows "aws:SourceIp" which is correct? Wait, the exhibit shows "aws:SourceIp" — that is correct. But the problem might be that the policy uses "GetObject" but the users might be trying to list objects (s3:ListBucket).

Option C says the action does not include s3:ListBucket, which is often needed first. Option A is wrong because the resource is correct. Option B is wrong because the policy allows access from 10.0.0.0/16.

Option D is wrong because the effect is Allow.

469
MCQmedium

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

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

Adversarial debiasing forces the model to learn representations that are invariant to sensitive attributes, reducing bias with minimal accuracy loss.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

470
MCQmedium

An AI chatbot is being developed to assist with customer support. The team is concerned about prompt injection attacks where malicious users try to override the system's instructions. Which defense is MOST effective against direct prompt injection?

A.Input validation and sanitization
B.Rate limiting API requests
C.Output filtering
D.Using a larger model
AnswerA

Sanitizing inputs removes or neutralizes injection attempts, directly mitigating prompt injection.

Why this answer

Input validation and sanitization can detect and block attempts to inject malicious instructions. While guardrails help, the primary defense is to filter and validate user inputs before they reach the model.

471
MCQeasy

A data engineer needs to store training data in a format that supports columnar pruning during model training. Which storage format should they use?

A.Parquet
B.XML
C.JSON
D.CSV
AnswerA

Parquet is columnar, enabling compression and pruning, reducing I/O.

Why this answer

Parquet is the correct choice because it is a columnar storage format that enables column pruning, allowing the training process to read only the columns needed for model training rather than entire rows. This reduces I/O and speeds up data loading, which is critical for large-scale AI/ML workloads. Unlike row-oriented formats, Parquet stores data by columns, making it efficient for analytical queries and feature selection.

Exam trap

CompTIA often tests the misconception that JSON or CSV are acceptable for columnar pruning because they are common and human-readable, but the trap here is that only columnar formats like Parquet or ORC support efficient column-level access, while row-oriented formats require full record scans.

How to eliminate wrong answers

Option B (XML) is wrong because XML is a verbose, hierarchical text format that stores data row-wise and lacks columnar pruning capabilities, leading to high storage overhead and slow read performance for tabular data. Option C (JSON) is wrong because JSON is a row-oriented, self-describing format that requires parsing entire records even when only a subset of fields is needed, making it unsuitable for column pruning. Option D (CSV) is wrong because CSV is a flat, row-oriented text format that forces reading entire rows into memory, with no support for columnar storage or predicate pushdown, resulting in inefficient I/O for selective column access.

472
MCQmedium

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

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

Data augmentation with accents directly addresses the performance gap.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

473
MCQmedium

Which AI governance framework is specifically designed by the U.S. National Institute of Standards and Technology (NIST) to help organizations manage AI risks?

A.ISO/IEC 27001
B.COBIT
C.NIST AI Risk Management Framework
D.GDPR
AnswerC

NIST AI RMF is the U.S. standard for AI risk management.

Why this answer

The NIST AI Risk Management Framework (AI RMF) is the specific governance framework developed by the U.S. National Institute of Standards and Technology to help organizations manage AI risks, including those related to trustworthiness, fairness, and robustness. It provides a structured approach for identifying, assessing, and mitigating risks throughout the AI lifecycle, aligning with NIST's role in setting standards for cybersecurity and risk management.

Exam trap

The AI0-001 exam often tests candidates by listing well-known frameworks or regulations (like ISO/IEC 27001 or GDPR) that are related to security or privacy but are not AI-specific, leading candidates to confuse general governance with the NIST AI RMF.

How to eliminate wrong answers

Option A is wrong because ISO/IEC 27001 is an international standard for information security management systems (ISMS), not an AI-specific risk management framework, and it focuses on general data security rather than AI risks. Option B is wrong because COBIT (Control Objectives for Information and Related Technologies) is a framework for IT governance and management, developed by ISACA, and does not address AI-specific risks or the NIST AI RMF. Option D is wrong because GDPR (General Data Protection Regulation) is a European Union regulation for data privacy and protection, not a risk management framework, and it is not designed by NIST.

474
Multi-Selectmedium

A company is building a RAG-based Q&A system for a large collection of technical manuals. They need to choose an embedding model and a similarity search method. Which TWO choices are most appropriate for this scenario? (Select TWO)

Select 2 answers
A.Use a general-purpose embedding model like text-embedding-ada-002
B.Use dot product as the similarity metric for non-normalized embeddings
C.Use Euclidean distance as the similarity metric for vector search
D.Use a domain-specific embedding model fine-tuned on technical documentation
E.Use cosine similarity as the similarity metric for vector search
AnswersD, E

A domain-specific model captures the nuances of technical language, improving retrieval precision for the Q&A system.

Why this answer

Cosine similarity is the standard metric for comparing embeddings (normalized vectors). Using a domain-specific embedding model (e.g., fine-tuned on technical text) yields better retrieval accuracy. Dot product can be used but is less common; Euclidean distance is not ideal for high-dimensional embeddings; a general-purpose model may perform poorly on domain-specific language.

475
Multi-Selecthard

Which TWO techniques are specifically designed to protect individual privacy when training AI models?

Select 2 answers
A.Dropout
B.Model pruning
C.Differential privacy
D.Regularization
E.Anonymization
AnswersC, E

Differential privacy adds noise to training to prevent data leakage.

Why this answer

Differential privacy (C) is a technique that adds calibrated noise to training data or model updates, ensuring that the output of the model does not reveal whether any specific individual's data was included. This provides a formal mathematical guarantee of privacy, quantified by the epsilon parameter, making it a direct privacy-preserving method for AI training.

Exam trap

The AI0-001 exam often tests the distinction between techniques that improve model performance (dropout, pruning, regularization) and those that explicitly safeguard privacy, leading candidates to confuse regularization with privacy protection.

476
MCQmedium

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

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

Correct; CNNs excel at image recognition due to convolutional layers.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

477
MCQmedium

A team is using a pre-trained BERT model for a sentiment analysis task on product reviews. They want to adapt it to their specific domain with limited labeled data. Which approach is MOST effective?

A.Use BERT as a feature extractor and train a logistic regression on top
B.Apply data augmentation to increase the dataset and then train from scratch
C.Train a new BERT model from scratch on the domain data
D.Fine-tune the pre-trained BERT model on the small labeled dataset
AnswerD

Fine-tuning leverages pre-trained knowledge and adapts effectively with limited data.

Why this answer

Fine-tuning the pre-trained model on the small labeled dataset is standard for transfer learning with BERT. Training from scratch would require massive data; feature extraction with a linear classifier is possible but less effective with limited data; data augmentation alone does not adapt the model.

478
MCQmedium

A data scientist is training a binary classifier and observes that the training accuracy is 99% but the test accuracy is only 70%. Which of the following is the MOST likely cause?

A.The model is underfitting the training data
B.The learning rate is too high
C.The model is overfitting the training data
D.The test set contains data leakage from the training set
AnswerC

High training accuracy with much lower test accuracy is classic overfitting.

Why this answer

A large gap between training and test accuracy indicates overfitting: the model memorized training data but fails to generalize.

479
MCQhard

A retail company uses a machine learning model to predict daily sales. The model takes features like past sales, promotions, holidays, and weather data. Recently, the model's accuracy dropped significantly. The data engineer checks the data pipeline and finds that the weather data source changed from a free API to a new paid API that provides more detailed data. The new data includes additional attributes like humidity and wind speed, but the existing pipeline only ingests temperature and precipitation. Also, the time zone format changed from UTC to local time. The model was trained on the old format. Which action should the engineer take first to restore model performance?

A.Add a new step to merge old and new weather data before feeding to the model.
B.Transform the new data to match the old format (time zone and selected features) and retrain the model.
C.Revert to the old weather API.
D.Retrain the model with the new data including all new features.
AnswerB

This aligns the data with the training pipeline, resolving the immediate mismatch.

Why this answer

The immediate problem is the time zone change causing misalignment between training and inference data. Transforming the new data to match the old format ensures consistency. Retraining with all new features may introduce drift; reverting may not be possible; merging data without alignment causes inconsistency.

480
Multi-Selecthard

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

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

Pruning reduces computation and memory footprint.

Why this answer

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

Exam trap

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

481
MCQmedium

A data scientist submits a model training job to a cloud ML platform. The job fails with an error: "Out of memory: Killed process." The training code is proven to work on the developer's local machine with 16GB RAM. The cloud instance has 32GB RAM. What is the most likely cause?

A.The cloud instance does not have enough memory
B.The training code is loading the entire dataset into memory without batch processing
C.The training model is too large for the GPU memory
D.The cloud instance ran out of disk space
AnswerB

If the dataset is larger than memory, the process may exhaust RAM even if instances have more memory than local.

Why this answer

The error 'Out of memory: Killed process' occurs when the operating system's OOM killer terminates a process that exceeds available RAM. Even though the cloud instance has 32GB RAM, if the training code loads the entire dataset into memory without batch processing (e.g., using pandas.read_csv() without chunking), it can consume far more memory than the dataset size due to Python object overhead, temporary copies, and intermediate tensors. The local machine with 16GB RAM may have worked due to a smaller dataset or different memory pressure, but the cloud instance's 32GB is insufficient if the code is not memory-efficient.

Exam trap

CompTIA often tests the misconception that 'more RAM always solves memory errors', but the trap here is that the error is caused by inefficient data loading (no batching) rather than absolute memory size, so candidates must recognize the OOM killer message as a symptom of memory exhaustion from unbounded data consumption.

How to eliminate wrong answers

Option A is wrong because the cloud instance has 32GB RAM, which is double the local machine's 16GB, so the error is not simply due to insufficient memory—it's a code inefficiency. Option C is wrong because the error message 'Out of memory: Killed process' is a Linux kernel OOM killer message related to system RAM, not GPU memory; GPU out-of-memory errors typically appear as CUDA errors (e.g., 'CUDA out of memory'). Option D is wrong because disk space exhaustion would produce errors like 'No space left on device' or 'Disk quota exceeded', not an OOM killer process termination.

482
Multi-Selectmedium

A team is designing an AI agent that needs to interact with external APIs, search the web, and perform multi-step reasoning. Which TWO architectural components are essential for this agentic workflow? (Choose TWO.)

Select 2 answers
A.Fine-tuning the base model
B.ReAct pattern (Reasoning + Acting)
C.Tool use / function calling
D.Single-turn response generation
E.Static prompt with no iterations
AnswersB, C

ReAct combines reasoning traces with actions, allowing the agent to plan and adapt.

Why this answer

Tool use allows the agent to call external APIs, and the ReAct pattern (Reasoning + Acting) enables iterative reasoning and action steps.

483
MCQhard

A financial institution needs to integrate an AI-based credit scoring model into an existing mainframe system that processes transactions in COBOL. The model is deployed as a REST API. What is the best strategy to ensure minimal disruption and maintain data integrity?

A.Copy all transaction data to a cloud database for the model to access.
B.Use an API gateway with versioning and circuit breaker patterns.
C.Rewrite the mainframe system in Java to directly call the model.
D.Install a GPU on the mainframe to run the model natively.
AnswerB

This pattern enables loose coupling, resilience, and gradual integration without major changes to the mainframe.

Why this answer

An API gateway with versioning and circuit breaker patterns allows the COBOL mainframe to call the REST API without modifying its core transaction logic. The gateway handles protocol translation, rate limiting, and failover, ensuring minimal disruption to the existing mainframe system while maintaining data integrity through transactional consistency and graceful degradation.

Exam trap

CompTIA often tests the misconception that legacy systems must be replaced or heavily modified to integrate with modern AI services, when in fact an API gateway provides a non-invasive integration layer that preserves the existing infrastructure.

How to eliminate wrong answers

Option A is wrong because copying all transaction data to a cloud database introduces latency, potential data inconsistency, and security risks, and does not address the integration between COBOL and the REST API. Option C is wrong because rewriting the mainframe system in Java is a massive, high-risk, and costly undertaking that would cause significant disruption and is unnecessary for integrating a REST API. Option D is wrong because installing a GPU on the mainframe does not enable native execution of the AI model, as mainframes lack the necessary software stack and the model is deployed as a REST API, not as a local executable.

484
MCQhard

A model's predicted probabilities are well-calibrated overall but the model systematically assigns higher probabilities to one demographic group even when the actual outcome likelihood is the same. Which fairness issue is present?

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

Calibration disparity occurs when predicted probabilities are not equally reliable across groups, as described.

Why this answer

Calibration fairness requires that for each predicted probability, the actual outcome rate is the same across groups. The scenario describes a calibration disparity. Demographic parity would involve different selection rates.

Equalised odds involves equal error rates. Individual fairness is about treating similar individuals similarly.

485
Multi-Selectmedium

Which TWO of the following are effective defenses against adversarial examples in AI systems?

Select 2 answers
A.Train the model with adversarial examples (adversarial training)
B.Use an ensemble of models and majority voting
C.Increase the model's sensitivity to input changes
D.Implement input sanitization and feature squeezing
E.Reduce model complexity through pruning
AnswersA, D

Adversarial training hardens the model against perturbations.

Why this answer

Adversarial training (A) is effective because it exposes the model to perturbed inputs during training, forcing it to learn robust decision boundaries that are less sensitive to small, malicious perturbations. Input sanitization and feature squeezing (D) reduce the attack surface by compressing input features (e.g., reducing bit depth or spatial smoothing) to eliminate adversarial noise before inference, making it harder for an attacker to craft a successful perturbation.

Exam trap

The AI0-001 exam often tests the misconception that ensemble methods or model simplification inherently improve adversarial robustness, when in fact they do not address the fundamental mechanism of adversarial perturbations and may even weaken defenses.

486
Multi-Selecthard

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

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

Unsupervised learning works with unlabeled data.

Why this answer

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

Exam trap

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

487
Multi-Selectmedium

Which TWO techniques should be considered when optimizing a deep learning model for deployment on edge devices with limited computational resources?

Select 2 answers
A.Apply adversarial training
B.Model quantization
C.Use a GPU for inference
D.Knowledge distillation
E.Increase the number of layers
AnswersB, D

Quantization reduces memory and computation requirements.

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 latency. This makes it a primary technique for deploying deep learning models on edge devices with limited resources.

Exam trap

CompTIA often tests the distinction between training-phase techniques (like adversarial training) and deployment-phase optimization techniques (like quantization and knowledge distillation), leading candidates to select options that improve model quality rather than reduce resource consumption.

488
MCQeasy

A hospital's radiology department uses an AI model to detect lung nodules in CT scans. The model was trained on data from a specific brand of scanners and patient demographics common in Europe. Recently, the hospital acquired new scanners from a different manufacturer and started serving a more diverse patient population. Over the past month, the model's false-positive rate has increased by 15% and false-negative rate by 8%. The radiologists are losing confidence and are considering abandoning the AI tool altogether. The IT team has verified that the model inference is running correctly and the hardware is performing as expected. The data science team suspects the problem is related to the change in input data distribution. The hospital's AI operations policy requires that any model update must be validated on at least 500 recent cases before deployment. What is the BEST course of action for the AI operations team?

A.Roll back to the previous model version and restrict use of the AI tool to only European patients.
B.Collect 500 recent CT scans from the new scanners, retrain the model on a combined old and new dataset, and validate before deployment.
C.Retrain the model using the original training data but with increased regularization to avoid overfitting.
D.Adjust the model's decision threshold to reduce false positives and then monitor for two weeks.
AnswerB

Retraining with a representative sample addresses the data drift and meets the policy requirement of 500 validation cases.

Why this answer

Collecting 500 recent CT scans from the new scanners and retraining on a combined dataset addresses the data drift (change in scanner brand and patient demographics). This approach updates the model to the new distribution while retaining knowledge from the original data, and it complies with the validation requirement of 500 recent cases. Option A is wrong because rolling back and restricting use does not solve the underlying issue and limits utility.

Option C is wrong because retraining on the original data with increased regularization does not incorporate the new data distribution, so it would not fix the performance degradation. Option D is wrong because adjusting the decision threshold only trades off false positives and false negatives without addressing the root cause of data drift, and it does not involve retraining or validation as per policy.

489
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

490
Multi-Selecthard

Which THREE data quality dimensions are critical for ensuring model reliability?

Select 3 answers
A.Timeliness.
B.Consistency.
C.Completeness.
D.Volume.
E.Accuracy.
AnswersA, B, E

Outdated data can cause predictions to be irrelevant.

Why this answer

Timeliness is critical because stale data can lead to incorrect model predictions, especially in dynamic environments like network traffic analysis or fraud detection. For AI models, data must reflect the current state of the system to ensure relevance and reliability. Without timely data, the model may act on outdated patterns, reducing its effectiveness.

Exam trap

CompTIA often tests the distinction between data quality dimensions and data characteristics, so the trap here is that candidates confuse completeness or volume with the three critical dimensions (timeliness, consistency, accuracy) that directly impact model reliability.

491
MCQeasy

A small business launched a customer support chatbot powered by a pre-trained language model. The chatbot was fine-tuned on a dataset of past support tickets. For the first week, it performed well, accurately answering 85% of queries. After a routine software update that included a new version of the underlying language model library, the chatbot's accuracy dropped to 60% and it began giving nonsensical responses to some questions. The update did not change any code or configuration specific to the chatbot. The business has a backup of the previous environment. What is the MOST appropriate immediate action?

A.Retrain the chatbot on the original dataset using the new library version.
B.Add more intents to the chatbot's configuration to cover the errors.
C.Increase the model's temperature parameter to 1.5 to encourage more varied responses.
D.Roll back the software update to the previous version of the language model library.
AnswerD

The update likely introduced a regression; rolling back restores functionality immediately.

Why this answer

The most appropriate immediate action is to roll back the software update to the previous version of the language model library (Option D). The accuracy drop and nonsensical responses are directly caused by the library update, which likely changed internal model behavior (e.g., tokenization, attention mechanisms, or default hyperparameters) without any code or configuration changes. Restoring the previous environment immediately resolves the issue and allows the business to investigate the library changes in a controlled manner.

Exam trap

CompTIA often tests the misconception that retraining or adjusting hyperparameters can fix a regression caused by an underlying library change, when the immediate and correct action is to roll back to the known-good environment.

How to eliminate wrong answers

Option A is wrong because retraining the chatbot on the original dataset using the new library version does not address the root cause—the library update itself may have altered model internals (e.g., tokenizer version, default parameters) that cannot be fixed by retraining alone, and retraining is time-consuming and not an immediate fix. Option B is wrong because adding more intents does not resolve the underlying model behavior change; the chatbot is producing nonsensical responses, not missing intents, so intent expansion is irrelevant to the core issue. Option C is wrong because increasing the temperature parameter to 1.5 would make responses more random and less coherent, worsening the nonsensical outputs; temperature controls output randomness, not model correctness or library compatibility.

492
Multi-Selecthard

A data science team uses Vertex AI for model training and deployment. They want to implement CI/CD for ML pipelines. Which THREE Google Cloud services should they integrate?

Select 3 answers
A.Vertex AI Pipelines
B.Cloud Deploy
C.BigQuery
D.Cloud Build
E.Google Kubernetes Engine (GKE)
AnswersA, B, D

Vertex AI Pipelines is the workflow orchestrator for ML CI/CD.

Why this answer

Vertex AI Pipelines orchestrates ML workflows; Cloud Build automates builds; Cloud Deploy manages deployments. BigQuery is for analytics; GKE is for containers but not CI/CD specific.

493
Multi-Selectmedium

A data scientist is building a recommendation system for an e-commerce platform. The dataset includes user purchase history, product descriptions, and user demographics. The goal is to recommend products that a user is likely to purchase. Which TWO techniques are most appropriate for this task? (Select TWO.)

Select 2 answers
A.Content-based filtering
B.Association rule mining
C.Linear regression
D.Anomaly detection
E.Collaborative filtering
AnswersA, E

Uses product descriptions and demographics to match user preferences.

Why this answer

Collaborative filtering uses user-item interactions; content-based filtering uses item features. Association rule mining is for basket analysis; regression is not typically used for recommendations; anomaly detection is for outliers.

494
MCQeasy

An organization uses a third-party pre-trained model for a medical diagnosis system. Which supply chain security measure is MOST critical to verify before deployment?

A.Reviewing the model's software bill of materials (SBOM)
B.Ensuring the model is hosted on a private cloud
C.Scanning the model for backdoors
D.Checking for proper API key management
AnswerC

Backdoor detection is essential to ensure the model hasn't been maliciously altered to produce targeted failures.

Why this answer

Third-party pre-trained models can contain hidden backdoors inserted during training, such as poisoned weights that trigger misclassification on specific inputs. In a medical diagnosis system, such backdoors could cause life-threatening errors, making verification against adversarial manipulation the most critical supply chain security measure before deployment.

Exam trap

The AI0-001 exam often tests the distinction between general security hygiene (SBOM, hosting, API keys) and the model-specific threat of backdoors, which is unique to AI supply chain security and the most critical to verify for pre-trained models.

How to eliminate wrong answers

Option A is wrong because while reviewing a software bill of materials (SBOM) is important for tracking dependencies, it does not detect backdoors or maliciously inserted behaviors in the model weights themselves. Option B is wrong because hosting the model on a private cloud addresses data privacy and access control but does not verify the integrity of the model's internal logic or protect against pre-existing backdoors. Option D is wrong because proper API key management secures access to the model endpoint but does not inspect the model for embedded threats like backdoors or trojans.

495
MCQmedium

A team uses Kubeflow to manage ML workflows on Kubernetes. They want to automate hyperparameter tuning for a training job. Which Kubeflow component should they use?

A.KFServing
B.Kubeflow Notebooks
C.Kubeflow Pipelines
D.Kubeflow Katib
AnswerD

Katib provides automated hyperparameter tuning with various algorithms.

Why this answer

Katib is the hyperparameter tuning component in Kubeflow. Pipelines orchestrate workflows; KFServing is for inference; Notebooks are for development.

496
Multi-Selectmedium

A DevOps team is deploying a machine learning model using a CI/CD pipeline. They want to ensure the model is reproducible and traceable. Which TWO practices should they implement?

Select 2 answers
A.Version the training dataset and code using Git and DVC.
B.Manually deploy the model to production after approval.
C.Store only the final model artifact in a shared drive.
D.Use a spreadsheet to record model version numbers.
E.Package the model in a Docker container with a fixed base image.
AnswersA, E

Version control for data and code ensures exact reproduction of training.

Why this answer

Versioning the training dataset and code using Git and DVC (Data Version Control) ensures that every model training run can be exactly reproduced by tracking changes to both the source code and the data. DVC stores metadata pointers in Git while the actual data is stored in a remote cache, enabling precise rollback and audit trails. This practice directly supports reproducibility and traceability, which are core requirements for MLOps and CI/CD pipelines.

Exam trap

The AI0-001 exam often tests the misconception that manual steps or simple documentation (like spreadsheets) are sufficient for traceability, when in fact automated version control and containerization are required for true reproducibility in a CI/CD pipeline.

497
Multi-Selectmedium

A team is designing a RAG system for a large collection of PDFs. They need to choose document chunking strategies. Which TWO strategies are considered best practices? (Choose two.)

Select 2 answers
A.Semantic chunking (e.g., sentence or paragraph boundaries)
B.Fixed-size chunking with no overlap
C.Hierarchical chunking (sections, subsections)
D.Single chunk per document
E.Random character-length chunks
AnswersA, C

Semantic chunking maintains coherence within each chunk, improving embedding quality.

Why this answer

Semantic chunking preserves natural boundaries, and hierarchical chunking respects document structure, both improving retrieval quality.

498
MCQeasy

An organization wants to train a machine learning model on sensitive patient data without exposing individual records. Which privacy-preserving technique allows the model to learn from data distributed across multiple hospitals without raw data leaving each site?

A.Homomorphic encryption
B.Federated learning
C.k-anonymity
D.Differential privacy
AnswerB

Federated learning trains on decentralized data and only shares model weights, preserving privacy.

Why this answer

Federated learning trains models locally at each site and only shares model updates, not raw data. Differential privacy adds noise, homomorphic encryption allows computation on encrypted data, and k-anonymity is a data anonymization technique.

499
MCQeasy

A data scientist is preparing a dataset for a supervised learning model. The dataset contains missing values in 15% of the rows for a numeric feature. Which preprocessing technique should be applied to minimize bias?

A.Remove all rows with missing values.
B.Impute missing values with the mean of the feature.
C.Encode the missing values as a separate category.
D.Use a model that handles missing values natively.
AnswerB

Mean imputation preserves the dataset size and is appropriate for numeric features when missingness is random.

Why this answer

Imputing missing values with the mean of the feature is the correct approach because it preserves the overall distribution of the numeric feature and avoids introducing systematic bias when only 15% of rows are affected. Removing rows would reduce sample size and potentially introduce selection bias, while encoding missing values as a separate category is inappropriate for numeric features in regression or classification tasks. Mean imputation is a standard, low-bias technique for MCAR (Missing Completely At Random) data in supervised learning pipelines.

Exam trap

CompTIA often tests the misconception that removing rows with missing values is always safe, but the trap here is that candidates overlook how even 15% missingness can bias the model if the missingness is not random, making imputation a more robust preprocessing step.

How to eliminate wrong answers

Option A is wrong because removing rows with missing values reduces the dataset size and can introduce selection bias if the missingness is not completely random (MCAR), leading to a non-representative training set. Option C is wrong because encoding missing values as a separate category is designed for categorical features, not numeric features; for numeric features, this would create an artificial ordinal relationship or require one-hot encoding that distorts the feature's numerical meaning. Option D is wrong because relying on a model that handles missing values natively (e.g., tree-based models) is not a preprocessing technique; it shifts the burden to the algorithm, which may still produce biased splits or require additional assumptions about missingness patterns.

500
Multi-Selecteasy

Which TWO are characteristics of supervised learning?

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

Supervised learning uses input-output pairs for training.

Why this answer

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

Exam trap

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

501
MCQmedium

An AI system trained on historical medical records shows that certain racial groups have higher predicted risk for a disease. The data reflects real-world differences in diagnosis rates due to unequal access to healthcare. Which type of bias is this?

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

The data reflects historical disparities in healthcare access, which is a classic example of historical bias.

Why this answer

Historical bias occurs when the training data reflects past societal inequities. Selection bias would occur if the sample is not representative; confirmation bias stems from the model's own predictions; algorithmic bias arises from the model design.

502
MCQhard

An AI model for skin cancer detection achieves high accuracy but performs poorly on dark skin tones. The team wants to evaluate whether the model is calibrated across skin tones. Which fairness metric should they use?

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

Calibration checks that for a given predicted probability, the actual outcome rate is the same across groups.

Why this answer

Calibration is the correct metric because it directly measures whether the predicted probabilities of skin cancer match the actual outcomes across different skin tones. A model can have high overall accuracy but be miscalibrated for a subgroup if its confidence scores are systematically over- or under-confident for that group. In this scenario, the team needs to check if the model's risk scores are equally reliable for dark skin tones as for light skin tones, which is exactly what calibration assesses.

Exam trap

The AI0-001 exam often tests the distinction between fairness metrics by presenting a scenario where 'accuracy' is high but subgroup performance differs, and candidates mistakenly choose equalized odds or demographic parity instead of recognizing that the core issue is confidence score reliability, i.e., calibration.

How to eliminate wrong answers

Option A is wrong because equalized odds requires that the true positive rate and false positive rate are equal across groups, which is a measure of error rate fairness, not calibration. Option B is wrong because demographic parity requires that the proportion of positive predictions is the same across groups, which can be achieved even if the model is poorly calibrated. Option C is wrong because individual fairness requires that similar individuals receive similar predictions, which is a different concept from group-level calibration across skin tones.

503
MCQmedium

A company uses an LLM to generate code. They want to ensure that the model does not accidentally output sensitive internal logic. Which practice should they implement?

A.Rate limiting API calls
B.Red teaming the model
C.Output filtering to block sensitive patterns
D.Federated learning
AnswerC

Output filtering scans the model's output for sensitive content and blocks it.

Why this answer

Output filtering is the correct practice because it directly inspects the model's generated text for patterns that match sensitive internal logic (e.g., API keys, source code snippets, or proprietary algorithms) and blocks or redacts them before the output is returned to the user. This is a reactive security control that operates at the application layer, ensuring that even if the LLM inadvertently generates sensitive content, it is never exposed. Rate limiting, red teaming, and federated learning address different concerns (availability, vulnerability discovery, and data privacy during training, respectively) and do not prevent the accidental leakage of internal logic in real-time outputs.

Exam trap

The AI0-001 exam often tests the distinction between proactive security testing (red teaming) and reactive runtime controls (output filtering), leading candidates to confuse vulnerability discovery with real-time content protection.

How to eliminate wrong answers

Option A is wrong because rate limiting controls the frequency of API requests to prevent abuse or denial-of-service, but it does not inspect or filter the content of the LLM's responses, so sensitive internal logic could still be output. Option B is wrong because red teaming is a proactive testing methodology to identify vulnerabilities and weaknesses in the model, but it is not a runtime control that prevents sensitive outputs from being delivered to users. Option D is wrong because federated learning is a distributed training technique that keeps training data local to preserve privacy, but it does not affect the model's inference-time outputs and cannot filter generated content for sensitive patterns.

504
MCQmedium

A team is considering whether to fine-tune a base LLM or use RAG for a question-answering system over a large, static corpus of scientific papers. The answer must be highly accurate and grounded in the papers. Which approach is BEST and why?

A.Fine-tuning because it adapts the model to the scientific domain
B.Fine-tuning because it is faster at inference time
C.RAG because it retrieves and grounds answers in the source documents
D.RAG because it does not require any labeled data
AnswerC

RAG retrieves relevant passages and passes them as context, ensuring the answer is directly supported by the source, reducing hallucination.

Why this answer

RAG retrieves exact passages and grounds answers in the source, which is critical for accuracy and citation in scientific domains. Fine-tuning may memorize but can hallucinate.

505
MCQeasy

Which of the following best describes the difference between narrow AI and general AI?

A.Narrow AI is designed for a specific task; general AI aims to perform any cognitive task a human can.
B.Narrow AI relies on supervised learning; general AI uses unsupervised learning exclusively.
C.Narrow AI requires large datasets; general AI can learn from few examples.
D.Narrow AI can perform any intellectual task; general AI is limited to specific tasks.
AnswerA

Narrow AI excels at one domain (e.g., chess), whereas general AI would be versatile.

Why this answer

Narrow AI specializes in one task, while general AI would possess human-like cognitive abilities across domains.

506
MCQeasy

A hospital wants to train a diagnostic model using patient data from multiple hospitals without sharing raw patient records. Which technique enables collaborative model training while keeping data decentralised?

A.Pseudonymisation
B.Differential privacy
C.Federated learning
D.Anonymisation
AnswerC

Federated learning trains a shared model by aggregating only model updates, never raw patient data.

Why this answer

Federated learning trains models across decentralised data without exchanging raw data. Differential privacy adds noise. Anonymisation removes identifiers.

Pseudonymisation replaces identifiers with pseudonyms.

507
MCQeasy

A data scientist is preparing a dataset for a classification model. The dataset contains a column "Age" with 10% missing values and a column "Income" with 30% missing values. Which imputation strategy is MOST appropriate to minimize bias?

A.Replace missing Age with the mean and missing Income with the median.
B.Delete all rows with missing values.
C.Replace missing Age with the mode and missing Income with a constant value.
D.Replace missing values with zeros.
AnswerA

Mean for symmetric Age, median for skewed Income minimizes bias.

Why this answer

Using mean imputation for Age (10% missing) and median imputation for Income (30% missing) minimizes bias. Mean is suitable for roughly symmetric distributions with low missingness, while median is robust to outliers and skewness, which is common in income data. This combination reduces distortion of central tendency and preserves data integrity better than uniform methods.

Exam trap

CompTIA often tests the misconception that a single imputation method (e.g., mean for all columns) is universally appropriate, when in fact the choice must consider the missingness rate and the distribution of each feature to minimize bias.

How to eliminate wrong answers

Option B is wrong because deleting all rows with missing values (listwise deletion) reduces sample size and can introduce selection bias, especially when missingness is not completely at random (MCAR). Option C is wrong because replacing Age with the mode is inappropriate for continuous variables like age, as it discards variance and can create artificial clusters; replacing Income with a constant value (e.g., 0) introduces systematic bias and distorts the distribution. Option D is wrong because replacing missing values with zeros for both Age and Income is arbitrary and unrealistic, leading to severe underestimation of central tendency and inflated model error.

508
MCQmedium

A company wants to store unstructured text data for AI model training while enabling SQL-based queries for analytics. Which storage solution should they use as the primary data source?

A.A vector database like Pinecone
B.A data lake like Amazon S3
C.A data warehouse like Snowflake
D.A NoSQL database like DynamoDB
AnswerB

Data lakes store unstructured data in native format; SQL queries can be run on top via services like Athena or Presto.

Why this answer

Amazon S3 is a highly scalable object storage service that can store unstructured text data in its native format (e.g., CSV, JSON, Parquet) and supports SQL-based queries via services like Amazon Athena or S3 Select. This makes it ideal as a primary data source for AI model training while enabling analytics without requiring data transformation or loading into a separate system.

Exam trap

The trap here is that candidates often confuse a data warehouse (Snowflake) with a data lake (S3) for storing unstructured data, forgetting that data warehouses require structured schemas and are not designed for raw, schema-on-read storage.

How to eliminate wrong answers

Option A is wrong because vector databases like Pinecone are optimized for similarity search and embedding storage, not for SQL-based analytics or general unstructured text storage for training. Option C is wrong because data warehouses like Snowflake require structured, schema-on-write data and are not designed to store raw unstructured text files as the primary source. Option D is wrong because NoSQL databases like DynamoDB are key-value/document stores that enforce schema constraints and are not optimized for SQL queries on large volumes of unstructured text data.

509
Multi-Selecthard

Which TWO of the following are effective defenses against adversarial evasion attacks on image classifiers?

Select 2 answers
A.Data augmentation
B.Gradient masking
C.Adversarial training
D.Input validation
E.Feature squeezing
AnswersB, C

Gradient masking obscures gradient information to prevent crafting adversarial examples.

Why this answer

Adversarial training and gradient masking (e.g., defensive distillation) are common defenses. Data augmentation helps generalization but not specifically against adversarial perturbations; feature squeezing reduces input complexity; input validation is generic.

510
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

511
MCQmedium

A team is using a cloud AI service with a pay-per-token pricing model. They want to minimize costs while maintaining response quality. Which strategy is MOST effective?

A.Switch to a smaller, less capable model
B.Increase the batch size for API calls
C.Use prompt caching for repeated query patterns
D.Reduce the model's max_tokens to a very low value
AnswerC

Caching avoids reprocessing identical prompts, saving token costs and reducing latency while preserving quality.

Why this answer

Prompt caching reduces costs by avoiding redundant token processing for repeated query patterns. The cloud AI service charges per token, so caching the prefix of frequent requests (e.g., system prompts or common context) means only the new, unique tokens are billed, directly lowering expenditure without sacrificing response quality.

Exam trap

Candidates often mistakenly think that reducing model size or output length is the only way to cut costs, but the correct strategy leverages architectural features like prompt caching to reduce token consumption without affecting quality.

How to eliminate wrong answers

Option A is wrong because switching to a smaller, less capable model typically reduces response quality, which contradicts the requirement to maintain quality. Option B is wrong because increasing batch size for API calls does not reduce per-token cost; it may improve throughput but still charges for all tokens processed. Option D is wrong because reducing max_tokens to a very low value can truncate responses, degrading quality, and does not address the cost of input tokens or repeated patterns.

512
MCQmedium

A data science team needs to implement privacy-preserving ML for a healthcare model. They require that individual patient records cannot be distinguished in the training output. Which technique should be applied?

A.Differential privacy
B.Homomorphic encryption
C.Model pruning
D.Federated learning
AnswerA

Correct. Differential privacy provides formal guarantees against membership inference.

Why this answer

Differential privacy is the correct technique because it adds calibrated noise to the training process or query outputs, ensuring that the inclusion or exclusion of any single patient record does not significantly affect the model's output. This provides a formal mathematical guarantee that individual records cannot be distinguished, which directly meets the requirement for privacy-preserving ML in healthcare.

Exam trap

The AI0-001 exam often tests the misconception that federated learning alone provides privacy, but without differential privacy, federated learning can still leak individual patient data through model inversion or membership inference attacks.

How to eliminate wrong answers

Option B is wrong because homomorphic encryption allows computations on encrypted data but does not prevent inference about individual records in the model output; it protects data in transit or at rest, not the distinguishability of training records. Option C is wrong because model pruning reduces model size by removing redundant parameters, which has no effect on privacy guarantees and does not prevent individual record identification. Option D is wrong because federated learning trains models across decentralized data without sharing raw data, but the model updates or final model can still leak information about individual records through gradient or membership inference attacks without additional differential privacy mechanisms.

513
MCQmedium

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

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

A lower learning rate can smooth convergence and reduce oscillation.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

514
MCQhard

A large e-commerce company uses a recommendation system based on collaborative filtering. The system uses a matrix factorization model that is trained nightly on the entire user-item interaction history. Recently, the company launched a flash sale with thousands of new products. Users are reporting that the recommendations are not showing the new products, even for users who have purchased them during the sale. The data engineering team notices that the new products have very few interactions in the training data. The model's loss on the validation set has increased, and the recall@10 metric has dropped from 0.45 to 0.32. The team needs to improve the recommendation of new items without retraining the entire model from scratch every hour. Which approach should the team take?

A.Use a hybrid model that combines collaborative filtering with content-based features from product metadata
B.Retrain the model every hour to incorporate new interactions quickly
C.Remove the new products from the recommendation pool until they accumulate enough interactions
D.Increase the number of latent factors in the matrix factorization model
AnswerA

Content-based features allow the model to recommend new items based on their attributes, overcoming the cold-start problem.

Why this answer

A hybrid model that combines collaborative filtering with content-based features (e.g., product metadata like category, price, or description) can recommend new products even with zero or very few user interactions. The content-based component leverages item attributes to compute similarity between new and existing items, enabling the system to surface new products without requiring extensive interaction history. This approach addresses the cold-start problem for new items while preserving the collaborative filtering signal for established items, and it does not require retraining the entire model from scratch every hour.

Exam trap

CompTIA often tests the misconception that simply retraining more frequently or increasing model complexity (e.g., more latent factors) can solve the cold-start problem, but the core issue is the lack of interaction data for new items, which requires a content-based or hybrid approach to leverage item metadata.

How to eliminate wrong answers

Option B is wrong because retraining the model every hour would be computationally expensive and operationally impractical for a large-scale system with thousands of new products; it also does not solve the fundamental cold-start issue since new items still have very few interactions in each hourly training window. Option C is wrong because removing new products from the recommendation pool defeats the business purpose of the flash sale, which is to promote and surface new items to users, and it would lead to a poor user experience and lost revenue. Option D is wrong because increasing the number of latent factors in matrix factorization does not address the lack of interaction data for new items; it may even exacerbate overfitting to sparse data and increase computational cost without improving cold-start recommendations.

515
MCQeasy

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

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

ML enables the system to learn patterns from data.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

516
MCQhard

An organization uses an LLM to generate financial reports. They want to ensure the model does not output sensitive customer data that it may have memorized during training. Which technique should be implemented in the AI pipeline to detect and block such outputs?

A.Input validation
B.Output filtering
C.Rate limiting
D.Federated learning
AnswerB

Output filtering inspects model responses for sensitive content and prevents leakage.

Why this answer

Output filtering is the correct technique because it operates after the LLM generates a response, scanning the output for sensitive data patterns (e.g., PII, financial account numbers) and blocking or redacting them before delivery. This directly addresses the risk of the model regurgitating memorized customer data from its training set, which input validation cannot catch since the sensitive data appears only in the output.

Exam trap

The AI0-001 exam often tests the distinction between input controls (validation) and output controls (filtering), tricking candidates into choosing input validation because they focus on preventing data from entering the system rather than catching data that the model generates from memory.

How to eliminate wrong answers

Option A is wrong because input validation sanitizes data entering the model (e.g., user prompts), but it cannot prevent the model from generating memorized sensitive data in its output, which is a generative behavior. Option C is wrong because rate limiting controls the frequency of API requests to prevent abuse or denial-of-service, not the content of the model's responses. Option D is wrong because federated learning is a distributed training technique that keeps data local to preserve privacy during model training, but it does not inspect or block outputs at inference time.

517
Multi-Selecteasy

An organization is deploying an image classification model to detect defects on a production line. Which TWO steps are essential during the model monitoring phase of the AI project lifecycle?

Select 2 answers
A.Track model performance metrics such as precision and recall on a held-out test set over time
B.Perform data cleaning and normalization on the production data before inference
C.Periodically retrain the model with newly labeled data
D.Automatically roll back to the previous model version if a metric drops below a threshold
E.Monitor for data drift between the training data distribution and incoming production data
AnswersA, E

Tracking metrics on live data (or periodic golden sets) identifies model drift.

Why this answer

Monitoring should track data drift (changes in input distribution) and model drift (performance degradation). Retraining is an action after monitoring, not a step of monitoring itself. Data preparation is completed before deployment.

518
MCQhard

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

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

L2 regularization penalizes large weights, preventing overfitting.

Why this answer

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

519
MCQmedium

A team is evaluating an LLM-based chatbot that frequently hallucinates when answering questions about internal policies. Which testing approach would MOST effectively quantify this issue?

A.Evaluation frameworks for LLM output quality
B.Integration tests for API calls
C.Unit tests for the data pipeline
D.Regression testing of model accuracy over time
AnswerA

Evaluation frameworks specifically measure output quality metrics like faithfulness and hallucination rate.

Why this answer

Evaluation frameworks for LLM output quality, such as those using metrics like faithfulness, factuality, or ROUGE/BLEU scores, are specifically designed to detect and quantify hallucinations by comparing generated responses against a ground-truth knowledge base. This directly measures the rate at which the chatbot fabricates or misstates internal policy details, providing a quantitative baseline for improvement.

Exam trap

The AI0-001 exam often tests the distinction between functional testing (e.g., API integration, data pipeline) and output quality evaluation, leading candidates to mistakenly choose integration or unit tests when the real issue is semantic accuracy of generated content.

How to eliminate wrong answers

Option B is wrong because integration tests for API calls verify that the chatbot's endpoints and external service interactions work correctly, but they do not assess the semantic accuracy or factual consistency of the generated text. Option C is wrong because unit tests for the data pipeline validate data ingestion, transformation, and storage logic, not the output quality of the LLM's responses. Option D is wrong because regression testing of model accuracy over time typically measures performance on a static benchmark (e.g., classification accuracy) rather than quantifying open-ended hallucination rates in a conversational context.

520
MCQhard

A machine learning engineer notices that a fraud detection model's false positive rate has increased significantly over the past week. The model was retrained two weeks ago with new data. Which attack is MOST likely responsible?

A.Data poisoning
B.Prompt injection
C.Adversarial examples
D.Model inversion
AnswerA

Poisoned data during retraining can cause the model to misclassify legitimate transactions as fraud, raising false positives.

Why this answer

Data poisoning corrupts training data, causing the model to learn incorrect patterns. The retraining with new data introduces the poisoned samples, degrading performance. Adversarial examples are at inference time, model inversion reconstructs data, and prompt injection targets LLMs.

521
MCQhard

An organization needs to store sensitive customer data for training a machine learning model. The data must be encrypted at rest and in transit, and access must be audited. Which combination of practices should be implemented?

A.Use TLS for transfer, AES-256 for storage, and AWS CloudTrail for auditing
B.Use FTP for transfer, AES-128 for storage, and manual log review
C.Use SSH for transfer, store data in a database, and enable access logs
D.Use MD5 for hashing, store data in plaintext, and enable server logs
AnswerA

These provide encryption and auditing.

Why this answer

It combines TLS (Transport Layer Security) for encrypting data in transit, AES-256 for strong encryption at rest, and AWS CloudTrail for auditing API-level access. TLS ensures confidentiality and integrity during transmission, AES-256 provides robust symmetric encryption for stored data, and CloudTrail logs all AWS API calls for compliance and audit trails. This triad satisfies the requirements of encryption in transit, at rest, and audited access.

Exam trap

CompTIA often tests the distinction between encryption (AES) and hashing (MD5), and the requirement for both in-transit and at-rest encryption, leading candidates to confuse SSH or FTP with proper TLS-based encryption.

How to eliminate wrong answers

Option B is wrong because FTP transfers data in plaintext, offering no encryption in transit, and AES-128 is weaker than AES-256, while manual log review is not scalable or auditable. Option C is wrong because SSH encrypts only the session, not the data at rest, and storing data in a database without specifying encryption at rest leaves it vulnerable; access logs alone do not provide the same audit trail as a dedicated service like CloudTrail. Option D is wrong because MD5 is a hash function, not encryption, and storing data in plaintext violates the encryption-at-rest requirement; server logs are insufficient for comprehensive auditing.

522
MCQeasy

An AI security analyst is reviewing the OWASP LLM Top 10. Which of the following is listed as the top vulnerability?

A.Sensitive information disclosure
B.Supply chain vulnerabilities
C.Insecure output handling
D.Prompt injection
AnswerD

Prompt injection is ranked #1 in the OWASP LLM Top 10.

Why this answer

Prompt injection is listed as the top vulnerability in the OWASP LLM Top 10 because it directly exploits the way large language models process and execute user-supplied input. By crafting malicious prompts, an attacker can override the model's intended behavior, bypass safety guardrails, and cause the LLM to execute unauthorized actions or leak sensitive data. This vulnerability is considered the most critical due to its ease of exploitation and the severe impact it can have on LLM-integrated applications.

Exam trap

The AI0-001 exam often tests the OWASP LLM Top 10 by making candidates confuse the most common vulnerability (prompt injection) with the most severe consequence (sensitive information disclosure), leading them to pick Option A instead of D.

How to eliminate wrong answers

Option A is wrong because sensitive information disclosure is a consequence of other vulnerabilities (e.g., prompt injection or insecure output handling) and is not itself the top vulnerability in the OWASP LLM Top 10; it is listed as a separate entry (LLM06). Option B is wrong because supply chain vulnerabilities (LLM05) focus on risks from third-party components, models, or data sources, but they are not the most prevalent or easily exploitable attack vector against LLMs. Option C is wrong because insecure output handling (LLM02) deals with the failure to validate or sanitize LLM outputs before passing them to downstream systems, which is a critical issue but ranks below prompt injection in severity and frequency according to OWASP.

523
MCQeasy

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

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

Correct; unsupervised learning identifies patterns without labels.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

524
MCQmedium

During a security review, an auditor finds that an LLM application can call external functions (e.g., send emails, update databases) based on user prompts. Which risk is MOST concerning?

A.Prompt injection
B.Model denial of service
C.Hallucinations producing dangerous advice
D.Excessive agency
AnswerD

Correct. The LLM can autonomously perform actions, which is a high-risk vulnerability.

Why this answer

Excessive agency allows the LLM to perform unintended actions with real-world consequences, such as sending emails or modifying data.

525
MCQeasy

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

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

The model fits training data too closely and fails on new data.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

Page 6

Page 7 of 11

Page 8

All pages