Courseiva

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

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

Page 4

Page 5 of 11

Page 6
301
MCQhard

A team fine-tunes a 7B parameter LLM using LoRA on a custom instruction dataset. After training, they observe that the model's outputs are only marginally different from the base model. Which is the MOST likely cause?

A.The dataset contained too many examples, overfitting the adapter
B.The base model was too small to benefit from fine-tuning
C.The LoRA rank was set too low (e.g., r=1), limiting the adapter's capacity to learn the task
D.The learning rate was too high, causing the model to diverge
AnswerC

Low rank reduces the number of trainable parameters; the adapter may not have enough capacity to alter behavior significantly.

Why this answer

LoRA has a rank hyperparameter that controls adapter expressiveness. If the rank is too low, the adapter cannot capture the desired task. Other hyperparameters like learning rate affect convergence but rank directly impacts capacity.

302
Multi-Selectmedium

A machine learning engineer is deploying a model to production. Which TWO practices are essential for ensuring reproducibility of model predictions?

Select 2 answers
A.Increase the number of training epochs to ensure convergence.
B.Use the same GPU hardware for both training and inference.
C.Use parallel data loading to speed up inference.
D.Version-control the model artifact (e.g., using MLflow or DVC).
E.Fix random seeds for all libraries (e.g., NumPy, TensorFlow).
AnswersD, E

Versioning ensures the exact model is used for inference.

Why this answer

Version-controlling the model artifact (D) is essential because it allows you to reproduce the exact model binary that generated a prediction, ensuring that any changes to the model code, hyperparameters, or training data do not silently alter outputs. Tools like MLflow or DVC store the model along with its metadata, enabling rollback and auditability in production.

Exam trap

CompTIA often tests the misconception that hardware consistency (e.g., same GPU) is required for reproducibility, when in fact deterministic software practices (version control and seed fixing) are the critical factors.

303
MCQmedium

A security analyst notices that an AI model used for facial recognition is returning unusually high confidence scores for certain individuals while consistently misidentifying others. Which type of attack is most likely occurring?

A.Data poisoning
B.Evasion attack
C.Model inversion attack
D.Model extraction attack
AnswerC

Inversion exploits confidence scores to infer private training data, often showing high confidence on seen data.

Why this answer

A model inversion attack allows an adversary to reconstruct training data or infer sensitive attributes from the model's outputs. In this scenario, the unusually high confidence scores for certain individuals and misidentification of others indicate that the attacker is exploiting the model's internal representations to extract information about the training data, leading to biased or overconfident predictions for specific classes.

Exam trap

The AI0-001 exam often tests the distinction between attacks that affect model outputs (evasion) versus attacks that extract or infer training data (model inversion), and candidates may confuse the high confidence scores with a successful evasion or poisoning effect.

How to eliminate wrong answers

Option A is wrong because data poisoning involves injecting malicious data into the training set to corrupt the model's behavior, which would typically cause systematic errors across many inputs rather than selectively high confidence for some individuals. Option B is wrong because an evasion attack (adversarial example) manipulates input data to cause misclassification, but it does not explain the high confidence scores for certain individuals; evasion attacks usually reduce confidence or cause incorrect labels. Option D is wrong because model extraction aims to duplicate the model's functionality by querying it and training a substitute, not to reveal training data or cause confidence anomalies for specific individuals.

304
MCQhard

A team is deploying a multi-modal AI model that processes both text and images. They need to ensure that inference requests are handled quickly even during traffic spikes. Which integration pattern is BEST suited for this use case?

A.Deploy a synchronous REST API with auto-scaling
B.Stream responses directly from the model to the client
C.Pre-compute all possible outputs and cache them
D.Use an event-driven architecture with a queue and worker instances
AnswerD

Queues decouple request submission from processing, enabling resilient scaling and handling spikes.

Why this answer

Asynchronous processing with a message queue allows requests to be buffered and processed without blocking the user, scaling out workers as needed.

305
MCQmedium

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

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

Domain adaptation adjusts the model to new conditions with minimal data.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

306
MCQeasy

A data scientist is training a neural network to classify images of handwritten digits. The model achieves 99% accuracy on training data but only 85% on validation data. Which technique should the scientist apply first to address this issue?

A.Remove one or more hidden layers from the network
B.Increase the number of training epochs
C.Apply L2 regularization to the network weights
D.Add more features to the input data
AnswerC

L2 regularization penalizes large weights and reduces overfitting.

Why this answer

The model shows high training accuracy (99%) but lower validation accuracy (85%), which is a classic sign of overfitting. L2 regularization (option C) adds a penalty term to the loss function proportional to the squared magnitude of the weights, discouraging the network from learning overly complex patterns that do not generalize. This directly addresses overfitting without reducing the model's capacity too aggressively.

Exam trap

CompTIA often tests the distinction between overfitting and underfitting, and the trap here is that candidates may confuse increasing epochs (option B) as a solution to low validation accuracy, when in fact it exacerbates overfitting in this scenario.

How to eliminate wrong answers

Option A is wrong because removing hidden layers reduces the model's capacity, which may underfit and does not specifically target the overfitting problem; the network already has sufficient capacity to memorize the training data. Option B is wrong because increasing the number of training epochs would likely worsen overfitting by allowing the model to further memorize noise in the training data, not improve validation performance. Option D is wrong because adding more features to the input data (e.g., additional pixel-level transformations) would increase the dimensionality and risk of overfitting, not reduce it, and is not a standard technique for addressing overfitting in neural networks.

307
MCQhard

A company wants to fine-tune a 70B-parameter LLM for a specialized domain but has limited GPU memory (e.g., 24 GB VRAM). Which technique allows fine-tuning with minimal memory footprint?

A.Instruction tuning with a smaller dataset
B.QLoRA (Quantized Low-Rank Adaptation)
C.LoRA (Low-Rank Adaptation) on the base model
D.Full fine-tuning with gradient checkpointing
AnswerB

QLoRA quantizes the base model to 4-bit and uses LoRA adapters, fitting a 70B model in 24 GB VRAM.

Why this answer

QLoRA (Quantized Low-Rank Adaptation) uses 4-bit quantization and low-rank adapters, reducing memory requirements dramatically while preserving fine-tuning quality.

308
MCQmedium

Which chunking strategy for RAG is MOST appropriate when documents have a natural hierarchical structure (e.g., sections, subsections)?

A.Hierarchical chunking that preserves document structure
B.Fixed-size chunking with no overlap
C.Semantic chunking based on sentence boundaries
D.Random chunking with varying sizes
AnswerA

Hierarchical chunking maintains the document's section and subsection organization, improving retrieval relevance.

Why this answer

Hierarchical chunking respects the document structure, preserving context and enabling retrieval at different levels (e.g., section or paragraph).

309
MCQmedium

A data scientist is evaluating a binary classification model. The model achieves 95% accuracy on the test set, but the precision is 0.60 and recall is 0.55. The dataset has 90% negative class samples. Which metric should the team focus on to improve the model?

A.F1 score
B.Perplexity
C.BLEU score
D.Accuracy
AnswerA

F1 score is the harmonic mean of precision and recall, providing a balanced metric that accounts for both false positives and false negatives.

Why this answer

With high class imbalance (90% negatives), accuracy is misleading. F1 score balances precision and recall, giving a better picture of performance on the minority class. AUC-ROC is also good but F1 directly optimizes for positive class.

310
MCQhard

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

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

Correct; L2 adds a penalty term proportional to squared weights.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

311
Multi-Selecthard

A company is deploying a generative AI application that produces structured JSON output for downstream processing. They want to ensure the output is consistently valid JSON and matches a specific schema. Which THREE techniques should they use? (Select THREE)

Select 3 answers
A.Fine-tune the model on a dataset of JSON outputs
B.Increase the temperature parameter to 1.5
C.Provide few-shot examples of the desired output
D.Include a system prompt specifying the expected JSON schema
E.Use JSON mode (structured output) in the API call
AnswersC, D, E

Correct: few-shot examples help the model understand the exact schema.

Why this answer

Structured output (JSON mode) forces valid JSON, system prompts instruct the model, and few-shot examples demonstrate the required schema.

312
MCQmedium

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

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

Overfitting explains high training and low test performance.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

313
MCQmedium

Refer to the exhibit. A data scientist defines a model configuration in JSON. Which component is missing from the configuration for a complete machine learning pipeline?

A.Training hyperparameters
B.Data preprocessing steps
C.Model type
D.Evaluation metrics
AnswerB

Preprocessing (scaling, encoding) is missing.

Why this answer

A complete machine learning pipeline must include data preprocessing steps to transform raw data into a format suitable for model training. The JSON configuration defines the model type, evaluation metrics, and training hyperparameters, but omits any specification for data cleaning, normalization, feature encoding, or splitting, which are essential for reproducibility and model performance.

Exam trap

CompTIA often tests the misconception that a model configuration is complete if it includes the model type, hyperparameters, and evaluation metrics, but candidates overlook that data preprocessing is a mandatory pipeline stage for transforming raw data before training.

How to eliminate wrong answers

Option A is wrong because training hyperparameters (e.g., learning rate, batch size) are present in the configuration as part of the model training specification, so they are not missing. Option C is wrong because the model type (e.g., 'neural_network', 'random_forest') is explicitly defined in the JSON under the 'model' key, so it is not missing. Option D is wrong because evaluation metrics (e.g., 'accuracy', 'f1_score') are listed in the configuration under the 'evaluation' section, so they are not missing.

314
Multi-Selecteasy

A data scientist is training a supervised learning model for customer churn prediction. Which TWO types of bias are most likely to affect the model's fairness and accuracy if not addressed?

Select 2 answers
A.Algorithmic bias
B.Selection bias
C.Measurement bias
D.Sampling bias
E.Confirmation bias
AnswersB, C

Selection bias arises when the sample is not representative of the population, leading to skewed predictions.

Why this answer

Selection bias (B) occurs when the training data does not represent the true customer population, e.g., using only data from a specific time period or region, leading to a model that fails to generalize. Measurement bias (C) arises from systematic errors in how features are recorded, such as inconsistent data collection methods across customer segments, which can skew predictions and harm fairness.

Exam trap

CompTIA often tests the distinction between data-level biases (selection, measurement) and human cognitive biases (confirmation bias), so candidates mistakenly pick confirmation bias because it sounds plausible in a data science context.

315
Multi-Selectmedium

Which THREE are common activation functions used in neural networks? (Choose THREE.)

Select 3 answers
A.ReLU
B.Softmax
C.Sigmoid
D.Linear
E.Tanh
AnswersA, C, E

Rectified Linear Unit is widely used in hidden layers.

Why this answer

ReLU (Rectified Linear Unit) is a common activation function in neural networks because it introduces non-linearity while being computationally efficient. It outputs the input directly if positive, otherwise zero, which helps mitigate the vanishing gradient problem compared to sigmoid or tanh. This makes it a default choice for hidden layers in many deep learning architectures.

Exam trap

CompTIA often tests the distinction between activation functions used in hidden layers versus output layers, so candidates mistakenly select Softmax as a general activation function when it is only appropriate for the final layer in classification tasks.

316
MCQmedium

A company is deploying a fraud detection model that must return predictions within 100ms to avoid transaction delays. The team is deciding between batch and real-time inference. Which factor most strongly supports a real-time inference architecture?

A.The model requires large amounts of historical data for each prediction
B.The application requires immediate feedback for each transaction
C.The infrastructure budget is limited and must be optimized
D.The model can be retrained weekly using gathered data
AnswerB

Real-time inference delivers low-latency predictions for each request.

Why this answer

Real-time inference is required when the application must return predictions within strict latency bounds (e.g., 100ms) to avoid transaction delays. The need for immediate feedback per transaction directly aligns with a real-time architecture, where each request is processed individually as it arrives, rather than waiting for a batch window. Batch inference would introduce unacceptable latency because it processes groups of records on a schedule, not on-demand.

Exam trap

CompTIA often tests the misconception that batch inference is always cheaper or more efficient, but the trap here is that latency requirements (under 100ms) force a real-time architecture regardless of cost or data volume.

How to eliminate wrong answers

Option A is wrong because requiring large amounts of historical data for each prediction does not dictate real-time vs. batch; it affects feature engineering and storage, not inference latency. Option C is wrong because limited infrastructure budget typically favors batch inference, which can use cheaper, less scalable resources and process data in bulk, not real-time. Option D is wrong because weekly retraining is a model update frequency concern, unrelated to the inference serving architecture; both batch and real-time systems can support periodic retraining.

317
MCQmedium

A data scientist is using a Hugging Face transformer model for a sentiment analysis task. They want to optimize inference latency for a mobile app. Which model format and framework combination is BEST suited for on-device deployment?

A.Convert to TensorFlow Lite (TFLite) and run on the device
B.Use the full PyTorch model with JIT scripting
C.Deploy the model on a cloud endpoint and call via REST API
D.Export to ONNX and use ONNX Runtime with GPU
AnswerA

TFLite is optimized for mobile devices, providing low latency and small binary size.

Why this answer

TensorFlow Lite (TFLite) is specifically designed for on-device machine learning inference on mobile and edge devices. It provides a lightweight runtime, hardware acceleration via delegates (e.g., GPU, NNAPI), and reduced model size through quantization, making it the best choice for optimizing inference latency in a mobile app. Converting a Hugging Face transformer model to TFLite allows the model to run locally without network latency, which is critical for real-time sentiment analysis on a smartphone.

Exam trap

Candidates may mistakenly think that other export formats such as ONNX or PyTorch JIT are equally suitable for mobile deployment, but the correct answer is TFLite because it is specifically designed for on-device inference with quantization and hardware acceleration, while ONNX and PyTorch JIT are primarily optimized for server-side or desktop inference.

How to eliminate wrong answers

Option B is wrong because using a full PyTorch model with JIT scripting does not produce a mobile-optimized runtime; PyTorch Mobile exists but JIT scripting alone lacks the quantization and delegate support that TFLite offers for low-latency on-device inference. Option C is wrong because deploying the model on a cloud endpoint and calling via REST API introduces network latency and dependency on connectivity, which defeats the purpose of on-device deployment for a mobile app. Option D is wrong because exporting to ONNX and using ONNX Runtime with GPU is typically designed for server or desktop environments with dedicated GPUs, not for mobile devices where GPU support is limited and ONNX Runtime Mobile is less mature than TFLite for transformer models.

318
Multi-Selectmedium

Which THREE are common causes of data leakage in machine learning pipelines?

Select 3 answers
A.Using time-based splitting for sequential data
B.Using future information to predict the present
C.Using cross-validation on the entire dataset
D.Applying normalization before splitting data into train and test sets
E.Including features that are directly derived from the target variable
AnswersB, D, E

Using data that would not be available at prediction time is a direct form of leakage.

Why this answer

Using future information to predict the present is a classic form of data leakage. In time series or sequential data, if a model is trained on features that include values from a later time point, it gains access to information that would not be available at prediction time, leading to overly optimistic performance metrics and poor generalization.

Exam trap

CompTIA often tests the distinction between valid data splitting practices and actual leakage causes, so candidates may incorrectly select time-based splitting (Option A) as a leakage cause when it is actually a proper technique for sequential data.

319
MCQmedium

A developer is implementing a RAG system and needs to choose a similarity metric for retrieving document chunks. The embedding model produces normalized vectors. Which metric is computationally efficient and equivalent to cosine similarity for normalized vectors?

A.Euclidean distance
B.Hamming distance
C.Manhattan distance
D.Dot product
AnswerD

When vectors are unit normalized, dot product equals cosine similarity, and it is computationally efficient.

Why this answer

For normalized vectors, dot product is equivalent to cosine similarity and is faster to compute.

320
Multi-Selectmedium

Under the EU AI Act, an AI system used for credit scoring is classified as high-risk. Which THREE obligations apply to the deployer of such a system?

Select 3 answers
A.Register the system with a central EU database
B.Publish the model's source code publicly
C.Provide transparency information to affected individuals
D.Conduct a fundamental rights impact assessment
E.Ensure human oversight of the system's decisions
AnswersC, D, E

Deployers must inform individuals that an AI system is making decisions affecting them.

Why this answer

Article 13 of the EU AI Act requires deployers of high-risk AI systems to provide clear and meaningful transparency information to affected individuals, including the system's capabilities, limitations, and the logic behind decisions. This obligation ensures that individuals subject to automated credit scoring understand how their data is being used and can exercise their rights under the regulation.

Exam trap

The trap here is that candidates often confuse deployer obligations with provider obligations, mistakenly assigning registration and code publication duties to the deployer instead of the provider.

321
MCQhard

A company serves a large language model (LLM) on a Kubernetes cluster. The inference latency is acceptable but the cost is high due to GPU usage. The model is 7 billion parameters and requires 16GB GPU memory. The team wants to reduce cost without increasing latency. Which strategy should they implement?

A.Increase the batch size for inference
B.Add more GPU nodes to distribute the load
C.Switch to CPU-based inference
D.Use model quantization to reduce precision
AnswerD

Quantization reduces model size and memory, enabling more efficient GPU usage.

Why this answer

Model quantization reduces the precision of the model's weights (e.g., from FP32 to INT8), which decreases the GPU memory footprint from 16GB to approximately 4GB for a 7B parameter model. This directly lowers GPU cost per inference while maintaining acceptable latency, as the model can run on fewer or cheaper GPUs without increasing inference time.

Exam trap

CompTIA often tests the misconception that adding more hardware (Option B) or increasing batch size (Option A) always reduces cost, when in fact they increase resource usage and cost; the trap is that candidates overlook memory optimization techniques like quantization as a direct cost-reduction strategy.

How to eliminate wrong answers

Option A is wrong because increasing batch size for inference would increase GPU memory usage and could increase latency due to larger memory transfers, not reduce cost without affecting latency. Option B is wrong because adding more GPU nodes would increase cost, not reduce it, and does not address the high GPU memory usage per inference. Option C is wrong because switching to CPU-based inference would drastically increase latency (often 10-100x slower) due to the lack of parallel processing for large matrix operations, violating the requirement to not increase latency.

322
MCQeasy

A machine learning engineer needs to choose an algorithm for grouping customers into segments based on purchasing behavior without any labels. Which algorithm should the engineer use?

A.K-means clustering
B.Random forest classifier
C.Linear regression
D.Support vector machine
AnswerA

K-means is unsupervised and groups data based on feature similarity.

Why this answer

K-means clustering is an unsupervised learning algorithm that groups unlabeled data into clusters based on feature similarity, making it ideal for segmenting customers by purchasing behavior without predefined labels. It partitions data into K clusters by minimizing within-cluster variance, which directly addresses the requirement of discovering natural groupings in the data.

Exam trap

The AI0-001 exam often tests the distinction between supervised and unsupervised learning, and the trap here is that candidates may confuse clustering with classification, picking a supervised algorithm like Random Forest or SVM because they think of 'grouping' as a classification task.

How to eliminate wrong answers

Option B (Random forest classifier) is wrong because it is a supervised ensemble method that requires labeled training data to classify instances, not suitable for unlabeled customer segmentation. Option C (Linear regression) is wrong because it is a supervised regression algorithm used to predict continuous values from labeled data, not for grouping unlabeled data. Option D (Support vector machine) is wrong because it is a supervised classification algorithm that requires labeled data to find a separating hyperplane, and cannot perform unsupervised clustering without modifications.

323
MCQhard

A company uses an LLM API to generate customer support responses. They want to prevent the LLM from generating harmful content, even when users attempt jailbreaking. Which defense is MOST effective at the application layer?

A.Output filtering and content moderation
B.Input validation and sanitization
C.Robust training techniques
D.Rate limiting
AnswerA

Output filtering checks the generated text and blocks harmful content, providing a final safety layer.

Why this answer

Output filtering and content moderation is the most effective defense at the application layer because it directly inspects the LLM's generated response before it reaches the user. This approach can catch and block harmful content that results from successful jailbreaking attempts, which input validation alone cannot prevent since the model may still produce undesirable outputs even with sanitized inputs.

Exam trap

The AI0-001 exam often tests the misconception that input validation is sufficient for LLM security, but the trap here is that jailbreaking exploits the model's generative capabilities, which can only be reliably mitigated by inspecting the output after generation, not just the input.

How to eliminate wrong answers

Option B is wrong because input validation and sanitization, while useful for preventing injection attacks, cannot stop the LLM from generating harmful content if a jailbreak prompt bypasses these checks; the model's internal behavior is not fully controlled by input filtering. Option C is wrong because robust training techniques (e.g., RLHF or adversarial training) are applied during model development, not at the application layer, and they cannot dynamically adapt to novel jailbreak patterns in real-time. Option D is wrong because rate limiting only controls the frequency of API requests, not the content of the responses; it does nothing to prevent a single successful jailbreak from generating harmful output.

324
MCQmedium

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

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

Correct; transfer learning works well with small labeled datasets.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

325
MCQhard

A financial institution is developing a fraud detection model using historical transaction data. The dataset contains over 10 million records, but only 0.01% of transactions are fraudulent. The current model uses a neural network trained with standard cross-entropy loss, and the team applies random undersampling of the majority class to create a balanced training set. However, the model still produces a high number of false positives (legitimate transactions flagged as fraud) and misses approximately 30% of actual fraud cases. The business requires that at least 95% of frauds be caught, and the false positive rate must be below 1% to avoid overwhelming fraud analysts. The team has limited resources to collect additional data and cannot change the model architecture significantly. Which approach should the team take to best meet the business requirements?

A.Use cost-sensitive learning by assigning a higher misclassification cost to the fraud class.
B.Apply feature selection to remove noisy predictors and then retrain the current model.
C.Switch to an anomaly detection algorithm such as Isolation Forest or One-Class SVM.
D.Collect more transaction data, especially fraudulent examples, to naturally balance the classes.
AnswerA

This directly penalizes false negatives more, encouraging the model to catch more frauds while maintaining a low false positive rate through tuning.

Why this answer

Cost-sensitive learning adjusts the loss function to penalize false negatives more heavily, directly addressing the need to catch more frauds while controlling false positives. Collecting more data is impractical and may not resolve the imbalance. Anomaly detection models treat fraud as outliers but often have high false positive rates in this context.

Feature selection does not inherently solve the imbalance or performance metric trade-off.

326
MCQhard

During testing of a customer service chatbot, the team notices that the model sometimes generates plausible-sounding but factually incorrect answers about company policies. Which evaluation approach is BEST to systematically detect and quantify this issue?

A.Regression testing comparing old and new model outputs
B.Unit tests on the data pipeline
C.Integration tests for API calls
D.Evaluation framework with faithfulness and answer relevancy metrics on a held-out test set
AnswerD

An evaluation framework using metrics like faithfulness (whether the answer is supported by the source) and answer relevancy can detect hallucination and quantify model performance.

Why this answer

A comprehensive LLM output evaluation framework using a ground-truth dataset of question-answer pairs and metrics like faithfulness and answer relevancy can detect hallucination systematically.

327
MCQmedium

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

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

Adding complexity reduces bias but may increase variance.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

328
MCQmedium

A team is training a language model using a large text corpus. They want to ensure the model does not learn biased associations between gender and professions. Which data engineering technique should they apply?

A.Remove all gender-related words from the text
B.Use a pre-trained model that is already debiased
C.Apply adversarial debiasing during training
D.Balance the representation of professions across genders
AnswerD

Balancing ensures the model sees equal examples of each gender across professions, reducing biased correlations.

Why this answer

Balancing the representation of professions across genders in the training data directly addresses the root cause of biased associations. By ensuring that each profession appears with roughly equal frequency for all gender references, the model learns statistical correlations that are fair rather than skewed by imbalanced data. This is a fundamental data engineering technique for bias mitigation, as it prevents the model from encoding spurious correlations between gender and occupation.

Exam trap

CompTIA AI often tests the distinction between data-level interventions (like balancing) and model-level interventions (like adversarial debiasing), trapping candidates who confuse training-time algorithms with data engineering techniques.

How to eliminate wrong answers

Option A is wrong because removing all gender-related words eliminates necessary context for the model to understand language, and it does not prevent the model from learning biased associations from remaining contextual clues (e.g., pronouns in surrounding sentences). Option B is wrong because using a pre-trained model that is already debiased does not guarantee the model will remain unbiased on the specific downstream task or dataset; debiasing is often incomplete and may not transfer to new data distributions. Option C is wrong because adversarial debiasing is a training-time technique that modifies the model's internal representations, not a data engineering technique; it operates on the model architecture and loss function, not on the dataset itself.

329
MCQeasy

A data analyst is cleaning a dataset and finds that 20% of the values for the 'age' column are missing. Which imputation method is most robust if the data is not normally distributed?

A.Mean imputation
B.Median imputation
C.Mode imputation
D.Remove rows with missing values
AnswerB

Median is robust to non-normal distributions.

Why this answer

Median imputation is the most robust method for handling missing values in the 'age' column when the data is not normally distributed because the median is unaffected by outliers or skewness. Unlike the mean, which is sensitive to extreme values, the median provides a central tendency measure that better represents the typical value in non-normal distributions, preserving the dataset's integrity for downstream modeling.

Exam trap

CompTIA often tests the misconception that mean imputation is always the default or best choice for numerical data, but the trap here is that candidates overlook the importance of distribution shape and outlier sensitivity, leading them to select mean imputation despite the data not being normally distributed.

How to eliminate wrong answers

Option A is wrong because mean imputation assumes a normal distribution and is highly sensitive to outliers, which can introduce bias and distort the dataset's variance when the data is skewed. Option C is wrong because mode imputation is typically used for categorical data, not continuous variables like age, and it can lead to loss of granularity and inaccurate representation of the distribution. Option D is wrong because removing rows with missing values reduces sample size and can introduce selection bias, especially if the missingness is not completely at random, which is inefficient and may degrade model performance.

330
MCQhard

A team is deploying a generative AI model for a real-time customer-facing application. They need to balance cost and latency. Which deployment strategy is MOST suitable?

A.Monolithic API with serverless functions
B.Edge deployment on user devices
C.Batch processing with synchronous requests
D.AI microservices with streaming responses and async processing queues
AnswerD

Microservices with streaming and async queues reduce perceived latency and handle variable load efficiently.

Why this answer

AI microservices with streaming responses and async processing queues decouple inference from the request lifecycle, allowing the system to handle variable loads efficiently while maintaining low latency for real-time interactions. This architecture balances cost by scaling only the necessary components (e.g., GPU-backed inference services) and uses streaming (e.g., Server-Sent Events or WebSockets) to deliver partial results, reducing perceived latency for the customer.

Exam trap

The AI0-001 exam often tests the misconception that serverless functions (Option A) are always the cheapest and fastest option, but they ignore cold-start latency and the overhead of monolithic orchestration in real-time AI workloads.

How to eliminate wrong answers

Option A is wrong because a monolithic API with serverless functions introduces cold-start latency and tight coupling, which is unsuitable for real-time customer-facing applications where consistent sub-second response times are critical. Option B is wrong because edge deployment on user devices requires significant on-device compute resources, model compression, and frequent updates, which increases deployment complexity and cost, and may not be feasible for large generative models. Option C is wrong because batch processing with synchronous requests is designed for high-throughput, non-real-time workloads (e.g., nightly report generation) and would force users to wait for batch completion, violating the real-time requirement.

331
MCQmedium

A data scientist needs to explain why a specific loan application was rejected by a tree-based model. The model is complex and not inherently interpretable. Which method should the data scientist use to provide a local explanation for this single prediction?

A.LIME
B.SHAP values
C.Model cards
D.Attention visualization
AnswerA

LIME creates a simple, interpretable model around the prediction to explain the decision locally, making it ideal for this task.

Why this answer

LIME (Local Interpretable Model-agnostic Explanations) is the correct choice because it is specifically designed to provide local explanations for individual predictions by approximating the complex model with a simpler, interpretable surrogate model around that specific instance. For a tree-based model that is not inherently interpretable, LIME can explain why a single loan application was rejected by perturbing the input and observing the changes in predictions, making it ideal for this use case.

Exam trap

The AI0-001 exam often tests the distinction between local vs. global interpretability methods, and the trap here is that candidates may choose SHAP values (Option B) because they are also popular for explanations, but SHAP is more suited for global feature importance and can be overkill or less intuitive for a single-instance explanation compared to LIME's direct local surrogate approach.

How to eliminate wrong answers

Option B is wrong because SHAP values, while also providing local explanations, are based on cooperative game theory and compute Shapley values, which can be computationally expensive for complex tree-based models and may not be as straightforward for a single-prediction explanation as LIME's perturbation-based approach. Option C is wrong because model cards are documentation artifacts that describe the overall model's intended use, performance, and limitations, not a method for generating local explanations for individual predictions. Option D is wrong because attention visualization is a technique used primarily in neural network models (e.g., transformers) to highlight which parts of the input the model focuses on, and it is not applicable to tree-based models like decision trees or random forests.

332
Multi-Selectmedium

A team is setting up a test suite for an AI system that includes a data pipeline, an LLM API call, and an output evaluation step. Which TWO types of tests should they prioritize to ensure the system's reliability?

Select 2 answers
A.End-to-end tests simulating full user workflows
B.Unit tests for data pipeline components
C.Regression tests comparing output to previous versions
D.Load tests to measure performance under high traffic
E.Integration tests for API calls to the LLM
AnswersB, E

Unit tests validate individual data transformations, catching bugs early.

Why this answer

Unit tests for data pipelines catch data transformation errors early, and integration tests for API calls verify that the LLM endpoint responds correctly. E2E tests and regression tests are also important but not the first priority for reliability.

333
Multi-Selecthard

An organization wants to fine-tune a 7B parameter LLM for a specialized legal document summarization task. They have a small labeled dataset (500 examples) and limited GPU budget. Which THREE techniques should they consider? (Choose three.)

Select 3 answers
A.Use LoRA (Low-Rank Adaptation)
B.Create an instruction-tuning dataset with input-summary pairs
C.Train a new model from scratch on legal text
D.Full fine-tuning of all model parameters
E.Use QLoRA with 4-bit quantization
AnswersA, B, E

LoRA freezes base weights and trains small adapters, drastically reducing memory.

Why this answer

PEFT methods like LoRA and QLoRA are designed for efficient fine-tuning with limited resources. Instruction tuning datasets improve task performance. Full fine-tuning is too expensive.

334
MCQmedium

A company deploys an LLM chatbot that has access to a database of customer orders. They want to prevent the LLM from revealing order details unless the user is authenticated as the owner. Which security control should be implemented?

A.Output filtering
B.Rate limiting
C.Input validation and sanitization
D.Access controls on the model and API
AnswerD

Access controls enforce authentication and authorization, ensuring only the order owner can retrieve their details.

Why this answer

Access controls on the model and API (Option D) are the correct security control because they enforce authentication and authorization at the API gateway or model endpoint level, ensuring that only the authenticated owner can query their own order details. This prevents unauthorized users from invoking the LLM to retrieve sensitive data, regardless of the prompt content. Without such access controls, the LLM would have no inherent mechanism to verify user identity before processing requests.

Exam trap

The AI0-001 exam often tests the misconception that output filtering or input sanitization alone can prevent data leakage, when in fact they fail to address the root cause—lack of authentication and authorization at the API or model access layer.

How to eliminate wrong answers

Option A is wrong because output filtering only inspects and blocks certain patterns in the model's responses after generation, but it cannot prevent an authenticated user from seeing another user's data if the model has access to all orders; it also does not enforce user identity. Option B is wrong because rate limiting controls the frequency of requests to prevent abuse or denial-of-service, but it does not authenticate users or restrict access to specific data based on ownership. Option C is wrong because input validation and sanitization protect against injection attacks (e.g., prompt injection) but do not verify the user's identity or enforce data ownership; the LLM could still return another user's order if the prompt is crafted to request it.

335
MCQmedium

A security team needs to ensure that all data used for AI model training in the cloud is encrypted at rest and in transit. Which set of measures meets this requirement on AWS?

A.Use Security Groups and Network ACLs
B.Use client-side encryption and store keys in AWS Secrets Manager
C.Enable S3 default encryption with SSE-S3 and use HTTPS for API calls
D.Enable VPC peering and use VPN connections
AnswerC

SSE-S3 encrypts data at rest in S3; HTTPS encrypts data in transit. This covers both requirements.

Why this answer

AWS provides KMS for at-rest encryption and TLS for in-transit encryption. These are standard practices to secure data across the AI pipeline.

336
MCQeasy

A team deploys a machine learning model as a REST API. They want to monitor model drift. Which metric is MOST appropriate for detecting drift in the input data distribution?

A.Model accuracy on a recent holdout set.
B.Population stability index (PSI) comparing training and recent data.
C.F1 score on the training data.
D.Root mean squared error (RMSE) on test data.
AnswerB

PSI directly quantifies distribution shift.

Why this answer

Population stability index (PSI) is the most appropriate metric for detecting drift in input data distribution because it directly measures the shift between the training data distribution and the recent production data distribution. PSI is calculated by binning both distributions and computing the sum of (proportion in bin of recent data minus proportion in bin of training data) times the natural log of their ratio, making it sensitive to changes in feature distributions without requiring ground truth labels.

Exam trap

The trap here is that candidates often confuse performance metrics (accuracy, F1, RMSE) with distribution drift detection, not realizing that PSI specifically quantifies covariate shift without needing ground truth labels.

How to eliminate wrong answers

Option A is wrong because model accuracy on a recent holdout set measures performance degradation, not input data distribution drift; accuracy can drop due to concept drift or other factors, and it requires labeled data which may not be available in production. Option C is wrong because F1 score on the training data is a measure of model fit on historical data, not a metric for detecting changes in the input distribution of new data. Option D is wrong because root mean squared error (RMSE) on test data evaluates prediction error on a static test set, not the distributional shift between training and current production inputs.

337
MCQmedium

A team is developing a threat model for an AI system that processes user uploads. Using STRIDE, which threat involves an attacker modifying the model's training data to cause misclassification?

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

Tampering is the modification of data; data poising is a tampering attack.

Why this answer

Tampering is the STRIDE category for unauthorized modification of data. Data poisoning is a form of tampering with training data.

338
MCQmedium

A machine learning engineer is deploying a real-time anomaly detection system for manufacturing sensor data. The system must process thousands of readings per second with minimal latency. Which deployment architecture is BEST suited?

A.Batch processing using Apache Spark jobs triggered hourly
B.Serverless functions deployed on a CDN
C.A monolithic web application with a relational database
D.AI microservices with an async processing queue and streaming responses
AnswerD

Microservices with async queues and streaming allow scalable, low-latency processing of high-throughput data.

Why this answer

AI microservices with async processing queues and streaming responses can handle high throughput and low latency for real-time data.

339
Multi-Selecteasy

Which TWO actions are most appropriate for managing model drift in a production AI system?

Select 2 answers
A.Freeze the model to prevent any changes
B.Roll back to a previous model version if performance degrades
C.Periodically retrain the model on recent data
D.Manually review all model predictions
E.Implement automated monitoring to detect drift indicators
AnswersC, E

Regular retraining helps the model adapt to new patterns.

Why this answer

Periodically retraining the model on recent data is a fundamental strategy to combat model drift, ensuring the model adapts to changes in the underlying data distribution (e.g., concept drift or covariate shift). This aligns with MLOps best practices for maintaining model accuracy over time in production AI systems.

Exam trap

CompTIA often tests the distinction between reactive fixes (like rollback) and proactive, automated strategies (like monitoring and retraining), tricking candidates into choosing rollback as a valid long-term drift management action.

340
Multi-Selectmedium

A financial services firm has deployed an AI model for real-time credit scoring. The operations team needs to ensure the model remains reliable and compliant over time. Which TWO actions should the team prioritize? (Choose two.)

Select 2 answers
A.Implement automated monitoring for data drift and model performance metrics.
B.Deploy a model versioning system with automated rollback capabilities.
C.Establish a governance process for version-controlled model deployment and retraining.
D.Schedule monthly manual retraining of the model using historical data.
E.Generate weekly compliance reports for regulatory review.
AnswersA, C

Monitoring data drift and performance metrics is proactive and addresses the root cause of model degradation.

Why this answer

Automated monitoring for data drift and model performance metrics is essential for maintaining reliability and compliance in a real-time credit scoring system. Data drift detection (e.g., using population stability index or KL divergence) alerts the team when input distributions shift, which could degrade model accuracy and lead to non-compliant decisions. Continuous monitoring of metrics like AUC, precision, and recall ensures the model stays within regulatory thresholds without manual intervention.

Exam trap

CompTIA often tests the distinction between operational monitoring/governance actions versus reactive or administrative tasks, so candidates may mistakenly choose versioning (B) or reporting (E) instead of recognizing that continuous monitoring (A) and governance processes (C) directly address reliability and compliance over time.

341
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

342
MCQmedium

A financial institution is training a risk assessment model. The dataset includes customer credit scores, income, age, and past loan defaults. During feature engineering, a data engineer creates a new feature 'income_to_debt_ratio'. Which type of feature engineering technique is this?

A.Feature encoding
B.Feature scaling
C.Feature selection
D.Feature combination
AnswerD

Creating a ratio from two continuous variables is a combination technique to capture interaction.

Why this answer

'income_to_debt_ratio' is created by combining two existing features (income and debt) into a single derived feature. This is a classic example of feature combination (also known as feature crossing or feature construction), where arithmetic operations or logical rules are applied to existing variables to generate new predictive signals. The goal is to capture interactions or relationships that the original features alone may not express linearly.

Exam trap

CompTIA often tests the distinction between feature engineering techniques by presenting a derived feature and expecting candidates to recognize it as feature combination rather than confusing it with scaling or encoding.

How to eliminate wrong answers

Option A is wrong because feature encoding transforms categorical variables into numerical representations (e.g., one-hot encoding, label encoding), not create new numerical ratios from existing numerical features. Option B is wrong because feature scaling normalizes or standardizes the range of feature values (e.g., min-max scaling, z-score normalization) without generating new features. Option C is wrong because feature selection reduces the number of features by choosing a subset of the original ones (e.g., using correlation analysis or recursive feature elimination), not by engineering new derived attributes.

343
Multi-Selectmedium

A company is choosing between fine-tuning and RAG for a legal document assistant. Which TWO factors would MOST strongly favor RAG over fine-tuning?

Select 2 answers
A.The legal documents are updated frequently (weekly)
B.The model needs to understand complex legal terminology
C.The queries require deep reasoning across multiple documents
D.The assistant must cite specific sources for its answers
E.The company has limited compute budget for training
AnswersA, D

RAG retrieves current documents at inference time, avoiding costly retraining cycles.

Why this answer

RAG allows dynamic retrieval from a changing document base without retraining, and provides citation sources for transparency — critical in regulated domains like law.

344
MCQeasy

An AI practitioner needs to extract key phrases from a large collection of customer support emails for trend analysis. Which technique is MOST suitable?

A.Named entity recognition (NER)
B.Language translation
C.Text classification
D.Sentiment analysis
AnswerA

NER extracts specific entities (e.g., product names, problems) which can serve as key phrases for trend analysis.

Why this answer

Named entity recognition (NER) is the most suitable technique because it automatically identifies and extracts predefined entities such as names, dates, product names, and other key phrases from text. This directly supports extracting key phrases from customer support emails for trend analysis. Other techniques like language translation, text classification, and sentiment analysis do not focus on extracting specific phrases.

345
Multi-Selectmedium

A data scientist is preparing a dataset for a regression model. The dataset contains 100 features, some of which are highly correlated. To improve model performance and reduce overfitting, which TWO techniques should the data scientist apply? (Select TWO)

Select 2 answers
A.Feature selection
B.Dimensionality reduction (e.g., PCA)
C.Data augmentation
D.Adding more hidden layers to the neural network
E.Increasing the learning rate
AnswersA, B

Correct: selecting relevant features reduces noise and overfitting.

Why this answer

Feature selection reduces the number of features, and dimensionality reduction (e.g., PCA) handles multicollinearity, both helping to reduce overfitting.

346
MCQmedium

A healthcare AI startup has developed a model to detect diabetic retinopathy from retinal images. The model achieved 96% sensitivity and 94% specificity on a validation set from the same distribution as the training data. After deployment in a rural clinic, the model's sensitivity drops to 80%. The data team analyzes the clinical images from the clinic and finds that the images have lower resolution and different lighting conditions compared to the training dataset. The team has the ability to collect more data from the clinic and retrain the model. What is the BEST course of action?

A.Reduce the model's complexity by removing several convolutional layers to improve generalization.
B.Apply transfer learning using a model pre-trained on a different medical imaging dataset.
C.Implement adversarial validation to identify which images are out-of-distribution and filter them out.
D.Collect additional retinal images from the rural clinic, label them, and retrain the model including the new data.
AnswerD

Adding data from the target domain re-aligns the model with the deployment environment.

Why this answer

The performance drop is caused by a domain shift (lower resolution, different lighting) between the training and deployment data. The most direct and effective solution is to collect labeled images from the target domain (rural clinic) and retrain the model, which aligns with the principle of domain adaptation through data augmentation. This approach addresses the root cause by exposing the model to the actual distribution it will encounter in production.

Exam trap

CompTIA often tests the misconception that reducing model complexity or using generic transfer learning can fix domain shift, when in reality the most reliable solution is to retrain with data from the target deployment environment.

How to eliminate wrong answers

Option A is wrong because reducing model complexity (e.g., removing convolutional layers) would likely decrease capacity to learn domain-specific features, potentially worsening performance rather than fixing the domain shift. Option B is wrong because transfer learning from a different medical imaging dataset (e.g., X-rays or MRIs) may not help if the source domain still differs significantly from the rural clinic's retinal images; it could introduce irrelevant features or negative transfer. Option C is wrong because adversarial validation only identifies out-of-distribution samples but does not improve model performance on those samples; filtering them out would reduce the usable data and fail to address the need for the model to work on the clinic's images.

347
MCQmedium

Refer to the exhibit. A team created an access policy for a fraud detection model endpoint. An intern reports being unable to access the model for testing. Reviewing the policy, what is the most likely cause?

A.The intern's role is not included in the allowed roles
B.The policy JSON has a syntax error
C.The endpoint path is incorrect
D.The intern's role is explicitly denied in the policy
AnswerD

Denied roles override any allowed list.

Why this answer

The exhibit shows an explicit `Deny` effect for the intern's role in the policy. In AWS IAM (or similar cloud provider) access policies, an explicit deny overrides any allow, so even if the intern's role is listed in allowed roles, the explicit deny will block access. This is a fundamental principle of IAM policy evaluation logic.

Exam trap

CompTIA often tests the explicit deny override principle, where candidates mistakenly think that listing a role in allowed roles guarantees access, ignoring that an explicit deny in the same policy will block it.

How to eliminate wrong answers

Option A is wrong because the intern's role is actually listed in the allowed roles section, so the issue is not a missing role. Option B is wrong because the policy JSON is syntactically valid (no missing commas, brackets, or quotes) and would parse correctly. Option C is wrong because the endpoint path is correctly specified in the policy's `Resource` element, matching the model endpoint ARN.

348
MCQmedium

A company is deploying an AI model to recommend products. The model's training data included historical purchases from the past two years, but the business environment has changed significantly due to a market shift. What is the most likely issue affecting model performance?

A.Concept drift
B.Overfitting
C.Underfitting
D.Data leakage
AnswerA

Concept drift is the change in the underlying relationship between features and target variable over time, making the model outdated.

Why this answer

Concept drift occurs when the statistical properties of the target variable change over time, degrading model performance. In this scenario, the market shift alters customer purchasing patterns, making the historical training data (from the past two years) no longer representative of current behavior. This is the most likely issue because the model's recommendations will be based on outdated correlations.

Exam trap

The AI0-001 exam often tests the distinction between concept drift and data leakage, where candidates mistakenly attribute performance degradation to a data contamination issue rather than a shift in the underlying data distribution.

How to eliminate wrong answers

Option B is wrong because overfitting refers to a model that memorizes training data noise and fails to generalize, but the problem here is a change in the underlying data distribution, not excessive complexity. Option C is wrong because underfitting means the model is too simple to capture patterns in the training data, whereas the issue is that the training data itself no longer reflects the current environment. Option D is wrong because data leakage involves the accidental inclusion of future information in the training set, which is not described; the problem is a temporal shift in the data distribution, not a data contamination issue.

349
MCQhard

A developer is fine-tuning a large language model for a legal document summarization task. They notice that during training, the loss decreases rapidly in the first few epochs but then plateaus with high variance. Which hyperparameter adjustment is MOST likely to help stabilize training?

A.Add L1 regularization
B.Decrease the learning rate
C.Increase the batch size
D.Increase the number of epochs
AnswerB

A lower learning rate reduces gradient step sizes, stabilizing training and reducing variance.

Why this answer

A high-variance loss plateau after rapid initial convergence typically indicates that the learning rate is too large, causing the optimizer to overshoot the minima and oscillate. Decreasing the learning rate allows smaller, more stable weight updates, reducing variance and enabling smoother convergence.

Exam trap

CompTIA often tests the misconception that high variance in loss is always solved by increasing batch size or regularization, when in fact the immediate cause is often an overly aggressive learning rate that prevents convergence.

How to eliminate wrong answers

Option A is wrong because L1 regularization adds a penalty on the absolute magnitude of weights to induce sparsity, which does not directly address high variance in the loss curve during fine-tuning. Option C is wrong because increasing the batch size reduces gradient noise and can stabilize training, but the question describes high variance after a plateau, which is more directly tied to learning rate oscillations rather than batch size. Option D is wrong because increasing the number of epochs does not fix the underlying instability; it may even exacerbate overfitting or variance if the learning rate remains too high.

350
MCQeasy

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

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

A multimodal model can process both structured data and text, leveraging all available information.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

351
MCQeasy

A data scientist notices that a hiring model systematically scores female candidates lower than male candidates with similar qualifications. The training data was collected from past hiring decisions where the company historically hired more men. Which type of AI bias is most directly demonstrated?

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

Historical bias stems from data that mirrors past discriminatory practices.

Why this answer

Historical bias, because the model's lower scoring of female candidates stems directly from training data that reflects past hiring decisions where the company historically hired more men. This bias is embedded in the data itself, not introduced by the algorithm or data collection method. Historical bias occurs when the training data encodes societal or organizational prejudices from the past, which the model then perpetuates.

Exam trap

The AI0-001 exam often tests the distinction between historical bias (data-driven) and algorithmic bias (model-driven), and the trap here is that candidates confuse 'algorithmic bias' as the catch-all term, missing that the root cause is the historical data, not the algorithm's logic.

How to eliminate wrong answers

Option A is wrong because selection bias refers to systematic error in how data is sampled or collected (e.g., non-random sampling), not to bias inherited from historical outcomes in the training data. Option B is wrong because algorithmic bias is a broader term that includes any bias introduced by the algorithm's design or optimization process, but here the root cause is the historical data, not the algorithm itself. Option C is wrong because confirmation bias is a human cognitive bias where people favor information that confirms their preexisting beliefs, and it does not apply to a machine learning model's training process.

352
MCQhard

An AI system is deployed to detect fraudulent transactions. The system flags 5% of transactions as fraudulent, but the actual fraud rate is 0.1%. The business sees many false positives and wants to reduce them without significantly increasing false negatives. Which metric should be prioritized for optimization?

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

F1 score balances precision and recall, allowing trade-off to reduce false positives while maintaining reasonable recall.

Why this answer

The F1 score balances precision and recall, making it ideal when false positives are costly but false negatives must not increase significantly. Optimizing precision alone would reduce false positives but could increase false negatives, while recall alone would not address the false positive problem. The F1 score ensures both metrics are jointly optimized, aligning with the business requirement.

Exam trap

CompTIA often tests the misconception that precision is the best metric for reducing false positives, but the trap here is that precision alone ignores the impact on false negatives, which the business explicitly wants to avoid increasing.

How to eliminate wrong answers

Option A is wrong because recall focuses on minimizing false negatives, but does not address the false positive problem; optimizing recall alone would likely increase false positives, worsening the business issue. Option C is wrong because accuracy is misleading in highly imbalanced datasets (0.1% fraud rate); a system that never flags any transaction would achieve 99.9% accuracy but fail to detect fraud. Option D is wrong because precision reduces false positives, but optimizing precision alone could increase false negatives (missed fraud), which the business wants to avoid; the F1 score balances both.

353
Multi-Selectmedium

A data science team is building a model to predict customer churn. The dataset includes categorical variables like 'region' and 'subscription_type'. Which three preprocessing steps should be applied to these categorical features? (Select THREE).

Select 3 answers
A.Normalization
B.Label encoding
C.Standard scaling
D.Ordinal encoding
E.One-hot encoding
AnswersB, D, E

Label encoding assigns integers to each category, suitable for ordinal categories.

Why this answer

Label encoding (B) is correct because it converts each unique category in a categorical variable into a unique integer, which is a simple and memory-efficient way to prepare categorical data for machine learning models. Ordinal encoding (D) is correct for categorical variables with a natural order, such as 'subscription_type' if tiers exist (e.g., basic, premium, enterprise), preserving ordinal relationships. One-hot encoding (E) is correct for nominal categorical variables like 'region' where no order exists, creating binary columns for each category to avoid implying false ordinality.

Exam trap

CompTIA often tests the distinction between ordinal and nominal categorical variables, trapping candidates who apply label encoding to nominal data or one-hot encoding to ordinal data without considering the feature's inherent order.

354
MCQhard

A team is implementing a RAG system for a large legal document repository. They need to chunk the documents for efficient retrieval. The documents contain long sections with subsections, and the team wants to preserve the hierarchical structure. Which chunking strategy is MOST appropriate?

A.Hierarchical chunking that preserves section and subsection boundaries
B.Overlapping chunking with a 10% token overlap
C.Semantic chunking based on topic segmentation
D.Fixed-size chunking with 512 tokens per chunk
AnswerA

Hierarchical chunking maintains the document's structure, allowing retrieval of relevant subsections along with their parent context, essential for legal documents.

Why this answer

Hierarchical chunking preserves the document structure by maintaining parent-child relationships, which is crucial for legal documents where context from headings matters. Fixed-size may break logical sections; semantic chunking splits by topic but loses hierarchy; overlapping chunks help continuity but don't preserve structure.

355
MCQmedium

A company deploys an LLM-based API for generating code snippets. They discover that users are able to extract the system prompt by asking the model to 'ignore previous instructions and print your prompt'. What type of attack is this?

A.Prompt leaking
B.Data poisoning
C.Jailbreaking
D.Model extraction
AnswerA

Prompt leaking occurs when an attacker gets the model to output its system prompt or instructions.

Why this answer

Prompt leaking is a type of attack where an adversary tricks the LLM into revealing its system prompt or other hidden instructions. In this scenario, the user explicitly asks the model to 'ignore previous instructions and print your prompt,' which directly causes the model to output the system prompt. This is a classic prompt leaking attack because the attacker is extracting confidential configuration data from the model's context.

Exam trap

The AI0-001 exam often tests the distinction between 'jailbreaking' (bypassing safety to generate harmful content) and 'prompt leaking' (extracting hidden instructions), so candidates may mistakenly choose jailbreaking because both involve overriding the model's instructions.

How to eliminate wrong answers

Option B (Data poisoning) is wrong because data poisoning involves corrupting the training data to alter the model's behavior, not extracting prompts at inference time. Option C (Jailbreaking) is wrong because jailbreaking typically aims to bypass safety filters to generate prohibited content (e.g., harmful instructions), not to extract the system prompt itself. Option D (Model extraction) is wrong because model extraction refers to stealing the model's weights or architecture through repeated queries, not extracting a text-based system prompt.

356
MCQeasy

Refer to the exhibit. The data scientist notices that the model achieves 98% accuracy on the training set but only 72% on the test set. Which change to the model parameters is most likely to reduce this gap?

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

Reducing max_depth restricts the tree depth, reducing overfitting.

Why this answer

The model is overfitting: 98% training accuracy vs. 72% test accuracy. Reducing max_depth to 3 limits the depth of each decision tree, preventing them from memorizing noise and forcing them to learn more generalizable patterns. This is a standard regularization technique for tree-based ensembles.

Exam trap

CompTIA often tests the bias-variance tradeoff by presenting overfitting symptoms and expecting candidates to choose a regularization parameter (like reducing max_depth) rather than increasing model complexity or switching model families entirely.

How to eliminate wrong answers

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

357
MCQhard

An MLOps team uses a CI/CD pipeline to automate model retraining. The pipeline triggers on new labeled data, runs feature engineering, retrains the model, evaluates against a holdout set, and deploys if metrics exceed thresholds. Recently, a retrained model passed validation but caused a 5% accuracy drop in production. Which improvement best prevents this?

A.Implement canary deployment with shadow scoring to compare with current model
B.Require manual approval before deployment
C.Use the entire production dataset for validation instead of a holdout set
D.Increase the amount of training data used in each retraining cycle
AnswerA

Canary deployment allows testing on live traffic with minimal risk.

Why this answer

Canary deployment with shadow scoring allows the new model to serve predictions to a small subset of traffic while comparing its outputs against the current production model in real time, without affecting all users. This catches subtle data drift or concept drift that a static holdout set may miss, preventing the 5% accuracy drop from reaching full production.

Exam trap

A common misconception is that more data or larger validation sets always improve model reliability. However, the trap here is that distribution drift between training/validation and live production is the real cause of accuracy drops, which only online evaluation methods like canary deployment can detect.

How to eliminate wrong answers

Option B is wrong because manual approval adds a human bottleneck and does not detect the underlying data drift or distribution mismatch that caused the accuracy drop; it only gates deployment without technical validation. Option C is wrong because using the entire production dataset for validation would include the same data the model was trained on, leading to data leakage and overoptimistic metrics that mask real-world performance. Option D is wrong because simply increasing training data volume does not address the root cause of distribution shift between the validation holdout set and live production traffic; more data may even amplify bias if the new data is not representative.

358
MCQmedium

A data scientist is building a model to predict whether a loan application will default. The dataset has 10,000 labeled examples with 1,000 defaults. Which metric is MOST appropriate for evaluating this highly imbalanced binary classification?

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

AUC-ROC evaluates model performance across all thresholds and is insensitive to class imbalance.

Why this answer

AUC-ROC is robust to class imbalance because it measures the trade-off between true positive rate and false positive rate across all thresholds. Accuracy is misleading when classes are imbalanced. Precision and recall focus on one class but are threshold-dependent.

359
Multi-Selecthard

A company is deploying an AI system that falls under the EU AI Act's high-risk category. Which THREE requirements must the company fulfill?

Select 3 answers
A.Ensure human oversight to prevent or minimise risks
B.Obtain explicit consent from all affected individuals
C.Open-source the model's code to the public
D.Create and maintain technical documentation including the system's intended purpose
E.Establish a risk management system throughout the AI system's lifecycle
AnswersA, D, E

Human oversight is mandatory for high-risk AI systems.

Why this answer

The EU AI Act for high-risk systems requires risk management, human oversight, and transparency documentation. Open-sourcing the model is not required; obtaining consent is not a specific requirement for high-risk systems.

360
MCQmedium

A team uses Apache Kafka to stream real-time sensor data for ML inference. They need to process the stream, perform feature engineering, and store results in a data lake. Which tool is best suited for this streaming ML pipeline?

A.Apache Spark with Structured Streaming
B.Apache Airflow
C.TensorFlow Data Validation
D.SageMaker Processing jobs
AnswerA

Spark's structured streaming reliably processes Kafka streams with exactly-once semantics and writes to data lakes.

Why this answer

Apache Spark with Structured Streaming is best suited because it provides a unified, scalable engine for both stream processing and batch processing, enabling real-time feature engineering on Kafka streams and direct writing to a data lake (e.g., Parquet format in Amazon S3). Its micro-batch or continuous processing model integrates natively with Kafka, allowing exactly-once semantics and low-latency transformations for ML inference pipelines.

Exam trap

CompTIA often tests the distinction between stream processing engines (like Spark Structured Streaming) and orchestration or batch tools (like Airflow or SageMaker Processing), trapping candidates who confuse workflow scheduling with real-time data processing.

How to eliminate wrong answers

Option B (Apache Airflow) is wrong because it is a workflow orchestration tool for scheduling and managing DAGs, not a stream processing engine; it cannot perform real-time feature engineering on Kafka streams. Option C (TensorFlow Data Validation) is wrong because it is designed for data validation and schema inference in static datasets or batch pipelines, not for continuous stream processing or feature engineering on live sensor data. Option D (SageMaker Processing jobs) is wrong because it is a batch processing service for data preprocessing and model evaluation on static datasets, lacking native support for streaming ingestion from Kafka or real-time feature computation.

361
MCQmedium

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

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

Correct; high training accuracy with lower validation accuracy suggests overfitting.

Why this answer

The exhibit shows training loss decreasing while validation loss increases after a certain epoch, which is the classic signature of overfitting. The model is memorizing the training data rather than learning generalizable patterns, leading to poor performance on unseen data.

Exam trap

CompTIA often tests the distinction between overfitting and underfitting by showing a loss curve where training loss is low but validation loss rises, tricking candidates who focus only on the low training loss without checking validation performance.

How to eliminate wrong answers

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

362
MCQmedium

A healthcare AI system uses patient data to predict disease risk. To comply with HIPAA and reduce the risk of re-identification, which technique should be applied to the training data before model development?

A.Pseudonymisation by replacing patient names with random IDs
B.Data augmentation to create synthetic samples
C.Differential privacy with a carefully chosen epsilon
D.Data minimisation by removing all features except age and gender
AnswerC

Differential privacy adds controlled noise to protect individual records, meeting HIPAA's de-identification standards with formal guarantees.

Why this answer

Differential privacy (Option C) is the correct technique because it adds calibrated noise to the training data or model outputs, providing a mathematical guarantee against re-identification even if an attacker has auxiliary information. This directly addresses HIPAA's requirement to protect patient privacy while preserving statistical utility for disease risk prediction.

Exam trap

A common misconception is that pseudonymisation (Option A) is equivalent to de-identification under HIPAA, when in fact it is a reversible process that fails against linkage attacks, making differential privacy the only mathematically rigorous option.

How to eliminate wrong answers

Option A is wrong because pseudonymisation by replacing names with random IDs is a reversible or linkable technique; it does not prevent re-identification when combined with quasi-identifiers (e.g., ZIP code, birth date) and is not considered sufficient for HIPAA de-identification. Option B is wrong because data augmentation creates synthetic samples to improve model generalisation, not to protect privacy; it does not reduce re-identification risk and may even leak information if synthetic data is too similar to real records. Option D is wrong because data minimisation by removing all features except age and gender removes too much clinically relevant information, rendering the model useless for disease risk prediction, and still leaves quasi-identifiers that can be used for re-identification (e.g., age + gender + location).

363
MCQmedium

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

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

The diverging validation loss after initial improvement indicates the model is memorizing the training data and failing to generalize.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

364
MCQhard

A security engineer is conducting threat modeling for an AI system that uses a pre-trained image classifier. Applying STRIDE, which threat category most directly addresses an attacker manipulating the model's behavior by providing carefully crafted inputs that the model was not trained to handle robustly?

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

Tampering covers unauthorized modification of data, such as adversarial perturbations to input data.

Why this answer

Tampering involves unauthorized modification of data or systems. In this context, adversarial examples tamper with the input data to alter the model's behavior. Spoofing is about impersonation, Repudiation is about denying actions, and Information disclosure is about exposing sensitive data.

365
MCQmedium

A dataset for a binary classification problem has 95% of samples in class "0" and 5% in class "1". The data scientist trains a logistic regression model and achieves 95% accuracy. Which metric should the scientist primarily use to evaluate model performance?

A.Precision, recall, and F1-score.
B.R-squared.
C.Accuracy.
D.Mean squared error.
AnswerA

These metrics evaluate performance on the minority class, crucial for imbalanced data.

Why this answer

In a highly imbalanced dataset (95% class 0, 5% class 1), accuracy is misleading because a model can achieve 95% accuracy by simply predicting the majority class for all samples. Precision, recall, and F1-score provide a more nuanced view of performance on the minority class, which is typically the class of interest in binary classification problems. The F1-score, in particular, balances precision and recall, making it the primary metric for evaluating model effectiveness on imbalanced data.

Exam trap

CompTIA often tests the concept that accuracy is a poor metric for imbalanced datasets, trapping candidates who assume high accuracy always indicates good model performance without considering class distribution.

How to eliminate wrong answers

Option B is wrong because R-squared is a metric for regression models, measuring the proportion of variance in the dependent variable explained by the independent variables, and is not applicable to classification tasks. Option C is wrong because accuracy is not a reliable metric for imbalanced datasets; a model that always predicts the majority class can achieve high accuracy without actually learning meaningful patterns, as seen with the 95% accuracy matching the class distribution. Option D is wrong because mean squared error (MSE) is a loss function for regression problems, used to quantify the average squared difference between predicted and actual continuous values, and is not appropriate for evaluating binary classification outputs.

366
MCQhard

A recommendation system for an e-commerce platform is experiencing a high false positive rate in its anomaly detection module, causing legitimate transactions to be flagged as fraudulent. The team wants to reduce false positives without significantly increasing false negatives. Which action is MOST effective?

A.Decrease the anomaly detection threshold
B.Increase the anomaly detection threshold
C.Use a different anomaly detection algorithm
D.Increase the size of the training dataset
AnswerB

Raising the threshold means only transactions with a very high anomaly score are flagged, reducing false positives.

Why this answer

Adjusting the classification threshold to be more conservative (requiring higher anomaly score) will reduce false positives at the cost of some increase in false negatives, but the goal is to minimize false positives while maintaining acceptable recall.

367
Multi-Selecteasy

A machine learning team is splitting a dataset for a binary classification problem. They want to ensure robust evaluation and avoid data leakage. Which TWO practices should they follow? (Choose 2)

Select 2 answers
A.Normalise the entire dataset before splitting
B.Split into training, validation, and test sets
C.Include validation data in the training set for more data
D.Shuffle the data before splitting
E.Use the same split for all experiments
AnswersB, D

A three-way split allows tuning on validation and final evaluation on test.

Why this answer

Train/validation/test split is standard; cross-validation gives more robust estimates. Shuffling before split prevents ordering bias.

368
MCQmedium

A team is training a convolutional neural network (CNN) for medical image diagnosis. They have a limited dataset of 500 labeled images. Which strategy is most effective to improve model generalization?

A.Increasing network depth
B.Data augmentation
C.Using a larger batch size
D.Reducing the number of filters
AnswerB

Augmentation (e.g., rotation, flip) generates more training examples, improving generalization.

Why this answer

With only 500 labeled medical images, the primary challenge is overfitting due to limited data. Data augmentation (e.g., random rotations, flips, zooms) artificially expands the training set by creating varied but realistic transformations, which forces the CNN to learn invariant features and significantly improves generalization to unseen data.

Exam trap

The AI0-001 exam often tests the misconception that increasing model complexity (depth or filters) always improves performance, but with limited data, the correct strategy is to use regularization techniques like data augmentation to combat overfitting.

How to eliminate wrong answers

Option A is wrong because increasing network depth adds more parameters, which exacerbates overfitting on a small dataset and requires more data to train effectively. Option C is wrong because using a larger batch size provides a noisier gradient estimate and can lead to sharper minima, often reducing generalization, especially with limited data. Option D is wrong because reducing the number of filters lowers the model's capacity, which may cause underfitting and fail to capture the complex patterns needed for medical image diagnosis.

369
MCQhard

A company deploys an AI system for loan approvals. The EU AI Act classifies this as high-risk. Which human oversight requirement applies?

A.Human-in-command approach
B.Human-in-the-loop (HITL) mechanism
C.Human-on-the-loop oversight
D.Automated decision-making without human review
AnswerB

Article 14 requires human oversight, and HITL ensures that a human can intervene or reverse decisions.

Why this answer

The EU AI Act requires human-in-the-loop (HITL) oversight for high-risk AI systems like loan approval, meaning a human must be able to intervene and override the system's decisions during operation. This ensures that automated decisions can be reviewed and corrected in real-time, preventing fully autonomous outcomes in critical areas such as credit scoring.

Exam trap

The AI0-001 exam often tests the distinction between 'human-in-the-loop' (direct intervention during operation) and 'human-on-the-loop' (monitoring after the fact), leading candidates to confuse the two for high-risk systems where real-time override is mandatory.

How to eliminate wrong answers

Option A is wrong because 'human-in-command' is not a defined term under the EU AI Act; the correct terminology is human-in-the-loop, human-on-the-loop, or human-in-charge for general oversight roles. Option C is wrong because human-on-the-loop oversight involves monitoring system outputs at a higher level without direct real-time intervention, which is insufficient for high-risk loan approvals where immediate human override must be possible. Option D is wrong because automated decision-making without human review directly violates the EU AI Act's requirement for human oversight in high-risk systems, as it removes any possibility of human intervention or accountability.

370
MCQmedium

An e-commerce company uses a machine learning model to recommend products to users. The model is retrained weekly and deployed to production. For the past three weeks, the model's click-through rate (CTR) has been stable except on Mondays, when it drops by 15%. Analysis reveals that the training data is extracted on Sundays and includes only weekday behavior. On Mondays, user behavior shifts due to weekend browsing patterns not captured in the training data. The team wants to maintain a weekly retraining cadence but fix the Monday performance drop. Which solution best addresses the Monday CTR drop without changing the retraining frequency?

A.Deploy a separate model specifically for Monday predictions
B.Modify the data pipeline to include the full week (including the past weekend) in each retraining
C.Serve the previous week's model on Mondays to use older but stable patterns
D.Change to daily retraining to include weekend data more promptly
AnswerB

Captures weekend behavior without altering frequency.

Why this answer

It directly addresses the root cause: the training data excludes weekend behavior, causing the model to be blind to Monday patterns. By modifying the data pipeline to include the full week (including the past weekend) in each retraining, the model learns from weekend browsing patterns and can generalize to Monday user behavior without changing the weekly retraining cadence. This ensures the training distribution matches the inference distribution on Mondays, stabilizing CTR.

Exam trap

CompTIA often tests the misconception that changing retraining frequency (Option D) is the only way to incorporate new data, when in fact adjusting the data window within the existing cadence (Option B) is a more efficient and correct solution.

How to eliminate wrong answers

Option A is wrong because deploying a separate model for Monday predictions introduces operational complexity and does not fix the data gap; it merely treats the symptom by creating a specialized model that still lacks weekend data unless separately trained. Option C is wrong because serving the previous week's model on Mondays would use older patterns that also exclude the most recent weekend behavior, and the model would be even more stale, likely worsening the drop. Option D is wrong because changing to daily retraining alters the retraining frequency, which the team explicitly wants to maintain; it also adds unnecessary overhead and does not address the fact that the training data extraction point (Sundays) is the core issue.

371
MCQeasy

A team is building a regression model to predict house prices. Which data transformation is most appropriate if the target variable exhibits right skewness?

A.Principal component analysis (PCA)
B.Standardization (Z-score)
C.One-hot encoding
D.Log transformation
AnswerD

Log transformation reduces right skewness by compressing large values.

Why this answer

Log transformation is the most appropriate technique for right-skewed target variables because it compresses the long tail, making the distribution more symmetric and closer to Gaussian. This stabilizes variance and often improves the performance of regression models that assume normally distributed errors, such as linear regression.

Exam trap

CompTIA often tests the misconception that standardization can fix skewness, but candidates must remember that standardization only rescales the data, not reshape its distribution.

How to eliminate wrong answers

Option A is wrong because Principal Component Analysis (PCA) is a dimensionality reduction technique for features, not a transformation applied to the target variable; it does not address skewness in the target. Option B is wrong because Standardization (Z-score) centers and scales the data but does not change the shape of the distribution, so it cannot correct right skewness. Option C is wrong because One-hot encoding is used to convert categorical variables into numerical format, not to transform a continuous target variable.

372
Multi-Selecteasy

Which TWO of the following are common techniques to improve the transparency and interpretability of an AI model?

Select 2 answers
A.Generate SHAP (SHapley Additive exPlanations) values
B.Use differential privacy to add noise to training data
C.Implement a random forest algorithm
D.Use deep neural networks to increase model complexity
E.Apply LIME (Local Interpretable Model-agnostic Explanations)
AnswersA, E

SHAP values explain the contribution of each feature to predictions.

Why this answer

SHAP values are correct because they provide a unified measure of feature importance based on cooperative game theory, specifically Shapley values, which quantify the marginal contribution of each feature to a model's prediction. This makes the model's decision-making process transparent by showing how each input feature influences the output, which is a core technique for interpretability in AI governance.

Exam trap

The AI0-001 exam often tests the distinction between techniques that improve model transparency (like SHAP and LIME) versus techniques that enhance privacy (like differential privacy) or model performance (like random forests or deep neural networks), leading candidates to confuse privacy-preserving methods with interpretability methods.

373
MCQeasy

A data scientist is preparing a dataset for a classification model. The dataset has missing values in several features and features with very different scales. Which two data preparation steps should be applied?

A.Cleaning and normalization
B.Outlier removal and binning
C.Feature selection and dimensionality reduction
D.Data augmentation and one-hot encoding
AnswerA

Correct: cleaning addresses missing values, normalization addresses scale differences.

Why this answer

Cleaning handles missing values (e.g., imputation), and normalization scales features to a similar range, which is important for many ML algorithms.

374
MCQmedium

A company wants to build a code generation tool that helps developers write Python functions. The tool must generate syntactically correct code. Which prompt engineering technique is MOST effective?

A.Chain-of-thought prompting with step-by-step reasoning
B.System prompt instructing the model to output JSON
C.Instruction fine-tuning on a large Python corpus
D.Few-shot prompting with examples of valid Python functions
AnswerD

Few-shot examples demonstrate the expected syntax and structure, guiding the LLM to produce correct Python code.

Why this answer

Few-shot examples showing valid Python function syntax help the model understand the expected output format and generate correct code.

375
Multi-Selecthard

Which three techniques are commonly used to mitigate overfitting in neural networks? (Choose three.)

Select 3 answers
A.Adding L2 regularization
B.Increasing training data
C.Dropout
D.Reducing number of layers
E.Early stopping
AnswersA, C, E

L2 regularization adds a penalty on large weights, discouraging overfitting by constraining the model complexity.

Why this answer

Adding L2 regularization (also known as weight decay) penalizes large weights by adding a term proportional to the squared magnitude of the weights to the loss function. This forces the network to keep weights small, reducing the model's sensitivity to noise in the training data and preventing it from fitting spurious patterns, which is a direct and effective method to combat overfitting.

Exam trap

CompTIA often tests the distinction between data-level strategies (like increasing training data) and algorithmic regularization techniques (like L2, dropout, early stopping), leading candidates to mistakenly select 'increasing training data' as a technique when the question specifically asks for techniques commonly used within the neural network training process.

Page 4

Page 5 of 11

Page 6

All pages