Courseiva

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

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

Page 1 of 11

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

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

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

9
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

The AI0-001 exam 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.

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

11
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

The AI0-001 exam 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.

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

13
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

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

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

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

16
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

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.

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

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

19
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

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.

20
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

The AI0-001 exam 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.

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

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

23
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

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

The AI0-001 exam 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.

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

25
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

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.

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

27
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

The AI0-001 exam 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.

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

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

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

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

32
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

The AI0-001 exam 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.

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

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

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

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

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

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

39
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

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.

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

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

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

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

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

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

46
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

The AI0-001 exam 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.

47
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

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.

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

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

50
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

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.

51
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

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

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

53
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

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.

54
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

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

The AI0-001 exam 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.

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

56
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

The AI0-001 exam 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.

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

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

59
Multi-Selecteasy

A data analyst needs to select two appropriate unsupervised learning techniques for clustering unlabeled data. (Choose two.)

Select 2 answers
A.Linear regression
B.Support vector machine
C.Hierarchical clustering
D.Decision tree
E.K-means
AnswersC, E

Hierarchical clustering is an unsupervised algorithm that builds a hierarchy of clusters.

Why this answer

Hierarchical clustering is an unsupervised learning technique that groups unlabeled data points into a tree-like structure (dendrogram) based on similarity, without requiring predefined cluster counts. It is appropriate for clustering tasks where the data lacks labels, making it a correct choice for this question.

Exam trap

The AI0-001 exam often tests the distinction between supervised and unsupervised learning by including familiar algorithms like linear regression or decision trees as distractors, leading candidates to mistake them for clustering techniques due to their popularity in data analysis contexts.

60
Multi-Selectmedium

A data scientist is building a natural language processing model to classify customer reviews as positive or negative. Which TWO preprocessing steps are most essential before tokenization? (Select two.)

Select 2 answers
A.Perform stemming or lemmatization.
B.Remove punctuation and special characters.
C.Convert all text to lowercase.
D.Remove stop words from the text.
E.Replace missing values with a placeholder.
AnswersB, C

Removing punctuation helps tokens become clean words.

Why this answer

Removing punctuation and special characters (Option B) is essential because tokenizers typically split on whitespace, so punctuation attached to words (e.g., 'great!', 'bad.') would create noisy tokens like 'great!' and 'bad.' instead of clean tokens 'great' and 'bad'. Converting all text to lowercase (Option C) ensures that words like 'Great', 'great', and 'GREAT' are all mapped to the same token, preventing the model from treating them as distinct features and reducing vocabulary size.

Exam trap

CompTIA often tests the ordering of preprocessing steps, and the trap here is that candidates mistakenly believe stemming, lemmatization, or stop word removal should be done before tokenization, when in fact tokenization must come first to split the text into tokens for those later steps to operate on.

61
MCQhard

Refer to the exhibit. A batch inference job fails with the given logs. What is the most likely root cause of the failure?

A.The input data has values that exceed the model's expected range
B.The input data contains missing values that are not handled in preprocessing
C.The model was not trained to handle categorical features
D.The model version is outdated and incompatible with the current preprocessing pipeline
AnswerB

The log clearly shows a NaN value for 'age' causing an error in normalization.

Why this answer

The logs indicate a 'ValueError' or similar exception when the batch inference job attempts to process the input data. This error typically arises when the preprocessing pipeline encounters missing values (e.g., NaN or None) that it cannot handle, causing the job to fail. Option B is correct because missing values not handled in preprocessing are a common root cause for such failures, especially when the training data had no missing values but the inference data does.

Exam trap

CompTIA often tests the distinction between data quality issues (missing values) and model compatibility issues (version mismatches or feature encoding), so candidates may incorrectly choose option D because they assume a version mismatch is the cause, when the logs clearly point to a preprocessing failure.

How to eliminate wrong answers

Option A is wrong because values exceeding the model's expected range would typically cause a different error, such as a 'ValueError' about clipping or scaling, not a generic failure from missing data. Option C is wrong because the model not being trained to handle categorical features would manifest as a 'TypeError' or 'KeyError' during feature encoding, not a missing-value-related error. Option D is wrong because an outdated model version incompatible with the preprocessing pipeline would likely cause a 'ShapeError' or 'AttributeError' due to mismatched feature names or dimensions, not a missing-value error.

62
Multi-Selectmedium

Which THREE practices are recommended for versioning machine learning models in a production environment?

Select 3 answers
A.Use a model registry like MLflow or DVC.
B.Store model metadata such as hyperparameters and training data hash.
C.Automate model deployment based on version tags.
D.Use Git to version model binaries.
E.Keep only the latest model to save storage.
AnswersA, B, C

Model registries provide centralized versioning and lifecycle management.

Why this answer

A model registry like MLflow or DVC provides a centralized repository for tracking model versions, metadata, and lineage. This enables reproducibility, rollback, and auditability in production, which is essential for managing the lifecycle of machine learning models.

Exam trap

CompTIA often tests the misconception that Git is suitable for versioning all artifacts, including large binary model files, when in fact Git's architecture is optimized for text diffs and cannot efficiently manage model binaries in a production ML pipeline.

63
MCQeasy

An ML engineer wants to deploy a model as a REST API that can scale to handle thousands of inference requests per second. Which serving approach is most appropriate?

A.Export the model to ONNX format and use a batch processing pipeline
B.Use gRPC streaming for all inference requests
C.Run the model directly on the client device
D.Deploy the model as a REST API endpoint using a containerized inference server
AnswerD

REST APIs are stateless and easily scalable with load balancers and container orchestration.

Why this answer

Deploying the model as a REST API endpoint using a containerized inference server (e.g., TensorFlow Serving, TorchServe, or NVIDIA Triton Inference Server) is the most appropriate approach for handling thousands of inference requests per second. These servers are designed for high-throughput, low-latency serving, support horizontal scaling via load balancers, and provide built-in batching and model versioning. REST APIs are stateless and can be easily integrated with existing web infrastructure, making them ideal for production-scale inference.

Exam trap

The AI0-001 exam often tests the distinction between serving infrastructure (REST API with containerized server) and data processing pipelines (batch) or communication protocols (gRPC), leading candidates to confuse a transport mechanism or batch method with a scalable serving architecture.

How to eliminate wrong answers

Option A is wrong because exporting to ONNX and using a batch processing pipeline is designed for offline/batch inference, not for real-time REST API serving with thousands of requests per second; batch pipelines introduce latency and are not suitable for synchronous, low-latency inference. Option B is wrong because gRPC streaming is a communication protocol that can be used for inference, but it is not a serving approach itself; moreover, gRPC streaming is typically used for bidirectional or long-lived streams, not for high-volume stateless REST API requests, and it adds complexity without inherent scalability benefits over REST for this use case. Option C is wrong because running the model directly on the client device (edge inference) offloads computation from the server but does not provide a centralized REST API; it also introduces challenges with model updates, device heterogeneity, and security, and is not a server-side serving approach.

64
MCQmedium

A machine learning team is training a large transformer model on a text corpus. They need to reduce training time while maintaining model accuracy. Which hardware configuration would be MOST effective for this task?

A.Use a high-core-count CPU with large RAM
B.Use a cluster of GPUs with data parallelism
C.Use a single GPU with model parallelism
D.Use a single TPU with model parallelism
AnswerB

GPUs accelerate parallel tensor operations, and data parallelism distributes batches across multiple GPUs, significantly reducing training time.

Why this answer

GPUs are optimized for the parallel computations required in deep learning training, offering significant speedups over CPUs. TPUs are also effective but less accessible and more specialized. The question specifies 'most effective' for training a transformer model, which aligns with GPU acceleration.

65
MCQeasy

An AI system for fraud detection shows a gradual decline in precision over several weeks, though recall remains stable. Which type of model drift is most likely occurring?

A.Data drift
B.Covariate shift
C.Label drift
D.Concept drift
AnswerD

Concept drift alters the decision boundary, often increasing false positives while recall remains stable.

Why this answer

Concept drift occurs when the statistical relationship between input features and the target variable changes over time, causing the model's decision boundary to become less accurate. In this scenario, precision is declining while recall remains stable, indicating that the model is producing more false positives even though it still catches the same proportion of true positives. This is a classic sign of concept drift, where the underlying definition of fraud has shifted, not the data distribution itself.

Exam trap

The CompTIA AI exam often tests the distinction between data drift and concept drift by presenting a scenario where only one performance metric changes, tempting candidates to incorrectly choose data drift because they associate any performance decline with input data changes, rather than recognizing that a stable recall with dropping precision points to a shift in the underlying concept.

How to eliminate wrong answers

Option A is wrong because data drift refers to changes in the distribution of input features, which would typically affect both precision and recall or cause a shift in all performance metrics, not a selective decline in precision alone. Option B is wrong because covariate shift is a specific type of data drift where the distribution of input features changes while the conditional distribution P(y|x) remains the same; here, the conditional relationship is changing, as evidenced by the precision drop. Option C is wrong because label drift involves changes in the distribution of the target labels (e.g., the overall fraud rate), which would affect recall and precision together, not precision in isolation with stable recall.

66
Multi-Selectmedium

A financial institution wants to use AI for loan approvals and must comply with fair lending laws. Which TWO practices should the institution adopt to mitigate bias and ensure compliance?

Select 2 answers
A.Remove all features except credit score to avoid bias
B.Use a black-box model without explainability to protect intellectual property
C.Use only demographic features to ensure equal treatment
D.Apply fairness-aware machine learning techniques during model training
E.Conduct disparate impact analysis on model outcomes
AnswersD, E

Fairness-aware algorithms can reduce bias during training.

Why this answer

To mitigate bias, using fairness-aware algorithms and conducting disparate impact analysis are direct steps. Using only demographic data is illegal (redlining). Removing all features reduces model utility.

A black-box model without explanation would hinder compliance.

67
Multi-Selecteasy

A machine learning engineer needs to containerize a PyTorch model for deployment on Kubernetes. Which THREE tools or formats should they use?

Select 3 answers
A.MLflow
B.Docker
C.Kubeflow
D.Kubernetes
E.ONNX
AnswersB, D, E

Docker is the standard for containerizing applications, including ML models and their dependencies.

Why this answer

Docker is correct because it is the standard tool for creating container images that package the PyTorch model along with its dependencies, runtime, and environment into a portable artifact. Kubernetes requires container images (typically built with Docker) to deploy and orchestrate workloads, making Docker essential for containerization before deployment.

Exam trap

CompTIA often tests the distinction between containerization tools (Docker) and orchestration or ML lifecycle tools (Kubeflow, MLflow), leading candidates to select tools that manage containers rather than build them.

68
MCQhard

An AI system used for autonomous driving is found to have a lower accuracy in detecting pedestrians with darker skin tones. The development team wants to address this ethical issue. Which action is most effective?

A.Conduct additional testing to measure the disparity
B.Augment the training dataset with more images of pedestrians with darker skin
C.Replace the object detection algorithm with a different one
D.Adjust the model's decision threshold for pedestrian detection
AnswerB

Diverse data helps the model learn robust features for all skin tones.

Why this answer

Augmenting the training dataset with more images of pedestrians with darker skin directly addresses the root cause of the bias: underrepresentation in the training data. By providing a more balanced and diverse dataset, the model can learn more robust features for all skin tones, reducing accuracy disparity without altering the algorithm's core logic or introducing arbitrary thresholds.

Exam trap

CompTIA often tests the misconception that bias can be fixed by simply changing the algorithm or threshold, when in reality the most effective first step is to address data imbalance through targeted augmentation.

How to eliminate wrong answers

Option A is wrong because additional testing only measures the disparity but does not fix it; it is a diagnostic step, not a corrective action. Option C is wrong because replacing the object detection algorithm does not guarantee improved fairness—bias often stems from training data distribution, not the algorithm itself, and a different algorithm may still exhibit similar biases if trained on the same skewed data. Option D is wrong because adjusting the decision threshold can trade off precision and recall but does not address the underlying data imbalance; it may reduce false negatives for one group at the expense of increased false positives for another, without resolving the root cause.

69
MCQeasy

What is the primary function of an AI ethics board within an organization?

A.Developing algorithms
B.Managing cloud infrastructure
C.Marketing AI products
D.Reviewing AI projects for ethical compliance
AnswerD

The board provides oversight and guidance on ethical matters.

Why this answer

The primary function of an AI ethics board is to review AI projects for ethical compliance, ensuring that the organization's AI systems adhere to established ethical principles, legal standards, and governance frameworks. This board typically assesses risks related to bias, fairness, transparency, and accountability before deployment, rather than engaging in technical development or operational tasks.

Exam trap

The AI0-001 exam often tests the distinction between operational roles (e.g., development, infrastructure, marketing) and governance roles (e.g., ethics review), so the trap here is confusing a technical or business function with the oversight responsibility of an ethics board.

How to eliminate wrong answers

Option A is wrong because developing algorithms is a technical function performed by data scientists and engineers, not by an ethics board, which focuses on governance and oversight. Option B is wrong because managing cloud infrastructure is an IT operations role involving platforms like AWS or Azure, unrelated to ethical review processes. Option C is wrong because marketing AI products is a business development activity that promotes AI solutions, whereas an ethics board provides independent scrutiny to prevent unethical practices.

70
MCQmedium

During the evaluation phase of an AI project, the team measures the model's F1 score on a held-out test set. They find the F1 score is 0.92, but when deployed in production, the model performs poorly on new data. What is the MOST likely cause of this discrepancy?

A.The production data has a different distribution than the training data (concept drift)
B.The model's hyperparameters were not properly tuned
C.The model is overfitting to the training data
D.Data leakage occurred between the training and test sets during preparation
AnswerD

Data leakage artificially inflates evaluation metrics; the model may have seen test data during training, leading to a false sense of performance.

Why this answer

Data leakage during preparation can cause overly optimistic evaluation scores. If the test set contains information from the training set, the model appears better than it really is. Overfitting is possible but less likely with a proper hold-out.

Concept drift occurs over time, not immediately. Poor hyperparameter tuning usually yields lower scores, not inflated ones.

71
Multi-Selectmedium

A developer is building an AI agent that needs to call external tools (e.g., weather API, database) and reason about the results to answer user queries. Which THREE components are essential for implementing this agentic workflow?

Select 3 answers
A.Planning capability (e.g., step-by-step decomposition)
B.ReAct (Reasoning + Acting) loop
C.Fine-tuned domain-specific model
D.A vector store for long-term memory
E.Function calling or tool use interface
AnswersA, B, E

Planning allows the agent to break down complex requests into sub-tasks and execute them in order.

Why this answer

Planning capability enables the agent to decompose complex user queries into manageable sub-tasks, such as retrieving weather data before making a recommendation. This step-by-step reasoning is critical for multi-step workflows where the order of tool calls affects the final answer. Without planning, the agent would lack the structured approach needed to handle dependencies between external tool outputs.

Exam trap

The AI0-001 exam often tests the misconception that fine-tuning or vector stores are mandatory for agentic workflows, when in fact the core requirements are planning, a reasoning-acting loop, and a tool-use interface, all achievable with a base model and prompt engineering.

72
MCQeasy

A company wants to deploy an AI model for real-time inference on edge devices with limited computational resources. Which model architecture would be MOST suitable?

A.YOLOv4
B.MobileNet
C.ResNet-152
D.BERT
AnswerB

MobileNet uses depthwise separable convolutions to reduce computation, ideal for edge deployment.

Why this answer

MobileNet is specifically designed for mobile and edge devices using depthwise separable convolutions, which drastically reduce the number of parameters and computational cost while maintaining acceptable accuracy. This makes it the most suitable choice for real-time inference on resource-constrained edge hardware.

Exam trap

CompTIA often tests the misconception that any 'lightweight' or 'fast' model (like YOLOv4) is suitable for edge devices, ignoring the specific architectural optimizations (e.g., depthwise separable convolutions) that MobileNet uniquely provides for extreme resource constraints.

How to eliminate wrong answers

Option A is wrong because YOLOv4, while fast for object detection, is still a large convolutional network requiring significant GPU memory and compute, making it impractical for low-power edge devices. Option C is wrong because ResNet-152 is a very deep residual network with 152 layers, optimized for high accuracy on powerful hardware, not for limited-resource edge deployment. Option D is wrong because BERT is a transformer-based NLP model with hundreds of millions of parameters, requiring substantial memory and compute, and is not designed for real-time inference on edge devices.

73
MCQhard

A manufacturing company is using a convolutional neural network (CNN) to detect defects on an assembly line. The model was trained on a balanced dataset of defective and non-defective parts. In production, the model shows high precision (95%) but very low recall (50%). The production line manager wants to minimize missed defects (false negatives). The data scientist has access to the original training data and can retrain the model. Which strategy is most effective for increasing recall while maintaining acceptable precision?

A.Apply data augmentation to defective images
B.Lower the classification threshold for the defective class
C.Use a bagging ensemble of CNNs
D.Oversample the defective class in training
AnswerB

Lowering the threshold increases sensitivity (recall) as more instances are classified as defective, directly reducing false negatives.

Why this answer

Lowering the classification threshold for the defective class directly addresses the recall issue by allowing more samples to be classified as defective, which reduces false negatives. This is the most immediate and effective method because it does not require retraining and can be tuned to balance precision and recall based on the manager's priority of minimizing missed defects.

Exam trap

CompTIA often tests the misconception that retraining with data augmentation or oversampling is the only way to fix recall issues, when in fact threshold tuning is a simpler and more direct post-training adjustment that does not require model retraining.

How to eliminate wrong answers

Option A is wrong because data augmentation on defective images primarily helps with generalization and overfitting, not with shifting the decision boundary to increase recall; it may improve model robustness but does not directly increase the number of true positives at inference time. Option C is wrong because a bagging ensemble of CNNs reduces variance and can improve overall accuracy, but it does not specifically target the recall-precision trade-off and may even lower recall if the ensemble's voting threshold remains unchanged. Option D is wrong because oversampling the defective class in training addresses class imbalance but the model was already trained on a balanced dataset; oversampling would not solve the underlying issue of the model's conservative decision boundary, and it could lead to overfitting on defective samples without guaranteeing higher recall.

74
MCQhard

You are a security engineer at a large e-commerce company that uses an AI-based recommendation system. The system is deployed on a Kubernetes cluster and uses a TensorFlow model served via REST API. Recently, the security team detected unusual API calls that caused the model to return incorrect recommendations. Analysis shows that the inputs were crafted to maximize prediction error. The team suspects an adversarial attack. You need to implement a solution that detects and mitigates such attacks in real-time without requiring model retraining. Which approach should you take?

A.Implement an input validation filter to detect and block anomalous inputs
B.Increase the number of model replicas to distribute the load
C.Retrain the model with adversarial examples
D.Roll back the model to a previous version that was not attacked
AnswerA

Input validation can identify adversarial examples based on statistical anomalies.

Why this answer

An input validation filter can detect and block adversarial inputs in real-time by analyzing statistical properties (e.g., outlier detection, perturbation magnitude) without modifying the model. This approach is lightweight, operates at the API gateway level, and does not require retraining, making it suitable for immediate deployment against crafted inputs that maximize prediction error.

Exam trap

CompTIA often tests the misconception that retraining or scaling can solve security issues, but the key constraint here is 'real-time detection without retraining,' which eliminates options that require model modification or do not address the attack vector.

How to eliminate wrong answers

Option B is wrong because increasing model replicas only distributes load and improves throughput, but does not detect or block malicious inputs; adversarial attacks exploit model vulnerabilities, not resource exhaustion. Option C is wrong because retraining with adversarial examples requires model retraining, which violates the constraint of 'without requiring model retraining' and is a longer-term solution, not real-time mitigation. Option D is wrong because rolling back to a previous version does not address the root cause; the same adversarial inputs would still be effective against the older model, and the attack vector remains unmitigated.

75
MCQeasy

In unsupervised learning, which task involves grouping similar data points together based on feature similarities?

A.Anomaly detection
B.Classification
C.Clustering
D.Regression
AnswerC

Clustering groups unlabeled data based on similarity.

Why this answer

Clustering partitions data into groups where intra-cluster similarity is high. Classification is supervised; anomaly detection finds outliers; regression predicts continuous values.

Page 1 of 11

Page 2

All pages