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

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

Page 4

Page 5 of 14

Page 6
301
MCQhard

A team is evaluating an LLM-based code generation assistant. They want to measure the quality of generated code for correctness, security, and efficiency. Which evaluation framework is BEST suited for this task?

A.Human evaluation by a panel of experienced developers
B.Pass@k metric using unit tests from benchmarks like HumanEval
C.Perplexity of the model on a code corpus
D.BLEU score comparing generated code to reference code
AnswerB

Pass@k measures the probability that any of k generated samples pass a set of unit tests, directly assessing correctness.

Why this answer

HumanEval and similar frameworks (e.g., MBPP) use unit tests to automatically assess functional correctness of generated code, which is the most objective measure for code generation tasks.

302
MCQeasy

A hospital wants to deploy a machine learning model to predict patient readmission risk within 30 days. They have a dataset with 10,000 records, 70 features including demographics, lab results, and past admissions. The target variable is binary (readmitted or not). The data scientist trains a logistic regression model and achieves an AUC of 0.85 on the test set. However, the hospital's clinicians require interpretability of predictions to trust the model. Which action should the data scientist take to ensure the model meets the interpretability requirement while maintaining performance?

A.Reduce the number of features to 10 using PCA and retrain the logistic regression
B.Replace logistic regression with a random forest model and use feature importance plots
C.Train a deep neural network and apply LIME or SHAP for explanations
D.Use the logistic regression model as is, since it is inherently interpretable with coefficients
AnswerD

Logistic regression coefficients provide direct interpretability for each feature.

Why this answer

Option A (PCA + logistic regression) reduces dimensionality but loses interpretability and may degrade performance. Option B (random forest with feature importance) is less interpretable than logistic regression. Option C (deep neural network with LIME/SHAP) adds complexity and may reduce transparency.

Option D (keep logistic regression) provides inherent interpretability through coefficients, meeting the requirement without sacrificing performance.

303
Multi-Selectmedium

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

Select 3 answers
A.Sigmoid
B.K-means
C.Tanh
D.ReLU
E.Softmax
AnswersA, C, D

Correct: Sigmoid is a classic activation function.

Why this answer

Sigmoid is a common activation function in neural networks because it maps any real-valued input to a value between 0 and 1, making it useful for binary classification outputs. It introduces non-linearity and has a smooth gradient, though it suffers from vanishing gradient issues in deep networks.

Exam trap

CompTIA often tests the distinction between activation functions and other machine learning algorithms (like K-means) or output-layer-specific functions (like Softmax), so candidates must remember that common hidden layer activations are typically Sigmoid, Tanh, and ReLU.

304
MCQmedium

A company uses a vector database to store embeddings for a RAG application. Users report that some queries return irrelevant results. Which adjustment is most likely to improve relevance?

A.Reduce the chunk size of documents
B.Switch from an HNSW index to a flat index
C.Increase the top-k retrieval count
D.Change the similarity metric from cosine to dot product and use a different embedding model
AnswerD

The similarity metric and embedding quality are primary drivers of retrieval relevance.

Why this answer

Switching from cosine similarity to dot product and using a different embedding model can improve relevance because the choice of similarity metric must align with the embedding model's training objective. Many modern embedding models (e.g., text-embedding-ada-002) are optimized for dot product or cosine similarity, but if the current model was trained for cosine and the queries are not normalized, dot product may better capture magnitude and direction. A different model may also produce higher-quality embeddings that better represent semantic relationships, directly addressing irrelevant results.

Exam trap

CompTIA often tests the misconception that changing the index type or retrieval count directly improves relevance, when the root cause is usually a mismatch between the similarity metric and the embedding model's training objective.

How to eliminate wrong answers

Option A is wrong because reducing chunk size can fragment context and lose semantic meaning, potentially worsening relevance rather than improving it. Option B is wrong because switching from an HNSW (Hierarchical Navigable Small World) index to a flat index increases search latency and does not inherently improve relevance; HNSW is designed for efficient approximate nearest neighbor search with good recall. Option C is wrong because increasing the top-k retrieval count returns more results but does not improve the relevance of the top results; it may actually introduce more noise if the embedding quality or similarity metric is suboptimal.

305
MCQeasy

A data scientist is preparing a dataset for a classification task. The dataset contains 10,000 rows and 50 features, but many features have missing values. Which approach should the scientist take first to address the missing data?

A.Use a deep learning model to predict missing values without preprocessing.
B.Analyze the pattern and proportion of missing values to choose an appropriate imputation strategy.
C.Remove all rows with any missing values to ensure a clean dataset.
D.Replace missing values with the mean of each feature immediately.
AnswerB

Understanding missingness pattern is crucial before deciding on imputation or deletion.

Why this answer

Option B is correct because the first step in handling missing data is to understand the pattern and proportion of missingness (e.g., MCAR, MAR, MNAR) to select an appropriate imputation method. Blindly applying imputation or deletion without analysis can introduce bias or reduce model performance. This diagnostic step ensures the chosen strategy aligns with the data's underlying structure and the classification task's requirements.

Exam trap

CompTIA often tests the misconception that immediate imputation (e.g., mean/median) or row deletion is the safest first step, when in reality, a diagnostic analysis of missingness patterns is required before any data modification.

How to eliminate wrong answers

Option A is wrong because deep learning models typically require complete data or sophisticated handling of missingness; using them to predict missing values without preprocessing ignores the need to first understand the missing data mechanism and can lead to overfitting or biased predictions. Option C is wrong because removing all rows with any missing values can discard a significant portion of the dataset (up to 50 features with missingness), potentially losing valuable information and reducing statistical power, especially when missingness is not completely random. Option D is wrong because immediately replacing missing values with the mean of each feature assumes the data is missing completely at random (MCAR) and can distort feature distributions, reduce variance, and introduce bias if the missingness is related to the feature values themselves.

306
MCQhard

A team is training a deep neural network on a large image dataset. They observe that the training loss decreases smoothly but validation loss oscillates. Which regularization technique should be applied?

A.Data augmentation
B.L1 regularization
C.Dropout
D.Batch normalization
AnswerC

Dropout reduces overfitting by randomly dropping units during training, forcing the network to learn robust features.

Why this answer

Dropout is the correct regularization technique because it randomly drops neurons during training, which prevents co-adaptation of features and reduces overfitting. This addresses the validation loss oscillation (a sign of overfitting) while allowing the training loss to decrease smoothly, as dropout only applies during training and not during validation.

Exam trap

The trap here is that candidates often confuse batch normalization as a regularization technique because it can reduce overfitting slightly due to its noise injection, but it is primarily for training stability, not a dedicated regularizer like dropout.

How to eliminate wrong answers

Option A is wrong because data augmentation increases the diversity of the training dataset by applying transformations (e.g., rotations, flips), which can improve generalization but does not directly regularize the network to reduce validation loss oscillation caused by overfitting. Option B is wrong because L1 regularization adds a penalty proportional to the absolute value of weights, promoting sparsity, but it does not specifically address the oscillating validation loss pattern; it is more suited for feature selection. Option D is wrong because batch normalization normalizes layer inputs to stabilize training and accelerate convergence, but it is not a regularization technique; it does not prevent overfitting or reduce validation loss oscillation.

307
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

308
Multi-Selecteasy

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

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

Energy-efficient hardware reduces power consumption.

Why this answer

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

Exam trap

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

309
MCQhard

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

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

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

Why this answer

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

310
MCQeasy

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

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

This detects target drift, which indicates concept drift.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

311
MCQeasy

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

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

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

Why this answer

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

312
Multi-Selecthard

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

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

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

Why this answer

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

313
MCQeasy

A data scientist needs to predict whether a customer will churn based on historical data containing features like account age, monthly charges, and support tickets. The target variable is binary (churn or not). Which type of machine learning algorithm should be used?

A.Linear regression
B.Logistic regression
C.K-means clustering
D.Principal component analysis
AnswerB

Logistic regression outputs probabilities for binary classification.

Why this answer

Logistic regression is the correct choice because it is specifically designed for binary classification tasks, such as predicting whether a customer will churn (yes/no). It models the probability of the binary outcome using a logistic (sigmoid) function, making it suitable for this supervised learning problem with a categorical target variable.

Exam trap

CompTIA AI often tests the distinction between regression and classification algorithms, trapping candidates who confuse linear regression (continuous output) with logistic regression (binary output) due to the misleading similarity in names.

How to eliminate wrong answers

Option A is wrong because linear regression predicts a continuous numeric output, not a binary class label, and would produce values outside the [0,1] range, making it unsuitable for classification. Option C is wrong because K-means clustering is an unsupervised learning algorithm used for grouping unlabeled data into clusters, not for predicting a known binary target. Option D is wrong because principal component analysis (PCA) is a dimensionality reduction technique used for feature extraction or noise reduction, not for making predictions on a target variable.

314
Multi-Selectmedium

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

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

Class weights penalise misclassifications of the minority class more heavily.

Why this answer

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

315
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

316
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

317
MCQmedium

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

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

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

Why this answer

Retrieval-Augmented Generation (RAG) is the most appropriate approach because it allows the chatbot to answer questions by retrieving relevant chunks from the policy documents stored in a vector store, without requiring model retraining when documents are updated monthly. The retrieval component dynamically fetches the latest content, while the generation component uses a pre-trained LLM to produce answers, making it cost-effective and scalable for frequently changing knowledge bases.

Exam trap

The exam often tests the misconception that fine-tuning or training from scratch is the only way to adapt a model to new data, ignoring the efficiency of retrieval-based approaches like RAG for dynamic knowledge bases.

How to eliminate wrong answers

Option B is wrong because training a custom model from scratch each month is prohibitively expensive and time-consuming, requiring large datasets and significant compute resources, which contradicts the constraint of not being able to afford retraining. Option C is wrong because pasting all policy documents into each prompt exceeds the context window limits of even the largest foundation models (e.g., 128k tokens for GPT-4), leading to truncation, high latency, and increased cost per query. Option D is wrong because fine-tuning a base LLM monthly on the policy documents still requires retraining the model, which incurs similar costs and effort as training from scratch, and does not efficiently handle document updates without full retraining cycles.

318
Multi-Selecthard

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

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

RAG retrieves relevant medical literature to ground responses.

Why this answer

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

319
MCQhard

A streaming data pipeline ingests sensor data from IoT devices. The data arrives at irregular intervals and contains occasional spikes. Which data transformation is most appropriate for preparing this data for a time-series model?

A.Downsampling to a fixed frequency using mean aggregation
B.Removing all rows with values outside 3 standard deviations
C.Using a sliding window to compute moving averages
D.Padding missing timestamps with zeros
AnswerA

Mean aggregation over fixed intervals handles irregular timing and reduces noise.

Why this answer

Downsampling to a fixed frequency using mean aggregation is the most appropriate transformation because time-series models require uniformly spaced timestamps to learn temporal dependencies. By aggregating irregularly arriving sensor data into fixed intervals (e.g., every 5 minutes) using the mean, you smooth out occasional spikes and create a consistent input structure that models like ARIMA or LSTM can process without bias from irregular gaps.

Exam trap

CompTIA often tests the misconception that removing outliers (Option B) is the best way to handle spikes, but the real requirement is to regularize the time axis for model compatibility, not to clean outliers.

How to eliminate wrong answers

Option B is wrong because removing rows with values outside 3 standard deviations eliminates legitimate spike data that may represent critical events or anomalies the model should learn to detect, and it does not address the core issue of irregular timestamps. Option C is wrong because using a sliding window to compute moving averages is a feature engineering technique applied after resampling, not a primary transformation to fix irregular intervals; it also does not produce a fixed-frequency time series. Option D is wrong because padding missing timestamps with zeros introduces artificial values that distort the data distribution and can mislead the model into treating gaps as true zero readings, which is inappropriate for sensor data where missing timestamps mean no event occurred.

320
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

321
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

322
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

323
MCQhard

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

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

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

Why this answer

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

324
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

325
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

326
MCQeasy

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

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

Transparency requires disclosure that content is AI-generated.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

327
MCQmedium

An organization is deploying a large language model on-premises for compliance reasons. They need to serve inference requests with low latency. Which architecture should they use?

A.Use a batch processing system like Apache Spark
B.Containerize the model and deploy it on a Kubernetes cluster with autoscaling
C.Use a serverless function like AWS Lambda
D.Deploy the model as a REST API on a single powerful server
AnswerB

Kubernetes enables container orchestration, autoscaling, and load balancing, meeting low-latency and compliance requirements.

Why this answer

Containerizing the model and deploying it on a Kubernetes cluster with autoscaling is the correct architecture because it provides horizontal scaling, low-latency inference through load-balanced pods, and supports on-premises deployment for compliance. Kubernetes can automatically scale replicas based on CPU/memory utilization or custom metrics (e.g., request queue depth), ensuring consistent response times under varying load.

Exam trap

CompTIA often tests the misconception that a single powerful server is sufficient for low-latency inference, but the trap is that it ignores the need for horizontal scalability and fault tolerance, which are critical for production workloads.

How to eliminate wrong answers

Option A is wrong because batch processing systems like Apache Spark are designed for large-scale data processing jobs, not real-time inference; they introduce high latency due to job scheduling and data shuffling, making them unsuitable for serving low-latency requests. Option C is wrong because serverless functions like AWS Lambda are typically cloud-only and may not support on-premises deployment; they also have cold-start latency and execution time limits that conflict with low-latency inference requirements. Option D is wrong because deploying on a single powerful server creates a single point of failure and cannot scale horizontally to handle traffic spikes, leading to increased latency under load.

328
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

329
MCQhard

A company is fine-tuning a pre-trained open-source model for a sensitive application. They want to detect if the model contains a backdoor inserted by the original developers. Which supply chain security measure is most directly applicable?

A.Apply input validation and sanitization techniques
B.Use homomorphic encryption for model weights
C.Implement differential privacy during fine-tuning
D.Create a software bill of materials (SBOM) for the model and its dependencies
AnswerD

An SBOM provides transparency into the model's origin and components, helping identify tampered or backdoored parts.

Why this answer

Option D is correct because a Software Bill of Materials (SBOM) for the model and its dependencies provides a formal, machine-readable inventory of all components, including the base model, training data sources, and third-party libraries. This allows the security team to trace the provenance of each component and identify known vulnerabilities or suspicious artifacts that could indicate a backdoor inserted by the original developers. SBOMs are a key supply chain security measure recommended by frameworks like NIST SP 800-161 and are directly applicable to detecting unauthorized modifications in pre-trained models.

Exam trap

The exam often tests the distinction between runtime security controls (like input validation) and supply chain provenance measures (like SBOM), so the trap here is that candidates confuse operational defenses with the static analysis needed to detect pre-installed backdoors.

How to eliminate wrong answers

Option A is wrong because input validation and sanitization techniques are runtime defenses against injection attacks (e.g., prompt injection) and do not address the static detection of a backdoor embedded in the model weights or architecture during the supply chain phase. Option B is wrong because homomorphic encryption protects model weights in transit or at rest by allowing computation on encrypted data, but it does not help detect whether a backdoor exists in the model; it only preserves confidentiality. Option C is wrong because differential privacy during fine-tuning adds noise to gradients to prevent memorization of sensitive training data, which is a privacy-preserving technique, not a supply chain security measure for detecting pre-existing backdoors.

330
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

331
MCQmedium

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

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

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

Why this answer

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

332
MCQhard

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

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

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

Why this answer

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

333
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

334
MCQmedium

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

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

Memory leak can cause garbage collection overhead and increased latency.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

335
MCQhard

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

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

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

Why this answer

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

Calibration checks confidence alignment.

336
MCQmedium

A data scientist fine-tunes a large language model for a legal document summarization task. After fine-tuning, the model performs well on test data but produces summaries that include hallucinated legal clauses. Which mitigation strategy is most effective?

A.Use a different tokenizer during fine-tuning.
B.Decrease the temperature parameter to 0.1 during inference.
C.Implement retrieval-augmented generation (RAG) to provide factual context.
D.Set a maximum token limit of 50 for each summary.
AnswerC

RAG provides relevant context from a knowledge base, allowing the model to base summaries on retrieved facts, which significantly reduces hallucinations.

Why this answer

The correct answer is C: Implement retrieval-augmented generation (RAG) to provide factual context. RAG reduces hallucinations by allowing the model to retrieve relevant, factual information from an external knowledge base during generation, grounding its output in verified data. Option A (different tokenizer) does not address the core issue of factual accuracy.

Option B (decrease temperature) affects randomness but does not prevent the model from fabricating content. Option D (max token limit) truncates output but does not stop the model from including false information within that limit.

337
MCQhard

A deep learning model for natural language processing uses a recurrent neural network (RNN) to process long sequences. The gradients vanish after many time steps. Which architectural change is most effective to mitigate this problem?

A.Add dropout regularization
B.Use a larger learning rate
C.Replace the RNN cells with Long Short-Term Memory (LSTM) units
D.Increase the number of hidden layers
AnswerC

LSTM's gating structure preserves gradients over long sequences.

Why this answer

Option C is correct because LSTMs are specifically designed with a gating mechanism (input, forget, and output gates) and a cell state that allows gradients to flow unchanged over many time steps, directly addressing the vanishing gradient problem in standard RNNs. This architectural change preserves long-range dependencies in sequences, which is critical for tasks like language modeling or machine translation.

Exam trap

CompTIA AI often tests the misconception that regularization or hyperparameter tuning (like learning rate) can fix architectural gradient problems, but the correct answer always targets the root cause—here, the LSTM's gated structure that directly mitigates vanishing gradients.

How to eliminate wrong answers

Option A is wrong because dropout regularization randomly drops units during training to prevent overfitting, but it does not solve the vanishing gradient problem—it can even exacerbate gradient issues by reducing signal flow. Option B is wrong because increasing the learning rate can cause the gradients to explode or the loss to diverge, and it does not address the fundamental issue of gradients shrinking to zero over time. Option D is wrong because adding more hidden layers increases model depth, which typically worsens the vanishing gradient problem in standard RNNs due to repeated multiplication of small gradients through additional layers.

338
MCQmedium

A machine learning engineer needs to deploy a PyTorch model for real-time inference with low latency. The model uses custom operators that are not supported by standard ONNX conversion. Which deployment approach is MOST appropriate?

A.Use TensorFlow Serving with a saved model format
B.Wrap the model in a Flask app and deploy on a VM
C.Deploy the model using TorchServe with a custom handler
D.Convert the model to ONNX and serve with ONNX Runtime
AnswerC

TorchServe handles custom operators natively and provides optimized inference.

Why this answer

TorchServe is the native serving solution for PyTorch models and supports custom operators through custom handlers, allowing you to implement arbitrary preprocessing, inference, and postprocessing logic in Python. This approach avoids the need for ONNX conversion entirely, which is critical when custom operators are not supported by the ONNX standard. It also provides built-in features like model versioning, batching, and metrics for low-latency real-time inference.

Exam trap

CompTIA often tests the misconception that ONNX is a universal solution for all model deployment scenarios, but the trap here is that custom operators break ONNX compatibility, so candidates must recognize when native serving frameworks like TorchServe are required instead of conversion-based approaches.

How to eliminate wrong answers

Option A is wrong because TensorFlow Serving expects a TensorFlow SavedModel format and cannot directly serve PyTorch models; converting a PyTorch model with custom operators to TensorFlow would require ONNX or another intermediate format, which is precisely the unsupported path. Option B is wrong because wrapping the model in a Flask app on a VM is a manual, non-scalable approach that lacks production-grade features like automatic batching, model versioning, and health checks, and it would require the engineer to build all serving infrastructure from scratch. Option D is wrong because the model uses custom operators not supported by standard ONNX conversion, so converting to ONNX would either fail or require custom ONNX operators, which defeats the purpose of using a standard runtime like ONNX Runtime.

339
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

340
MCQmedium

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

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

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

Why this answer

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

341
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

342
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

343
MCQmedium

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

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

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

Why this answer

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

344
MCQeasy

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

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

Transparency ensures that AI processes are open and understandable.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

345
MCQhard

A company is deploying a real-time object detection model on a fleet of IoT cameras. The model must run at 30 FPS on a device with limited memory and no internet connectivity. Which combination of techniques is MOST suitable?

A.Use FP16 inference and deploy via Docker containers
B.Use model distillation to create a smaller model and deploy via ONNX Runtime
C.Deploy on a GPU-based edge server with a full PyTorch model
D.Apply INT8 quantization and pruning, then deploy using TensorFlow Lite
AnswerD

INT8 quantization reduces memory footprint and accelerates inference; pruning removes redundant parameters. TensorFlow Lite is optimized for edge devices.

Why this answer

Option D is correct because INT8 quantization reduces model size and latency, while pruning removes redundant weights, making the model suitable for memory-constrained edge devices. TensorFlow Lite is optimized for on-device inference with no internet dependency, supporting real-time 30 FPS object detection on IoT cameras.

Exam trap

CompTIA often tests the misconception that any lightweight deployment framework (like ONNX Runtime) is sufficient for edge devices, ignoring the need for hardware-specific quantization and pruning to meet strict memory and FPS constraints.

How to eliminate wrong answers

Option A is wrong because FP16 inference reduces precision but still requires significant memory and compute resources; Docker containers add overhead and are not designed for ultra-low-memory IoT cameras. Option B is wrong because model distillation creates a smaller model, but ONNX Runtime is a cross-platform inference engine that does not inherently provide the aggressive memory and latency optimizations needed for 30 FPS on constrained devices; it also lacks native support for hardware-specific quantization like TensorFlow Lite. Option C is wrong because deploying a full PyTorch model on a GPU-based edge server contradicts the 'limited memory and no internet connectivity' constraint; GPUs are power-hungry and expensive, and PyTorch's runtime overhead is too high for a memory-constrained IoT camera.

346
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

347
Multi-Selecthard

A company is deploying a machine learning model that predicts customer churn. The model currently has high variance. Which THREE actions should the data scientist take to reduce variance? (Select THREE.)

Select 3 answers
A.Reduce model complexity (e.g., fewer features, simpler model).
B.Use regularization.
C.Add more training data.
D.Remove outliers from the training data.
E.Increase model complexity.
AnswersA, B, C

Simpler models have lower variance.

Why this answer

Option A is correct because reducing model complexity (e.g., using fewer features or a simpler algorithm like logistic regression instead of a deep neural network) directly addresses high variance by limiting the model's capacity to overfit to noise in the training data. A simpler model has less flexibility to capture spurious patterns, which reduces the gap between training and validation error.

Exam trap

CompTIA often tests the misconception that removing outliers is a universal fix for variance, when in reality it can harm generalization, and that increasing complexity is a solution for underfitting, not overfitting.

348
MCQmedium

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

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

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

Why this answer

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

349
MCQmedium

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

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

Subgroup analysis is the standard first step in fairness auditing.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

350
MCQmedium

A healthcare organization deploys an AI system to analyze medical images and detect anomalies. During a routine audit, the security team discovers that the AI model occasionally returns results that include data from patients who have opted out of data sharing. Which security control should be implemented to prevent this violation?

A.Apply data anonymization techniques to the training dataset.
B.Implement role-based access control (RBAC) on the AI model's inference API.
C.Use differential privacy during model training.
D.Encrypt the training data at rest and in transit.
AnswerA

Correct. Anonymizing the training dataset removes patient identities, preventing the model from associating outcomes with specific individuals, including those who opted out.

Why this answer

Data anonymization techniques applied to the training dataset remove personally identifiable information (PII) and ensure that data from patients who opted out of data sharing cannot be reconstructed in model outputs. This directly prevents the violation of returning data from opt-out patients. Role-based access control (RBAC) on the inference API controls who can access the model but does not prevent the model from leaking sensitive data.

Differential privacy adds noise to training or queries to protect individual contributions, but it does not guarantee removal of specific opt-out data; it may still allow leakage if the model memorizes. Encryption protects data in transit and at rest but does not affect model outputs. Therefore, option A is the most effective control for this specific violation.

351
MCQmedium

A data scientist is training a deep neural network for sentiment analysis. The training loss decreases steadily but the validation loss starts to increase after 10 epochs. What is the most likely cause and best corrective action?

A.Underfitting; increase model complexity
B.Vanishing gradients; use ReLU activation
C.Data leakage; shuffle data before splitting
D.Overfitting; apply dropout and early stopping
AnswerD

Validation loss increasing while training loss decreases is classic overfitting; dropout regularizes and early stopping halts training.

Why this answer

The scenario describes a classic case of overfitting: the training loss decreases steadily, indicating the model is learning the training data well, but the validation loss increases after 10 epochs, meaning the model is memorizing noise and patterns specific to the training set rather than generalizing. The best corrective action is to apply dropout (which randomly drops neurons during training to reduce co-adaptation) and early stopping (which halts training when validation performance degrades), both of which are standard regularization techniques for deep neural networks.

Exam trap

CompTIA often tests the distinction between underfitting and overfitting by describing a diverging validation loss after initial improvement, leading candidates to mistakenly choose underfitting or vanishing gradients when the key indicator is the validation loss increase after a period of good training loss reduction.

How to eliminate wrong answers

Option A is wrong because underfitting would cause both training and validation loss to remain high or plateau, not a decreasing training loss with increasing validation loss; increasing model complexity would worsen overfitting, not fix it. Option B is wrong because vanishing gradients typically cause the training loss to stagnate or decrease very slowly, not a steady decrease followed by validation loss increase; ReLU activation helps mitigate vanishing gradients but does not address the overfitting pattern described. Option C is wrong because data leakage would cause both training and validation metrics to be artificially high from the start, not a divergence after 10 epochs; shuffling data before splitting is a best practice but does not correct overfitting that has already occurred.

352
MCQhard

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

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

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

Why this answer

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

353
MCQeasy

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

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

Larger models take longer to compute predictions.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

354
MCQeasy

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

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

Quantization reduces precision, making models smaller and faster.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

355
MCQeasy

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

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

This ensures data quality without losing valuable information.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

356
Multi-Selectmedium

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

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

Quantifies specific fairness criteria.

Why this answer

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

Exam trap

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

357
MCQhard

A team is deploying a model on a cloud-based ML service and needs to handle variable traffic patterns with automatic scaling based on request latency. They want to minimize costs during low traffic. Which endpoint configuration should they use?

A.Use a serverless function with the ML service
B.Provision a fixed number of instances with multi-model endpoints
C.Use a single large instance to handle peak traffic
D.Configure automatic scaling with a target tracking metric based on latency
AnswerD

Target tracking scaling adjusts instance count based on a metric like latency, optimizing cost and performance.

Why this answer

Option D is correct because the ML service's automatic scaling with a target tracking metric based on latency allows the endpoint to dynamically adjust the number of instances in response to real-time request latency, ensuring cost efficiency during low traffic while maintaining performance during spikes. This approach uses a predefined or custom metric (e.g., a metric like invocations per instance) to trigger scaling policies, minimizing over-provisioning and idle costs.

Exam trap

A common trap in CompTIA AI is assuming that Multi-Model Endpoints (Option B) provide automatic scaling, but they only optimize model hosting density, not dynamic instance scaling based on latency.

How to eliminate wrong answers

Option A is wrong because AWS Lambda with SageMaker is used for serverless inference or preprocessing, not for managing endpoint scaling; it does not provide automatic scaling based on latency. Option B is wrong because Multi-Model Endpoints reduce costs by hosting multiple models on shared instances but still require manual or scheduled scaling; they do not inherently scale based on latency. Option C is wrong because using a single large instance to handle peak traffic leads to high costs during low traffic and risks performance degradation or throttling during unexpected spikes, as it lacks elasticity.

358
MCQmedium

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

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

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

Why this answer

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

359
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

360
MCQmedium

A data scientist is building a model to predict whether a transaction is fraudulent. The dataset has 99.9% legitimate transactions and 0.1% fraudulent ones. Which evaluation metric is MOST appropriate to assess model performance given this class imbalance?

A.BLEU score
B.Accuracy
C.F1-score
D.Perplexity
AnswerC

F1-score balances precision and recall, making it robust for imbalanced classification tasks.

Why this answer

With 99.9% legitimate transactions and only 0.1% fraudulent ones, accuracy would be misleadingly high (99.9%) even if the model never predicts fraud. The F1-score is the harmonic mean of precision and recall, making it robust to class imbalance by penalizing both false positives and false negatives. This makes it the most appropriate metric for evaluating fraud detection performance.

Exam trap

A common trap is that candidates default to accuracy as the universal metric, failing to recognize that in extreme class imbalance (e.g., 99.9% vs 0.1%), accuracy becomes meaningless and F1-score is the standard alternative.

How to eliminate wrong answers

Option A is wrong because BLEU score is a metric for evaluating machine translation quality by comparing n-gram overlap, not for binary classification or imbalanced datasets. Option B is wrong because accuracy is misleading in extreme class imbalance; a model that always predicts 'legitimate' would achieve 99.9% accuracy but fail to detect any fraud. Option D is wrong because perplexity is a metric used in language models to measure how well a probability distribution predicts a sample, not for evaluating classification performance on imbalanced data.

361
MCQmedium

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

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

Resampling addresses the root cause by balancing training data.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

362
Multi-Selectmedium

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

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

Dropout randomly drops neurons during training, reducing overfitting.

Why this answer

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

Exam trap

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

363
MCQhard

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

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

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

Why this answer

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

364
MCQmedium

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

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

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

Why this answer

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

365
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

366
Multi-Selectmedium

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

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

Labels are required for supervised tasks.

Why this answer

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

Exam trap

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

367
MCQeasy

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

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

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

Why this answer

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

368
MCQhard

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

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

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

Why this answer

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

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

369
MCQmedium

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

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

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

Why this answer

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

370
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

371
MCQhard

Refer to the exhibit. A security engineer is reviewing an AI access control policy. Which of the following is the most significant security weakness in this policy?

A.The policy allows access from a wide private IP range
B.The policy does not require multi-factor authentication
C.The policy grants 'audit_log' access to data scientists
D.The policy does not limit the number of inference requests
AnswerD

No limit on inference requests is the most significant weakness because it allows attackers to perform model extraction attacks by repeatedly querying the model.

Why this answer

The correct answer is D because the policy lacks rate limiting on inference requests, which is the most significant security weakness as it enables model extraction attacks. Option A (wide IP range) is not the most significant because the policy still restricts to corporate ranges. Option B is incorrect because MFA is already required.

Option C is a minor concern compared to the threat of model theft via unlimited requests.

372
MCQeasy

Refer to the exhibit. The training log shows losses and accuracies over 5 epochs. What is the most likely problem?

A.Data leakage
B.Overfitting
C.Underfitting
D.Vanishing gradient
AnswerB

Overfitting is indicated by decreasing training loss and increasing validation loss.

Why this answer

The training log shows high training accuracy (e.g., 99%) but low validation accuracy (e.g., 60%) across epochs, with the validation loss increasing after an initial drop. This divergence indicates the model has memorized the training data rather than learning generalizable patterns, which is the hallmark of overfitting.

Exam trap

CompTIA often tests the distinction between overfitting and underfitting by showing a training log where training accuracy is high but validation accuracy is low, leading candidates to mistakenly think the model is 'learning well' when it is actually memorizing.

How to eliminate wrong answers

Option A is wrong because data leakage would cause both training and validation accuracies to be artificially high and closely aligned, not a growing gap. Option C is wrong because underfitting would show low accuracy on both training and validation sets, not high training accuracy. Option D is wrong because vanishing gradient typically manifests as slow or stalled learning (flat loss curves) across all data splits, not a divergence between training and validation performance.

373
MCQmedium

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

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

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

Why this answer

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

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

374
MCQhard

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

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

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

Why this answer

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

375
Multi-Selectmedium

An AI security engineer is hardening an LLM application against prompt injection. Which TWO controls are most effective? (Select two.)

Select 2 answers
A.Fine-tuning the model on a dataset of safe responses
B.Training the model with adversarial examples of prompt injection
C.Input sanitization to strip special characters and known injection patterns
D.Increasing the model's temperature setting
E.Using a smaller model for faster inference
AnswersB, C

Adversarial training teaches the model to resist injection attempts.

Why this answer

Option B is correct because adversarial training exposes the LLM to crafted prompt injection attacks during fine-tuning, teaching it to recognize and resist malicious inputs. Option C is correct because input sanitization removes or escapes special characters and known injection patterns (e.g., SQL-like meta-characters, escape sequences) before the prompt reaches the model, reducing the attack surface.

Exam trap

CompTIA often tests the misconception that fine-tuning on safe responses (Option A) is a security control, when in fact it only improves output safety, not input robustness, and that increasing temperature (Option D) has no security benefit and can degrade reliability.

Page 4

Page 5 of 14

Page 6