Courseiva

CompTIA AI+ AI0-001 (AI0-001) — Questions 226–300

962 questions total · 13pages · All types, answers revealed

Page 3

Page 4 of 13

Page 5
226
MCQmedium

A company is fine-tuning an LLM for a domain-specific task using LoRA. They have limited GPU memory and need to reduce memory footprint without sacrificing fine-tuning quality. Which approach should they consider?

A.Use QLoRA with 4-bit quantized base model
B.Use a larger batch size to speed up training
C.Fine-tune all layers of the base model
D.Increase the rank of LoRA adapters
AnswerA

QLoRA quantises the frozen base model to 4-bit and trains low-rank adapters, cutting GPU memory substantially while preserving fine-tuning quality. This directly satisfies the stem's limited-memory constraint, unlike standard LoRA, which still loads full-precision base weights.

Why this answer

QLoRA combines 4-bit NormalFloat quantization of the base model with LoRA adapters, drastically reducing GPU memory usage while preserving fine-tuning quality through techniques like double quantization and paged optimizers. This directly addresses the constraint of limited GPU memory without sacrificing the model's ability to learn domain-specific tasks effectively.

Exam trap

CompTIA often tests the misconception that increasing model capacity (e.g., higher LoRA rank or full fine-tuning) always improves quality, when in fact memory-constrained environments require efficient techniques like QLoRA that balance resource usage and performance.

How to eliminate wrong answers

Option B is wrong because increasing batch size increases GPU memory consumption, which is counterproductive when memory is limited. Option C is wrong because fine-tuning all layers of the base model requires full gradient storage and optimizer states for every parameter, dramatically increasing memory footprint and defeating the purpose of memory reduction. Option D is wrong because increasing the rank of LoRA adapters increases the number of trainable parameters and their associated optimizer states, raising memory usage without guaranteeing improved fine-tuning quality.

227
MCQmedium

A hospital is implementing an AI system to analyze patient X-rays for potential fractures. The hospital must comply with HIPAA regulations. Which privacy-preserving technique allows the model to be trained on data from multiple hospitals without sharing raw patient data?

A.Federated learning
B.Differential privacy
C.Data anonymisation
D.Data pseudonymisation
AnswerA

Federated learning trains a shared model locally at each hospital, exchanging only model updates such as gradients rather than raw X-ray images. This satisfies HIPAA by keeping patient data within each hospital's boundary while still producing a model trained across multiple sites.

Why this answer

Federated learning allows multiple hospitals to collaboratively train a model without sharing raw patient data. Each hospital trains a local model on its own data, and only model updates (e.g., gradients or weights) are shared with a central server, which aggregates them. This preserves privacy and helps comply with HIPAA by keeping patient data on-premises.

Exam trap

AI0-001 often tests privacy-preserving techniques; candidates may confuse federated learning (no raw data sharing) with differential privacy (noise addition) or anonymisation (data sharing after de-identification).

How to eliminate wrong answers

Option B is wrong because differential privacy adds noise to data or queries to protect individual privacy, but it still requires data to be shared or a central dataset; it does not inherently enable training across multiple hospitals without sharing raw data. Option C is wrong because data anonymisation removes personally identifiable information, but the data must still be shared, and anonymisation can be reversed or may not satisfy HIPAA. Option D is wrong because pseudonymisation replaces identifiers with pseudonyms, but the data is still shared and may be re-identified; it does not prevent data sharing.

228
MCQmedium

A SOC analyst notices an unusually high number of model queries from a single API key, with inputs containing special characters and repeated prompt modifications. Which attack is MOST likely being attempted?

A.Prompt injection
B.Model extraction
C.Jailbreaking
D.Membership inference
AnswerC

Correct. Jailbreaking uses crafted prompts to bypass safety guardrails.

Why this answer

The high volume of queries with special characters and repeated prompt modifications is characteristic of jailbreaking attempts, where an attacker systematically probes the model for vulnerabilities to bypass safety guardrails. Unlike prompt injection, which typically involves a single crafted input, jailbreaking often involves iterative refinement of prompts to exploit model weaknesses.

Exam trap

CompTIA often tests the distinction between prompt injection and jailbreaking, where candidates mistakenly choose prompt injection because both involve manipulating prompts, but jailbreaking specifically targets safety guardrails through iterative refinement rather than a single malicious instruction.

How to eliminate wrong answers

Option A is wrong because prompt injection typically involves a single or small number of carefully crafted inputs that override the model's instructions, not a high volume of queries with repeated modifications. Option B is wrong because model extraction attacks aim to replicate the model's behavior through many queries, but they focus on obtaining outputs for diverse inputs rather than using special characters or prompt modifications to bypass restrictions. Option D is wrong because membership inference attacks determine if specific data was in the training set, which requires many queries but does not involve special characters or prompt modifications.

229
MCQmedium

A financial institution requires that all AI model predictions be explainable and auditable for regulatory compliance. Which model serving approach should be used to meet these requirements?

A.Use gRPC streaming for lower latency
B.Export the model to ONNX format and run on a dedicated inference server
C.Deploy the model on edge devices to avoid centralised logging
D.Deploy the model as a containerised microservice with REST API and log all request/response pairs
AnswerD

Containerised microservice deployment with REST API request/response logging captures each prediction's inputs and outputs, creating the auditable record regulators require. This satisfies the explainability and auditability constraint without relying on opaque batch or embedded serving.

Why this answer

Logging all request/response pairs provides a complete audit trail, which is essential for regulatory compliance in financial institutions. Containerized microservices with REST APIs are stateless and can be easily integrated with centralized logging systems (e.g., ELK stack) to capture every prediction for explainability and review. This approach ensures that model decisions are transparent and can be traced back to specific inputs, satisfying both explainability and auditability requirements.

Exam trap

CompTIA often tests the misconception that performance optimizations (like gRPC or ONNX) inherently solve compliance requirements, when in fact auditability and explainability depend on explicit logging and traceability mechanisms, not just model format or transport protocol.

How to eliminate wrong answers

Option A is wrong because gRPC streaming focuses on low-latency communication, not on logging or auditability; it does not inherently provide request/response capture for compliance. Option B is wrong because exporting to ONNX and running on a dedicated inference server improves portability and performance but does not automatically log predictions or provide an audit trail; additional logging infrastructure would be required. Option C is wrong because deploying on edge devices avoids centralized logging, which directly contradicts the need for auditable records; edge deployments often lack persistent, centralized storage of prediction history, making regulatory review difficult.

230
MCQmedium

An AI system uses a pre-trained image classification model to detect defects in manufacturing. The team wants to deploy the model in an edge device with limited GPU memory. Which technique should they consider first?

A.Train the model from scratch using a smaller dataset
B.Apply quantization to reduce model size
C.Use a larger model with more parameters for higher accuracy
D.Increase the batch size to improve throughput
AnswerB

Quantization stores weights in lower-precision formats such as INT8 instead of FP32, cutting memory footprint roughly fourfold with minimal accuracy loss. This directly satisfies the stem's constraint of limited GPU memory on the edge device, letting the pre-trained classifier fit and run without retraining or architectural changes.

Why this answer

Quantization reduces the precision of the model's weights and activations (e.g., from 32-bit floating point to 8-bit integer), which significantly shrinks the model size and memory footprint while often maintaining acceptable accuracy. This is the most direct and effective first step for deploying a pre-trained model on an edge device with limited GPU memory, as it requires no retraining and immediately addresses the memory constraint.

Exam trap

The AI0-001 exam often tests the misconception that increasing batch size or model size improves performance in resource-constrained environments, when in fact these actions increase memory demand and are counterproductive for edge deployment.

How to eliminate wrong answers

Option A is wrong because training from scratch on a smaller dataset would likely result in poor accuracy due to insufficient data and would not leverage the benefits of transfer learning, making it an inefficient and risky first step. Option C is wrong because using a larger model with more parameters would increase memory consumption, directly contradicting the goal of deploying on a device with limited GPU memory. Option D is wrong because increasing the batch size increases memory usage per inference step, which would worsen the memory constraint rather than alleviating it.

231
MCQmedium

A financial services company is deploying a text-generation model that drafts internal reports. To reduce the risk of the model memorizing and later reproducing personally identifiable information from its fine-tuning dataset, the security team wants to add noise to the training process in a way that provides a mathematical privacy guarantee. Which approach should they implement?

A.Hash all personally identifiable information in the fine-tuning corpus before training.
B.Encrypt the fine-tuning dataset at rest and enforce role-based access to the storage bucket.
C.Use differential privacy with a calibrated noise multiplier during training.
D.Apply L2 regularization to the model weights during fine-tuning.
AnswerC

Differential privacy injects calibrated noise (for example, via DP-SGD) into the training process and yields a formal epsilon-delta privacy guarantee bounding how much any single training record can influence the model. For a model fine-tuned on internal reports containing PII, this directly limits memorization and extraction risk while preserving utility within the chosen privacy budget.

Why this answer

Differential privacy is the only listed technique that provides a formal, quantifiable guarantee that any single training record has limited influence on the model. By adding calibrated noise during training, the organization bounds memorization of PII in the report-drafting model, which directly mitigates the extraction risk. The other controls either reduce overfitting indirectly, obscure identifiers without a guarantee, or protect data only at rest.

Exam trap

The trap here is assuming that any privacy hygiene step, such as hashing identifiers or encrypting storage, provides the same mathematical guarantee as a formal differential privacy mechanism.

232
MCQmedium

A company uses a third-party LLM API to power its customer support chatbot. To prevent prompt injection attacks, which defense is MOST effective at the application layer?

A.Differential privacy during training
B.Input validation and sanitization
C.Rate limiting API calls
D.Output filtering of model responses
AnswerB

Sanitising and validating input strips or neutralises injected instructions before they reach the model, directly blocking the untrusted-data-to-instruction pathway. Because the constraint is application-layer defence against prompt injection, this control sits in front of the third-party API and needs no model retraining or vendor change.

Why this answer

Input validation and sanitization at the application layer is the most effective defense against prompt injection because it stops malicious instructions from ever reaching the LLM. By filtering, escaping, or rejecting inputs that contain injection patterns (e.g., 'ignore previous instructions', role-play overrides, or embedded system-prompt delimiters), the application prevents the model from being manipulated. This is a preventive control applied before inference, which is stronger than detective controls applied after the model responds.

Exam trap

The trap is choosing output filtering because it sounds like a safety net — but the question asks for the MOST effective application-layer defense, and prevention (input validation) beats detection (output filtering) for prompt injection.

How to eliminate wrong answers

Option A is wrong because differential privacy is a training-time technique for protecting individual data points in the training set — it does nothing to stop runtime prompt injection against a third-party API. Option C is wrong because rate limiting only throttles the volume of requests; a single well-crafted injection payload within the rate limit still succeeds, so it is not a defense against injection content. Option D is wrong because output filtering is a detective, post-hoc control — by the time the model has produced a response, the injection may have already caused the model to leak data or take an unintended action, and output filters are easily bypassed with encoding tricks.

233
MCQmedium

A data science team is building a binary classifier to detect fraudulent transactions. The dataset has only 2% fraud cases. Which data preparation technique is MOST critical to address this imbalance?

A.Use one-hot encoding on categorical features
B.Remove outliers from the transaction amounts
C.Apply synthetic minority oversampling (SMOTE) to the training set
D.Normalize all numerical features to have zero mean and unit variance
AnswerC

SMOTE generates synthetic fraud examples by interpolating between existing minority-class neighbours, directly addressing the 2% class imbalance that would otherwise bias the classifier toward the majority class. Critically, it must be applied only to the training set, never the test set, to avoid leaking synthetic data into evaluation.

Why this answer

With only 2% fraud cases, the dataset is severely imbalanced, which can cause the classifier to be biased toward the majority class (non-fraud) and achieve high accuracy without learning to detect fraud. SMOTE (Synthetic Minority Oversampling Technique) addresses this by generating synthetic examples of the minority class (fraud) in the training set, balancing the class distribution and improving the model's ability to generalize to fraud cases. This is the most critical technique among the options because it directly tackles the class imbalance problem, which is the primary challenge in this scenario.

Exam trap

CompTIA AI often tests the misconception that data scaling or encoding is the primary fix for imbalance, when in fact techniques like SMOTE that directly modify the class distribution are required.

How to eliminate wrong answers

Option A is wrong because one-hot encoding is a technique for converting categorical variables into a numerical format, but it does not address class imbalance; it is relevant for feature representation, not for balancing the dataset. Option B is wrong because removing outliers from transaction amounts may discard legitimate high-value transactions or even some fraud cases, potentially worsening the imbalance and losing valuable information; outlier removal is for data cleaning, not for handling class imbalance. Option D is wrong because normalizing numerical features to have zero mean and unit variance is a scaling technique that helps gradient descent converge faster and ensures features contribute equally, but it does not alter the class distribution or mitigate imbalance.

234
Multi-Selectmedium

A company is implementing an AI ethics board. Which TWO responsibilities should the board typically have?

Select 2 answers
A.Approving or rejecting high-risk AI initiatives
B.Writing code for fairness algorithms
C.Reviewing AI projects for ethical compliance and potential biases
D.Developing marketing strategies for AI products
E.Conducting daily data privacy audits
AnswersA, C

The board holds decision authority over high-risk AI initiatives, approving or rejecting them based on ethical risk assessment. This gatekeeping responsibility matches the stem's expectation that the board governs deployments, ensuring risky projects cannot proceed without ethical sign-off.

Why this answer

An AI ethics board should oversee AI projects for ethical compliance and approve high-risk AI initiatives. Implementing technical models and auditing data privacy are operational tasks not typically under the board's direct purview.

235
MCQeasy

A data scientist is preparing a dataset for a natural language processing task. The dataset contains a 'review_text' column with free-form customer reviews. Before feeding the text into a machine learning model, the team wants to convert the text into numerical features. Which technique is most appropriate for this purpose?

A.Use one-hot encoding on each unique word in the 'review_text' column.
B.Convert each review to its average word length and use that as a single numerical feature.
C.Apply TF-IDF (Term Frequency-Inverse Document Frequency) vectorization to the 'review_text' column.
D.Hash each review to a fixed-length integer using a cryptographic hash function.
AnswerC

TF-IDF converts text into numerical vectors by weighting terms based on their frequency in a document and their rarity across the corpus. This highlights important words while downweighting common words like 'the' or 'and'. It is a standard and effective method for transforming unstructured text into features suitable for many machine learning algorithms, especially when the dataset is not extremely large.

Why this answer

TF-IDF is the most appropriate because it transforms text into numerical vectors that reflect term importance, capturing semantic content while reducing the influence of common words. It is widely used for text classification and clustering, and it works well with many machine learning algorithms without requiring deep learning architectures.

Exam trap

The trap here is thinking that any numerical conversion works, but techniques like hashing or average word length discard the semantic content needed for NLP tasks.

236
Multi-Selecteasy

An AI engineer is selecting a PEFT technique to fine-tune a large language model. Which TWO are examples of PEFT (Parameter-Efficient Fine-Tuning)?

Select 2 answers
A.Instruction tuning on a large dataset
B.LoRA
C.QLoRA
D.Gradient checkpointing
E.Full fine-tuning of all parameters
AnswersB, C

LoRA freezes the pretrained weights and injects trainable low-rank decomposition matrices into each transformer layer, updating only a tiny fraction of parameters. This satisfies the PEFT constraint of drastically reducing trainable parameters and memory during fine-tuning, unlike full fine-tuning which updates every weight.

Why this answer

LoRA (Low-Rank Adaptation) is correct because it freezes the pretrained model weights and injects trainable low-rank decomposition matrices into the transformer layers, updating only a tiny fraction of parameters. QLoRA is correct because it extends LoRA by quantizing the base model to 4-bit (NF4) and adding trainable low-rank adapters, further reducing memory while remaining a parameter-efficient method. Instruction tuning (A) is a training objective/paradigm that typically updates all or many parameters, not a PEFT technique itself.

Gradient checkpointing (D) is a memory-saving trick that recomputes activations during backpropagation and does not reduce the number of trainable parameters. Full fine-tuning (E) updates every model parameter, which is the opposite of parameter-efficient fine-tuning.

Exam trap

The trap is confusing memory-saving techniques (gradient checkpointing) or training objectives (instruction tuning) with PEFT — candidates must recognize that PEFT specifically means training a small subset of parameters, not just using less memory.

237
MCQmedium

A hospital's AI team is training a diagnostic imaging model on chest X-rays. The dataset is small and contains sensitive patient information. The security team wants to ensure that even if the trained model is stolen, individual patients cannot be identified from it. Which technique should the team apply during training to provide a formal, quantifiable privacy guarantee?

A.Data augmentation with synthetic X-ray images
B.Homomorphic encryption of the training data
C.Differential privacy with a calibrated noise mechanism
D.Federated learning across hospital sites
AnswerC

Differential privacy adds calibrated noise to the training process, providing a mathematical guarantee that the inclusion or exclusion of any single patient's record has a bounded effect on the model's output. This makes it extremely difficult for an attacker with the stolen model to determine whether a specific patient was in the training set, directly addressing the requirement for a formal privacy guarantee.

Why this answer

Differential privacy is the only technique listed that offers a formal, quantifiable privacy guarantee by mathematically bounding the influence of any single training record. This ensures that even if the model is compromised, individual patients cannot be reliably identified, which is critical for sensitive medical data.

Exam trap

The trap here is assuming that any privacy-enhancing technology like federated learning or homomorphic encryption automatically protects against membership inference in a stolen model.

238
MCQhard

An organization has a dataset with categorical features having high cardinality (e.g., ZIP codes). They plan to use a tree-based model. Which encoding method is most appropriate?

A.Label encoding
B.One-hot encoding
C.Target encoding (mean encoding)
D.Frequency encoding
AnswerC

Target encoding maps categories to the mean target, preserving predictive information compactly.

Why this answer

Target encoding (mean encoding) replaces each category with the mean of the target variable for that category, which works well with tree-based models on high-cardinality features because it captures the predictive signal without exploding the feature space. This method avoids the dimensionality explosion of one-hot encoding and the arbitrary ordering of label encoding, making it the most appropriate choice for high-cardinality categorical features in tree-based models.

Exam trap

CompTIA often tests the misconception that one-hot encoding is always the safest choice for categorical data, but the trap here is that high cardinality makes one-hot encoding impractical, and candidates overlook target encoding as a cardinality-efficient alternative.

How to eliminate wrong answers

Option A is wrong because label encoding assigns arbitrary integer values to categories, which introduces an artificial ordinal relationship that tree-based models can misinterpret, leading to suboptimal splits. Option B is wrong because one-hot encoding creates a binary column for each unique category, which with high cardinality (e.g., thousands of ZIP codes) results in an extremely high-dimensional sparse feature matrix that degrades model performance and increases computational cost. Option D is wrong because frequency encoding replaces categories with their occurrence counts, which loses the relationship with the target variable and can be misleading when frequency does not correlate with the target, unlike target encoding which directly uses the target mean.

239
MCQmedium

A company uses a cloud-based ML platform to train a model and wants to deploy it for real-time inference. They also need to monitor the endpoint for data drift and retrain automatically. Which feature enables this automated retraining pipeline?

A.ML Pipeline Orchestration
B.Model Debugging
C.Data Labeling Service
D.Model Monitoring
AnswerA

ML pipeline orchestration chains training, evaluation, deployment and monitoring steps into an automated workflow, so a drift trigger can restart training and redeploy the endpoint without manual intervention. This satisfies the requirement for automatic retraining of the real-time inference model.

Why this answer

ML Pipeline Orchestration is the correct answer because it provides a fully managed service for creating, automating, and managing end-to-end machine learning workflows. It allows you to define a pipeline that includes steps for monitoring data drift (via a model monitoring service), triggering retraining jobs, and deploying updated models, enabling the automated retraining pipeline described in the question.

Exam trap

The trap here is that candidates often confuse a model monitoring service's detection capability with the full orchestration needed for automated retraining, assuming that monitoring alone can trigger retraining without a pipeline orchestration service.

How to eliminate wrong answers

Option B is wrong because SageMaker Debugger is designed for debugging training jobs by monitoring system metrics, profiling, and detecting anomalies like vanishing gradients, not for orchestrating automated retraining pipelines. Option C is wrong because SageMaker Ground Truth is a data labeling service that creates high-quality training datasets using human annotators, not for automating model retraining or deployment. Option D is wrong because SageMaker Model Monitor only detects data drift and quality issues by analyzing inference data, but it does not include the orchestration logic to automatically trigger retraining or redeployment; that requires a pipeline service like SageMaker Pipelines.

240
MCQhard

A medical imaging team is developing an AI model to detect tumors from CT scans. They have 10,000 labeled scans, but the labels were created by a semi-automated process with an estimated 20% error rate (mislabeled tumor vs. no tumor). The team trains a convolutional neural network (CNN) and achieves 90% accuracy on a held-out test set that was carefully validated by an expert radiologist. However, when deployed to a new hospital's patient population, the accuracy drops to 70%. The team suspects domain shift and label noise. Which strategy is most likely to improve model robustness for the new hospital?

A.Use active learning to select the most uncertain predictions from the new hospital's data, then have an expert radiologist correct those labels
B.Randomly select 1,000 scans from the new hospital and have them re-labeled by the radiologist
C.Collect 20,000 more scans with the same semi-automated labeling process
D.Reduce the CNN's number of layers and apply dropout to combat overfitting
AnswerA

Active learning targets the new hospital's own distribution, and expert correction removes label noise in exactly those uncertain cases. This adapts the model to the shifted domain while fixing the 20% labelling error, addressing both suspected causes.

Why this answer

Active learning selects the most uncertain predictions from the new hospital's data, allowing an expert radiologist to efficiently correct the most informative labels. This directly addresses both label noise (by correcting mislabeled examples) and domain shift (by focusing on samples where the model is uncertain in the new domain). Option B is wrong because random selection may not target the most impactful errors, wasting expert effort.

Option C is wrong because adding more noisy labels from the same flawed process will amplify label noise without correcting the domain shift. Option D is wrong because reducing model complexity and dropout are regularization techniques that do not fix label noise or domain shift.

241
MCQeasy

A data scientist is training a binary classification model to detect fraudulent transactions. The dataset is highly imbalanced with 99% legitimate and 1% fraudulent. Which evaluation metric should be prioritized to assess model performance?

A.Accuracy
B.F1-score
C.Mean Squared Error
D.Log Loss
AnswerB

With 99% legitimate transactions, accuracy is misleading because a model predicting all legitimate scores 99%. F1-score balances precision and recall on the minority fraudulent class, exposing poor detection that accuracy hides, making it the appropriate metric for this imbalanced binary classification task.

Why this answer

In a highly imbalanced dataset (99% legitimate, 1% fraudulent), accuracy is misleading because a model that predicts all transactions as legitimate would achieve 99% accuracy without detecting any fraud. The F1-score combines precision and recall into a single metric, making it the preferred choice for evaluating binary classification performance on imbalanced data, as it penalizes both false positives and false negatives equally.

Exam trap

The trap here is that candidates often default to accuracy as the primary metric, not realizing that in highly imbalanced scenarios, accuracy can be artificially high and meaningless, while the F1-score reveals the true performance on the minority class.

How to eliminate wrong answers

Option A is wrong because accuracy is not suitable for imbalanced datasets; a naive model predicting the majority class can achieve high accuracy while failing to detect any fraudulent transactions. Option C is wrong because Mean Squared Error (MSE) is a regression metric used for continuous outputs, not for binary classification tasks. Option D is wrong because Log Loss measures the probabilistic confidence of predictions and, while useful, does not directly account for class imbalance in the same way the F1-score does; it can be dominated by the majority class's probabilities.

242
MCQmedium

Refer to the exhibit. An AI auditor reviews the fairness configuration. What is the purpose of this policy?

A.Ensure equal error rates across groups
B.Ensure equal positive prediction rates across groups
C.Ensure equal accuracy across groups
D.Ensure model interpretability
AnswerB

Equal positive prediction rates across groups is the definition of demographic parity, so the policy constrains the model to produce the same proportion of favourable outcomes for each protected group, regardless of differing base rates or accuracy.

Why this answer

The policy sets a fairness constraint that requires the model's positive prediction rate (the fraction of instances predicted as the positive class) to be equal across all defined groups. This is a standard demographic parity requirement, which is implemented by adjusting the decision threshold or reweighting training data to ensure that each group receives the same proportion of positive predictions, regardless of the actual outcome distribution.

Exam trap

CompTIA often tests the distinction between demographic parity (equal positive prediction rates) and equalized odds (equal error rates), so candidates mistakenly choose 'equal error rates' when they see a fairness policy that actually enforces demographic parity.

How to eliminate wrong answers

Option A is wrong because equal error rates across groups refer to equalized odds (equal false positive and false negative rates), not equal positive prediction rates. Option C is wrong because equal accuracy across groups is a different fairness metric (accuracy parity) that does not guarantee equal positive prediction rates. Option D is wrong because model interpretability is a separate concern about understanding model decisions, not a fairness constraint on prediction rates.

243
MCQeasy

A company is deploying an AI-based document summarization tool that processes confidential internal reports. The security policy requires that the AI system must not retain any information from the documents after generating the summary. Which measure should be implemented to meet this requirement?

A.Enable stateless inference so no data is stored
B.Implement role-based access control for the AI tool
C.Encrypt the documents at rest and in transit
D.Use a private cloud instance for the AI service
AnswerA

Stateless inference ensures that the model processes each request independently without retaining any memory of the input. After generating the summary, the input data is discarded, and no information is persisted. This directly satisfies the requirement that the AI system must not retain any information from the documents, as there is no storage or logging of the content.

Why this answer

Stateless inference ensures that each request is processed independently without storing any data from the input. This directly prevents the AI system from retaining information, which is the core requirement. Other measures like encryption or access control protect data but do not address retention.

Exam trap

The trap here is equating data protection measures like encryption with data retention prevention, which are different security objectives.

244
MCQmedium

A team is designing a secure API for an AI model. They want to prevent data leakage through overly detailed error messages. Which principle should they follow?

A.Return detailed error codes for debugging
B.Use generic error messages
C.Log errors to the client side
D.Disable all error messages
AnswerB

Generic error messages return only high-level failure codes, withholding stack traces, query fragments and internal paths that verbose errors expose. This satisfies the stem's constraint of preventing data leakage through API error responses, since attackers cannot harvest implementation details from diagnostic output.

Why this answer

Least-privilege API access and minimal error information reduce the attack surface. Specifically, returning generic error messages prevents leaking internal details.

245
MCQmedium

A retail bank operates a real-time AI service that approves or declines card transactions in under 100 ms. During a marketing campaign, transaction volume triples and the inference service's p99 latency rises to 1.4 seconds, causing checkout timeouts. The model is unchanged and CPU utilization on the inference nodes is only 35%. Which action BEST addresses the latency increase while preserving the sub-100 ms requirement?

A.Move the model to a larger instance type with more vCPUs and memory per replica.
B.Increase the inference batch size so the service processes more transactions per request.
C.Enable autoscaling of the inference replicas based on request concurrency or queue depth.
D.Retrain the fraud model on the campaign-period transaction data and redeploy it.
AnswerC

Low CPU utilization combined with high p99 latency indicates requests are queueing rather than computing, so scaling out replicas reduces the queue and restores the sub-100 ms target. Scaling on concurrency or queue depth reacts to the actual saturation signal, unlike CPU-based scaling that would remain idle at 35% and never trigger during the campaign traffic spike.

Why this answer

High p99 latency with low CPU utilization is the classic signature of request queueing, not compute saturation. Scaling the number of inference replicas based on concurrency or queue depth increases parallel capacity so requests are served promptly, restoring the sub-100 ms SLA. Neither retraining, bigger instances, nor batching addresses the queueing root cause, and batching would actually increase per-request latency.

Exam trap

The trap here is assuming that low CPU utilization means the service is healthy and that latency must be a model-quality problem rather than a queueing capacity problem.

246
MCQeasy

A hospital's AI triage assistant occasionally returns confident but incorrect recommendations when it encounters patient records with missing lab values. The clinical team wants the system to avoid acting on unreliable inputs until a human reviews them. Which operational control best addresses this need?

A.Increase the model's temperature setting to make its outputs more varied and less overconfident.
B.Implement an input validation and confidence threshold gate that routes low-confidence or incomplete records to a human reviewer.
C.Retrain the model on a larger dataset that includes more examples with missing lab values.
D.Add a dashboard that displays model accuracy metrics to the clinical staff in real time.
AnswerB

A validation and confidence gate directly targets the failure mode by detecting incomplete inputs and low-confidence outputs, then escalating them for human review. This preserves safety while allowing the system to handle well-formed cases automatically. It is a standard human-in-the-loop control for high-stakes AI operations.

Why this answer

The safest operational response to confident but incorrect outputs on incomplete inputs is a gate that validates inputs and checks confidence, then escalates uncertain cases to a human. This prevents automated action on unreliable data. Temperature changes, retraining, and dashboards do not block individual unsafe recommendations in real time.

Exam trap

The trap here is treating aggregate monitoring or retraining as if it were a real-time safeguard for individual high-risk decisions.

247
MCQeasy

Which stage of the AI project lifecycle involves splitting data into training, validation, and test sets?

A.Model evaluation
B.Data acquisition
C.Problem definition
D.Data preparation
AnswerD

Data preparation is the lifecycle stage where raw data is cleaned, transformed, and partitioned into training, validation, and test sets, satisfying the requirement to separate data before model training begins. This splitting prevents data leakage and enables unbiased evaluation, making it the stage that directly addresses the question's constraint.

Why this answer

Data preparation is the stage where raw data is cleaned, transformed, and split into training, validation, and test sets. This split is a core part of preparing data for model training — the training set teaches the model, the validation set tunes hyperparameters, and the test set provides an unbiased final evaluation. It occurs before model training and evaluation, making data preparation the correct stage.

Exam trap

The trap is choosing model evaluation because splitting sounds like an evaluation activity — but the split is performed during data preparation, and evaluation merely consumes the already-split test set.

How to eliminate wrong answers

Option A is wrong because model evaluation is the stage where the trained model is assessed on the test set — the split has already happened by then, so evaluation is downstream of the split. Option B is wrong because data acquisition is about collecting and ingesting raw data from sources; splitting happens after cleaning and transformation, not during acquisition. Option C is wrong because problem definition is the very first stage where business goals and success metrics are established — no data is touched yet, so no splitting occurs.

248
Multi-Selecthard

A retail analytics team is choosing a vector database to power semantic search over millions of product descriptions and support retrieval-augmented generation. The team must keep infrastructure costs predictable and needs fast approximate nearest neighbor queries as the index grows. Which TWO characteristics of approximate nearest neighbor indexing should the team evaluate when selecting the vector database? (Choose two.)

Select 2 answers
A.The recall-versus-latency tradeoff controlled by index search parameters
B.Whether the database enforces ACID transactions across all vector writes
C.Whether the database can generate the embeddings from raw text itself
D.The ability to store product descriptions as fixed-width CHAR columns
E.The memory footprint required to hold the index resident for fast queries
AnswersA, E

ANN indexes such as HNSW expose search-time parameters, for example efSearch, that trade recall against query latency. At millions of vectors, raising the parameter improves the chance of returning true nearest neighbors but increases per-query work and cost. The team must measure this curve on its own data to pick a setting that meets both relevance expectations and predictable infrastructure spend.

Why this answer

ANN indexes are evaluated mainly on the recall-versus-latency curve and on how much memory the index needs to stay resident. Those two factors determine whether semantic search returns relevant products quickly and whether the monthly infrastructure bill stays predictable as the catalog grows. The other listed traits concern transaction semantics, column typing, or embedding generation, none of which govern ANN index performance.

Exam trap

The trap here is conflating database conveniences such as ACID guarantees or built-in embedding with the index characteristics that actually control ANN recall, latency, and memory cost.

249
MCQeasy

A data scientist is building a model to predict whether a credit card transaction is fraudulent, using labeled historical data. Which machine learning paradigm is being used?

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

Supervised learning trains on labelled historical data, mapping inputs to known outputs. Fraud detection uses labelled transactions marked fraudulent or legitimate, so the model learns the mapping between transaction features and the fraud label, matching this paradigm exactly.

Why this answer

Supervised learning uses labeled historical data to train a model that predicts a target variable. Here, the credit card transactions are labeled as fraudulent or not, so the model learns from these labels to classify new transactions.

Exam trap

The trap is confusing supervised learning with semi-supervised or self-supervised learning; candidates may pick self-supervised because it also uses labels, but self-supervised generates labels from the data, whereas here labels are given.

How to eliminate wrong answers

Option A is wrong because reinforcement learning involves an agent learning from rewards and penalties through interaction with an environment, not from labeled historical data. Option B is wrong because unsupervised learning deals with unlabeled data, finding patterns or clusters without predefined labels. Option D is wrong because self-supervised learning generates labels from the data itself (e.g., predicting masked words), but here the labels are explicitly provided.

250
MCQhard

A company is implementing a retrieval-augmented generation (RAG) pipeline using a vector database. They notice that the retrieved documents often lack relevance to the query. Which adjustment would MOST improve retrieval quality?

A.Use a better embedding model fine-tuned on domain-specific data
B.Increase the chunk size of documents
C.Switch from cosine similarity to Euclidean distance
D.Reduce the number of retrieved documents from 5 to 3
AnswerA

Embedding quality determines vector similarity, so a domain-tuned model maps queries and documents into a space where relevant passages score higher. This directly addresses the relevance constraint in the stem, unlike prompt or chunking tweaks.

Why this answer

Retrieval quality in a RAG pipeline is fundamentally determined by the semantic alignment between query embeddings and document embeddings. A domain-specific fine-tuned embedding model captures the unique terminology, context, and relationships within the company's data, producing vector representations that are far more relevant than those from a generic model. This directly improves the similarity search results in the vector database, leading to higher-quality retrieved documents.

Exam trap

A common mistake is to focus on tuning retrieval parameters (chunk size, distance metric, or k-value) rather than improving the embedding model itself, which is the primary driver of semantic relevance in a RAG pipeline.

How to eliminate wrong answers

Option B is wrong because increasing chunk size can reduce granularity and introduce noise, potentially lowering retrieval precision by mixing irrelevant content with relevant passages. Option C is wrong because cosine similarity and Euclidean distance are both valid distance metrics; switching between them does not inherently improve relevance unless the embedding space is normalized, and cosine similarity is typically preferred for high-dimensional semantic embeddings. Option D is wrong because reducing the number of retrieved documents from 5 to 3 may increase precision but at the cost of recall, and does not address the root cause of poor relevance—the quality of the embeddings themselves.

251
MCQhard

A large e-commerce company uses a recommendation engine trained on millions of user interactions. Recently, the marketing team noticed a sharp increase in click-through rates for a particular product category. Upon investigation, an engineer found that a competitor had injected fake user profiles that consistently clicked on their products, skewing the training data. The company needs to remediate the attack and prevent future occurrences. The team has limited time and budget. Which course of action should the company take first?

A.Identify and remove the fake user profiles from the training dataset, then retrain the model
B.Implement adversarial training to make the model robust to future poisoning attempts
C.Decrease the frequency of model retraining to limit exposure to new data
D.Add differential privacy noise to the training data to mask the injected profiles
AnswerA

Data poisoning is remediated at its source: the injected fake profiles corrupt the training distribution, so removing them and retraining restores the model's integrity. This addresses the stem's constraint of limited time and budget, since it is a targeted dataset cleanse rather than a costly architectural overhaul or ongoing monitoring programme.

Why this answer

The immediate priority is to remove the poisoned data from the training set and retrain the model, as the fake profiles are actively skewing predictions and causing incorrect click-through rate spikes. This direct remediation addresses the root cause with minimal time and budget, aligning with the team's constraints. Without cleaning the data, any further training or defensive measures would still operate on corrupted inputs.

Exam trap

The AI0-001 exam often tests the principle that immediate incident response (clean and retrain) must precede long-term defenses, tempting candidates to choose sophisticated solutions like adversarial training or differential privacy that are premature without first removing the poisoned data.

How to eliminate wrong answers

Option B is wrong because adversarial training is a proactive defense that makes models robust to future attacks, but it does not remove existing poisoned data; the current model is already compromised and needs immediate cleanup first. Option C is wrong because decreasing retraining frequency would actually prolong exposure to the poisoned data, allowing the attack to continue influencing recommendations for longer. Option D is wrong because differential privacy adds noise to protect individual privacy, not to correct injected profiles; it would not remove the fake clicks and could degrade model accuracy without addressing the attack.

252
MCQmedium

A city government uses an AI system to allocate limited social services resources. To ensure fairness, they want to implement human oversight for high-stakes decisions. Which mechanism allows a human to review and potentially override the AI's decision before it is executed?

A.Human-on-the-loop
B.Human-in-command
C.Human-in-the-loop
D.Automated decision-making without human intervention
AnswerC

Human-in-the-loop places a person in the decision path before execution, allowing review and override of the AI's output. This satisfies the fairness requirement for high-stakes social services allocations, where automated decisions carry significant consequences for individuals.

Why this answer

Human-in-the-loop (HITL) is the correct mechanism because it requires a human to review and approve or reject the AI's decision before it is executed. This ensures that for high-stakes decisions, such as allocating limited social services, a human can intervene to prevent unfair or erroneous outcomes, directly addressing the fairness requirement.

Exam trap

In the CompTIA AI exam, candidates often confuse 'Human-in-the-loop' (human must review and approve before action) with 'Human-on-the-loop' (human monitors but action proceeds automatically unless overridden). This question requires pre-execution human review, so HITL is correct.

How to eliminate wrong answers

Option A is wrong because 'Human-on-the-loop' refers to a system where a human monitors AI decisions and can intervene during execution, but the decision is typically executed automatically unless the human steps in—this does not guarantee pre-execution review. Option B is wrong because 'Human-in-command' is a broader concept where a human has overall control and responsibility for the system's operation, but it does not specify a mandatory review step before each high-stakes decision is executed. Option D is wrong because 'Automated decision-making without human intervention' explicitly removes human oversight, which contradicts the requirement to implement human oversight for fairness.

253
MCQhard

An AI system is being developed to diagnose diseases from medical images. The model achieves 99% accuracy on the test set, but when deployed in a different hospital, performance drops significantly. Which of the following is the MOST likely cause?

A.The model is being attacked by adversarial examples.
B.The training data does not represent the new hospital's population or imaging equipment.
C.The model is overfitted to the training data.
D.Data leakage occurred during preprocessing.
AnswerB

Distribution shift explains the drop: the model learned patterns tied to the original hospital's patient demographics and scanner characteristics, so features generalise poorly to different equipment and populations. This directly satisfies the stem's cross-hospital deployment constraint, where 99% test accuracy reflects only in-distribution performance.

Why this answer

The model's high accuracy on the test set but poor performance in a different hospital indicates a distribution shift between the training data and the deployment environment. This is a classic case of dataset shift, where the training data does not represent the new hospital's patient population or imaging equipment, leading to degraded model generalization.

Exam trap

CompTIA often tests the distinction between overfitting and dataset shift, where candidates mistakenly attribute a deployment performance drop to overfitting even when test accuracy is high, missing the real issue of distribution mismatch.

How to eliminate wrong answers

Option A is wrong because adversarial examples are deliberately crafted inputs designed to fool a model, but the scenario describes a general performance drop across all images, not targeted attacks. Option C is wrong because overfitting would cause poor performance on the test set as well, not just on deployment; here the test accuracy is high, ruling out overfitting. Option D is wrong because data leakage would inflate test accuracy artificially, but the drop in deployment is due to distribution mismatch, not leakage during preprocessing.

254
MCQhard

An AI system for autonomous vehicles uses reinforcement learning (RL) to navigate. The reward function encourages reaching the destination quickly but penalizes collisions heavily. The agent learns to drive aggressively, causing minor accidents. Which modification to the reward function would best align the agent's behavior with desired safe driving?

A.Increase the collision penalty to a very large negative value.
B.Remove the time-based reward and only reward reaching the destination.
C.Use a potential-based reward shaping to encourage progress toward destination.
D.Add a penalty term for high acceleration and jerky movements.
AnswerD

Penalizing aggressive actions directly encourages smooth driving.

Why this answer

Adding a penalty for high acceleration and jerky movements directly addresses the root cause of the aggressive driving behavior—smoothness and safety—without undermining the primary goal of reaching the destination. This modification shapes the reward function to penalize unsafe driving patterns, aligning the agent's learned policy with desired safe navigation while preserving the time-based incentive for efficiency.

Exam trap

CompTIA often tests the misconception that simply increasing the penalty for collisions (option A) is sufficient to ensure safe driving, when in reality it can lead to reward hacking or overly conservative policies, and the correct solution requires shaping the reward to penalize the specific unsafe behaviors (e.g., high acceleration) that cause accidents.

How to eliminate wrong answers

Option A is wrong because simply increasing the collision penalty to a very large negative value may cause the agent to become overly cautious, potentially leading to freezing behavior or failure to navigate effectively, and does not address the underlying aggressive driving patterns that cause minor accidents. Option B is wrong because removing the time-based reward eliminates the incentive for efficiency, which could result in the agent taking excessively long routes or failing to prioritize timely arrival, thus not aligning with the desired safe driving behavior. Option C is wrong because potential-based reward shaping encourages progress toward the destination but does not penalize aggressive maneuvers; it may still allow the agent to drive aggressively as long as it makes progress, failing to mitigate the unsafe driving patterns.

255
MCQmedium

A developer is building an AI agent that needs to call external APIs (e.g., get weather, send email) based on user requests. Which pattern is BEST for enabling the agent to autonomously decide when to call these APIs?

A.Hard-code the API calls in the agent's logic
B.Use a chain-of-thought prompt to reason about the steps
C.Implement function calling in the LLM to generate structured API calls
D.Use a planning agent with a predefined workflow
AnswerC

Function calling lets the LLM emit structured JSON arguments naming which API to invoke and with what parameters, so the agent itself decides when a call is needed rather than following hard-coded logic. This directly satisfies the stem's autonomy requirement, since tool selection happens at inference time based on the user's request.

Why this answer

Function calling in the LLM allows the model to generate structured API calls (e.g., JSON) based on user requests, enabling the agent to autonomously decide when and which API to call. This pattern is best because it leverages the LLM's reasoning to select appropriate functions and parameters, integrating seamlessly with external systems.

Exam trap

AI0-001 often tests the distinction between reasoning techniques (like chain-of-thought) and action mechanisms (like function calling), and candidates may incorrectly choose planning agents or hard-coded logic as the best pattern for autonomous API calls.

How to eliminate wrong answers

Option A is wrong because hard-coding API calls lacks flexibility and does not allow the agent to autonomously decide based on user input. Option B is wrong because chain-of-thought prompting only reasons about steps but does not produce executable API calls; it's a reasoning technique, not an action mechanism. Option D is wrong because a planning agent with a predefined workflow restricts autonomy to a fixed sequence, not dynamic decision-making based on user requests.

256
MCQeasy

A team is implementing a machine learning pipeline to classify images for a defect detection system. They are considering using a pre-trained convolutional neural network (CNN) and fine-tuning it on their small dataset. What is the primary advantage of transfer learning in this scenario?

A.It ensures the model is not biased toward the original dataset
B.It eliminates the need for data preprocessing
C.It allows the model to leverage learned features from a large dataset, reducing training time and required data
D.It reduces the risk of overfitting by using a larger model
AnswerC

Fine-tuning reuses convolutional filters already trained on millions of images, so the small defect dataset only needs to adjust higher layers. This cuts training time and data volume while retaining robust feature extraction, directly addressing the small-dataset constraint in the stem.

Why this answer

Transfer learning allows the team to start with a pre-trained CNN (e.g., trained on ImageNet) that has already learned general features like edges, textures, and shapes from a massive dataset. By fine-tuning only the later layers on their small defect dataset, they dramatically reduce training time and the amount of labeled data needed, while still achieving high accuracy.

Exam trap

The trap here is that candidates may think transfer learning eliminates all bias or preprocessing needs (options A and B), or mistakenly believe a larger model inherently reduces overfitting (option D), when in fact the core benefit is leveraging pre-learned features to reduce data and training time.

How to eliminate wrong answers

Option A is wrong because transfer learning does not eliminate bias from the original dataset; in fact, it intentionally leverages that bias (learned features) as a starting point, and fine-tuning may still carry some original dataset bias. Option B is wrong because transfer learning does not eliminate the need for data preprocessing; images must still be resized, normalized, and augmented to match the pre-trained model's input requirements. Option D is wrong because using a larger model (e.g., deeper CNN) actually increases the risk of overfitting on a small dataset, not reduces it; transfer learning mitigates overfitting by providing a strong feature initialization, not by using a larger model.

257
Multi-Selectmedium

A team is deploying an AI model for credit approval. Which TWO ethical considerations must be addressed?

Select 2 answers
A.Training speed
B.Model interpretability
C.Model accuracy
D.Model fairness to avoid bias
E.Model size
AnswersB, D

Correct; interpretability helps ensure transparency and accountability.

Why this answer

Model interpretability (B) is essential for credit approval because financial decisions must be explainable to regulators and customers under laws like GDPR or ECOA. A black-box model that cannot justify why a loan was denied violates compliance requirements, making interpretability a core ethical and legal necessity.

Exam trap

CompTIA often tests the distinction between ethical requirements (interpretability, fairness) and technical performance metrics (accuracy, speed, size), leading candidates to mistakenly select accuracy as an ethical consideration.

258
MCQhard

A financial institution deploys an AI credit scoring model. After six months, the model's performance drops significantly. Analysis shows that the relationship between features and labels has changed. Which term describes this phenomenon?

A.Concept drift
B.Model decay
C.Overfitting
D.Data drift
AnswerA

Concept drift describes the statistical properties of the target variable changing over time, so the relationship between input features and labels no longer matches what the model learned. The six-month performance drop caused by altered feature-label relationships is precisely this phenomenon.

Why this answer

Concept drift occurs when the statistical relationship between input features and the target label changes over time, which is exactly what happened when the credit scoring model's performance dropped due to a shift in the feature-label relationship. This is distinct from data drift, which only involves changes in the input data distribution without affecting the label mapping.

Exam trap

CompTIA often tests the distinction between concept drift and data drift, and the trap here is that candidates confuse a change in input data distribution (data drift) with a change in the underlying relationship between features and labels (concept drift), leading them to incorrectly select data drift.

How to eliminate wrong answers

Option B (Model decay) is wrong because model decay is a general term for performance degradation over time, but it does not specifically describe a change in the feature-label relationship; it could be caused by data drift, concept drift, or other factors. Option C (Overfitting) is wrong because overfitting refers to a model learning noise or specific patterns in the training data that do not generalize, not a post-deployment shift in the underlying relationship. Option D (Data drift) is wrong because data drift only describes changes in the distribution of input features (e.g., customer income shifts), not a change in the mapping from features to the target label (e.g., what constitutes a good credit risk).

259
MCQeasy

Refer to the exhibit. A security auditor identifies a critical vulnerability that could allow an attacker to manipulate model inputs to cause misclassification. Which configuration setting is most directly responsible for this vulnerability?

A.enable_input_sanitization = true
B.audit_level = basic
C.enable_adversarial_defense = false
D.pii_detection = enabled
AnswerC

Disabling adversarial defence removes the input-perturbation filtering that detects and sanitises crafted samples before inference, so manipulated inputs reach the model unchecked and cause misclassification. This setting directly governs the vulnerability the auditor identified, whereas other options address access control or data handling rather than input integrity.

Why this answer

The vulnerability described is an adversarial attack on model inputs, which directly exploits the absence of adversarial defenses. Setting `enable_adversarial_defense = false` disables mechanisms like adversarial training or input perturbation detection that prevent misclassification from manipulated inputs. This configuration is the most direct root cause because it explicitly turns off the defense designed to counter such attacks.

Exam trap

The AI0-001 exam often tests the distinction between input sanitization (which handles malformed or malicious data) and adversarial defense (which specifically counters perturbation-based attacks), causing candidates to mistakenly choose input sanitization as the answer.

How to eliminate wrong answers

Option A is wrong because `enable_input_sanitization = true` would actually help prevent input manipulation by cleaning or validating inputs, so enabling it reduces vulnerability, not causes it. Option B is wrong because `audit_level = basic` controls the granularity of logging and monitoring, not the security posture against adversarial inputs; it affects visibility, not defense. Option D is wrong because `pii_detection = enabled` focuses on identifying personally identifiable information for compliance, not on defending against adversarial perturbations that cause misclassification.

260
MCQeasy

A retail company wants to build a model to predict customer churn based on purchase history and demographics. The dataset includes categorical features like region and gender, and numerical features like total spend. What is the best initial step before training the model?

A.Train a deep neural network directly on raw data
B.One-hot encode categorical variables and normalize numerical variables
C.Remove all categorical features to simplify the model
D.Perform principal component analysis (PCA) on all features
AnswerB

Categorical variables such as region and gender must be converted to numeric form via one-hot encoding, while numerical variables like total spend need normalising so scales align. This preprocessing satisfies the stem's mixed-feature constraint before any model training begins.

Why this answer

Categorical features like region and gender must be converted to numeric form via one-hot encoding (or similar) because most ML algorithms cannot consume raw strings. Numerical features like total spend should be normalized (e.g., min-max or z-score) so that features on different scales contribute equally during training. This preprocessing step is the correct initial action before model training.

Exam trap

AI0-001 often tests whether candidates jump to model architecture (deep neural nets) or dimensionality reduction (PCA) before addressing the fundamental preprocessing requirement of encoding categoricals and scaling numerics.

How to eliminate wrong answers

Option A is wrong because training a deep neural network directly on raw categorical strings will fail — the model cannot interpret non-numeric inputs without encoding. Option C is wrong because removing categorical features discards potentially predictive signal (region and gender may correlate with churn) and is not a best practice. Option D is wrong because PCA is a dimensionality-reduction technique applied after encoding and scaling, not a first step, and it can hurt interpretability for tabular churn models.

261
MCQhard

A generative AI model produces images from text prompts. The outputs are often blurry and lack fine details. Which model type is MOST likely being used, and which improvement would best address this issue?

A.Variational Autoencoder (VAE); switch to a diffusion model
B.Variational Autoencoder (VAE); switch to a Generative Adversarial Network (GAN)
C.Generative Adversarial Network (GAN); increase the discriminator's capacity
D.Diffusion model; use a larger batch size during training
AnswerA

Variational autoencoders optimise a variational lower bound with a Gaussian latent prior, which averages reconstructions and yields inherently blurry, low-detail images. Diffusion models instead learn to denoise iteratively, capturing high-frequency detail, so switching directly satisfies the stem's demand for sharper outputs.

Why this answer

Variational Autoencoders (VAEs) are known for producing blurry outputs because their loss function (ELBO) encourages pixel-wise averaging, which smooths out fine details. Diffusion models, by contrast, iteratively denoise a random field, learning to reconstruct high-frequency details through a multi-step reverse process, directly addressing the blurriness issue.

Exam trap

The AI0-001 exam often tests the misconception that GANs are always the best for sharp images, but the trap here is that the question specifically describes blurry outputs—a hallmark of VAEs—and the best modern improvement is a diffusion model, not a GAN.

How to eliminate wrong answers

Option B is wrong because switching from a VAE to a GAN would improve sharpness but GANs are prone to mode collapse and training instability, making diffusion models a more robust and state-of-the-art choice for fine detail generation. Option C is wrong because GANs already produce sharp images; increasing discriminator capacity would not fix blurriness (which is a VAE characteristic) and could worsen training instability. Option D is wrong because diffusion models do not inherently produce blurry outputs; using a larger batch size during training improves gradient stability but does not address a blurriness problem that is not characteristic of diffusion models.

262
Multi-Selecthard

An ML operations team needs to monitor a deployed model's performance. Which TWO metrics are most useful for detecting concept drift in a regression model? (Choose two.)

Select 2 answers
A.Distribution of input features
B.Distribution of residuals between predictions and actuals
C.Classification accuracy
D.Model inference latency
E.Mean absolute error (MAE) over a sliding time window
AnswersB, E

Residual distributions reveal concept drift because changing feature-label relationships alter the error pattern, not merely its magnitude. Tracking how residuals shift over time exposes degradation that aggregate accuracy scores can mask, making it a direct signal of drift in regression models.

Why this answer

Option B is correct because the distribution of residuals between predictions and actuals directly reveals concept drift: if the relationship between inputs and target changes, the residual distribution will shift (e.g., become biased or wider) even when input features look unchanged. Option E is correct because tracking MAE over a sliding time window is a standard regression performance monitor; a sustained increase in MAE relative to a baseline indicates that the model's learned mapping no longer matches the current data-generating process, which is the practical signature of concept drift. Option A is not the best choice here because input feature distribution shifts indicate data drift (covariate shift), not concept drift, and inputs can drift without the input-target relationship changing.

Option C is wrong because classification accuracy applies to classification models, not regression. Option D is wrong because inference latency is an operational/system metric and says nothing about changes in the input-target relationship.

Exam trap

CompTIA often tests the distinction between covariate drift and concept drift, trapping candidates who think monitoring input features is sufficient for detecting all types of model degradation.

263
Multi-Selecthard

Which THREE components are essential for implementing a successful MLOps pipeline for a continuously deployed AI system?

Select 3 answers
A.Manual approval gates for each deployment
B.Canary deployment strategy
C.Model registry for version control and metadata management
D.Automated testing and validation of models and pipelines
E.Data and model versioning
AnswersC, D, E

A model registry stores versioned model artefacts with metadata, lineage and stage transitions, enabling reproducible promotion and rollback. This satisfies the continuously deployed pipeline's need to track which model version serves production, a requirement distinct from source-code versioning alone.

Why this answer

Option C is correct because a model registry provides centralized version control, lineage tracking, and metadata management (e.g., MLflow Model Registry, SageMaker Model Registry), which are essential for reproducible and auditable continuous deployments. Option D is correct because automated testing and validation of models and pipelines (unit tests, data validation, model performance checks, integration tests) are required to catch regressions before promotion in a CI/CD pipeline. Option E is correct because data and model versioning ensures that each deployed artifact can be traced back to the exact training data and model revision, enabling reproducibility and rollback.

Option A is not essential because manual approval gates contradict the goal of continuous deployment and slow delivery; automation replaces them. Option B is not essential because canary deployment is a useful release technique but not a required component of every MLOps pipeline.

Exam trap

CompTIA often tests the distinction between operational strategies (like canary deployments) and foundational pipeline components (like versioning and registries), leading candidates to confuse deployment tactics with essential infrastructure.

264
MCQmedium

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

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

RAG retrieves relevant passages from the vector store at query time and supplies them to the model as context, so monthly document updates only require re-indexing, not retraining. This satisfies the constraint that the team cannot afford to retrain a model each time.

Why this answer

Retrieval-Augmented Generation (RAG) is the most appropriate approach because it allows the chatbot to answer questions based on the latest policy documents without retraining the model. By indexing the documents in a vector store and retrieving relevant chunks at query time, RAG provides up-to-date, contextually accurate answers while keeping the underlying LLM static, which avoids the cost and complexity of monthly retraining.

Exam trap

CompTIA often tests the misconception that a larger context window or fine-tuning is the only way to handle dynamic data, when in fact RAG is the scalable, cost-effective solution for frequently updated knowledge bases without retraining.

How to eliminate wrong answers

Option A is wrong because pasting all policy documents into each prompt would quickly exceed the model's context window (even with larger models, context windows are finite and costly), leading to truncated inputs, degraded performance, and high token costs. Option C is wrong because fine-tuning a base LLM monthly on the policy documents is expensive, time-consuming, and requires storing and managing multiple model versions, which directly contradicts the requirement to avoid retraining. Option D is wrong because training a custom model from scratch each month is prohibitively expensive, requires vast amounts of data and compute resources, and is entirely unnecessary for a task that only needs to retrieve and synthesize existing information.

265
MCQeasy

Which privacy-preserving technique allows a model to be trained across decentralized data sources without the raw data ever leaving each source?

A.Homomorphic encryption
B.Secure multi-party computation
C.Differential privacy
D.Federated learning
AnswerD

Federated learning trains a shared model by exchanging only parameter updates, such as gradients or weights, between decentralised devices and a coordinating server. Raw records remain on each source, satisfying the stem's constraint that data never leaves its origin. This differs from differential privacy, which adds noise, and homomorphic encryption, which computes on ciphertext.

Why this answer

Federated learning trains models locally on each device or server and only shares model updates, preserving data locality.

266
MCQmedium

An organization wants to automate the detection of defective products on an assembly line using computer vision. They have a limited number of labeled images for defective items. Which approach would be most effective?

A.Use a support vector machine with handcrafted features
B.Train a convolutional neural network from scratch on the limited data
C.Synthesize additional defective images using GANs
D.Use transfer learning with a pre-trained model like ResNet and fine-tune on the defect data
AnswerD

Transfer learning reuses features learned from large datasets like ImageNet, so a pre-trained ResNet needs only a small labelled defect set for fine-tuning. This directly addresses the limited labelled images constraint, unlike training from scratch which would overfit.

Why this answer

Transfer learning with a pre-trained model like ResNet is most effective because it leverages features learned from large datasets (e.g., ImageNet) and adapts them to the defect detection task with limited labeled data. Fine-tuning only the later layers preserves general visual features while specializing for defect classification, avoiding overfitting that would occur with a small dataset.

Exam trap

CompTIA often tests the misconception that more data (via GANs) is always better, or that starting from scratch is necessary for a new task, when in reality transfer learning is the standard solution for small datasets in computer vision.

How to eliminate wrong answers

Option A is wrong because handcrafted features with SVM require domain expertise to design and often fail to capture the complex, high-dimensional patterns in defect images, leading to poor generalization. Option B is wrong because training a CNN from scratch on limited data causes severe overfitting, as deep networks have millions of parameters that cannot be reliably learned from a small sample. Option C is wrong because while GANs can synthesize images, generating realistic and diverse defective samples that accurately represent real defects is extremely difficult and may introduce artifacts, making the model unreliable for production.

267
MCQeasy

Based on the exhibit, which action is most likely to resolve the memory issue?

A.Add more training data.
B.Increase the learning rate.
C.Switch to a CPU.
D.Reduce the batch size.
AnswerD

Reducing batch size lowers peak activation memory because fewer samples are held simultaneously during the forward and backward passes. This directly addresses the memory exhaustion constraint shown in the exhibit without altering model architecture or precision.

Why this answer

The exhibit shows an out-of-memory (OOM) error during training. Reducing the batch size decreases the memory footprint per iteration, allowing the model to fit within available GPU memory. This directly resolves the memory issue without altering the model architecture or data.

Exam trap

CompTIA often tests the misconception that memory errors are solved by adding more data or changing hardware, when in fact the simplest and most common fix is adjusting the batch size to fit within available GPU memory.

How to eliminate wrong answers

Option A is wrong because adding more training data increases the dataset size, which does not reduce per-batch memory consumption and may even exacerbate memory pressure during data loading. Option B is wrong because increasing the learning rate affects convergence behavior and gradient magnitudes, not memory usage; it can cause instability or divergence but does not free GPU memory. Option C is wrong because switching to a CPU would typically use system RAM instead of GPU memory, but CPUs are far slower for deep learning training and do not resolve the underlying memory constraint—they just shift the bottleneck, often making training impractically slow.

268
MCQmedium

An MLOps team wants to deploy a trained PyTorch model to production with low latency inference. The model must be interoperable across different frameworks and runtimes. Which approach is BEST?

A.Deploy the native PyTorch model using TorchServe
B.Quantize the model to INT8 and deploy as a TensorFlow Lite model
C.Convert the model to TensorFlow SavedModel and deploy using TensorFlow Serving
D.Export the model to ONNX format and deploy using ONNX Runtime
AnswerD

ONNX provides a framework-agnostic serialisation format, so the exported graph runs identically under ONNX Runtime regardless of the original PyTorch training stack. This satisfies the interoperability constraint across frameworks and runtimes while ONNX Runtime's optimised execution kernels deliver the required low-latency inference.

Why this answer

ONNX (Open Neural Network Exchange) provides a standardized, framework-agnostic format that ensures interoperability across different runtimes and hardware accelerators. By exporting the PyTorch model to ONNX and deploying with ONNX Runtime, the team achieves low-latency inference through graph optimizations and hardware-specific execution providers, while avoiding vendor lock-in.

Exam trap

CompTIA often tests the misconception that framework-native serving (TorchServe, TensorFlow Serving) is the best path for low latency, ignoring the explicit requirement for cross-framework interoperability that ONNX uniquely satisfies.

How to eliminate wrong answers

Option A is wrong because deploying a native PyTorch model with TorchServe locks the inference into the PyTorch ecosystem, violating the requirement for interoperability across different frameworks and runtimes. Option B is wrong because quantizing to INT8 and deploying as a TensorFlow Lite model introduces unnecessary precision loss and framework conversion overhead, and TensorFlow Lite is primarily designed for mobile/edge devices, not general production low-latency serving. Option C is wrong because converting to TensorFlow SavedModel and using TensorFlow Serving ties the deployment to the TensorFlow stack, which does not satisfy the interoperability requirement and adds conversion complexity without the broad runtime support that ONNX provides.

269
MCQmedium

An organization wants to use a pre-trained language model from a third-party vendor. What is the most important security step before deployment?

A.Host the model on a public cloud
B.Vet the model for backdoors and malicious behavior
C.Apply differential privacy to the model
D.Fine-tune the model on internal data
AnswerB

Vetting the third-party model for backdoors and malicious behaviour directly addresses the supply-chain risk of importing externally trained weights, which can embed hidden triggers or biased outputs. Since the organisation controls neither training data nor pipeline, pre-deployment scanning and behavioural testing are the only safeguards satisfying the stem's security requirement.

Why this answer

Vetting a third-party pre-trained model for backdoors and malicious behavior is the most important security step before deployment because the model could contain hidden triggers or biases intentionally inserted by the vendor or a compromised supply chain. Without this vetting, the organization risks deploying a model that behaves maliciously under specific conditions.

Exam trap

The trap is focusing on privacy or performance measures (differential privacy, fine-tuning) instead of security vetting — candidates may think fine-tuning fixes everything, but it does not detect or remove intentional backdoors.

How to eliminate wrong answers

Option A is wrong because hosting the model on a public cloud is a deployment choice, not a security vetting step, and it does not address the risk of a compromised model. Option C is wrong because differential privacy is a technique for protecting training data privacy, not for detecting backdoors or malicious behavior in a pre-trained model. Option D is wrong because fine-tuning on internal data may improve performance but does not remove hidden backdoors and could even introduce new risks if the data is not properly curated.

270
MCQeasy

Which machine learning paradigm involves training an agent to make decisions by interacting with an environment and receiving rewards or penalties based on its actions?

A.Unsupervised learning
B.Reinforcement learning
C.Supervised learning
D.Self-supervised learning
AnswerB

Reinforcement learning trains an agent through trial-and-error interaction with an environment, using reward and penalty signals to shape a policy. This directly matches the stem's requirement for decisions driven by rewards or penalties, unlike supervised or unsupervised paradigms that learn from static labelled or unlabelled datasets.

Why this answer

Reinforcement learning (RL) is the correct paradigm because it explicitly involves an agent learning a policy through trial-and-error interactions with an environment, receiving scalar reward signals (positive or negative) to maximize cumulative reward. This matches the question's description of making decisions based on rewards or penalties, which is the defining characteristic of RL, as opposed to learning from labeled data or discovering hidden patterns without feedback.

Exam trap

CompTIA AI often tests the distinction between reinforcement learning and supervised learning by phrasing the question to emphasize 'rewards or penalties' — candidates mistakenly think supervised learning uses penalties (like loss functions) and confuse it with RL's delayed reward signals from an environment.

How to eliminate wrong answers

Option A is wrong because unsupervised learning discovers hidden patterns or structures in unlabeled data without any reward or penalty signals from an environment. Option C is wrong because supervised learning maps inputs to outputs using labeled training data, where the model receives direct error feedback (e.g., loss function) rather than delayed rewards from environmental interactions. Option D is wrong because self-supervised learning generates its own supervisory signal from the input data itself (e.g., predicting masked tokens) and does not involve an agent acting in an environment to receive rewards or penalties.

271
MCQeasy

An AI development team is building a system to detect fraudulent transactions. They want to ensure the model complies with regulations requiring that individuals can question automated decisions. Which governance element is most relevant?

A.Right to explanation
B.Model versioning
C.Differential privacy
D.Data minimization
AnswerA

The right to explanation gives individuals meaningful information about the logic and factors behind an automated decision, letting them question and contest outcomes. It directly satisfies the stem's regulatory requirement that people can challenge automated fraud determinations, unlike accuracy or latency governance elements.

Why this answer

The right to explanation is a governance principle that requires automated decision-making systems to provide individuals with meaningful information about how decisions are made. In the context of fraudulent transaction detection, this regulation ensures that a customer can question why a transaction was flagged, and the model must be able to provide an interpretable rationale. This directly aligns with the scenario's requirement for compliance with regulations allowing individuals to question automated decisions.

Exam trap

The trap here is that candidates often confuse governance principles like data minimization or differential privacy (which deal with data handling and privacy) with the specific regulatory requirement for transparency and contestability of automated decisions, which is the right to explanation.

How to eliminate wrong answers

Option B (Model versioning) is wrong because it refers to tracking and managing different iterations of a model for reproducibility and rollback, not to providing explanations to end-users about specific decisions. Option C (Differential privacy) is wrong because it is a technique for adding noise to data to protect individual privacy during training, not a mechanism for explaining or justifying individual automated decisions. Option D (Data minimization) is wrong because it is a principle of collecting only the necessary data for a task, which relates to privacy and storage, not to the transparency or contestability of automated decisions.

272
Multi-Selectmedium

A startup is designing an AI assistant that must handle a wide range of requests, including summarizing text, answering questions, and translating languages. The team is selecting a foundation model approach. Which two characteristics are typical of foundation models? (Choose two.)

Select 2 answers
A.They can be adapted through techniques such as fine-tuning, prompting, or retrieval augmentation
B.They are pretrained on broad, large-scale data and can be adapted to many downstream tasks
C.They require labeled data for every task before they can produce any useful output
D.They are purpose-built for a single narrow task and cannot be reused elsewhere
E.They store a permanent, unchangeable record of every user interaction in their parameters
AnswersA, B

Adaptation methods let one pretrained model serve varied needs without full retraining. Fine-tuning adjusts weights on domain data, prompting steers behavior with instructions, and retrieval augmentation supplies external context, all of which are standard ways to specialize a foundation model for new tasks.

Why this answer

Foundation models are pretrained on broad data and adapted to many tasks through fine-tuning, prompting, or retrieval augmentation, which is exactly what a multi-purpose assistant needs. They do not require task-specific labels before producing output, they are not single-task tools, and they do not permanently encode every interaction in their weights.

Exam trap

The trap here is treating a foundation model like a single-purpose classifier that needs labeled data for each task before it can function.

273
MCQmedium

A multinational bank operates AI models in several countries with different privacy laws. The governance team wants a single control that demonstrates accountability across all jurisdictions. Which approach is most effective?

A.Adopt a unified AI governance framework with region-specific controls.
B.Outsource all AI compliance to a third-party auditor.
C.Apply the strictest privacy law to all regions.
D.Let each country's team create its own AI policy.
AnswerA

A unified framework provides consistent principles, roles, and documentation, while region-specific controls address local legal requirements. This demonstrates accountability across jurisdictions by showing a coherent governance structure that adapts to local rules. It is more effective than fragmented policies because it enables oversight, auditing, and consistent risk management globally.

Why this answer

A unified AI governance framework with region-specific controls balances consistent principles with local legal compliance, which is the most effective way to demonstrate accountability across jurisdictions. Applying one law globally, decentralizing policy, or outsourcing compliance do not provide the same coherent, auditable structure.

Exam trap

The trap here is believing that accountability can be delegated or that one strict law can uniformly apply across all regions.

274
MCQhard

A company develops an AI model that recommends job candidates. The model inadvertently discriminates against a protected group. Which approach is most effective for mitigating this bias?

A.Remove the protected attribute from the training data
B.Use a fairness-aware machine learning algorithm
C.Analyze model predictions after deployment
D.Collect more training data from the protected group
AnswerB

Fairness-aware algorithms incorporate bias constraints or regularisation directly into the training objective, reducing disparate impact at the model level rather than masking it post hoc. This addresses the discriminatory outcome against a protected group, which pre-processing or threshold tweaks alone cannot reliably fix.

Why this answer

Fairness-aware machine learning algorithms explicitly incorporate fairness constraints or objectives during model training, directly addressing and mitigating bias against protected groups. Unlike simple removal of protected attributes, these algorithms can detect and correct for proxy discrimination and disparate impact, ensuring the model's recommendations are equitable by design.

Exam trap

CompTIA often tests the misconception that removing a protected attribute from training data is sufficient to eliminate bias, but the trap is that models can still discriminate through correlated proxy features, making fairness-aware algorithms necessary.

How to eliminate wrong answers

Option A is wrong because simply removing the protected attribute from training data does not eliminate bias; the model can still learn proxies for that attribute from correlated features (e.g., zip code correlating with race), leading to indirect discrimination. Option C is wrong because analyzing model predictions after deployment is a detection step, not a mitigation approach; it can identify bias but does not prevent or correct it in the model's behavior. Option D is wrong because collecting more training data from the protected group does not inherently address bias; it may even amplify existing disparities if the data collection process or underlying societal biases remain unchanged, and it does not adjust the model's learning process to ensure fairness.

275
MCQhard

A data scientist is building a machine learning model to predict employee attrition for an HR department. The model will be used to identify employees at risk of leaving and to suggest personalized retention offers. The company operates in the EU. Under the EU AI Act, which classification applies to this AI system?

A.It is a minimal-risk AI system because it only provides suggestions and does not make final decisions.
B.It is a prohibited AI system because it uses AI to infer emotions of employees.
C.It is a high-risk AI system because it is used in employment and workers management.
D.It is a limited-risk AI system and only requires transparency to employees about its use.
AnswerC

The EU AI Act classifies AI systems used in employment, workers management, and access to self-employment as high-risk. This includes systems for recruitment, promotion, termination, and task allocation. Predicting attrition and suggesting retention offers falls under HR management, so it is high-risk.

Why this answer

The EU AI Act explicitly classifies AI systems used in employment and workers management as high-risk. This includes systems that predict attrition and suggest retention strategies, as they can impact employees' careers and livelihoods. The system is not prohibited because it does not infer emotions, and it is not limited or minimal risk due to its HR application.

Exam trap

The trap here is assuming that AI systems that only provide recommendations or suggestions are not high-risk, but the EU AI Act focuses on the context of use, not the level of automation.

276
MCQeasy

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

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

Logistic regression produces coefficients that quantify each feature's contribution to the predicted readmission probability, satisfying the clinicians' interpretability constraint directly. Its AUC of 0.85 already meets performance expectations, so no trade-off or surrogate explainability tooling is needed.

Why this answer

Logistic regression is a linear model whose predictions are computed as a weighted sum of input features passed through a sigmoid function. The coefficients directly represent the log-odds change per unit increase in each feature, making the model inherently interpretable without any post-hoc explanation tools. Since the model already achieves an AUC of 0.85, which meets performance requirements, no architectural change is needed.

The data scientist should retain the logistic regression model and present the coefficients (and odds ratios) to clinicians to satisfy the interpretability requirement.

Exam trap

AI0-001 often tests the misconception that more complex models with post-hoc explanation tools (like SHAP or LIME) are necessary for interpretability, when in fact inherently interpretable models like logistic regression should be preferred when they meet performance requirements.

How to eliminate wrong answers

Option A is wrong because PCA transforms features into uncorrelated principal components that are linear combinations of the original variables, destroying the direct interpretability of coefficients in terms of original clinical features (e.g., 'age' or 'lab result X'). Option B is wrong because random forest, while offering feature importance plots, is a non-linear ensemble whose individual predictions are not directly interpretable; feature importance only shows global importance, not per-patient reasoning, and replacing logistic regression may not maintain the same AUC without extensive tuning. Option C is wrong because deep neural networks are highly non-linear and require post-hoc explanation methods like LIME or SHAP, which are approximations and may not provide the faithful, stable interpretability clinicians need; also, training a deep network on 10,000 records risks overfitting and may not improve performance.

277
MCQeasy

A hospital wants to run a patient-triage natural language model entirely inside its own data center because patient records cannot leave the premises. The IT team needs an inference serving component that exposes an HTTP endpoint, supports model versioning, and can be operated without a managed cloud service. Which technology should the team deploy?

A.A Jupyter notebook that loads the model and calls predict()
B.A managed cloud inference API from a public provider
C.A self-hosted model server such as NVIDIA Triton Inference Server
D.An object storage bucket holding the model weights
AnswerC

Triton Inference Server runs inside the hospital's own data center, exposes HTTP and gRPC inference endpoints, and supports multiple model versions with configurable version policies. It also works with models from several frameworks, so the triage model can be served without a managed cloud service. This satisfies data residency, endpoint, and versioning requirements simultaneously.

Why this answer

The hospital needs inference to stay on-premises while still offering an HTTP endpoint and model versioning. A self-hosted model server such as NVIDIA Triton Inference Server provides exactly that: it runs locally, exposes standard inference endpoints, and manages multiple model versions. Managed APIs, notebooks, and raw object storage each fail at least one of the stated constraints.

Exam trap

The trap here is treating model storage or an interactive notebook as a serving layer, when neither exposes a production HTTP inference endpoint with versioning.

278
MCQeasy

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

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

Before imputing, the scientist must understand whether missingness is random or systematic and how much data is affected, since this determines whether mean, median, or model-based imputation is valid. This diagnostic step precedes any imputation choice.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

279
MCQeasy

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

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

Regular bias audits measure outcomes across protected customer groups using fairness metrics, exposing disparate treatment before it harms applicants or breaches regulation. This ongoing monitoring gives the compliance officer evidence-based oversight, satisfying the governance requirement more directly than one-off reviews.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

280
MCQeasy

A startup is developing a voice assistant that runs on smart speakers with limited processing power and memory. The team wants to use a pre-trained speech recognition model but needs to reduce its size and latency. Which approach is most suitable?

A.Increase the model's precision to FP64 to improve accuracy.
B.Use the pre-trained model as-is and rely on the smart speaker's hardware acceleration.
C.Deploy the pre-trained model on a cloud server and stream audio for processing.
D.Use knowledge distillation to train a smaller student model from the pre-trained model.
AnswerD

Knowledge distillation transfers knowledge from a large teacher model to a smaller student model, reducing size and latency while maintaining accuracy. This is ideal for smart speakers with limited resources. The student model can be optimized for the specific task, making it a suitable approach for deployment on edge devices.

Why this answer

Knowledge distillation creates a smaller, faster model that retains much of the teacher's performance, making it ideal for edge devices with limited compute and memory. Cloud offloading, higher precision, or using the model unchanged do not address the constraints of size and latency on the smart speaker.

Exam trap

The trap here is assuming that hardware acceleration alone can make a large model run efficiently on a constrained device.

281
Multi-Selecteasy

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

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

Energy-efficient hardware reduces power consumption.

Why this answer

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

Exam trap

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

282
MCQeasy

A city transit agency wants an AI system to predict bus arrival times. The agency has three years of historical GPS traces, schedule data, and weather records, but no team experienced in building machine learning models. Leadership asks which engagement model will get a working predictor into operations fastest without permanently expanding headcount. Which approach BEST fits?

A.Use a managed AI platform service that ingests the historical data, trains a forecasting model, and exposes a prediction endpoint the agency can call.
B.Publish the raw GPS and weather datasets as open data and rely on external volunteers to build the predictor.
C.Hire a full in-house machine learning team and build a custom training pipeline from scratch on agency servers.
D.Deploy an off-the-shelf spreadsheet forecasting template and have dispatchers manually enter recent arrival times each morning.
AnswerA

A managed service provides the modeling expertise, infrastructure, and deployment path without requiring the agency to hire a data science team, and it can be operational quickly using the data already collected. The agency retains ownership of the operational integration while the vendor handles training and hosting. This matches the speed and headcount constraints precisely.

Why this answer

The agency's real constraints are speed to production and avoiding permanent headcount growth, not building proprietary modeling capability. A managed AI platform absorbs the training, tuning, and hosting work, turning existing historical data into a callable prediction endpoint. Building an internal team is slow and permanent, crowdsourcing has no delivery guarantee, and spreadsheet templates cannot handle the data volume or update frequency the service requires.

Exam trap

The trap here is equating a working AI capability with owning the model, when a managed service can deliver the operational outcome without in-house ML staff.

283
MCQhard

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

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

SageMaker distributed training libraries handle data and model parallelism across multiple GPU instances with minimal PyTorch code changes, directly addressing the GPU memory constraint. It satisfies the stem's requirement to scale beyond a single instance without rewriting the training script.

Why this answer

Amazon SageMaker with distributed training libraries provides built-in support for data and model parallelism across multiple GPUs and instances, requiring minimal code changes. It integrates with PyTorch and handles the orchestration of distributed training, making it the best choice for scaling training.

Exam trap

The trap is confusing infrastructure services (EFA, Batch, ParallelCluster) with managed machine learning services; candidates may pick EFA because it sounds like a networking solution for distributed training, but it lacks the high-level libraries.

How to eliminate wrong answers

Option A is wrong because AWS Elastic Fabric Adapter (EFA) is a network interface for high-performance computing, but it does not provide the distributed training libraries or orchestration; it is a lower-level networking solution. Option C is wrong because AWS Batch with GPU instances manages batch jobs but does not offer built-in distributed training libraries or seamless PyTorch integration for multi-GPU/multi-instance training. Option D is wrong because AWS ParallelCluster with Slurm is a cluster management tool that requires significant setup and code changes to implement distributed training, lacking the managed libraries of SageMaker.

284
MCQhard

A machine learning team is deploying a model that predicts loan default probabilities. The model outputs a probability score, and the team wants to convert it into a binary decision (default/no default). The costs of false positives and false negatives are not equal; a false negative (predicting no default when the customer defaults) is five times more costly than a false positive. Which approach best optimizes the decision threshold?

A.Set the threshold to 0.5 to balance false positives and false negatives equally.
B.Use the threshold that maximizes overall accuracy on the validation set.
C.Choose a threshold that minimizes the expected cost, weighting false negatives five times more than false positives.
D.Set the threshold to the prevalence of defaults in the training data.
AnswerC

The optimal threshold minimizes expected cost given the cost matrix. By weighting false negatives five times more, the threshold will be lowered to predict more defaults, reducing costly false negatives. This approach directly incorporates business costs and yields the most cost-effective decisions.

Why this answer

The optimal decision threshold minimizes expected cost, which requires weighting false negatives according to their higher cost. Lowering the threshold increases the number of predicted defaults, reducing expensive false negatives at the expense of more false positives. This cost-sensitive approach aligns model decisions with business objectives, unlike accuracy maximization or arbitrary thresholds.

Exam trap

The trap here is defaulting to 0.5 or accuracy-based thresholds, ignoring that the cost of a false negative is five times that of a false positive.

285
MCQhard

A government agency uses an AI system to prioritize emergency response calls. An auditor finds that the model's decisions cannot be explained to citizens. Which governance mechanism is most appropriate to address this?

A.Publish the model's full training dataset.
B.Replace the model with a simpler linear regression.
C.Add a disclaimer that decisions are final and not subject to review.
D.Implement a right-to-explanation process with model-agnostic explanation tools.
AnswerD

A right-to-explanation process gives affected individuals understandable reasons for automated decisions, satisfying due process and ethical governance. Model-agnostic tools such as LIME or SHAP can approximate feature contributions even for complex models. This directly addresses the auditor's finding by making decisions contestable and transparent without requiring a full model rebuild.

Why this answer

A right-to-explanation process with model-agnostic tools directly provides understandable reasons for automated decisions, which is the governance mechanism the auditor's finding requires. Replacing the model, publishing data, or disclaiming review do not satisfy the need for contestable, explainable decisions.

Exam trap

The trap here is assuming that explainability requires sacrificing model performance or that publishing data equals explaining decisions.

286
MCQeasy

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

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

Logistic regression estimates the probability of a binary outcome via a sigmoid function, outputting a class label for churn or no churn. This satisfies the stem's constraint of a binary target variable, unlike linear regression, which predicts continuous values.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

287
Multi-Selectmedium

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

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

Class weights scale the loss contribution of each class inversely to its frequency, so the 1% fraudulent examples penalise errors far more heavily. This shifts the decision boundary toward the minority class without altering the underlying 99:1 data distribution.

Why this answer

Option A is correct because assigning class weights in the loss function (e.g., class_weight='balanced' in scikit-learn or a weighted binary cross-entropy) penalizes misclassification of the 1% fraudulent class more heavily, directly countering the 99:1 imbalance during training. Option B is correct because SMOTE (Synthetic Minority Over-sampling Technique) generates synthetic minority-class samples by interpolating between existing fraudulent examples and their k-nearest neighbors, increasing minority representation and helping the model learn the fraudulent decision boundary. Option C is not selected because random undersampling discards potentially useful majority-class data and can increase variance, making it a less preferred technique here.

Option D is not selected because z-score normalization only rescales feature distributions and does nothing to address class imbalance. Option E is not selected because shuffling prevents ordering bias and train/test leakage but has no effect on the skewed class ratio.

Exam trap

The trap is confusing general data preprocessing steps (normalization, shuffling) with techniques specifically designed to handle class imbalance, leading candidates to select options that do not address the core issue.

288
MCQeasy

A retail company wants to ensure its AI-driven pricing algorithm does not discriminate against customers in protected groups. Which governance practice should be implemented first?

A.Increase the model's training data volume.
B.Deploy the model and monitor complaints.
C.Conduct a bias impact assessment before deployment.
D.Publish the algorithm's source code publicly.
AnswerC

A bias impact assessment is a proactive governance step that identifies and mitigates discriminatory effects before the model affects customers. It examines training data, features, and outcomes for disparate impact, aligning with ethical AI principles. Performing it first prevents harm and provides documentation for regulators, making it the foundational practice for fair pricing.

Why this answer

A bias impact assessment is the proactive governance practice that systematically evaluates whether the pricing algorithm disadvantages protected groups. It informs mitigation before deployment, whereas code publication, more data, or reactive monitoring do not directly prevent discriminatory outcomes.

Exam trap

The trap here is equating transparency or larger datasets with fairness, when the first required step is a structured bias assessment.

289
MCQmedium

A data engineer is designing a pipeline to ingest high-velocity clickstream events from a web application into a data lake. The events must be queryable within minutes of arrival, and the schema evolves frequently as new fields are added. Which storage approach best meets these requirements?

A.Batch load events every 24 hours into a data warehouse using a rigid ETL process with predefined transformations.
B.Store raw JSON files in an object storage bucket partitioned by date, and query them directly using a serverless SQL engine.
C.Load events into a relational database with a fixed schema, using ALTER TABLE to add columns as new fields appear.
D.Write events to a distributed message queue and retain them for 7 days, querying the queue directly for analytics.
AnswerB

This approach supports schema-on-read, allowing new fields to appear without rewriting existing data. Partitioning by date improves query performance and reduces scanned data. Serverless SQL engines can query JSON directly, enabling near-real-time analysis within minutes. It is cost-effective and scales with event volume, making it ideal for evolving clickstream data.

Why this answer

Storing raw JSON in object storage and querying with a serverless SQL engine provides schema-on-read flexibility and near-real-time access. It accommodates evolving schemas without costly migrations and scales to high volumes. The other options impose rigid schemas, high latency, or lack analytical query capabilities, making them unsuitable for this scenario.

Exam trap

The trap here is assuming that a relational database or message queue can serve as a scalable, queryable store for evolving, high-velocity data without significant drawbacks.

290
MCQhard

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

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

Adversarial example attacks exploit imperceptible input perturbations that shift a model across its decision boundary, exactly as described: the stop sign's pixels are altered slightly so the classifier outputs "speed limit". The stem's defining constraint — misclassification caused by deliberately crafted noise rather than data poisoning or model theft — matches this category precisely.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

291
MCQmedium

A media company is deploying a generative AI assistant to summarize customer support calls. The assistant must produce concise summaries in English, but the call transcripts are in Spanish. The team wants to use a single model that can handle both translation and summarization. Which approach is MOST appropriate?

A.Use a multilingual large language model and prompt it to translate and summarize in one step.
B.Use a Spanish-only language model and prompt it to output English summaries.
C.Fine-tune a monolingual English summarization model on translated Spanish transcripts.
D.Deploy a dedicated machine translation model first, then pass the English output to a separate summarization model.
AnswerA

A multilingual LLM can perform cross-lingual tasks like translation and summarization without separate components. It handles the Spanish input and generates an English summary directly, reducing pipeline complexity and latency. This is efficient because the model's training includes multiple languages, enabling it to understand the source and produce the target output in a single inference pass.

Why this answer

A multilingual LLM can directly process Spanish transcripts and generate English summaries in one step, satisfying the need for a single model that handles both translation and summarization. This reduces pipeline complexity and avoids error propagation from separate components, making it the most efficient and effective solution for the described scenario.

Exam trap

The trap here is assuming that a monolingual model can easily be prompted to output in another language without specific training.

292
Multi-Selecthard

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

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

RAG retrieves relevant medical literature to ground responses.

Why this answer

Option A (Retrieval-Augmented Generation, RAG) is correct because grounding the LLM's responses in an external, authoritative medical knowledge base (e.g., PubMed, clinical guidelines) at inference time supplies verifiable evidence and sharply reduces hallucination compared to relying on parametric memory alone. Option C (chain-of-thought prompting) is correct because eliciting intermediate reasoning steps improves the model's accuracy on complex diagnostic questions and makes its conclusions auditable, which supports evidence-based clinical decision support. Option E (fine-tuning on medical textbooks and guidelines) is correct because domain-specific supervised fine-tuning adapts the model's weights to accurate, curated medical content and terminology, raising factual reliability for the healthcare domain.

Option B does not belong because disabling output filtering removes safety guardrails and increases the risk of harmful content, the opposite of the stated requirement. Option D does not belong because raising the temperature increases sampling randomness and creativity, which promotes fabricated or inconsistent answers rather than accurate, evidence-based ones.

Exam trap

AI0-001 often tests whether candidates confuse 'creativity' parameters like temperature with accuracy-enhancing techniques — higher temperature is a distractor that sounds like it improves output but actually worsens factual reliability.

293
MCQeasy

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

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

Historical bias arises when training data reflects past societal or institutional prejudice, so the model reproduces those disparities. A loan model denying one demographic at higher rates mirrors biased historical lending decisions captured in the training set.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

294
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

295
MCQhard

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

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

Validation perplexity rising while training perplexity keeps falling is the classic divergence signature: the model memorises training-specific patterns rather than generalisable ones, so held-out performance degrades. That gap between the two curves is precisely what overfitting produces, making it the most likely cause here.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

296
MCQhard

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

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

Excessive agency arises when a model can invoke tools or actions beyond what the task requires. Restricting callable functions to a minimal allowlist and gating sensitive operations such as sending emails behind human approval directly limits the blast radius, satisfying the security team's concern about autonomous action.

Why this answer

Excessive agency is mitigated by least-privilege scoping of the tools/functions the model can invoke and inserting human-in-the-loop approval for high-impact actions like sending emails. Restricting callable functions and requiring approval directly limits the blast radius of a compromised or misaligned agent.

Exam trap

AI0-001 often tests the misconception that a 'bigger model' or 'more context' improves safety — candidates pick B or D, but the correct mitigation is always least-privilege tool scoping plus human approval.

How to eliminate wrong answers

Option A is wrong because disabling output filtering removes a safety control, increasing risk rather than mitigating excessive agency. Option B is wrong because a larger context window only gives the model more information; it does not constrain what actions the model can take. Option D is wrong because a larger model may be more capable but does not inherently reduce agency — capability without guardrails can worsen the problem.

297
MCQhard

A retailer's fraud-detection model is trained on transaction data and served through an internal API. An analyst discovers that an attacker with limited query access can determine whether a specific customer's transaction was in the training set. Which property of the training pipeline MOST directly enables this membership inference risk?

A.The model was trained with a high learning rate and no early stopping.
B.The model overfits the training data, producing unusually confident predictions on records it has seen.
C.The API returns predictions over HTTPS without client certificate authentication.
D.The training data was stored in a data lake with broad read access for analytics teams.
AnswerB

Membership inference exploits the confidence gap: models tend to output higher confidence or lower loss on training records than on unseen ones. Overfitting widens this gap, letting an attacker with query access separate members from non-members. Reducing overfitting through regularization, early stopping, or more data directly shrinks the signal the attack relies on.

Why this answer

Membership inference works by measuring how the model behaves differently on records it saw during training versus records it did not. Overfitting amplifies that difference, creating a measurable confidence or loss gap. Regularization, early stopping, and larger or more diverse training sets reduce overfitting and thus shrink the leakage that the attacker exploits through the prediction API.

Exam trap

The trap here is attributing membership inference to infrastructure weaknesses like transport security or data lake permissions, when the real signal comes from the model's overfit prediction behavior.

298
MCQhard

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

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

Red-teaming deliberately probes a system with adversarial inputs to expose harmful or unsafe outputs. It targets exactly the edge cases described, where crafted prompts bypass safeguards, making it the testing type that surfaces these vulnerabilities before deployment.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

299
MCQhard

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

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

QLoRA quantises the frozen base weights to 4-bit and trains small low-rank adapters, slashing GPU memory far below full fine-tuning. With only 500 labelled examples and constrained VRAM, this parameter-efficient method fits the domain task without exhausting memory.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

300
MCQeasy

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

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

Labelling AI-generated product descriptions directly satisfies the transparency requirement by disclosing the content's synthetic origin to readers. Unlike watermarking, which embeds imperceptible signals, or provenance metadata, which machines read, a visible label communicates authorship at the point of consumption, ensuring customers know the text was produced by the chatbot rather than a human.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

Page 3

Page 4 of 13

Page 5