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

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

Page 1 of 14

Page 2
1
MCQhard

A machine learning engineer is training a transformer model for machine translation. The model's perplexity on the validation set is 8.5, and the BLEU score is 32. After increasing the number of encoder layers from 6 to 12, perplexity drops to 7.2 but BLEU decreases to 28. What is the MOST likely cause?

A.The model is overfitting the training data
B.The batch size is too small
C.The model is underfitting the training data
D.The learning rate is too high
AnswerA

Overfitting leads to lower perplexity on validation (memorization) but worse generalization, reflected in the BLEU drop.

Why this answer

Perplexity measures language model confidence, but BLEU measures translation quality. The deeper model may overfit to the training data, reducing perplexity but hurting generalization to validation translations. Overfitting causes high confidence (low perplexity) but poor translation diversity or exact matches.

2
MCQeasy

When implementing a vector store for a RAG system, which similarity search metric is MOST commonly used to find the most relevant document chunks for a given query embedding?

A.Manhattan distance
B.Euclidean distance
C.Dot product
D.Cosine similarity
AnswerD

Cosine similarity measures orientation similarity and is widely used for comparing dense embeddings.

Why this answer

Cosine similarity is the most common metric for comparing embedding vectors in RAG because it measures the angle between vectors, which works well for high-dimensional semantic embeddings.

3
MCQmedium

An AI risk manager is applying the NIST AI Risk Management Framework (AI RMF). In which function would the organization establish a risk management process and assign roles and responsibilities for AI oversight?

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

Govern includes setting up risk management processes, roles, and responsibilities across the AI lifecycle.

Why this answer

The Govern function in the NIST AI RMF is specifically designed to establish organizational structures, policies, and accountability mechanisms for AI risk management. This includes defining roles and responsibilities, setting risk management processes, and ensuring oversight across the AI lifecycle. The other functions (Map, Measure, Manage) focus on different aspects such as understanding context, assessing risks, and treating risks, respectively.

Exam trap

A common trap is to assume that the 'Manage' function covers all risk management activities including establishing processes and roles, because its name implies broad oversight. However, in the NIST AI RMF, 'Govern' is the specific function for setting up risk management processes and accountability structures, while 'Manage' is reserved for risk treatment after assessment.

How to eliminate wrong answers

Option A is wrong because the Map function focuses on understanding the AI system's context, including its intended use, stakeholders, and potential impacts, not on establishing governance structures or assigning roles. Option B is wrong because the Manage function deals with prioritizing, responding to, and treating identified risks after they have been assessed, not with setting up the initial risk management process or assigning oversight roles. Option D is wrong because the Measure function involves quantitative and qualitative assessment of AI risks, including metrics and monitoring, but does not cover the establishment of governance processes or role assignment.

4
MCQeasy

A data scientist is training a binary classification model to detect fraudulent transactions. The dataset has 99% legitimate transactions and 1% fraudulent. The model achieves 99% accuracy but fails to catch most fraud. Which metric should the team prioritize to evaluate model performance?

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

Recall measures the ability to catch fraudulent transactions, which is the primary goal.

Why this answer

Recall (sensitivity) measures the proportion of actual positive cases (fraud) correctly identified. With 99% accuracy but failing to catch most fraud, the model is biased toward the majority class (legitimate transactions), so recall is the critical metric to ensure fraud detection improves.

Exam trap

CompTIA often tests the misconception that high accuracy implies good model performance, especially in imbalanced datasets, leading candidates to overlook recall as the appropriate metric for minority class detection.

How to eliminate wrong answers

Option A is wrong because F1 score is the harmonic mean of precision and recall; while useful, it does not isolate the model's ability to catch fraud, and in this imbalanced dataset, a high F1 could still mask poor recall if precision is high. Option B is wrong because precision measures how many predicted frauds are actually fraud, but the model's failure to catch most fraud means recall is the primary concern, not the false positive rate. Option C is wrong because accuracy is misleading in imbalanced datasets; 99% accuracy can be achieved by simply predicting 'legitimate' for all transactions, which explains why the model fails to detect fraud.

5
Multi-Selectmedium

A team is designing a deep learning pipeline for a computer vision task. They want to reduce overfitting. Which two techniques are specifically effective for this purpose? (Select TWO.)

Select 2 answers
A.Dropout
B.Using a smaller batch size
C.Adding more layers
D.L2 weight regularization
E.Increasing the learning rate
AnswersA, D

Dropout randomly deactivates neurons, reducing overfitting by preventing reliance on specific features.

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 that improves generalization.

Exam trap

This exam often tests the misconception that increasing model capacity (more layers) or adjusting batch size directly reduces overfitting, when in fact these changes typically require additional regularization to be effective.

6
MCQmedium

An AI engineer is tuning a large language model for a summarization task. The output summaries are too verbose and include irrelevant details. Which technique should be applied to encourage concise outputs?

A.Provide a few-shot example with concise summaries
B.Use chain-of-thought prompting
C.Decrease the top-k value
D.Increase the temperature
AnswerA

Few-shot examples demonstrate the desired output style, teaching the model to produce concise summaries.

Why this answer

Providing a few-shot example with concise summaries (Option A) directly demonstrates the desired output format to the model, leveraging in-context learning to bias generation toward brevity and relevance. This is the most effective technique for controlling output style without altering the model's underlying parameters.

Exam trap

CompTIA often tests the misconception that adjusting sampling parameters (top-k, temperature) is the primary way to control output length, when in fact these parameters affect randomness and diversity, not the explicit length or relevance of the generated text.

How to eliminate wrong answers

Option B is wrong because chain-of-thought prompting encourages step-by-step reasoning, which typically increases verbosity and is designed for complex reasoning tasks, not for reducing output length. Option C is wrong because decreasing the top-k value restricts the sampling pool to the k most likely tokens, which can reduce randomness but does not inherently enforce conciseness or relevance; it may even produce repetitive or incomplete summaries. Option D is wrong because increasing the temperature raises the randomness of token selection, often leading to more diverse but also more verbose and irrelevant outputs, the opposite of the desired effect.

7
Multi-Selectmedium

When evaluating a binary classification model, which two metrics are most appropriate for imbalanced datasets? (Choose two.)

Select 2 answers
A.Accuracy
B.Mean absolute error
C.Recall
D.R-squared
E.Precision
AnswersC, E

Recall measures the proportion of actual positives correctly identified, essential for capturing minority class.

Why this answer

Recall (Option C) is correct because it measures the proportion of actual positive cases correctly identified, which is critical in imbalanced datasets where the minority class is of primary interest. Precision (Option E) is correct because it measures the accuracy of positive predictions, helping to avoid false positives when the positive class is rare. Together, recall and precision provide a balanced view of model performance on the minority class, unlike accuracy which can be misleadingly high by simply predicting the majority class.

Exam trap

CompTIA often tests the misconception that accuracy is always the best metric, but the trap here is that accuracy fails on imbalanced datasets, and candidates must recognize that recall and precision are the appropriate pair for evaluating minority class performance.

8
MCQhard

A data scientist trains a deep learning model on a large dataset. The training loss decreases steadily but the validation loss starts increasing after 20 epochs. The scientist uses early stopping with patience=5. Which of the following is the MOST likely cause and best corrective action?

A.Model is overfitting; add dropout regularization.
B.Training data is not representative; collect more data.
C.Model is underfitting; increase model capacity.
D.Learning rate too high; reduce learning rate.
AnswerA

Diverging validation loss after training loss decrease is classic overfitting; dropout helps.

Why this answer

The training loss decreasing while validation loss increasing after 20 epochs is a classic sign of overfitting, where the model memorizes training data noise instead of generalizing. Early stopping with patience=5 would halt training after 5 epochs of no validation improvement, but the root cause is overfitting. Adding dropout regularization randomly drops neurons during training, forcing the network to learn more robust features and reducing overfitting.

Exam trap

CompTIA often tests the distinction between overfitting and underfitting by showing a diverging validation loss curve, and the trap here is that candidates may confuse overfitting with a learning rate issue or data quality problem, leading them to choose 'reduce learning rate' or 'collect more data' instead of the correct regularization technique.

How to eliminate wrong answers

Option B is wrong because the validation loss increasing while training loss decreases indicates overfitting, not unrepresentative data; collecting more data might help but is not the most direct corrective action for overfitting. Option C is wrong because underfitting would show high training loss that does not decrease, not a decreasing training loss with increasing validation loss. Option D is wrong because a high learning rate would typically cause training loss to oscillate or diverge, not steadily decrease; reducing learning rate addresses convergence issues, not overfitting.

9
MCQmedium

A company is training a large language model and wants to reduce its carbon footprint. Which practice is MOST effective for reducing training energy consumption while maintaining model quality?

A.Increase the batch size to the maximum the GPU memory allows
B.Use a larger model architecture to achieve higher accuracy faster
C.Use mixed-precision training and prune unnecessary parameters
D.Train the model on CPUs instead of GPUs
AnswerC

Mixed-precision training reduces compute and memory usage, and pruning reduces model size, both lowering energy consumption.

Why this answer

Green AI practices include using more efficient hardware (like GPUs with lower power draw), model pruning, and early stopping. Using CPUs is slower and less efficient. Increasing batch size without tuning can hurt convergence.

Using a larger model increases energy. Training on renewable energy reduces the carbon impact but does not reduce energy consumption itself.

10
MCQeasy

A healthcare organization uses an AI model to recommend treatment plans. The model was trained on data from a single hospital, and now treats patients from multiple demographics. Which ethical concern is most critical?

A.Accountability for treatment outcomes
B.Lack of transparency in model decisions
C.Privacy violations in training data
D.Fairness and bias in predictions
AnswerD

The model trained on a single hospital's data may not generalize, leading to unfair treatment recommendations for other demographics.

Why this answer

The model was trained on data from a single hospital, which likely has a homogeneous demographic profile. When deployed across multiple demographics, the model may produce biased or unfair predictions for underrepresented groups, making fairness and bias the most critical ethical concern. This directly violates the principle of distributive justice in AI ethics.

Exam trap

Cisco often tests the distinction between general ethical principles (like accountability or transparency) and the specific, root-cause ethical violation triggered by the scenario, which here is fairness and bias due to demographic mismatch in training data.

How to eliminate wrong answers

Option A is wrong because accountability for treatment outcomes is a general ethical concern but not the most critical here; the primary issue is that the model's training data lacks demographic diversity, which leads to biased predictions before accountability can even be assessed. Option B is wrong because lack of transparency (black-box nature) is a separate concern; while it can exacerbate bias, the core problem is that the model's training data does not represent the target population, not that the model's decisions are opaque. Option C is wrong because privacy violations in training data are a valid concern but not directly triggered by the scenario; the scenario describes using data from a single hospital, which does not inherently imply privacy breaches, whereas the demographic shift introduces bias.

11
MCQmedium

A product team wants a system that can generate high-quality synthetic images of furniture in different room settings for an online catalog. The images must be photorealistic and vary in style. Which generative AI approach is BEST suited for this task?

A.Variational autoencoder (VAE)
B.Diffusion model
C.Generative adversarial network (GAN)
D.Recurrent neural network (RNN)
AnswerB

Diffusion models (e.g., Stable Diffusion) produce state-of-the-art photorealistic images with high diversity.

Why this answer

Diffusion models are the best choice because they iteratively denoise random noise to produce high-quality, photorealistic images with diverse styles. Unlike GANs, they avoid mode collapse and training instability, and they generate more detailed and varied outputs than VAEs, making them ideal for furniture catalog images in different room settings.

Exam trap

CompTIA AI often tests the misconception that GANs are always the best for image generation, but the trap here is that GANs' mode collapse and training instability make diffusion models superior for high-quality, diverse outputs in production systems.

How to eliminate wrong answers

Option A is wrong because VAEs generate blurry images due to their variational lower bound objective, which smooths over fine details, making them unsuitable for photorealistic furniture images. Option C is wrong because GANs can suffer from mode collapse, where they generate limited variations (e.g., only one style of room), and training instability, reducing reliability for diverse catalog images. Option D is wrong because RNNs are designed for sequential data (e.g., text, time series) and cannot generate high-dimensional spatial images like furniture in room settings.

12
MCQeasy

A developer is using Hugging Face Transformers to fine-tune a BERT model for sentiment analysis. They want to track experiments, log metrics, and compare runs. Which MLOps tool should they integrate?

A.Apache Airflow
B.Docker
C.Kubeflow
D.MLflow
AnswerD

MLflow's Tracking API is simple to integrate and supports logging parameters, metrics, and artifacts.

Why this answer

MLflow is the correct choice because it is purpose-built for experiment tracking, metric logging, and run comparison in machine learning workflows. It provides an API to log parameters, metrics, and artifacts, and its UI allows easy comparison of different fine-tuning runs, which directly matches the developer's need to track experiments and compare runs for a BERT sentiment analysis model.

Exam trap

CompTIA often tests the distinction between infrastructure tools (Airflow, Docker, Kubeflow) and ML-specific experiment tracking tools (MLflow), trapping candidates who confuse orchestration or containerization with MLOps tracking capabilities.

How to eliminate wrong answers

Option A is wrong because Apache Airflow is a workflow orchestration tool for scheduling and managing DAGs (Directed Acyclic Graphs) of tasks, not for experiment tracking or metric logging; it lacks native ML run comparison capabilities. Option B is wrong because Docker is a containerization platform for packaging applications and dependencies, not an MLOps tool for logging metrics or comparing experiments; it provides environment consistency but no tracking or logging features. Option C is wrong because Kubeflow is a Kubernetes-native platform for deploying and managing ML pipelines at scale, but it is overkill for simple experiment tracking and does not offer the lightweight, focused metric logging and run comparison that MLflow provides out of the box.

13
MCQmedium

A healthcare AI startup is developing a model to predict patient readmission risk. The company wants to ensure the model's decisions can be understood by clinicians. Which explainability technique provides local, model-agnostic explanations by fitting a simple surrogate model around a prediction?

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

LIME trains a local surrogate model (e.g., linear model) to approximate the complex model's behavior near a specific prediction.

Why this answer

LIME (Local Interpretable Model-agnostic Explanations) is the correct technique because it generates local explanations by fitting a simple, interpretable surrogate model (e.g., linear regression or decision tree) around a specific prediction. It is model-agnostic, meaning it works with any black-box classifier, and it perturbs the input data near the instance of interest to understand which features most influenced the prediction.

Exam trap

Candidates may confuse SHAP with LIME because both provide local, model-agnostic explanations, but LIME fits a surrogate model (e.g., linear regression) around the prediction, whereas SHAP uses Shapley values from game theory.

How to eliminate wrong answers

Option A is wrong because SHAP values provide both local and global explanations based on cooperative game theory (Shapley values), but they are not a surrogate model; they compute additive feature importance scores directly from the model's output. Option C is wrong because attention visualization is a technique specific to neural network architectures (e.g., transformers) and is not model-agnostic; it relies on internal attention weights, which are not available for arbitrary models. Option D is wrong because model cards are documentation artifacts that describe a model's intended use, performance, and limitations; they do not generate local explanations for individual predictions.

14
Multi-Selecteasy

A data scientist is preparing a dataset for a binary classification neural network. The dataset contains both numerical and categorical features, and some rows have identical entries. Which TWO preprocessing steps are most essential to improve model performance and avoid overfitting?

Select 2 answers
A.Removing duplicate records
B.Scaling numerical features to have zero mean and unit variance
C.Increasing the batch size
D.Applying PCA for dimensionality reduction
E.Using dropout regularization in the model
AnswersA, B

Duplicate records can cause the model to overfit to repeated patterns.

Why this answer

Removing duplicate records (A) is essential because identical rows can artificially inflate the importance of certain patterns, leading the model to memorize noise rather than generalize. This directly reduces overfitting by ensuring the training set reflects true data distribution. Scaling numerical features (B) to zero mean and unit variance (standardization) is critical for neural networks as it prevents features with larger magnitudes from dominating gradient updates, enabling faster convergence and stable training.

Exam trap

Cisco often tests the distinction between preprocessing steps (applied to raw data) and model-level regularization techniques (like dropout), tricking candidates into selecting dropout as a preprocessing step when it is actually part of the model architecture.

15
MCQmedium

A company uses an AI model to generate personalized marketing emails. They want to prevent the model from leaking the system prompt used to configure its behavior. Which attack should they guard against?

A.Prompt leaking
B.Model inversion
C.Membership inference
D.Data poisoning
AnswerA

Prompt leaking extracts the hidden system prompt via crafted user inputs.

Why this answer

Prompt leaking is an attack where an adversary crafts inputs to trick the model into revealing its system prompt or hidden instructions. Since the system prompt defines the model's behavior and often contains proprietary or sensitive configuration details, preventing its disclosure is critical. Guarding against prompt leaking directly addresses the goal of keeping the system prompt confidential.

Exam trap

CompTIA often tests the distinction between attacks on training data (model inversion, membership inference, data poisoning) versus attacks on the inference-time configuration (prompt leaking), so candidates mistakenly choose a training-data attack when the question explicitly targets the system prompt.

How to eliminate wrong answers

Option B is wrong because model inversion attacks aim to reconstruct training data from the model's outputs, not to extract the system prompt which is part of the model's runtime configuration, not its training data. Option C is wrong because membership inference attacks determine whether a specific data point was used in the model's training set, which is unrelated to leaking the system prompt. Option D is wrong because data poisoning involves corrupting the training data to alter the model's behavior, not extracting the system prompt that is provided at inference time.

16
MCQeasy

Which machine learning paradigm is best suited for training a model to play a game by learning from its own actions and rewards, without labeled data?

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

Reinforcement learning uses rewards from the environment to learn optimal actions through exploration and exploitation.

Why this answer

Reinforcement learning learns via trial-and-error using rewards and penalties, ideal for game-playing agents. Supervised learning requires labeled data; unsupervised learning finds patterns without rewards; semi-supervised uses a mix.

17
MCQeasy

A data engineer is splitting a dataset into training, validation, and test sets for a machine learning project. The dataset is large and representative of the population. Which split ratio is commonly recommended?

A.90% training, 5% validation, 5% test
B.70% training, 20% validation, 10% test
C.50% training, 25% validation, 25% test
D.80% training, 10% validation, 10% test
AnswerD

This is a standard split, providing ample training data and reliable validation and test sets.

Why this answer

Option D (80% training, 10% validation, 10% test) is commonly recommended for large, representative datasets because it provides sufficient data for model training while retaining enough samples in the validation and test sets to reliably evaluate model performance and detect overfitting. This split balances the need for a robust training set with the requirement for statistically meaningful holdout sets, as recommended in standard machine learning practices for AI model development.

Exam trap

CompTIA often tests the misconception that a larger validation set (e.g., 20%) is always better for tuning, but for large representative datasets, the 80/10/10 split is recommended to avoid wasting training data while still obtaining reliable evaluation metrics.

How to eliminate wrong answers

Option A (90% training, 5% validation, 5% test) is wrong because the validation and test sets are too small (only 5% each) to provide reliable performance estimates, especially for models with many hyperparameters, leading to high variance in evaluation metrics. Option B (70% training, 20% validation, 10% test) is wrong because it allocates an unnecessarily large portion (20%) to validation, which reduces training data and can degrade model accuracy, particularly when the dataset is already large and representative. Option C (50% training, 25% validation, 25% test) is wrong because it severely under-allocates data to training (only 50%), which can cause underfitting and poor generalization, and the equal split is typically reserved for smaller datasets or specific cross-validation scenarios, not for large representative datasets.

18
MCQhard

Refer to the exhibit. A deep learning model is being trained. Based on the training log, which problem is most evident?

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

Training loss decreases, validation loss increases.

Why this answer

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

Exam trap

CompTIA often tests the distinction between overfitting and underfitting by showing loss curves where training loss decreases but validation loss increases, which candidates may misinterpret as a normal training progression or as vanishing gradients.

How to eliminate wrong answers

Option A is wrong because vanishing gradients typically manifest as stagnant or very slow learning across both training and validation metrics, not as diverging loss curves. Option C is wrong because underfitting would show high training loss and high validation loss without improvement, not a decreasing training loss with an increasing validation loss. Option D is wrong because data leakage usually causes unusually high performance on both training and validation sets from the start, not a divergence after initial improvement.

19
MCQhard

An ML team deploys a model on edge devices using INT8 quantization. They notice a significant drop in accuracy on a subset of classes. Which technique should they apply to recover accuracy without increasing model size?

A.Use pruning to remove less important weights
B.Increase the model architecture size
C.Switch to FP16 quantization
D.Apply quantization-aware training (QAT)
AnswerD

QAT simulates quantization during training, allowing the model to learn to compensate for the lower precision, often restoring accuracy.

Why this answer

Quantization-aware training (QAT) simulates INT8 quantization effects during the forward pass of training, allowing the model to learn weights and activations that are more robust to the lower precision. This recovers accuracy lost during post-training quantization without increasing the model's size, as the architecture and number of parameters remain unchanged.

Exam trap

CompTIA AI often tests the misconception that post-training quantization is always lossless, leading candidates to overlook the need for QAT when accuracy drops on specific classes due to uneven weight distributions.

How to eliminate wrong answers

Option A is wrong because pruning reduces model size by removing less important weights, which does not directly address the accuracy drop caused by INT8 quantization and may further degrade performance. Option B is wrong because increasing the model architecture size would increase the model's memory footprint and latency, contradicting the requirement to not increase model size. Option C is wrong because switching to FP16 quantization uses 16-bit floating point, which increases the model size compared to INT8 and does not meet the constraint of maintaining the same model size.

20
MCQeasy

A company wants to recommend products to users based on their past purchase history. Which machine learning paradigm is BEST suited for this task?

A.Reinforcement learning
B.Unsupervised clustering
C.Supervised learning with regression
D.Self-supervised learning
AnswerC

Supervised regression can predict the likelihood or rating of a product for a user based on historical data.

Why this answer

Recommender systems are a classic application of supervised learning (if using regression or classification to predict ratings) or unsupervised learning (collaborative filtering). Among the options, supervised learning with regression is appropriate for predicting purchase likelihood.

21
Multi-Selecteasy

A data scientist is cleaning a dataset. Which TWO actions are appropriate for handling missing data?

Select 2 answers
A.Ignore missing values and train the model directly.
B.Use a predictive model to estimate missing values.
C.Impute missing values with the mean of the entire dataset.
D.Delete rows with missing values if the missing rate is low.
E.Replace missing values with the most frequent value always.
AnswersB, D

Predictive imputation uses relationships in data, a valid advanced method.

Why this answer

Option B is correct because using a predictive model to estimate missing values is a sophisticated imputation technique that leverages relationships between features to fill gaps, preserving data integrity and avoiding bias. This approach is particularly useful when data is not missing completely at random, as it can capture complex patterns that simpler methods miss.

Exam trap

CompTIA often tests the misconception that simple imputation methods like mean or mode are always safe, when in fact they can introduce bias and distort the dataset, making predictive imputation or deletion of rows with low missing rates more appropriate depending on the context.

22
MCQhard

A team is implementing a RAG system for legal document retrieval. The documents are long (50-100 pages) with clear section headings. They want to ensure that retrieved chunks are semantically coherent and respect document structure. Which chunking strategy is MOST appropriate?

A.Semantic chunking based on sentence embeddings
B.Fixed-size chunking with 256 tokens and no overlap
C.Recursive character text splitting with chunk size 1000 and chunk overlap 200
D.Hierarchical chunking: first split by sections, then further split each section into fixed-size chunks with overlap
AnswerD

Hierarchical chunking respects the document structure and provides coherent chunks within sections.

Why this answer

Hierarchical chunking preserves document structure by first splitting into sections, then further into chunks, maintaining semantic coherence.

23
MCQmedium

A developer is using a large language model via an API. They want the model to solve a math problem step by step. Which prompt engineering technique should they use?

A.Set temperature to 0.9
B.Chain-of-thought prompting
C.Few-shot prompting
D.Zero-shot prompting
AnswerB

Chain-of-thought prompts the model to output intermediate reasoning steps, which improves performance on arithmetic and logic problems.

Why this answer

Chain-of-thought prompting encourages the model to show intermediate reasoning steps, improving accuracy on multi-step problems. Zero-shot gives no examples; few-shot provides examples but not necessarily step-by-step; temperature controls randomness.

24
MCQeasy

A logistics company uses a machine learning model to predict delivery times based on historical data. The model was performing well, but recently it started making inaccurate predictions, especially for routes that have experienced new traffic patterns and road closures. The data engineering team receives an alert that the model's accuracy has dropped by 15% over the last week. They suspect data drift. The team has access to the original training data and a continuous stream of new data. What is the most appropriate first step for the team to take?

A.Roll back the model to the previous stable version and schedule a full audit of the data pipeline.
B.Compare the distributions of key features between the training data and the recent data to quantify data drift.
C.Immediately retrain the model using the most recent data to adapt to the new patterns.
D.Add more features to the model to capture the new traffic patterns and road closures.
AnswerB

Identifying drift by comparing distributions is the standard first step to diagnose the problem before taking corrective action.

Why this answer

Option B is correct because the first step in diagnosing a suspected data drift is to statistically compare the distributions of key features between the training data and the recent streaming data. This quantifies whether the input data distribution has changed, which directly explains the accuracy drop. Without this analysis, any corrective action (like retraining or rollback) would be premature and could mask the root cause.

Exam trap

CompTIA often tests the misconception that the immediate response to a performance drop should be retraining or rollback, rather than first diagnosing the type of drift (data drift vs. concept drift) through distribution comparison.

How to eliminate wrong answers

Option A is wrong because rolling back the model without first confirming data drift wastes time and may not address the new traffic patterns; it assumes the previous model is still valid, which is false if drift is present. Option C is wrong because immediately retraining on recent data without verifying drift could introduce bias or overfit to transient noise, and it ignores the need to first understand what changed. Option D is wrong because adding features without first analyzing drift is a blind attempt that may not solve the distribution shift and could increase model complexity unnecessarily.

25
MCQeasy

An organization deploys an AI system that processes personal data of EU citizens. Which regulatory framework imposes strict requirements on automated decision-making and profiling?

A.Payment Card Industry Data Security Standard (PCI DSS)
B.General Data Protection Regulation (GDPR)
C.Health Insurance Portability and Accountability Act (HIPAA)
D.Sarbanes-Oxley Act (SOX)
AnswerB

GDPR specifically addresses automated individual decision-making and profiling.

Why this answer

The General Data Protection Regulation (GDPR) is the correct regulatory framework because it specifically governs the processing of personal data of EU citizens and imposes strict requirements on automated decision-making and profiling under Article 22. This article grants individuals the right not to be subject to a decision based solely on automated processing, including profiling, which produces legal effects or similarly significant effects. The GDPR also mandates data protection impact assessments and transparency obligations for such AI-driven processing.

Exam trap

Cisco often tests candidates' ability to distinguish between data privacy regulations (GDPR) and industry-specific security standards (PCI DSS, HIPAA, SOX), trapping those who confuse data security with data protection governance for AI systems.

How to eliminate wrong answers

Option A is wrong because PCI DSS is a security standard for protecting payment card data, not a framework for regulating automated decision-making or profiling of EU citizens' personal data. Option C is wrong because HIPAA applies to protected health information in the United States and does not address automated decision-making or profiling under EU law. Option D is wrong because SOX is a US federal law focused on financial reporting and corporate governance, with no provisions for personal data processing or AI-driven profiling.

26
MCQeasy

Refer to the exhibit. What is the recall of the model?

A.0.44
B.0.80
C.0.90
D.0.99
AnswerA

Recall = 400/(400+500) = 0.4444, so 0.44.

Why this answer

Recall is calculated as True Positives divided by (True Positives + False Negatives). From the confusion matrix in the exhibit, True Positives = 400 and False Negatives = 500, so recall = 400 / (400 + 500) = 400 / 900 ≈ 0.44. Option A is correct because this matches the computed recall value.

Exam trap

CompTIA often tests the confusion between recall and precision, so candidates mistakenly compute precision (TP/(TP+FP)) instead of recall, leading them to choose 0.80.

How to eliminate wrong answers

Option B (0.80) is wrong because it likely results from incorrectly using precision (TP/(TP+FP) = 40/50 = 0.80) instead of recall. Option C (0.90) is wrong because it may come from dividing TP by total predictions (40/100 = 0.40) or misreading the matrix, but 0.90 is not supported by any standard metric from the given values. Option D (0.99) is wrong because it is far too high and could stem from confusing recall with accuracy or ignoring the false negatives entirely.

27
Multi-Selectmedium

A company wants to adopt green AI practices to reduce the environmental impact of training large models. Which TWO actions are most effective?

Select 2 answers
A.Use efficient model architectures (e.g., pruning, quantization)
B.Use larger datasets to improve accuracy
C.Train models only on weekends
D.Train models in the cloud to offload energy costs
E.Use energy-efficient hardware (e.g., TPUs or optimized GPUs)
AnswersA, E

Efficient architectures reduce computational requirements.

Why this answer

Using efficient model architectures (A) and energy-efficient hardware (E) directly reduce energy consumption. Using larger datasets (B) increases energy use. Training models on weekends (C) does not affect total energy consumption.

Training models in the cloud (D) may offload energy costs to the provider but does not reduce total energy used.

28
Multi-Selecteasy

A data scientist is evaluating a logistic regression model for binary classification on highly imbalanced data. Which TWO metrics are most appropriate to assess model performance? (Choose TWO.)

Select 2 answers
A.Accuracy
B.Recall
C.Precision
D.Mean squared error (MSE)
E.F1 score
AnswersB, C

Recall measures the proportion of actual positives correctly identified, critical for minority class performance.

Why this answer

Recall (B) is correct because in highly imbalanced binary classification, the minority class (e.g., fraud or disease) is the focus. Recall measures the proportion of actual positives correctly identified, which is critical when missing a positive has high cost. Precision (C) is correct because it measures the proportion of predicted positives that are truly positive, which is essential when false positives are costly or when the model's positive predictions must be trustworthy.

Exam trap

CompTIA often tests the misconception that accuracy is always a valid metric, or that F1 score is a primary metric rather than a derived one, leading candidates to select accuracy or F1 instead of the pair of precision and recall.

29
MCQeasy

A company wants to build a real-time anomaly detection system for IoT sensor data using edge AI. The model must run on resource-constrained devices with minimal power consumption. Which model optimization technique is MOST important?

A.Use FP32 precision
B.Model quantization (INT8)
C.Increase the number of layers
D.Use a larger batch size
AnswerB

INT8 quantization dramatically reduces model size and inference latency with minimal accuracy loss, ideal for edge devices.

Why this answer

Quantization reduces model precision (e.g., FP32 to INT8), decreasing model size and computation, which is critical for resource-constrained edge devices.

30
MCQhard

A financial institution uses an AI model to approve loans. The model uses features including credit score and ZIP code. During an audit, it is discovered that the model has a high false positive rate for loan default predictions in certain ZIP codes. What should the institution do to address this?

A.Remove the ZIP code feature from the model
B.Increase the decision threshold for those ZIP codes
C.Discontinue use of the model for those ZIP codes
D.Retrain the model with fairness constraints
AnswerD

Fairness constraints can reduce bias while maintaining overall performance, a more comprehensive solution.

Why this answer

Option D is correct because retraining the model with fairness constraints directly addresses the root cause of the bias—the model's learned correlations between ZIP code and default risk. Fairness constraints, such as demographic parity or equalized odds, are applied during training to ensure the model's predictions are not systematically skewed against certain groups. This approach preserves the predictive power of legitimate features while mitigating discriminatory outcomes, aligning with AI governance principles.

Exam trap

Cisco often tests the misconception that removing a sensitive feature (like ZIP code) is sufficient to eliminate bias, when in reality correlated proxy features can perpetuate discrimination—a concept known as 'fairness through unawareness' being a flawed approach.

How to eliminate wrong answers

Option A is wrong because removing the ZIP code feature may not eliminate bias if other features (e.g., income, credit history) are correlated with ZIP code, and it could reduce model accuracy by discarding legitimate predictive information. Option B is wrong because increasing the decision threshold for those ZIP codes is a post-hoc adjustment that treats the symptom (high false positives) without fixing the underlying bias, and it may introduce new disparities or violate regulatory requirements for consistent lending standards. Option C is wrong because discontinuing use of the model for those ZIP codes abandons the model's utility entirely for those areas, which is operationally impractical and does not address the bias—it simply avoids the problem rather than correcting it.

31
Multi-Selecthard

A company is building a code generation assistant for internal developers. They want the assistant to generate code snippets consistent with the company's coding style and use private libraries. They have a few thousand examples of internal code. Which THREE considerations are critical when deciding between fine-tuning a base LLM and using RAG?

Select 3 answers
A.Fine-tuning a few thousand examples is insufficient; millions are required for any meaningful adaptation.
B.RAG requires the model to have a high context window size to accommodate retrieved code snippets.
C.RAG eliminates the need for any model updates when private libraries change, because it retrieves the latest documentation at inference time.
D.Security constraints may favour RAG because sensitive code is never part of the model's weights.
E.Fine-tuning can encode company-specific coding conventions directly into the model, reducing the need for style instructions in prompts.
AnswersC, D, E

RAG retrieves from a vector store that can be updated without retraining the model.

Why this answer

Fine-tuning can embed coding style and internal library knowledge into model weights, but requires regular updates. RAG is easier to update but may miss stylistic nuances. The volume of examples (a few thousand) is moderate; fine-tuning may still be feasible.

Security and latency/availability are relevant for deployment.

32
MCQeasy

A company is developing an AI chatbot for customer service. They want to ensure the bot does not generate offensive or harmful responses. Which governance practice should be implemented first?

A.Set up a human-in-the-loop review process
B.Implement a content filter to screen responses before delivery
C.Create a usage policy for acceptable bot behavior
D.Sanitize training data to remove toxic examples
AnswerB

Content filtering immediately prevents harmful outputs from reaching users.

Why this answer

Option B is correct because a content filter acts as a real-time safety gate that screens every response generated by the AI model before it reaches the customer. This is the first line of defense against offensive or harmful outputs, as it can catch toxic language, PII leaks, or policy violations immediately, even if the underlying model has not been fully sanitized. Without such a filter, harmful responses could be delivered before any other governance measure (like human review or policy creation) can intervene.

Exam trap

CompTIA often tests the principle of 'defense in depth' and the order of implementation, where candidates mistakenly choose data sanitization (D) as the first step, overlooking that runtime controls are more immediate and practical for preventing harm in a deployed system.

How to eliminate wrong answers

Option A is wrong because a human-in-the-loop review process introduces latency and cannot scale to handle high-volume chatbot traffic; it is a secondary safeguard, not the first implementation. Option C is wrong because creating a usage policy defines acceptable behavior but does not technically prevent the model from generating offensive responses—it is a documentation step, not an enforcement mechanism. Option D is wrong because sanitizing training data is a proactive but time-consuming and imperfect process; even with clean data, large language models can still generate toxic outputs due to emergent behaviors or adversarial prompts, so a runtime filter is needed first.

33
MCQmedium

Refer to the exhibit. The model is a neural network for 10-class classification. The training log shows no improvement over 5 epochs. Which of the following is the most likely root cause?

A.The batch size is too large, making gradient updates insignificant.
B.The output layer uses sigmoid activation instead of softmax.
C.The learning rate is too high, causing the loss to oscillate.
D.The model is suffering from vanishing gradients, preventing weight updates.
AnswerD

Vanishing gradients can cause no learning, leading to constant loss and random accuracy.

Why this answer

The training log shows no improvement over 5 epochs, which is a classic symptom of vanishing gradients in deep neural networks. When gradients become extremely small during backpropagation, weight updates are negligible, causing the loss to stagnate. This is especially common in deep networks with sigmoid or tanh activations, where gradients saturate in the tails of the activation function.

Exam trap

CompTIA often tests the distinction between symptoms of high learning rate (oscillation/divergence) and vanishing gradients (flat loss), so candidates mistakenly choose 'learning rate too high' when they see no improvement, but the key clue is the absence of oscillation or divergence in the loss curve.

How to eliminate wrong answers

Option A is wrong because a batch size that is too large typically leads to noisy or less effective gradient updates, but it does not cause complete stagnation; the loss would still fluctuate or decrease slowly. Option B is wrong because using sigmoid activation in the output layer for 10-class classification would produce outputs that do not sum to 1, making it unsuitable for multi-class probability estimation, but it would not prevent the loss from changing entirely—the model would still update weights, albeit incorrectly. Option C is wrong because a learning rate that is too high causes the loss to oscillate or diverge, not to remain flat with no improvement; the loss would show erratic behavior or NaN values, not a steady plateau.

34
MCQmedium

A team is building a RAG system with a large repository of technical manuals. They want to ensure that each retrieved chunk is semantically coherent and that related concepts are grouped together. Which chunking strategy is BEST?

A.Chunking by page number
B.Fixed-size chunking with 512 tokens
C.Hierarchical chunking with parent-child relationships
D.Semantic chunking using a sentence splitter with topic boundaries
AnswerD

Semantic chunking creates meaningful units, improving retrieval quality by keeping related text together.

Why this answer

Semantic chunking using a sentence splitter with topic boundaries ensures that each chunk is a self-contained, semantically coherent unit by detecting natural topic shifts (e.g., via embedding similarity or discourse markers). This directly supports the requirement for semantically coherent chunks and grouping of related concepts, unlike methods that ignore content meaning.

Exam trap

Cisco often tests the misconception that hierarchical chunking (Option C) is the best for semantic coherence, but its true purpose is multi-granularity retrieval, not ensuring each chunk is internally coherent.

How to eliminate wrong answers

Option A is wrong because chunking by page number ignores semantic boundaries; a single page may contain multiple unrelated topics or split a single concept across pages, breaking coherence. Option B is wrong because fixed-size chunking with 512 tokens treats all content uniformly, often cutting sentences or ideas in half, which destroys semantic coherence and fails to group related concepts. Option C is wrong because hierarchical chunking with parent-child relationships is designed for retrieval over multiple granularities (e.g., summarization or multi-hop QA), not for ensuring each individual chunk is semantically coherent; it can still contain mixed topics within a chunk.

35
MCQmedium

A data scientist is preparing a dataset for a binary classification model. The dataset has 95% majority class and 5% minority class. Which data preparation technique is BEST to address the class imbalance?

A.Min-max normalization of all features
B.Random undersampling of the majority class
C.Removing all minority class samples
D.SMOTE oversampling of the minority class
AnswerD

SMOTE creates synthetic minority samples by interpolating between existing minority instances, effectively balancing the classes without losing data.

Why this answer

SMOTE (Synthetic Minority Oversampling TEchnique) generates synthetic samples for the minority class, balancing the dataset without simply duplicating existing minority instances.

36
MCQeasy

A marketing team wants to segment customers into groups based on purchasing behavior without predefined categories. Which algorithm should they use?

A.K-means clustering
B.Naive Bayes classifier
C.Logistic regression
D.Support vector machine
AnswerA

K-means is an unsupervised algorithm that groups data into clusters based on similarity, perfect for segmentation.

Why this answer

K-means clustering is an unsupervised learning algorithm that groups data points into clusters based on similarity without requiring predefined labels. Since the marketing team wants to segment customers based on purchasing behavior without predefined categories, K-means is the correct choice as it discovers natural groupings in the data.

Exam trap

CompTIA often tests the distinction between supervised and unsupervised learning, and the trap here is that candidates may confuse clustering (unsupervised) with classification (supervised) algorithms, leading them to pick a classifier like Naive Bayes or logistic regression instead of K-means.

How to eliminate wrong answers

Option B (Naive Bayes classifier) is wrong because it is a supervised learning algorithm that requires labeled training data to classify instances into predefined categories, making it unsuitable for discovering unknown segments. Option C (Logistic regression) is wrong because it is a supervised learning algorithm used for binary classification tasks, not for unsupervised clustering or segmentation without predefined groups. Option D (Support vector machine) is wrong because it is a supervised learning algorithm that separates data into predefined classes using hyperplanes, not for discovering hidden patterns or groupings in unlabeled data.

37
MCQmedium

An AI agent is designed to book flights by calling an external API. The agent must decide which tool to call based on user input, then generate the correct API parameters. Which pattern is MOST appropriate for this workflow?

A.Chain-of-thought prompting only
B.Zero-shot prompting with JSON mode
C.ReAct pattern with tool descriptions and function calling
D.Simple prompt with no tool descriptions
AnswerC

ReAct enables the agent to reason about the next action and call the appropriate tool with correct parameters.

Why this answer

The ReAct (Reasoning + Acting) pattern interleaves reasoning steps with tool calls, allowing the agent to decide when to call a function and what arguments to use.

38
Multi-Selectmedium

Which TWO techniques are commonly used to handle missing data in a machine learning dataset? (Choose TWO.)

Select 2 answers
A.Normalization
B.Imputation with mean or median
C.Deletion of rows with missing values
D.One-hot encoding
E.Dimensionality reduction
AnswersB, C

Replacing missing values with mean/median is a common imputation method.

Why this answer

Imputation with mean or median is a standard technique for handling missing numerical data because it preserves the dataset size and avoids introducing bias from simply discarding rows. By replacing missing values with the central tendency of the observed data, the model can still learn patterns without losing information, though it may reduce variance slightly.

Exam trap

CompTIA often tests the distinction between data preprocessing techniques (like normalization and encoding) and actual missing data handling methods, so candidates mistakenly select normalization or one-hot encoding as solutions for missing values.

39
Multi-Selectmedium

A natural language processing (NLP) team is building a sentiment analysis model. The raw text data contains punctuation, stop words, and URLs. Which TWO preprocessing steps are most appropriate to improve model performance? (Choose two.)

Select 2 answers
A.Remove all punctuation and URLs
B.Apply stemming to reduce words to root forms
C.Remove common stop words
D.Convert all text to lowercase
E.Tokenize the text into individual words
AnswersA, C

Punctuation and URLs are typically not useful for sentiment and add noise.

Why this answer

Removing punctuation and URLs eliminates noise that does not contribute to sentiment (e.g., 'http://...' or '!!!'), allowing the model to focus on meaningful words. This step reduces vocabulary size and prevents the model from learning spurious correlations tied to formatting artifacts.

Exam trap

Cisco often tests the distinction between mandatory preprocessing steps (like tokenization) and steps that specifically improve performance by reducing noise, leading candidates to select tokenization or lowercasing instead of the more impactful noise-removal steps.

40
MCQeasy

A data scientist is building a classification model to detect fraudulent transactions. The dataset is highly imbalanced with only 1% fraudulent cases. Which approach should the scientist use to evaluate model performance most effectively?

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

F1 score is the harmonic mean of precision and recall, providing a balanced measure for imbalanced datasets.

Why this answer

In highly imbalanced datasets like fraud detection (1% positive class), accuracy is misleading because a model that predicts all transactions as legitimate would achieve 99% accuracy yet fail to detect any fraud. The F1 score (harmonic mean of precision and recall) is the most effective metric because it balances both false positives and false negatives, providing a single score that reflects the model's ability to correctly identify the minority class without being skewed by class imbalance.

Exam trap

CompTIA often tests the misconception that accuracy is always the best metric for classification, but in imbalanced datasets, accuracy is a trap because it does not reflect performance on the minority class, leading candidates to overlook metrics like F1 score that directly address class imbalance.

How to eliminate wrong answers

Option B (Accuracy) is wrong because it is dominated by the majority class (99% legitimate transactions), so a trivial model that never predicts fraud can still achieve 99% accuracy, masking poor fraud detection performance. Option C (Recall) is wrong because it only measures the proportion of actual fraud cases correctly identified (true positives / (true positives + false negatives)), ignoring false positives; a model that flags every transaction as fraud would have perfect recall but be unusable in practice. Option D (Precision) is wrong because it only measures the proportion of predicted fraud cases that are actually fraud (true positives / (true positives + false positives)), ignoring false negatives; a model that makes very few fraud predictions but with high precision would miss many actual frauds, which is unacceptable in fraud detection.

41
MCQeasy

A machine learning engineer wants to prevent unauthorized users from querying a deployed AI model. Which access control measure is MOST appropriate to secure the API?

A.Rate limiting
B.API key authentication
C.Input sanitization
D.IP whitelisting
AnswerB

API keys are a common, straightforward method to authenticate and authorize API access.

Why this answer

API key authentication is the most appropriate access control measure because it requires each request to include a unique key that identifies and authorizes the caller. This directly prevents unauthorized users from querying the model by validating the key against a pre-approved list before processing the request. Unlike other options, API keys provide a dedicated authentication layer for API access.

Exam trap

Candidates often confuse rate limiting with access control. Rate limiting only restricts the number of requests, not who can make them. API key authentication is the correct method to ensure only authorized users can query the model.

How to eliminate wrong answers

Option A is wrong because rate limiting controls the frequency of requests, not who can make them; it prevents abuse but does not authenticate users. Option C is wrong because input sanitization protects against injection attacks (e.g., SQLi, XSS) by cleaning user input, but it does not enforce identity verification or access control. Option D is wrong because IP whitelisting restricts access based on source IP addresses, which is brittle (IPs can be spoofed or changed) and does not provide per-user authentication or granular access control.

42
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 model retraining.

Why this answer

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

43
Multi-Selecthard

A company wants to deploy an LLM-based chatbot that can handle sensitive customer information. Which THREE measures should be implemented to mitigate prompt injection attacks? (Choose 3)

Select 3 answers
A.Use a system prompt that instructs the model to ignore any instructions in the user input
B.Implement output filtering to detect and block harmful responses
C.Sanitize user inputs to remove special characters and escape sequences
D.Use a smaller model with fewer parameters
E.Set temperature to a low value
AnswersA, B, C

A well-crafted system prompt can reduce the success of injection attacks by separating instructions from data.

Why this answer

Input sanitization removes special characters or patterns; output filtering checks responses for sensitive data; system prompts with separation instructions can reduce injection risk. Restricting temperature only affects randomness; using a smaller model does not prevent injection.

44
MCQmedium

A machine learning team is deploying a sentiment analysis model for customer reviews. The model was trained on reviews from an e-commerce site but will be used for a social media platform. The team observes a drop in accuracy. Which concept best explains this issue?

A.Data drift
B.Concept drift
C.Bias-variance tradeoff
D.Overfitting
AnswerA

The distribution of reviews differs between e-commerce and social media.

Why this answer

Data drift occurs when the statistical properties of the input data change between the training and production environments. Here, the model was trained on e-commerce reviews but is now processing social media posts, which have different vocabulary, tone, and structure, causing a mismatch in the input distribution and leading to accuracy degradation.

Exam trap

CompTIA often tests the distinction between data drift (input distribution change) and concept drift (relationship change), and candidates mistakenly choose concept drift when the scenario describes a change in the input data source rather than a change in the underlying mapping from inputs to outputs.

How to eliminate wrong answers

Option B is wrong because concept drift refers to a change in the underlying relationship between input features and the target variable over time, not a change in the input data distribution itself. Option C is wrong because bias-variance tradeoff is a model selection concept describing the balance between underfitting and overfitting, not an explanation for performance drop due to data distribution shift. Option D is wrong because overfitting occurs when a model learns training data too well, including noise, and fails to generalize to new data from the same distribution, not to a different distribution.

45
MCQhard

An AI team is deploying a predictive maintenance model for industrial equipment. The model predicts failure within a 30-day window. The cost of a false positive is 10% of the cost of a false negative. Which evaluation metric should the team prioritize?

A.F2 score (beta=2) to prioritize recall over precision.
B.Area under the ROC curve (AUC-ROC) to measure overall discrimination.
C.F1 score to balance precision and recall equally.
D.Precision to minimize false positives.
AnswerA

F2 score puts more weight on recall, aligning with the higher cost of false negatives.

Why this answer

The F2 score (beta=2) weights recall four times more than precision, which is appropriate because a false negative (missing a failure) costs 10 times more than a false positive (unnecessary maintenance). Prioritizing recall ensures the model captures as many true failures as possible, minimizing the higher-cost error type.

Exam trap

The trap here is that candidates may default to F1 score as a 'balanced' metric without considering the asymmetric cost structure, or they may incorrectly think AUC-ROC captures cost-sensitive performance.

How to eliminate wrong answers

Option B is wrong because AUC-ROC measures overall discrimination across all thresholds and does not account for the asymmetric cost structure between false positives and false negatives. Option C is wrong because the F1 score balances precision and recall equally, which is suboptimal when the cost of a false negative is 10 times higher than a false positive. Option D is wrong because minimizing false positives (maximizing precision) would increase false negatives, leading to higher overall cost due to the 10:1 cost ratio.

46
MCQmedium

A healthcare organization is deploying an AI system to analyze patient records and recommend treatment plans. To comply with data privacy regulations, what is the most important security measure to implement?

A.Enable detailed audit logging
B.Anonymize patient data before processing
C.Encrypt all data at rest and in transit
D.Implement role-based access control
AnswerB

Anonymization removes identifying information, reducing privacy risks while allowing analysis.

Why this answer

Anonymizing patient data before processing is the most important security measure because it directly addresses data privacy regulations like HIPAA and GDPR by removing personally identifiable information (PII) from the dataset. This ensures that even if a breach occurs, the data cannot be linked back to an individual, thereby minimizing compliance risk. While other measures like encryption and access control are essential, anonymization is the foundational step for lawful AI processing of sensitive health data.

Exam trap

CompTIA often tests the distinction between security controls that protect data in transit/at rest versus those that protect the data's content itself; the trap here is that candidates confuse encryption with anonymization, thinking encryption alone satisfies privacy regulations, when in fact it only protects confidentiality, not identifiability.

How to eliminate wrong answers

Option A is wrong because detailed audit logging is a detective control that records who accessed what and when, but it does not prevent exposure of PII or ensure compliance with privacy regulations like HIPAA or GDPR. Option C is wrong because encrypting data at rest (e.g., AES-256) and in transit (e.g., TLS 1.3) protects against unauthorized interception but does not remove PII from the data; if an authorized user or AI model processes encrypted data, the plaintext still contains identifiable information. Option D is wrong because role-based access control limits who can view or process data but does not alter the data itself; a user with the appropriate role can still access raw PII, violating privacy regulations if the data is used for AI training without anonymization.

47
MCQmedium

An organization wants to detect if someone is trying to steal their proprietary machine learning model by querying its API. Which monitoring technique is MOST effective?

A.Output filtering to remove sensitive information from responses
B.Rate limiting on the number of API requests per user
C.Monitoring for anomalous query patterns, such as high volume or systematic variations
D.Input validation to reject malformed requests
AnswerC

Anomaly detection can identify extraction attempts by spotting unusual patterns.

Why this answer

Option C is correct because model extraction attacks rely on systematically querying the API to reconstruct the model's decision boundary. Monitoring for anomalous query patterns—such as high request volume, uniform input distributions, or systematic variations (e.g., grid-like sampling of feature space)—directly detects the behavioral signature of extraction attempts, unlike passive controls that do not address the attack vector.

Exam trap

The trap here is that candidates confuse generic security controls (rate limiting, input validation) with the specific detection technique needed for model extraction, overlooking that extraction attacks use legitimate, well-formed queries in a systematic pattern.

How to eliminate wrong answers

Option A is wrong because output filtering removes sensitive information from responses but does not prevent an attacker from collecting enough outputs to reconstruct the model; it only obscures specific data points. Option B is wrong because rate limiting reduces request throughput but does not detect or prevent extraction via low-and-slow queries or distributed attacks; it can be bypassed by using multiple IPs or accounts. Option D is wrong because input validation rejects malformed requests but extraction attacks use well-formed, legitimate queries to probe the model; validation does not flag the systematic, high-volume patterns indicative of extraction.

48
MCQmedium

A company wants to reduce the carbon footprint of training large AI models. Which practice is MOST effective for achieving 'Green AI'?

A.Train on larger datasets to improve accuracy
B.Prune the model to reduce its size before training
C.Use more powerful GPUs to speed up training
D.Use older, less efficient hardware to save on manufacturing emissions
AnswerB

Pruning reduces the number of parameters and computations, directly lowering energy consumption.

Why this answer

Green AI practices focus on reducing computational and environmental costs. Using model pruning reduces model size and computational requirements. Using more GPUs increases energy consumption.

Training with larger datasets increases compute. Using older hardware is often less energy-efficient.

49
MCQmedium

Refer to the exhibit. A machine learning pipeline configuration is shown. During a deployment, the model evaluation passes with accuracy 0.86 and precision 0.79. However, the pipeline proceeds to deploy. What is the most likely reason for this behavior?

A.The precision metric is not included in the evaluation script
B.The deployment only checks the accuracy threshold for rollback condition
C.The deployment target is set to staging instead of production
D.The operator manually overrode the threshold
AnswerB

The rollback_condition only mentions accuracy, so precision threshold is ignored.

Why this answer

The pipeline configuration shows a rollback condition that only checks the accuracy metric (accuracy < 0.85). Since the model achieved accuracy 0.86, which is above the threshold, the condition is not triggered, and the pipeline proceeds to deploy regardless of the precision value. The precision metric is not part of the rollback evaluation logic in this configuration.

Exam trap

CompTIA often tests the misconception that all evaluation metrics automatically trigger rollback conditions, when in fact only metrics explicitly listed in the condition logic are checked.

How to eliminate wrong answers

Option A is wrong because the evaluation script clearly outputs precision (0.79), and the exhibit shows precision is being calculated; the issue is that the rollback condition does not reference precision. Option C is wrong because the deployment target (staging vs. production) does not affect whether a rollback condition is evaluated; the pipeline proceeds based on the condition logic, not the environment name. Option D is wrong because there is no evidence or indication in the exhibit or scenario that an operator manually overrode the threshold; the behavior is fully explained by the configured rollback condition.

50
Multi-Selecthard

A company is deploying an AI model that processes financial transactions. They want to implement privacy-preserving machine learning. Which THREE techniques achieve this goal? (Select three.)

Select 3 answers
A.Model pruning
B.Differential privacy
C.Data augmentation
D.Homomorphic encryption
E.Federated learning
AnswersB, D, E

Differential privacy adds noise to prevent memorization of individual records.

Why this answer

Differential privacy (B) is correct because it adds calibrated noise to the training data or model outputs, ensuring that the inclusion or exclusion of any single transaction record does not significantly affect the model's predictions. This mathematically bounds the privacy leakage, making it a core technique for privacy-preserving machine learning in financial contexts.

Exam trap

CompTIA often tests the distinction between techniques that improve model performance (pruning, augmentation) versus those that actively protect data privacy (differential privacy, encryption, federated learning), so candidates mistakenly select performance-enhancing options as privacy-preserving ones.

51
MCQhard

A company deploys a chatbot that frequently gives outdated information. They want to implement a defense against prompt injection that also ensures responses are based on verified knowledge. Which approach is best?

A.Input sanitization only
B.Rate limiting
C.Robust training on adversarial examples
D.Output filtering with a curated knowledge base
AnswerD

Output filtering checks responses against a trusted knowledge base, ensuring accuracy and preventing injection.

Why this answer

Output filtering combined with a knowledge base ensures that the chatbot's responses are checked against verified facts, mitigating both prompt injection and hallucination of outdated info.

52
Multi-Selectmedium

An organisation is developing a document intelligence system that extracts information from scanned invoices. Which THREE data preparation steps are critical to ensure high extraction accuracy? (Choose THREE.)

Select 3 answers
A.Cleaning and correcting OCR output
B.Removing punctuations and stopwords
C.Normalising all text to lowercase
D.Annotating bounding boxes and field labels
E.Image preprocessing (e.g., deskewing, binarisation)
AnswersA, D, E

OCR errors must be fixed to avoid downstream extraction mistakes.

Why this answer

Image preprocessing (like skew correction), OCR cleaning, and field annotation are essential for accurate extraction.

53
MCQhard

A machine learning team is developing a model to predict loan defaults using sensitive customer financial data. They need to share the model with third-party auditors without exposing individual customer records. Which privacy-preserving technique allows auditors to query the model while providing mathematical guarantees about the privacy of the training data?

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

Differential privacy provides a formal mathematical guarantee (epsilon) that the presence or absence of any single record in the training set cannot be inferred from model outputs.

Why this answer

Differential privacy is correct because it adds calibrated noise to the model's training process or query responses, providing a formal mathematical guarantee (ε-differential privacy) that the inclusion or exclusion of any single individual's data does not significantly affect the output. This allows auditors to query the model without exposing individual customer records, as the noise bounds the information leakage from the training data.

Exam trap

A common misconception is that federated learning inherently provides privacy guarantees, when in fact it only addresses data locality and does not prevent model inversion or membership inference attacks without additional differential privacy mechanisms.

How to eliminate wrong answers

Option B (Federated learning) is wrong because it is a distributed training technique that keeps raw data on local devices and shares only model updates, but it does not provide mathematical privacy guarantees for the training data against inference attacks from the shared updates. Option C (k-anonymity) is wrong because it is a data anonymization technique that generalizes or suppresses attributes to ensure each record is indistinguishable from at least k-1 others, but it does not provide a formal mathematical guarantee against membership inference or attribute disclosure when the model is queried. Option D (Homomorphic encryption) is wrong because it allows computations on encrypted data, protecting data in transit and at rest, but it does not prevent the model from leaking training data through its outputs when queried, and it does not provide a mathematical privacy guarantee for the training data against the auditor.

54
MCQeasy

Refer to the exhibit. An AI developer implements the above neural network architecture for handwritten digit recognition. The model achieves 85% training accuracy and 83% test accuracy. Which modification is most likely to improve training accuracy?

A.Increase the dropout rate to 0.7
B.Increase the number of filters in the first Conv2D layer
C.Add another dense layer before the output
D.Remove the dropout layer
AnswerD

Dropout adds regularization; removing it can increase training accuracy, especially if the model is underfitting.

Why this answer

The model achieves 85% training accuracy and 83% test accuracy, indicating slight overfitting (training accuracy is higher than test accuracy). Removing the dropout layer reduces regularization, allowing the model to fit the training data more closely, which directly improves training accuracy. Dropout randomly drops neurons during training to prevent overfitting, but if the model is already underfitting or the gap is small, removing it can boost training performance.

Exam trap

CompTIA AI often tests the misconception that dropout always improves accuracy, when in fact removing dropout can be the correct modification to boost training accuracy if the model is not overfitting significantly.

How to eliminate wrong answers

Option A is wrong because increasing the dropout rate to 0.7 would further regularize the model, likely reducing training accuracy even more by dropping more neurons during training. Option B is wrong because increasing the number of filters in the first Conv2D layer adds more feature maps, which can increase model capacity but may not directly address the training accuracy plateau and could exacerbate overfitting without other adjustments. Option C is wrong because adding another dense layer before the output increases model complexity, which could lead to overfitting and does not guarantee improved training accuracy; it may even cause optimization difficulties.

55
MCQmedium

An organization's AI system uses a decision tree model for loan approval. The compliance team requires explanations for each decision. Which property of decision trees makes them suitable for this requirement?

A.They can handle nonlinear relationships
B.They are robust to outliers
C.The decision rules are transparent and can be visualized as a tree
D.They can handle missing values
AnswerC

The tree structure provides clear if-then rules for each decision.

Why this answer

Decision trees inherently provide interpretable decision rules by splitting data based on feature thresholds at each node. The entire model can be visualized as a tree structure, allowing compliance teams to trace the exact path and logic behind each loan approval or rejection, which directly satisfies explainability requirements.

Exam trap

CompTIA often tests the distinction between model performance properties (e.g., handling nonlinearity, robustness) and interpretability properties, leading candidates to select a technically true but irrelevant advantage instead of the one that directly satisfies the compliance requirement.

How to eliminate wrong answers

Option A is wrong because handling nonlinear relationships is a general capability of many models (e.g., neural networks, SVMs with kernels) and is not unique to decision trees, nor does it directly address the need for transparent explanations. Option B is wrong because decision trees are not inherently robust to outliers; in fact, they can be sensitive to outliers that cause splits to be skewed, and robustness is not related to explainability. Option D is wrong while decision trees can handle missing values through surrogate splits or other imputation methods, this property does not provide the transparency or traceability required for compliance explanations.

56
MCQhard

A retail company deploys a machine learning model to predict customer churn. The model outputs a probability between 0 and 1, and churn is predicted if probability > 0.5. After deployment, the model has a high false positive rate (many non-churning customers labeled as churn), which leads to unnecessary retention offers and increased costs. The data science team confirms the model was trained on historical data with a balanced class distribution. The business team wants to reduce false positives while maintaining a reasonable true positive rate. However, they cannot retrain the model because the original training data is no longer available. What is the best course of action to reduce false positives?

A.Retrain the model using only the most recent three months of data.
B.Increase the decision threshold to a higher value, such as 0.7.
C.Collect new labeled data and perform transfer learning from the original model.
D.Decrease the decision threshold to a lower value, such as 0.3.
AnswerB

A higher threshold requires stronger evidence for churn, thus reducing false positives.

Why this answer

Increasing the decision threshold to a higher value, such as 0.7, reduces false positives because the model will only predict churn when it is more confident. Since the model cannot be retrained, adjusting the threshold is the only way to trade off between precision and recall without modifying the model itself.

Exam trap

CompTIA often tests the misconception that retraining or collecting more data is the only way to fix model performance issues, when in fact threshold tuning is a valid post-deployment technique that does not require retraining.

How to eliminate wrong answers

Option A is wrong because retraining is not possible as the original training data is no longer available, and using only the most recent three months of data would likely introduce data drift and require retraining resources. Option C is wrong because transfer learning typically requires access to the original model architecture and training data, and collecting new labeled data does not directly reduce false positives without retraining or threshold adjustment. Option D is wrong because decreasing the threshold to 0.3 would increase the false positive rate, making the problem worse, not better.

57
MCQmedium

A machine learning engineer is building a recommendation system for an e-commerce platform. The system should suggest products based on user purchase history and browsing behavior. Which model selection is BEST suited for this task?

A.Image classification model (e.g., CNN)
B.Linear regression
C.Random forest classifier
D.Collaborative filtering model (e.g., matrix factorization)
AnswerD

Collaborative filtering leverages patterns of user-item interactions to make personalized recommendations, ideal for this scenario.

Why this answer

Collaborative filtering models (e.g., matrix factorization) are effective for recommendation tasks using user-item interaction data. Linear regression is for regression, not recommendation. Image classification is unrelated.

Random forests can be used but are less common for collaborative filtering.

58
MCQmedium

An image classification model misclassifies a stop sign as a speed limit sign after a few pixels are altered. What is the most effective defense against such attacks?

A.Use a larger validation dataset
B.Reduce the input image resolution
C.Increase the model's complexity
D.Adversarial training
AnswerD

Adversarial training explicitly trains on perturbed examples to improve robustness.

Why this answer

Adversarial training is the most effective defense because it explicitly incorporates adversarial examples—like the perturbed stop sign—into the model's training data. By training on both clean and adversarially altered images, the model learns to be robust against small, malicious perturbations that cause misclassification. This directly addresses the root cause of the vulnerability, unlike other options that only mitigate symptoms or ignore the attack vector.

Exam trap

Cisco often tests the misconception that increasing dataset size or model complexity improves security, when in fact adversarial training is the only listed option that directly hardens the model against input perturbations.

How to eliminate wrong answers

Option A is wrong because a larger validation dataset does not protect against adversarial perturbations; it only improves the statistical estimate of model performance on clean data, not robustness to crafted attacks. Option B is wrong because reducing input resolution may actually increase vulnerability by discarding fine-grained features that help distinguish objects, and it does not prevent pixel-level manipulations from fooling the model. Option C is wrong because increasing model complexity often makes the model more susceptible to overfitting and adversarial examples, as deeper networks can have larger linear regions that attackers exploit.

59
MCQhard

A healthcare startup is deploying a machine learning model to predict patient readmission within 30 days using electronic health records (EHR). The data pipeline uses Apache Spark for preprocessing and training on an Amazon EMR cluster. The training dataset is 50 GB and composed of structured numeric and categorical features, along with unstructured clinical notes. The data scientist observes that training takes over 12 hours and frequently fails due to out-of-memory (OOM) errors, especially when processing the clinical notes via TF-IDF vectorization. The cluster has 10 nodes with 64 GB RAM each. The data engineer has already tried increasing spark.sql.shuffle.partitions to 400 and using Kryo serialization, but OOM persists. Which action should the data engineer take next to resolve the OOM errors?

A.Broadcast the TF-IDF model to all executors to avoid shuffling
B.Repartition the clinical notes data into 2000 partitions before TF-IDF
C.Add 10 more nodes to the cluster to increase total memory
D.Use a single executor with 64 GB and increase driver memory to 128 GB
AnswerB

More partitions reduce the data per executor, mitigating OOM during vectorization.

Why this answer

Option B is correct because repartitioning the clinical notes data into 2000 partitions before TF-IDF vectorization increases parallelism and reduces the memory pressure per partition. The default partition count (often based on spark.default.parallelism) is too low for 50 GB of data, causing individual partitions to exceed executor memory limits. By increasing partitions, each executor processes smaller chunks, preventing OOM errors during the memory-intensive TF-IDF stage.

Exam trap

CompTIA often tests the misconception that increasing cluster resources (nodes or memory) alone solves OOM errors, when the real fix is to optimize data partitioning and parallelism within Spark's execution model.

How to eliminate wrong answers

Option A is wrong because broadcasting the TF-IDF model does not address the root cause of OOM; the model itself is typically small, but the issue is the large volume of raw text data being processed per partition, not the model size. Option C is wrong because adding more nodes increases total cluster memory but does not fix the per-partition memory imbalance; without repartitioning, the same skewed partitions will still cause OOM on individual executors. Option D is wrong because using a single executor with 64 GB and increasing driver memory to 128 GB ignores the distributed nature of Spark; it would force all processing into one executor, causing severe memory contention and likely worse OOM, while also losing parallelism.

60
MCQhard

A financial firm deploys an LLM for automated trading advice. To prevent over-reliance, which combination of guardrails should be implemented? (Assume multiple options but choose the MOST comprehensive single approach.)

A.Output filtering and content moderation
B.Red teaming the model
C.Rate limiting and input validation
D.Differential privacy
AnswerA

Correct. Filtering outputs can block dangerous advice and moderate content.

Why this answer

Output filtering and content moderation directly address over-reliance by ensuring the LLM's trading advice includes disclaimers, risk warnings, and confidence levels, and by blocking overly assertive or misleading outputs. This combination prevents users from blindly trusting the model, which is critical in high-stakes financial environments where automated advice must be treated as a decision-support tool, not a definitive source.

Exam trap

CompTIA often tests the distinction between security testing (red teaming) and runtime guardrails, so candidates mistakenly choose red teaming because it sounds proactive, but it does not operate during inference to prevent over-reliance.

How to eliminate wrong answers

Option B is wrong because red teaming is a security testing methodology to identify vulnerabilities, not a runtime guardrail that prevents over-reliance in production. Option C is wrong because rate limiting and input validation control request volume and sanitize inputs, but they do not modify the LLM's output to include disclaimers or warnings that reduce user over-reliance. Option D is wrong because differential privacy adds noise to training data to protect individual privacy, which has no effect on the model's tendency to produce overconfident or unqualified advice that users might blindly follow.

61
MCQeasy

A company is considering using an open-source large language model for a commercial application. Which intellectual property consideration is MOST important when deciding between open-source and proprietary models?

A.The model's license terms and any restrictions on commercial use
B.The model's accuracy on benchmark tasks
C.The size of the model's parameter count
D.The model's training data provenance
AnswerA

The license defines what you can and cannot do with the model commercially, which is the primary IP consideration.

Why this answer

Understanding the model's license is critical because open-source licenses can have restrictions on commercial use, attribution requirements, or copyleft provisions that affect how the model can be used and distributed. The other options are less directly relevant to the open vs proprietary decision.

62
MCQmedium

A company deploys a chatbot using a large language model (LLM). After launch, users report that the chatbot sometimes generates plausible but false information. This phenomenon is known as:

A.Gradient explosion
B.Overfitting
C.Concept drift
D.Hallucination
AnswerD

Correct; LLMs often produce false information convincingly.

Why this answer

Option D is correct because hallucination in LLMs refers to the generation of plausible but factually incorrect or nonsensical information. This occurs when the model's probabilistic next-token prediction produces confident-sounding outputs that deviate from training data or real-world facts, often due to insufficient grounding or training data gaps.

Exam trap

The trap here is that candidates may confuse hallucination with overfitting, thinking the model is 'making up' data due to memorization errors, but overfitting is about poor generalization to new inputs, not confident false outputs from a well-generalized model.

How to eliminate wrong answers

Option A is wrong because gradient explosion is a training instability issue in deep neural networks where gradients become excessively large, causing weight updates to diverge; it does not relate to post-deployment output inaccuracies. Option B is wrong because overfitting describes a model that memorizes training data too well, performing poorly on unseen data, not generating false information that seems plausible. Option C is wrong because concept drift refers to a change in the statistical properties of the target variable over time, requiring model retraining, not a static LLM generating false outputs.

63
MCQmedium

An e-commerce company uses a gradient boosting model to forecast daily sales. Recently, the model's predictions have become less accurate, showing a significant drop in R-squared on validation data. The data scientist checks for data drift but finds no significant changes in feature distributions. The model was trained on data from the past 24 months and is retrained monthly. Upon inspecting the feature importance, the data scientist notices that the top feature 'promotion_flag' has decreased in importance over time. What is the most likely cause of the performance degradation, and what should be done?

A.The model is overfitting to historical promotions; apply more regularization
B.Concept drift has occurred; retrain the model more frequently with recent data only, or use an online learning approach
C.The model's hyperparameters need tuning; perform a grid search
D.The promotion_flag feature is leaking future information; remove it
AnswerB

Concept drift changes the relationship between features and target; frequent retraining adapts to new patterns.

Why this answer

Option A (overfitting to promotions) does not explain the drop over time. Option C (hyperparameter tuning) is unlikely to fix the temporal change. Option D (leakage) would have caused issues from the start.

Option B correctly identifies concept drift (changing relationship) and suggests retraining more frequently or using online learning to adapt.

64
MCQeasy

A social media company's AI recommendation system pushes extreme content to users, causing harm. Which ethical principle is most violated?

A.Autonomy
B.Justice
C.Beneficence
D.Non-maleficence
AnswerD

Non-maleficence requires avoiding harm.

Why this answer

Non-maleficence (do no harm) is the principle most directly violated because the AI system actively causes harm by pushing extreme content that damages users' mental health or incites harmful behavior. Unlike beneficence (doing good), non-maleficence focuses on avoiding harm, and the system's design fails to prevent foreseeable negative outcomes.

Exam trap

CompTIA often tests the distinction between beneficence and non-maleficence, where candidates mistakenly choose beneficence because they think the system failed to do good, but the actual violation is causing direct harm.

How to eliminate wrong answers

Option A is wrong because autonomy concerns user self-determination and informed consent, not the direct harm from content amplification. Option B is wrong because justice relates to fairness and equitable treatment across user groups, not the specific harm caused by extreme content. Option C is wrong because beneficence requires actively doing good, whereas the core violation here is causing harm, not failing to provide a benefit.

65
Multi-Selectmedium

A financial institution uses a machine learning model to approve loans. They want to protect against membership inference attacks. Which THREE techniques are effective?

Select 3 answers
A.Applying model truncation or output perturbation
B.Training with differential privacy
C.Limiting the granularity of model outputs (e.g., returning scores instead of probabilities)
D.Implementing federated learning
E.Using shadow models to distract attackers
AnswersA, B, C

Reducing model complexity and perturbing outputs makes it harder to infer membership.

Why this answer

Differential privacy adds noise to training, model truncation reduces overfitting (which helps prevent inference), and limiting output granularity reduces the information leaked. Shadow models are used to train attack models, not defend. Federated learning alone does not prevent inference.

66
MCQmedium

A security analyst reviews the log file from an AI model server. What is the most likely cause of the crash?

A.The server ran out of memory due to high traffic
B.The model weights were corrupted during loading
C.The model encountered an unknown data type
D.A malicious input triggered a buffer overflow
AnswerD

Special characters and memory allocation error suggest an injection attack.

Why this answer

A malicious input triggering a buffer overflow is the most likely cause of the crash because AI model servers often process user-supplied data in native code (e.g., C/C++ extensions or TensorFlow ops) that lack bounds checking. An attacker can craft an input that overflows a fixed-size buffer, corrupting memory and causing a segmentation fault or denial of service. This is a well-known AI security vulnerability, distinct from generic resource exhaustion or data-type errors.

Exam trap

CompTIA often tests the misconception that AI crashes are always due to resource exhaustion or data format errors, but the trap here is that a buffer overflow from malicious input is a distinct security-specific crash vector that candidates overlook in favor of more generic operational issues.

How to eliminate wrong answers

Option A is wrong because running out of memory due to high traffic would typically cause gradual performance degradation or an out-of-memory (OOM) kill, not a sudden crash from a single request, and the log would show memory allocation failures rather than a buffer overflow. Option B is wrong because corrupted model weights during loading would usually result in a checksum mismatch or loading error at startup, not a crash during inference from a specific input. Option C is wrong because an unknown data type would typically raise a type error or exception in the model's preprocessing layer, not cause a memory corruption crash like a buffer overflow.

67
MCQhard

A company uses a large language model (LLM) to generate customer support responses. They notice the model sometimes produces harmful outputs. Which implementation strategy best reduces this risk while maintaining performance?

A.Implement a keyword-based output filter
B.Use a smaller, less capable model
C.Add system prompts instructing the model to be safe
D.Fine-tune the model using reinforcement learning from human feedback
AnswerD

RLHF effectively aligns model outputs with human preferences.

Why this answer

Option D is correct because reinforcement learning from human feedback (RLHF) directly trains the model to align its outputs with human preferences for safety and helpfulness, reducing harmful outputs while preserving performance. Unlike superficial filters or prompts, RLHF adjusts the model's internal behavior through reward modeling and policy optimization, making it the most effective strategy for sustained safety improvements.

Exam trap

CompTIA often tests the misconception that simple output filtering or prompt engineering is sufficient for safety, when in fact only training-based alignment methods like RLHF can meaningfully change model behavior without sacrificing performance.

How to eliminate wrong answers

Option A is wrong because keyword-based output filters are brittle and can be bypassed by paraphrasing or context-dependent harmful content, while also risking false positives that degrade performance by blocking legitimate responses. Option B is wrong because using a smaller, less capable model reduces overall performance and may still produce harmful outputs if not specifically trained for safety, as capability and safety are not directly correlated. Option C is wrong because system prompts are easily overridden by the model's training distribution and do not provide robust, consistent safety alignment, especially against adversarial or nuanced harmful inputs.

68
Multi-Selectmedium

Which TWO are key requirements for AI governance under the EU AI Act for high-risk AI systems? (Choose two.)

Select 2 answers
A.Regular performance benchmarks
B.Human oversight
C.Open-source licensing
D.Transparency and documentation
E.Mandatory use of cloud
AnswersB, D

Required for high-risk AI systems.

Why this answer

Option B is correct because the EU AI Act mandates that high-risk AI systems must incorporate human oversight mechanisms to ensure that humans can intervene or override the system's decisions when necessary. This requirement is designed to prevent or minimize risks to health, safety, and fundamental rights, and it is a core governance obligation under Article 14 of the Act.

Exam trap

Cisco often tests the distinction between general best practices (like performance benchmarks) and specific regulatory mandates (like human oversight and transparency), leading candidates to select familiar but non-required options such as regular performance benchmarks.

69
Multi-Selecthard

A data scientist is evaluating a trained binary classification model. The model has high accuracy but the precision is low and recall is high. Which three actions are most appropriate to improve precision? (Choose three.)

Select 3 answers
A.Collect more training data for the minority class
B.Apply oversampling to the majority class
C.Increase the classification threshold
D.Use a different algorithm that penalizes false positives more
E.Decrease the classification threshold
AnswersA, C, D

More minority data helps the model learn better boundaries, often improving precision.

Why this answer

Collecting more training data for the minority class (Option A) helps improve precision because it provides the model with more representative examples of the positive class, reducing the likelihood of false positives. In binary classification, low precision indicates many false positives, often due to class imbalance where the minority class is underrepresented. By enriching the minority class, the model can learn more distinct decision boundaries, thereby reducing false positive predictions.

Exam trap

CompTIA often tests the inverse relationship between precision and recall, and the trap here is that candidates mistakenly think decreasing the threshold (Option E) improves precision, when in fact it increases recall at the cost of precision, while increasing the threshold does the opposite.

70
MCQeasy

A company deploys a computer vision model for quality inspection on a manufacturing line. After deployment, the model's accuracy drops from 95% to 80% over two weeks. Which action is most likely to address this issue?

A.Retrain the model using recently collected production data.
B.Increase the confidence threshold for predictions.
C.Decrease the learning rate of the training algorithm.
D.Deploy an additional ensemble of models for redundancy.
AnswerA

Retraining with current data adapts the model to new data distributions, countering drift.

Why this answer

Option A is correct because the accuracy drop over two weeks indicates data drift or concept drift, where the production data distribution changes over time. Retraining the model with recently collected production data realigns it with the current data distribution, directly addressing the drift. Option B (increasing confidence threshold) may reduce false positives but does not fix the underlying drift and could lower recall.

Option C (decreasing learning rate) is irrelevant for inference; it only affects training and cannot be applied post-deployment to fix drift. Option D (deploying an ensemble) adds computational overhead and does not resolve drift; it might even mask the issue without correcting it.

71
MCQeasy

A data scientist is choosing a hardware accelerator for training a large transformer model. Which of the following is specifically designed for deep learning workloads and offers the highest throughput for matrix multiplications?

A.TPU
B.GPU
C.NPU
D.CPU
AnswerA

TPUs are Google's custom ASICs built specifically for tensor computations, delivering the highest throughput for matrix multiplications in deep learning.

Why this answer

The TPU (Tensor Processing Unit) is an application-specific integrated circuit (ASIC) designed by Google specifically to accelerate deep learning workloads. Its systolic array architecture is optimized for the matrix multiplications and convolutions that dominate transformer model training, delivering the highest throughput among the listed options for these operations.

Exam trap

This question tests the distinction between hardware designed for training versus inference. The trap is that candidates may choose GPU because it is the most common deep learning accelerator, overlooking that TPU is purpose-built for the highest matrix multiplication throughput in training workloads.

How to eliminate wrong answers

Option B (GPU) is wrong because while GPUs are widely used for deep learning and offer high parallelism, they are general-purpose processors originally designed for graphics rendering, not specifically optimized for the dense matrix operations in transformer training. Option C (NPU) is wrong because Neural Processing Units are typically designed for low-power inference on edge devices, not for high-throughput training of large models. Option D (CPU) is wrong because CPUs are general-purpose processors optimized for sequential tasks and low-latency operations, lacking the massive parallel compute units and specialized matrix multiplication hardware needed for efficient transformer training.

72
MCQmedium

A machine learning engineer wants to prevent data poisoning during the training of a model. Which practice is MOST effective for ensuring the integrity of the training data?

A.Differential privacy
B.Secure data pipelines
C.Red teaming the model
D.Output filtering
AnswerB

Secure data pipelines ensure that training data is validated, verified, and unchanged from its source, preventing poisoning.

Why this answer

Secure data pipelines include validation, checksums, and access controls to ensure data integrity. Output filtering is for outputs, red teaming tests the model, and differential privacy adds noise but does not prevent poisoning.

73
MCQmedium

During testing of an AI system that classifies support tickets into categories, the team notices the model frequently misclassifies tickets about a new product feature that was introduced after the model was trained. Which type of testing should the team prioritize to catch this issue?

A.Unit tests for the data pipeline
B.Regression testing with a test set that includes examples of the new feature
C.Integration tests for API calls
D.Evaluation framework for LLM output quality
AnswerB

Regression testing involves re-running tests after changes; including new feature examples helps detect if the model fails on previously unseen categories.

Why this answer

The model's misclassification of the new product feature is a classic case of data drift, where the production data distribution differs from the training data. Regression testing with a test set that includes examples of the new feature directly validates whether the model still performs correctly on this unseen category. This is the most targeted approach to catch the regression in classification accuracy caused by the new feature.

Exam trap

Cisco often tests the distinction between testing the model's predictive behavior (regression testing) versus testing the infrastructure or data pipeline components, leading candidates to mistakenly choose unit or integration tests.

How to eliminate wrong answers

Option A is wrong because unit tests for the data pipeline verify data ingestion and transformation logic, not the model's classification performance on new feature categories. Option C is wrong because integration tests for API calls check the connectivity and response format between system components, not the semantic accuracy of model predictions. Option D is wrong because an evaluation framework for LLM output quality is designed for generative text tasks, not for a classification model that assigns predefined categories to support tickets.

74
MCQhard

A financial institution is deploying an AI system to approve personal loans. To comply with the EU AI Act's high-risk AI requirements, the bank must ensure meaningful human oversight. Which implementation BEST satisfies this requirement?

A.Require a human to review and approve every loan decision before it becomes final
B.Use a separate AI model to audit the primary AI's decisions weekly
C.Allow applicants to appeal AI decisions through a customer service process
D.Provide a dashboard showing the AI's confidence score for each application
AnswerA

Human-in-the-loop with mandatory approval ensures that the human can override the AI's decision, fulfilling the oversight requirement.

Why this answer

The EU AI Act requires that high-risk AI systems allow for human oversight, including the ability to override or reverse the system's decisions. A mandatory human review before final approval ensures that the human can intervene. The other options either do not provide effective oversight or allow for rubber-stamping.

75
MCQhard

A developer is fine-tuning a large language model for a code generation task. The available GPU has only 8GB of VRAM, and the base model is 7B parameters. Which fine-tuning technique is MOST feasible?

A.QLoRA (Quantized Low-Rank Adaptation)
B.LoRA (Low-Rank Adaptation)
C.Instruction tuning with a smaller model
D.Full fine-tuning of all parameters
AnswerA

QLoRA quantizes the base model to 4-bit and uses LoRA adapters, making it possible to fine-tune a 7B model on 8GB VRAM.

Why this answer

QLoRA (Quantized Low-Rank Adaptation) combines quantization and LoRA to fine-tune large models on limited VRAM.

Page 1 of 14

Page 2