Courseiva

CompTIA AI+ AI0-001 (AI0-001) — Questions 376–450

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

Page 5

Page 6 of 13

Page 7
376
MCQmedium

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

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

Domain adaptation aligns feature distributions between the bright, uniform training images and the dimmer, variable-lit target environment, correcting the covariate shift that causes false positives. Because it fine-tunes with only a small labelled set from the new station, it restores accuracy without collecting extensive labels or halting the assembly line.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

377
MCQmedium

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

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

Hierarchical chunking preserves the document's section and subsection boundaries, embedding each node with its parent context intact. This directly satisfies the stem's requirement for natural hierarchical structure, unlike fixed-size or semantic splitting, which sever headings from their content and degrade retrieval precision during Microsoft Entra ID-secured RAG queries.

Why this answer

Hierarchical chunking is designed to respect the document's inherent structure—such as sections, subsections, and paragraphs—by creating chunks that align with these boundaries. This preserves the logical flow and context, which is crucial for retrieval-augmented generation (RAG) because the retriever can fetch coherent units that match the query's intent. By maintaining the hierarchy, the system can also leverage parent-child relationships to improve retrieval accuracy and generation quality.

Exam trap

AI0-001 often tests the misconception that any chunking strategy works equally well for all documents, but the key is matching the strategy to the document's inherent structure—hierarchical chunking is specifically designed for documents with natural hierarchies.

How to eliminate wrong answers

Option B is wrong because fixed-size chunking ignores document structure, often splitting mid-sentence or mid-section, which breaks semantic coherence and can lead to fragmented context. Option C is wrong because semantic chunking based on sentence boundaries may still split related ideas across chunks if sentences are part of a larger subsection, and it does not inherently preserve hierarchical relationships. Option D is wrong because random chunking with varying sizes destroys any logical organization, making retrieval unreliable and generation prone to irrelevant or disjointed information.

378
MCQmedium

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

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

With 90% negatives, accuracy is misleading because predicting the majority class alone scores 0.90. F1 is the harmonic mean of precision and recall, so optimising it directly penalises both false positives and false negatives, addressing the weak 0.60/0.55 balance.

Why this answer

With 90% negative class samples, accuracy is misleading because a trivial majority-class classifier would score 90%. The low precision (0.60) and recall (0.55) indicate the model struggles on the minority positive class. The F1 score, being the harmonic mean of precision and recall, is the right metric to optimise because it balances both concerns on imbalanced data.

Exam trap

AI0-001 often tests metric selection on imbalanced data, so candidates pick accuracy because it looks high, missing that it is the wrong optimisation target when the positive class is rare.

How to eliminate wrong answers

Option B is wrong because perplexity is a language-model metric measuring how well a probability distribution predicts a sample, not applicable to binary classification evaluation. Option C is wrong because BLEU score evaluates machine translation or text generation quality by n-gram overlap, unrelated to classification. Option D is wrong because accuracy is precisely the misleading metric here — with 90% negatives, high accuracy can coexist with poor minority-class performance, so focusing on it would not improve the model.

379
MCQhard

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

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

L2 regularization adds a penalty proportional to the squared magnitude of weights to the loss function, directly discouraging the large weight values that let a model memorise noise. This constrains model complexity, satisfying the stem's requirement for a technique that penalises the loss function to reduce overfitting.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

380
MCQeasy

A hospital's radiology department wants to run a diagnostic imaging model inside its own data center because patient images cannot leave the premises. The team needs to manage model versions, roll back a bad deployment quickly, and keep an audit trail of which model version produced each prediction. Which approach best satisfies these requirements?

A.Copy the model file onto each radiologist workstation and run inference locally with a desktop script.
B.Host the model on a public inference API and send only anonymized image hashes for scoring.
C.Serve the model from an internal model registry with versioned artifacts and log the model version with each prediction.
D.Store the model in a shared network folder and have the serving application load whichever file has the newest timestamp.
AnswerC

An internal model registry keeps every artifact on-premises, assigns immutable versions, and lets the team promote or roll back a deployment by pointing the serving layer at a different version. Recording the version alongside each prediction creates the audit trail the department needs to trace any diagnostic output back to the exact model that produced it.

Why this answer

Keeping the model in an internal registry preserves data residency while giving the team immutable versions for promotion and rollback. Logging the model version with every prediction produces the traceability regulators and clinicians need, so a questionable result can be tied to a specific artifact rather than to an undifferentiated deployment.

Exam trap

The trap here is treating version control as simply keeping old files around, when the audit requirement demands that each prediction record the exact immutable version that produced it.

381
MCQmedium

A media company is building a recommendation model from user clickstream logs. The raw data arrives as millions of small JSON files in an object store, and nightly training jobs currently take over ten hours because the training cluster reads thousands of tiny files per second. The team wants to reduce training time without changing the model or the underlying data values. Which data engineering approach is most appropriate?

A.Convert the JSON files to CSV because CSV parsing is faster than JSON parsing.
B.Increase the number of worker nodes in the training cluster so more files can be read in parallel.
C.Cache the JSON files on local SSD storage on each worker node before training begins.
D.Compact the small JSON files into larger columnar files such as Parquet and have the training pipeline read those instead.
AnswerD

Consolidating many small JSON files into fewer larger Parquet files preserves all the underlying records while dramatically reducing per-file overhead, metadata operations, and list calls against the object store. Columnar layout also lets the training job read only the columns it needs and enables efficient compression, so the same data values feed the model with far less I/O time.

Why this answer

The bottleneck is the small-file pattern in object storage, not compute capacity or parsing speed. Repacking the same records into fewer large columnar files cuts listing, open, and read overhead and enables column pruning and compression, so the training job moves the same data values with far less I/O. This addresses the root cause while preserving the model and data semantics.

Exam trap

The trap here is assuming that adding more compute or switching file formats without consolidating files will fix an I/O-bound small-file problem.

382
Multi-Selectmedium

A data science team wants to implement a feature store to serve pre-computed features for both training and inference with low latency. Which TWO tools are commonly used for building a feature store?

Select 2 answers
A.Kubeflow
B.Apache Hive
C.Feast
D.Tecton
E.MLflow
AnswersC, D

Feast is an open-source feature store that manages and serves features.

Why this answer

Feast (Feature Store) is an open-source operational data system that manages and serves machine learning features to both training and inference pipelines with low latency. It provides a consistent feature definition API, offline serving for training, and online serving via a low-latency store like Redis or DynamoDB, making it a standard choice for feature store implementations.

Exam trap

CompTIA often tests the distinction between ML orchestration tools (Kubeflow, MLflow) and dedicated feature stores (Feast, Tecton), trapping candidates who confuse lifecycle management with feature serving infrastructure.

383
MCQhard

A company deploys a deep learning model for real-time object detection in autonomous vehicles. The model was trained on high-end GPUs but needs to run on edge devices with limited computational resources. Which technique is most effective for reducing model size and inference latency while maintaining acceptable accuracy?

A.Hyperparameter tuning
B.Batch normalization
C.Dropout
D.Quantization
AnswerD

Quantization reduces numerical precision of weights and activations, typically from 32-bit floats to 8-bit integers, shrinking memory footprint and enabling faster integer arithmetic on edge hardware. This directly satisfies the constraint of limited computational resources while preserving acceptable detection accuracy.

Why this answer

Quantization reduces the precision of the model's weights and activations (e.g., from 32-bit floating point to 8-bit integers), which significantly decreases model size and speeds up inference on edge devices with limited computational resources. This technique directly addresses the constraints of edge deployment while often maintaining acceptable accuracy through careful calibration.

Exam trap

CompTIA AI exams often test the misconception that regularization techniques like dropout or batch normalization can reduce model size or inference latency, when in fact they are training-phase optimizations that do not directly address edge deployment constraints.

How to eliminate wrong answers

Option A is wrong because hyperparameter tuning optimizes training settings (e.g., learning rate, batch size) to improve model convergence, but it does not directly reduce model size or inference latency on edge devices. Option B is wrong because batch normalization normalizes layer inputs during training to stabilize and accelerate training, but it adds computational overhead during inference and does not reduce model size or latency. Option C is wrong because dropout is a regularization technique that randomly drops neurons during training to prevent overfitting, but it is typically disabled during inference and does not reduce model size or inference latency.

384
Multi-Selectmedium

A media company is deploying a generative AI assistant that drafts marketing copy for regional campaigns. Legal requires that no customer personal data, unreleased product names, or internal pricing appear in generated output, and that every draft be attributable to a source. The team plans to use retrieval-augmented generation over an approved content repository. Which TWO controls should be implemented to satisfy these requirements? (Choose two.)

Select 2 answers
A.Fine-tune the base model on the entire approved content repository so it memorizes the brand voice and product catalog.
B.Raise the model's temperature setting so the assistant produces more varied and creative marketing phrasing.
C.Apply document-level access control and metadata filtering in the retrieval index so the assistant can only retrieve content the requesting user is authorized to see.
D.Require the assistant to return inline citations that map each generated claim back to the specific retrieved chunk and its source document.
E.Store the full prompt and completion pairs in an unencrypted analytics bucket so the marketing team can review trends.
AnswersC, D

Retrieval is the point where sensitive documents enter the prompt, so enforcing the same permissions as the source repository prevents personal data, unreleased names, and pricing from ever reaching the model. Metadata filtering also restricts retrieval to approved campaign assets. This is the primary control because it blocks leakage at the source rather than trying to scrub output afterward.

Why this answer

Both requirements are met at the retrieval layer. Permission-aware retrieval with metadata filtering stops sensitive documents from entering the prompt at all, which is the strongest form of prevention. Inline citations then make every generated claim traceable to an approved source chunk, enabling review and exposing hallucinations.

Raising temperature, storing raw prompt logs insecurely, or fine-tuning on the whole corpus each either increases leakage risk or removes the ability to control and attribute content.

Exam trap

The trap here is reaching for output-side filters or model tuning when the decisive control is preventing unauthorized documents from being retrieved into the prompt in the first place.

385
Multi-Selecthard

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

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

Few-shot examples demonstrate the exact field names, nesting and formatting expected, steering the model toward the target schema. This pattern-matching improves consistency across calls, though it does not guarantee syntactic validity the way constrained decoding does.

Why this answer

Option C is correct because few-shot examples of the desired JSON output condition the model on the exact structure, key names, and formatting expected, which strongly improves schema adherence. Option D is correct because a system prompt that explicitly specifies the expected JSON schema constrains the model's behavior and instructs it to emit only conforming JSON. Option E is correct because JSON mode (structured output) in the API call enforces syntactically valid JSON at the decoding/API layer and, when combined with a schema, validates the response against that schema.

Option A is not required and is costly: fine-tuning on JSON outputs can bias style but does not guarantee schema-valid JSON at inference time. Option B is wrong because increasing temperature to 1.5 raises randomness and makes malformed or schema-violating output more likely, not less.

Exam trap

AI0-001 often tests the misconception that higher temperature or fine-tuning is needed for structured output — candidates miss that JSON mode plus prompting is the standard, low-cost approach, and that temperature should be lowered, not raised.

386
MCQmedium

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

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

High training R-squared with low test R-squared is the defining symptom of variance error: the model has fitted noise and idiosyncrasies specific to the training set, so it fails to generalise to unseen credit-risk data.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

387
MCQeasy

A company is developing an AI policy. Which of the following should be included to ensure accountability for AI-driven decisions?

A.A set of acceptable use cases for the AI
B.A description of the model architecture used
C.A list of approved training data sources
D.Designated roles for human oversight and decision authority
AnswerD

Assigning designated roles for human oversight and decision authority establishes named accountability for AI-driven outcomes, ensuring a responsible person can review, approve or override decisions. This satisfies the policy requirement for accountability, unlike generic principles or training mandates.

Why this answer

Accountability for AI-driven decisions requires clear assignment of human roles with oversight and decision authority. This ensures that there is a responsible party who can review, override, or be held liable for the AI's outputs, which is a core principle of AI governance frameworks such as the NIST AI Risk Management Framework.

Exam trap

Candidates often confuse the components of an AI governance policy, such as acceptable use or data sources, with the accountability mechanism of human oversight. The key is to remember that accountability requires designated roles with authority to review and override AI decisions.

How to eliminate wrong answers

Option A is wrong because acceptable use cases define scope, not accountability; they do not assign responsibility for decisions. Option B is wrong because describing the model architecture is a technical documentation detail, not a governance mechanism for accountability. Option C is wrong because listing approved training data sources addresses data provenance and bias, but does not establish who is responsible for the AI's decisions.

388
Multi-Selectmedium

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

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

Rectified Linear Unit is widely used in hidden layers.

Why this answer

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

Exam trap

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

389
MCQmedium

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

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

Immediate per-transaction feedback demands synchronous scoring, which only real-time inference provides; batch processing defers predictions until a scheduled job runs, breaching the 100ms constraint. Real-time endpoints score each transaction on arrival, satisfying the latency requirement that the fraud detection scenario specifies.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

390
MCQeasy

A hospital is deploying an AI triage assistant that summarizes patient intake notes for emergency department nurses. Before go-live, the clinical informatics team must define a human oversight process that satisfies both safety and regulatory expectations. Which approach is MOST appropriate?

A.Disable the AI assistant whenever the emergency department is at or above 80 percent capacity to reduce clinician distraction.
B.Allow the AI summary to auto-populate the triage record and rely on nurses to correct errors during their normal chart review.
C.Require a licensed clinician to review and approve the AI-generated summary before it is entered into the triage record.
D.Publish the AI assistant's model card on the hospital intranet and instruct nurses to consult it if they have concerns about a summary.
AnswerC

A human-in-the-loop gate places a licensed professional between AI output and the clinical record, which is the expected oversight pattern for high-stakes healthcare decisions. It preserves clinician accountability, creates a clear audit trail of who approved each summary, and allows the organization to detect systematic model errors during review. This matches regulatory expectations for AI used in patient care.

Why this answer

High-stakes clinical use requires a defined human oversight gate where a qualified professional reviews AI output before it influences care. Requiring clinician approval of each summary establishes accountability, creates an audit trail, and enables detection of model errors. The alternatives either bypass review, introduce arbitrary availability rules, or rely on documentation rather than active oversight.

Exam trap

The trap here is treating documentation such as a model card as equivalent to an active human review step, when oversight requires a person approving output before it affects decisions.

391
Multi-Selecthard

A financial services company needs to deploy an ML model for loan approval that must be explainable to regulators. The model is a gradient boosting ensemble. They need to track experiments, log model parameters, and serve the model with explanations. Which THREE tools from the MLOps ecosystem should they use?

Select 3 answers
A.Apache Kafka
B.Docker Compose
C.Weights & Biases
D.Kubeflow
E.MLflow
AnswersC, D, E

W&B provides experiment logging, hyperparameter tracking, and model visualization.

Why this answer

Weights & Biases (W&B) is correct because it provides experiment tracking, hyperparameter logging, and model versioning, which are essential for regulatory explainability and auditability. It integrates directly with gradient boosting frameworks like XGBoost and LightGBM to log parameters and metrics, enabling reproducible ML pipelines. MLflow is correct because it offers experiment tracking, parameter and metric logging, a model registry, and model serving, allowing the team to track experiments and deploy the model with versioned artifacts.

Kubeflow is correct because it provides an end-to-end MLOps platform for building, training, and serving models on Kubernetes, including pipeline and model-serving components that support explainability tooling. Together, these three purpose-built MLOps tools cover experiment tracking, parameter logging, and model serving with explanations, whereas Apache Kafka (a streaming platform) and Docker Compose (a container orchestration tool for local development) do not address these MLOps requirements.

Exam trap

CompTIA AI+ often tests the distinction between general infrastructure tools (like Kafka or Docker Compose) and purpose-built MLOps tools (like W&B, Kubeflow, and MLflow) that directly address experiment tracking, model serving, and explainability.

392
MCQmedium

A company uses a third-party AI model for sentiment analysis. They want to create a software bill of materials (SBOM) for this AI system. What is the PRIMARY purpose of an SBOM in this context?

A.To record the model's accuracy on benchmark datasets
B.To list all software components and dependencies used in the AI system
C.To document the model's training hyperparameters
D.To provide a user manual for the AI model
AnswerB

An SBOM enumerates every software component, library and dependency bundled into the AI system, giving the company visibility into what the third-party model contains. This inventory underpins vulnerability tracking and licence compliance across the sentiment analysis supply chain.

Why this answer

The primary purpose of an SBOM for an AI system is to provide a complete inventory of all software components, libraries, and dependencies that make up the system. This is critical for vulnerability management, license compliance, and supply chain risk assessment, especially when third-party AI models are integrated. It does not track performance metrics, training details, or user instructions.

Exam trap

CompTIA often tests the distinction between an SBOM (software inventory for security and compliance) and model documentation (like model cards or datasheets) that cover performance, training, or usage details.

How to eliminate wrong answers

Option A is wrong because recording model accuracy on benchmark datasets is a performance evaluation task, not a component inventory function of an SBOM. Option C is wrong because documenting training hyperparameters pertains to model development and reproducibility, not the software supply chain transparency that an SBOM provides. Option D is wrong because a user manual describes how to operate the model, whereas an SBOM is a machine-readable list of software artifacts and their provenance.

393
MCQhard

A financial institution is designing an AI system to detect fraudulent transactions in real time. The system must process 10,000 transactions per second with sub-10 ms latency. The team plans to use a gradient boosting model. Which infrastructure component is most critical to meet the latency requirement?

A.A container orchestration platform like Kubernetes for auto-scaling.
B.A distributed streaming platform like Apache Kafka for data ingestion.
C.A GPU-accelerated database for storing transaction history.
D.A low-latency model serving framework that supports in-memory inference and batching.
AnswerD

To achieve sub-10 ms latency, the model serving framework must minimize overhead, support in-memory model execution, and efficiently batch requests. Frameworks like NVIDIA Triton Inference Server or TensorFlow Serving with optimized batching can deliver microsecond-level inference. This directly addresses the latency requirement by reducing per-request processing time.

Why this answer

Sub-10 ms latency requires a serving framework that minimizes overhead and efficiently handles concurrent requests. In-memory inference with optimized batching reduces per-request time, while other components like Kafka, databases, or Kubernetes add latency or do not directly affect inference speed. The serving layer is the bottleneck for meeting such strict latency.

Exam trap

The trap here is focusing on data ingestion or orchestration tools when the latency requirement is about the inference execution path.

394
Multi-Selectmedium

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

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

Using future information to predict the present leaks target-correlated data backwards through time. In temporal pipelines, features computed from later events encode outcomes unavailable at prediction time, inflating validation scores while the deployed model cannot access that information.

Why this answer

Option B is correct because using future information to predict the present is the classic definition of temporal leakage: when training features contain values that would not have been available at prediction time (e.g., tomorrow's price used to predict today's), the model learns relationships that cannot generalize. Option D is correct because applying normalization (e.g., StandardScaler or MinMaxScaler) before splitting lets the scaler compute statistics such as the mean, variance, or min/max over the test data, so test-set information leaks into the training transformation; the scaler must be fit only on the training split. Option E is correct because features directly derived from the target variable (e.g., a 'remaining balance' column computed from the label, or target-encoded aggregates that include the current row's label) encode the answer into the inputs, producing artificially high validation scores that collapse in production.

Option A is not a leakage cause but a mitigation: time-based splitting is the recommended approach for sequential data precisely to prevent temporal leakage. Option C is also not inherently leakage: cross-validation on the entire dataset is standard practice as long as the preprocessing is fit within each fold; leakage arises only if transformations are fit on the full dataset before cross-validation.

Exam trap

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

395
MCQeasy

Refer to the exhibit. The monitoring dashboard for a deployed churn prediction model shows a drift detected flag. However, the error rate and latency are within acceptable ranges. What is the most appropriate immediate action?

A.Trigger automatic retraining using the latest data
B.Roll back to the previous model version immediately
C.Ignore the drift since performance metrics are stable
D.Investigate the type and severity of drift before deciding
AnswerD

A drift flag alone does not indicate degraded performance, since error rate and latency remain acceptable. Investigating the drift's type and severity first establishes whether it is genuine, benign, or requires retraining, avoiding unnecessary remediation that could destabilise a currently healthy model.

Why this answer

When drift is detected but performance metrics like error rate and latency are still acceptable, it is important to investigate the type and severity of drift before taking any action. Drift may be benign or may indicate a shift that will eventually degrade performance. Option A is wrong because automatic retraining could be risky if the drift is temporary or benign.

Option B is wrong because rolling back immediately discards potential improvements and could be unnecessary. Option C is wrong because ignoring drift may lead to future degradation.

396
MCQmedium

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

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

For unit-length vectors, the dot product equals cosine similarity because the magnitude denominators are both one, eliminating the normalisation division. It satisfies the efficiency constraint by replacing cosine's two norms and division with a single sum of element-wise products, giving identical rankings at lower computational cost.

Why this answer

For normalized (unit-length) vectors, the dot product is mathematically equivalent to cosine similarity because the cosine formula divides by the product of magnitudes, which are both 1. Dot product is also computationally cheaper since it skips the normalization division, making it the efficient choice for RAG retrieval over normalized embeddings.

Exam trap

AI0-001 often tests the equivalence between dot product and cosine similarity only under the normalized-vector condition — candidates who forget the normalization precondition may incorrectly choose Euclidean distance as 'equivalent.'

How to eliminate wrong answers

Option A is wrong because Euclidean distance measures geometric distance and, while monotonically related to cosine similarity for normalized vectors, requires computing square roots and is not equivalent — it ranks in reverse order relative to similarity. Option B is wrong because Hamming distance counts differing positions in equal-length strings and is used for binary/categorical data, not continuous embedding vectors. Option C is wrong because Manhattan distance (L1) sums absolute coordinate differences and is not equivalent to cosine similarity for normalized vectors.

397
MCQmedium

A healthcare AI startup is developing a model to predict patient readmission risk. The model will be used to allocate post-discharge resources. Which regulatory framework primarily governs the use of patient data in this scenario?

A.GDPR
B.CCPA
C.HIPAA
D.EU AI Act
AnswerC

HIPAA governs protected health information held by covered entities and their business associates, so it directly constrains how the startup handles patient records for readmission prediction. Its Privacy and Security Rules dictate permissible use, disclosure and safeguarding of that data, satisfying the stem's requirement for the framework primarily regulating patient data in US healthcare.

Why this answer

HIPAA (Health Insurance Portability and Accountability Act) is the correct regulatory framework because the scenario involves a healthcare AI startup using protected health information (PHI) to predict patient readmission risk. HIPAA governs the use, disclosure, and safeguarding of PHI by covered entities and their business associates, which includes AI models processing patient data for post-discharge resource allocation.

Exam trap

CompTIA AI+ often tests the distinction between data privacy regulations (HIPAA, GDPR, CCPA) and AI-specific regulations (EU AI Act). Candidates may incorrectly assume the EU AI Act governs all AI data use, but the underlying data type (healthcare PHI) dictates the primary framework.

How to eliminate wrong answers

Option A is wrong because GDPR is a European Union regulation that applies to personal data of EU residents, but the scenario does not specify that the patients are in the EU or that the startup operates under EU jurisdiction; HIPAA is the primary U.S. healthcare data privacy law. Option B is wrong because CCPA is a California state law focused on consumer privacy and data rights for California residents, not specifically tailored to healthcare data or patient readmission models; it does not preempt HIPAA for protected health information. Option D is wrong because the EU AI Act governs the development and deployment of AI systems based on risk categories, but it does not directly regulate the use of patient data; data privacy for healthcare remains under GDPR or local health data laws, not the AI Act itself.

398
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

399
MCQmedium

A data engineering team is building a pipeline to ingest streaming user activity data, process it in real-time, and store features in a feature store for ML models. Which streaming technology is BEST suited for this real-time data ingestion and processing?

A.Apache Kafka
B.Apache Spark SQL
C.Apache Airflow
D.Apache Hadoop MapReduce
AnswerA

Kafka provides high-throughput, fault-tolerant streaming for real-time data pipelines.

Why this answer

Apache Kafka is the best choice because it is a distributed streaming platform designed for high-throughput, fault-tolerant, real-time data ingestion and processing. It provides publish-subscribe messaging, durable log storage, and stream processing capabilities, making it ideal for ingesting streaming user activity data and feeding it into a feature store for ML models.

Exam trap

CompTIA often tests the distinction between batch and stream processing technologies, and the trap here is that candidates confuse Apache Spark SQL (a batch-oriented SQL engine) with Spark Streaming, or mistake Airflow's scheduling capabilities for real-time ingestion.

How to eliminate wrong answers

Option B (Apache Spark SQL) is wrong because Spark SQL is a module for structured data processing using SQL queries, not a streaming ingestion technology; while Spark Streaming exists, Spark SQL itself is not designed for real-time data ingestion. Option C (Apache Airflow) is wrong because Airflow is a workflow orchestration tool for batch scheduling and DAG management, not a real-time streaming ingestion or processing system. Option D (Apache Hadoop MapReduce) is wrong because MapReduce is a batch processing framework that processes data in large, static batches with high latency, making it unsuitable for real-time streaming ingestion.

400
Multi-Selectmedium

A healthcare analytics team is preparing to fine-tune a 7-billion-parameter open-weight language model on a single server with four NVIDIA A100 40 GB GPUs. Full fine-tuning runs out of memory, and the team wants to train on their clinical notes dataset while keeping GPU memory within the available budget. Which TWO techniques should they apply to reduce memory consumption during fine-tuning? (Choose two.)

Select 2 answers
A.Converting the model to ONNX format before training
B.Quantization-aware training of the base weights at 4-bit
C.Gradient checkpointing
D.LoRA (Low-Rank Adaptation)
E.Increasing the global batch size
AnswersC, D

Gradient checkpointing discards most intermediate activations during the forward pass and recomputes them during backpropagation. This trades additional compute for a large reduction in activation memory, which is a major consumer at long sequence lengths. Combined with parameter-efficient tuning, it helps fit the fine-tuning job into the four A100 40 GB GPUs available to this team.

Why this answer

Parameter-efficient tuning with LoRA removes the need to store optimizer state for all base parameters, and gradient checkpointing cuts activation memory by recomputing intermediates during the backward pass. Together they target the two dominant memory consumers in fine-tuning, making a 7B model trainable on four 40 GB GPUs without changing the base weights.

Exam trap

The trap here is assuming any low-precision or format-conversion step reduces training memory, when only the optimizer-state and activation reductions actually free GPU memory during fine-tuning.

401
MCQmedium

A hospital's AI governance committee is reviewing a sepsis-prediction model before deployment. The model was trained on five years of historical ICU data in which patients who received early antibiotics had better outcomes, and the model learned to recommend antibiotics for nearly every patient with any fever. The committee wants to determine whether the model has learned a spurious correlation rather than a true clinical signal. Which action best evaluates this concern?

A.Increase the size of the test set by repartitioning the existing data and recompute the AUC.
B.Deploy the model in shadow mode and compare its alerts against clinician judgment for one month.
C.Perform a feature-ablation study, removing fever and antibiotic-administration variables, and measure the change in predictive performance and decision patterns.
D.Retrain the model with a larger learning rate and compare training loss across epochs.
AnswerC

Ablation directly tests whether the model's recommendations depend on the suspected spurious features. If removing fever and antibiotic variables sharply degrades performance or changes which patients receive recommendations, the model likely relied on the confound. This is a targeted causal-probing technique that reveals reliance on specific inputs rather than overall accuracy, which is exactly what the committee needs to assess.

Why this answer

Feature ablation is the most direct way to test whether a model depends on suspected spurious inputs. By removing fever and antibiotic-administration variables and observing changes in performance and recommendation behavior, the committee can determine whether the model's decisions hinge on those confounded features rather than on genuine clinical indicators of sepsis.

Exam trap

The trap here is assuming that a high AUC or strong test-set performance proves the model learned a genuine clinical relationship, when a spurious correlation present throughout the data can produce equally strong metrics.

402
MCQhard

A retail bank runs a batch credit-limit model that scores the entire customer base nightly. The model consumes 40 features, several of which are aggregates computed from transaction history. Downstream systems report that scores for some customers change dramatically between consecutive nights even though nothing about those customers changed. The team needs to make the nightly pipeline reproducible and explainable. Which action should the team take FIRST?

A.Capture the exact feature values and pipeline code version used for each nightly scoring run so any score can be reproduced and compared.
B.Increase the batch window so the nightly job has more time to compute the aggregate features.
C.Add a post-processing step that clamps each customer's score change to a fixed maximum per night.
D.Replace the aggregated transaction features with raw transaction counts to eliminate the variability.
AnswerA

Unexplained night-to-night swings with unchanged customer behavior usually come from nondeterministic or time-dependent feature computation. Recording the feature snapshot, pipeline code version, and parameters for every run lets the team replay a specific score and diff it against the prior night, isolating the offending aggregate. This is the prerequisite for every later fix and for regulatory explainability.

Why this answer

Score changes with no corresponding customer change indicate the feature pipeline is producing different values on different nights. Capturing a per-run feature snapshot alongside the pipeline code version makes each score reproducible, which is the only way to identify the unstable aggregate and satisfy explainability obligations before attempting any fix.

Exam trap

The trap here is jumping to a modeling or feature-engineering change when the immediate need is provenance, because without a recorded feature snapshot the anomalous scores cannot be reproduced or explained at all.

403
Multi-Selecteasy

Which TWO are evaluation metrics for classification problems? (Choose two.)

Select 2 answers
A.Precision
B.Mean Absolute Error
C.R-squared
D.Mean Squared Error
E.Recall
AnswersA, E

Correct: Precision is a classification metric.

Why this answer

Precision is a classification metric that measures the proportion of true positive predictions among all positive predictions made by the model. It is calculated as TP / (TP + FP) and is critical when the cost of false positives is high, such as in spam detection or fraud alert systems.

Exam trap

CompTIA often tests the distinction between classification and regression metrics, and the trap here is that candidates may mistakenly select Mean Absolute Error or Mean Squared Error because they are common evaluation metrics, but they are exclusively used for regression problems, not classification.

404
MCQeasy

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

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

K-means clustering partitions unlabelled data into k groups by minimising within-cluster variance, directly satisfying the stem's requirement to segment customers without labels. Supervised alternatives need target labels, which are absent here, so K-means fits the unsupervised grouping constraint.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

405
MCQeasy

A retailer's recommendation service runs on a managed inference endpoint. During a flash sale, request volume triples and the endpoint's response time exceeds the acceptable threshold. The operations team must reduce latency quickly without retraining the model. Which action should they take first?

A.Raise the client-side request timeout so slow responses are tolerated instead of failing.
B.Increase the number of provisioned inference instances behind the endpoint so requests are distributed across more compute.
C.Lower the endpoint's logging verbosity and disable request tracing to reduce per-request overhead.
D.Retrain the model with a smaller architecture so each inference completes faster.
AnswerB

When latency rises because request volume exceeds serving capacity, adding replicas spreads the load and directly reduces queueing and response time. It requires no model change, can be applied immediately, and is reversible once the sale ends. This addresses the actual bottleneck described rather than a downstream symptom.

Why this answer

The described symptom is a capacity shortfall during a traffic spike, so the fastest effective remedy is horizontal scaling of the serving tier. Adding inference instances distributes load and cuts queueing delay without touching the model. Retraining, trimming logging, and extending timeouts either take too long or merely conceal the latency, leaving the underlying bottleneck in place.

Exam trap

The trap here is reaching for model optimization when the bottleneck is serving capacity, since latency can also stem from the model, the hardware, or the network.

406
Multi-Selectmedium

A data scientist needs to store large volumes of unstructured log data for future AI model training. They also need to run SQL-based analytics on the data. Which THREE services are appropriate for this requirement? (Choose 3)

Select 3 answers
A.Pinecone
B.Snowflake
C.BigQuery
D.Amazon S3
E.pgvector
AnswersB, C, D

Snowflake is a data warehouse that supports SQL analytics on structured/semi-structured data.

Why this answer

Snowflake is correct because it is a cloud-native data warehouse that supports both structured and semi-structured data (like JSON, Avro, Parquet) via its VARIANT data type, enabling SQL-based analytics on unstructured log data. It also integrates with cloud storage (e.g., Amazon S3) for storing large volumes of raw logs, making it suitable for AI model training pipelines.

Exam trap

CompTIA AI often tests the distinction between purpose-built databases (vector databases like Pinecone and pgvector) and general-purpose analytics platforms (Snowflake, BigQuery, S3), leading candidates to mistakenly select vector databases for log storage and SQL analytics.

407
MCQhard

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

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

Output filtering and content moderation inspects the model's generated text before it reaches the user, blocking harmful content regardless of how a jailbreak prompt manipulated the model. This satisfies the application-layer constraint by catching unsafe responses post-generation, providing a reliable final safeguard even when prompt-level defences are bypassed.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

408
MCQeasy

A hospital wants to run a natural language processing model that summarizes clinical notes. Because of patient privacy regulations, the data cannot leave the hospital's on-premises network, and there is no dedicated GPU available. Which deployment approach best fits these constraints?

A.Host the model in a colocation facility that is physically separate but connected by a dedicated VPN.
B.Fine-tune a large foundation model on the hospital's CPU servers and serve it with full FP32 precision.
C.Deploy a quantized open-source model on an on-premises CPU server using a runtime such as ONNX Runtime or llama.cpp.
D.Use a cloud-based LLM API and send de-identified notes for summarization.
AnswerC

Quantized open-source models can run entirely on-premises on CPU using runtimes like ONNX Runtime or llama.cpp, keeping patient data inside the network and requiring no GPU. Quantization reduces memory and compute demands enough for CPU inference on summarization tasks. This satisfies both the privacy constraint and the hardware limitation.

Why this answer

Running a quantized open-source model locally with a CPU-optimized runtime keeps all clinical data inside the hospital network and avoids GPU requirements. Quantization shrinks model size and speeds inference enough for summarization on standard servers. Cloud APIs, remote hosting, and full-precision large-model training all violate either the privacy boundary or the hardware constraint.

Exam trap

The trap here is treating de-identification as equivalent to keeping data on-premises, when the stated policy forbids any external transmission of clinical notes.

409
MCQmedium

A machine learning engineer is evaluating a classifier on a dataset with 1,000 examples where only 30 are positive. The model predicts the negative class for almost every example. The team reports 97% accuracy and claims success. Which metric should the engineer introduce to reveal the model's poor performance on the positive class?

A.Recall for the positive class
B.Silhouette score
C.Mean squared error
D.R-squared
AnswerA

Recall, or sensitivity, is the fraction of actual positives the model correctly identifies. With only 30 positives and a model that predicts negative almost always, recall will be near zero even though accuracy is 97%. Reporting positive-class recall immediately exposes that the classifier misses nearly all fraud, disease, or defect cases. It is the metric that directly measures performance on the minority class the team cares about.

Why this answer

Accuracy is misleading under severe class imbalance because a trivial majority-class predictor scores high. Recall on the positive class directly measures how many of the 30 true positives were captured, exposing the near-zero detection rate. Recall is the appropriate complement to accuracy when the cost of false negatives is high, such as fraud, medical screening, or safety defects, and it guides the team toward resampling, class weighting, or threshold adjustment.

Exam trap

The trap here is trusting overall accuracy on an imbalanced dataset, when a model that always predicts the majority class can score very high while being useless for the minority class.

410
MCQeasy

A hospital wants an AI system to review chest X-ray images and flag those that may show pneumonia, but a radiologist will make the final diagnosis. The IT team must classify this system for documentation. Which category of AI best describes this deployment?

A.Supervised learning
B.General AI
C.Reactive machine
D.Narrow AI
AnswerD

Narrow AI, also called weak AI, is designed to perform a specific task within a limited domain. Flagging possible pneumonia on chest X-rays is a single, well-defined classification task, so the system falls squarely into narrow AI even though it uses deep learning and achieves high accuracy.

Why this answer

The system performs one bounded task—identifying possible pneumonia in chest X-rays—so it is narrow AI. General AI implies human-level breadth across many domains, supervised learning describes how a model is trained rather than what the system is, and reactive machine is an outdated capability category that does not fit a trained deep learning model.

Exam trap

The trap here is confusing a learning method such as supervised learning with a capability category such as narrow AI.

411
MCQeasy

A data analyst is exploring a dataset and notices that one numerical feature has a highly skewed distribution with a long right tail. The analyst wants to apply a transformation to make the distribution more symmetric for a linear model. Which transformation is most appropriate?

A.Logarithmic transformation
B.Standardization (z-score normalization)
C.Square root transformation
D.Min-max normalization
AnswerA

A logarithmic transformation compresses the right tail and can make a right-skewed distribution more symmetric. It is effective when data spans several orders of magnitude and contains positive values. This helps linear models meet assumptions of normality and reduces the impact of outliers, improving model performance.

Why this answer

A logarithmic transformation is the most appropriate for a highly right-skewed distribution because it compresses large values and can make the distribution more symmetric. Square root is milder and less effective for high skewness, while standardization and min-max normalization only rescale without altering distribution shape.

Exam trap

The trap here is confusing scaling techniques like standardization or min-max normalization with transformations that actually change the distribution shape to reduce skewness.

412
MCQmedium

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

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

Fine-tuning updates the pre-trained weights on the 500 domain-specific legal documents, adapting learned representations to legal vocabulary and phrasing. This transfers general language knowledge while fitting the narrow task, outperforming training from scratch with such limited labelled data.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

413
MCQhard

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

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

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

Why this answer

Cost-sensitive learning directly addresses the business requirement by penalizing fraud misclassifications more heavily, which shifts the decision threshold to favor recall on the fraud class while still allowing the team to tune the trade-off between false positives and false negatives. Because the team cannot collect more data or change the architecture significantly, adjusting the loss function's class weights is the most practical lever to hit the 95% recall and <1% FPR targets. It also avoids the information loss caused by random undersampling, which discards 99.99% of legitimate transactions and distorts the true class distribution.

Exam trap

The trap is assuming that balancing the dataset (undersampling) or switching to anomaly detection solves imbalance, when the real issue is the asymmetric misclassification cost—candidates overlook cost-sensitive learning as the direct lever for meeting recall/FPR targets.

How to eliminate wrong answers

Option B is wrong because feature selection may remove signal and does not address the fundamental class imbalance or the asymmetric cost of errors; it is unlikely to move recall from 70% to 95% on its own. Option C is wrong because switching to Isolation Forest or One-Class SVM reframes the problem as unsupervised anomaly detection, which typically sacrifices precision and would struggle to meet the <1% FPR requirement while catching 95% of frauds. Option D is wrong because the team explicitly has limited resources to collect additional data, and even with more fraud examples, the extreme imbalance and cost asymmetry would still require cost-sensitive techniques.

414
MCQmedium

A hospital wants to train a diagnostic AI model using data from multiple hospitals without sharing raw patient data. Which privacy-preserving technique allows collaborative training while keeping data local?

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

Federated learning trains a shared model across hospitals by exchanging only model updates, such as gradients or weights, rather than raw patient records. Each hospital's data therefore stays local, satisfying the requirement for collaborative training without sharing patient data.

Why this answer

Federated learning is the correct technique because it enables multiple hospitals to collaboratively train a shared diagnostic AI model without exchanging raw patient data. Instead, each hospital trains a local model on its own data, and only encrypted model updates (e.g., gradients or weights) are sent to a central server for aggregation. This keeps all sensitive patient information local, directly addressing the requirement of data locality while still benefiting from collective learning.

Exam trap

CompTIA emphasizes the distinction between techniques that alter data before sharing (e.g., anonymization, pseudonymization) and techniques that keep data local and share only model parameters (federated learning). The trap is assuming that anonymizing or pseudonymizing data satisfies the 'keep data local' requirement, but these still involve data leaving the hospital.

How to eliminate wrong answers

Option A is wrong because differential privacy adds noise to data or model outputs to protect individual privacy, but it does not keep data local; it can be applied to centralized or federated settings, but alone it does not enable collaborative training without sharing raw data. Option C is wrong because data anonymisation removes or masks personally identifiable information (PII) from a dataset, but the anonymised data is still shared with other parties, which violates the requirement to keep raw patient data local. Option D is wrong because data pseudonymisation replaces identifiers with pseudonyms, but the pseudonymised data is still shared and can potentially be re-identified, failing to meet the strict local data constraint.

415
MCQmedium

A security team is evaluating the risk of adversarial examples against their image classification model. Which characteristic best describes an adversarial example?

A.A naturally occurring image that the model misclassifies due to poor training data
B.An input modified by small, intentional perturbations designed to cause misclassification
C.An image that has been resized incorrectly and appears distorted to the model
D.A corrupted image with missing pixels that the model cannot process
AnswerB

Small, intentional perturbations exploit the model's learned decision boundaries, shifting a correctly classified image across a boundary without visibly changing it. This satisfies the stem's focus on adversarial risk: the modification is deliberate and imperceptible, distinguishing it from random noise or naturally corrupted inputs, and directly causing misclassification.

Why this answer

An adversarial example is specifically crafted by adding small, often imperceptible perturbations to a legitimate input. These perturbations are designed to exploit the model's decision boundaries, causing it to output an incorrect classification with high confidence. This is a fundamental concept in AI security, highlighting the vulnerability of deep learning models to input manipulation.

Exam trap

This exam often tests the distinction between natural misclassifications (due to data quality or model limitations) and intentionally crafted adversarial perturbations, so candidates mistakenly choose options describing data corruption or preprocessing errors instead of recognizing the key element of deliberate, small-scale manipulation.

How to eliminate wrong answers

Option A is wrong because a naturally occurring image that the model misclassifies due to poor training data is an example of a natural misclassification or distribution shift, not an adversarial example which requires intentional perturbation. Option C is wrong because an incorrectly resized image causing distortion is a preprocessing error or data corruption issue, not a crafted adversarial perturbation. Option D is wrong because a corrupted image with missing pixels is a data integrity problem, not a deliberately engineered input designed to fool the model.

416
MCQhard

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

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

Faithfulness metrics measure whether each claim in the generated answer is grounded in the retrieved context, while answer relevancy scores how well it addresses the question. Running both over a held-out test set systematically quantifies hallucinated policy statements.

Why this answer

An evaluation framework with faithfulness and answer relevancy metrics on a held-out test set is the best approach because it directly measures whether the model's output is grounded in the provided source (faithfulness) and whether it actually addresses the user's question (answer relevancy). These are the standard RAG/LLM evaluation metrics designed to detect hallucinations and off-topic answers systematically. A held-out test set ensures the measurement is repeatable and quantifiable across model versions.

Exam trap

AI0-001 often tests the confusion between general software testing types (unit, integration, regression) and AI-specific evaluation metrics, tricking candidates into choosing familiar testing terminology over purpose-built LLM evaluation approaches.

How to eliminate wrong answers

Option A is wrong because regression testing only compares old versus new outputs and cannot detect factual incorrectness if both versions hallucinate the same way. Option B is wrong because unit tests on the data pipeline validate data transformations, not the semantic correctness of LLM-generated text. Option C is wrong because integration tests for API calls only verify connectivity and request/response plumbing, not whether the generated content is factually accurate.

417
MCQmedium

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

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

High bias means the linear model underfits because it cannot represent the non-linear relationship between features and price. Adding polynomial features expands the hypothesis space, letting the model capture curvature and thereby reduce bias, though variance may rise.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

418
MCQeasy

A team is deploying a deep learning model for real-time image classification on edge devices with limited computational resources. Which technique would best help reduce model size and inference time without significant accuracy loss?

A.Data augmentation
B.Model pruning and quantization
C.Transfer learning
D.Ensemble learning
AnswerB

Pruning removes redundant weights and neurons, while quantization reduces numeric precision (for example FP32 to INT8). Combined, they shrink model size and cut inference latency substantially on resource-constrained edge hardware, with accuracy loss typically recoverable through fine-tuning.

Why this answer

Model pruning and quantization directly reduce the number of parameters and the precision of weights (e.g., from 32-bit floats to 8-bit integers), which shrinks the model size and speeds up inference on edge devices. This technique is specifically designed to minimize computational load while preserving accuracy, making it ideal for resource-constrained environments like real-time image classification on edge hardware.

Exam trap

Candidates often mistakenly believe that transfer learning alone reduces model size, but it only reuses weights—the architecture remains unchanged. For resource-constrained edge devices, pruning and quantization are the direct methods for compression and speed optimization.

How to eliminate wrong answers

Option A is wrong because data augmentation increases the diversity of training data to improve generalization, but it does not reduce model size or inference time; in fact, it may increase training time. Option C is wrong because transfer learning reuses a pre-trained model to accelerate training on a new task, but it does not inherently reduce model size or inference speed—the model remains large unless combined with pruning or quantization. Option D is wrong because ensemble learning combines multiple models to improve accuracy, but it multiplies the computational cost and memory footprint, which is counterproductive for edge devices with limited resources.

419
Multi-Selectmedium

A retail analytics team is building a retrieval-augmented generation assistant over product manuals. They need a vector index that supports fast approximate nearest neighbor search and can be updated as new manuals are published without rebuilding the entire index. Which TWO components should they use to meet these requirements? (Choose two.)

Select 2 answers
A.A columnar analytics warehouse that stores embeddings as arrays for SQL aggregation.
B.A message queue that streams manual PDFs directly into the index without transformation.
C.A dedicated vector database such as Milvus or Pinecone that supports incremental upserts and ANN indexes like HNSW.
D.A relational database with B-tree indexes on the manual text column.
E.An embedding model that converts each manual chunk into a dense vector before insertion.
AnswersC, E

Vector databases are built for embedding storage and similarity search, and they expose ANN index types such as HNSW that trade a small recall loss for large speed gains. Crucially, they support upserting individual vectors, so newly published manuals can be added without rebuilding the whole collection, which is exactly what the team needs.

Why this answer

A working retrieval pipeline needs embeddings to represent manual chunks semantically and a vector store that indexes those embeddings for fast approximate similarity search while allowing incremental additions. Combining an embedding model with a vector database that supports upserts and HNSW-style indexes satisfies both the speed and the update-without-rebuild requirements.

Exam trap

The trap here is assuming that any database capable of storing arrays can serve nearest neighbor queries efficiently, when only ANN-capable vector stores provide the required search speed.

420
MCQeasy

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

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

The median resists skew and outliers because it depends on rank position rather than magnitude, so it stays representative when the distribution is non-normal. Mean imputation would distort the central tendency here, whereas the median satisfies the stem's non-normal constraint.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

421
MCQhard

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

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

Microservices with streaming responses and async queues decouple request handling from model inference, letting tokens stream to users immediately while queued work absorbs bursts. This satisfies the stem's simultaneous cost and latency constraints for a real-time customer-facing workload.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

422
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

423
MCQhard

A financial institution is deploying a real-time anomaly detection model on a Kubernetes cluster. The model must process streaming transactions with low latency and scale horizontally during peak hours. The team wants to use a serving solution that integrates natively with Kubernetes and supports autoscaling based on request concurrency. Which solution best meets these requirements?

A.KServe with Knative autoscaling
B.Standalone TensorFlow Serving deployed as a Kubernetes Deployment
C.NVIDIA Triton Inference Server with a fixed number of replicas
D.A custom Flask API wrapping the model, deployed with a Kubernetes Service
AnswerA

KServe integrates with Kubernetes and uses Knative to provide request-based autoscaling, including scale-to-zero and concurrency metrics. It supports low-latency inference and horizontal scaling, directly matching the streaming transaction requirements. This makes it the most appropriate choice.

Why this answer

KServe with Knative autoscaling provides native Kubernetes integration and request-concurrency-based scaling, which is essential for handling unpredictable transaction volumes with low latency. The other options either lack autoscaling, require manual configuration, or are not optimized for production inference.

Exam trap

The trap here is assuming that deploying any model server on Kubernetes automatically provides request-concurrency autoscaling, when it often requires additional components.

424
Multi-Selecthard

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

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

LoRA freezes the 7B base weights and trains only small low-rank adapter matrices, cutting trainable parameters and optimiser memory dramatically. This directly satisfies the limited GPU budget while remaining effective with only 500 labelled legal examples.

Why this answer

Option A (LoRA) is correct because Low-Rank Adaptation freezes the pretrained 7B weights and trains small low-rank adapter matrices, drastically reducing trainable parameters and GPU memory, which fits the limited GPU budget. Option B (instruction-tuning dataset with input-summary pairs) is correct because the 500 labeled examples must be formatted as supervised instruction/response pairs so the model learns the specific legal summarization mapping during fine-tuning. Option E (QLoRA with 4-bit quantization) is correct because QLoRA quantizes the frozen base model to 4-bit (e.g., NF4) and trains LoRA adapters, further cutting memory so a 7B model can be fine-tuned on modest GPUs.

Option C is not appropriate because training a new model from scratch on legal text requires massive compute and data, far beyond 500 examples and a limited GPU budget. Option D is not appropriate because full fine-tuning updates all 7B parameters, demanding very high GPU memory and compute that the organization's budget cannot support.

425
MCQmedium

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

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

Enforcing access controls on the model and API authenticates each caller and authorises order lookups against ownership, so the LLM only returns details the requesting user legitimately owns. This blocks unauthorised disclosure at the interface rather than relying on prompt instructions.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

426
MCQmedium

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

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

S3 default encryption with SSE-S3 applies AES-256 encryption to every object at rest automatically, satisfying the storage constraint without per-object configuration. HTTPS enforces TLS for data in transit during API calls. Together they cover both required states, though SSE-S3 lacks the customer-managed key control that SSE-KMS provides.

Why this answer

Encryption at rest is achieved by enabling default encryption on S3 (SSE-S3 or SSE-KMS), and encryption in transit is achieved by enforcing HTTPS/TLS for all API calls. Together, these two measures directly satisfy the requirement for data used in AI training on AWS.

Exam trap

AI0-001 often tests the distinction between network security controls (Security Groups, NACLs, VPN) and encryption controls; candidates mistakenly pick network options for encryption requirements.

How to eliminate wrong answers

Option A is wrong because Security Groups and NACLs control network traffic (firewall rules), not encryption of data at rest or in transit. Option B is wrong because client-side encryption with Secrets Manager only addresses encryption at rest for specific data and does not cover data in transit; it also adds complexity and is not a complete solution. Option D is wrong because VPC peering and VPN provide private network connectivity, not encryption of data at rest, and VPN encrypts transit but not storage.

427
MCQmedium

A data science team is preparing a dataset of loan applications. Each row contains income, credit score, employment length, and a loan amount. Before training a model, the team wants to reduce the influence of income, which is measured in dollars and ranges into the hundreds of thousands, compared with credit score, which ranges from 300 to 850. Which technique should the team apply?

A.One-hot encoding
B.Feature scaling
C.Data augmentation
D.Principal component analysis
AnswerB

Feature scaling transforms numeric features onto comparable ranges, for example through min-max normalization or standardization. Because income values are far larger than credit score values, distance-based and gradient-based algorithms would otherwise weight income too heavily, so scaling the inputs is the appropriate preprocessing step before training.

Why this answer

Income and credit score differ by orders of magnitude, so algorithms that rely on distances or gradients will let income dominate. Feature scaling, whether min-max normalization or standardization, brings numeric features onto comparable ranges and is the standard preprocessing remedy. Encoding, dimensionality reduction, and augmentation change the data in ways that do not resolve the scale disparity.

Exam trap

The trap here is reaching for one-hot encoding whenever preprocessing is mentioned, even though the problem is numeric magnitude rather than categorical text.

428
MCQeasy

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

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

PSI quantifies how much a variable's distribution has shifted between the training baseline and recent production data, which is exactly the input-distribution drift the team must detect. It is computed on features rather than predictions, unlike accuracy or label-based metrics.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

429
MCQhard

A financial services firm uses an AI model to detect fraudulent transactions. The model's decisions must be explainable to regulators. The data science team proposes using a complex deep neural network with high accuracy. Which of the following approaches best balances accuracy and explainability?

A.Use the deep neural network without explanations but provide regulators with the model's overall accuracy metrics.
B.Train a surrogate decision tree to mimic the neural network's predictions and use that for explanations.
C.Replace the deep neural network with a simple logistic regression model to ensure full interpretability.
D.Use the deep neural network and apply post-hoc explanation techniques such as LIME or SHAP.
AnswerD

Post-hoc explanation methods like LIME and SHAP can provide local explanations for individual predictions without sacrificing the accuracy of the complex model. While they are approximations, they are widely accepted for regulatory purposes when combined with documentation. This approach allows the firm to leverage the high accuracy of deep learning while meeting explainability requirements.

Why this answer

Post-hoc explanation techniques such as LIME and SHAP offer a practical compromise: they explain individual predictions of complex models without requiring the model to be inherently interpretable. This allows the firm to maintain high fraud detection accuracy while providing the transparency regulators demand. Replacing the model with a simpler one may reduce accuracy, and providing only overall metrics is insufficient.

Exam trap

The trap here is assuming that high accuracy and explainability are mutually exclusive, leading to an unnecessary trade-off.

430
MCQmedium

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

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

Tampering covers unauthorised modification of data or systems, which directly matches an attacker altering training data to skew model outputs. Unlike Spoofing (identity falsification) or Information Disclosure (data exposure), Tampering addresses integrity attacks on the training pipeline, satisfying the stem's misclassification constraint.

Why this answer

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

431
MCQeasy

A data engineer is building a real-time feature store for an AI recommendation engine. The system must ingest millions of clickstream events per second, retain each event for 7 days, and allow the ML model to read the most recent user activity with sub-10ms latency. Which storage technology should the engineer select for the online feature serving layer?

A.Amazon S3 with Parquet files and AWS Glue catalog
B.Apache Kafka with a 7-day retention policy
C.A Redis in-memory key-value store with TTL-based expiration
D.A Snowflake data warehouse with a materialized view
AnswerC

Redis keeps feature values in memory and supports O(1) key lookups keyed by entity ID, which is exactly the access pattern an online feature store needs. Per-key TTL lets the engineer expire events after 7 days automatically, and the sub-millisecond in-memory read path comfortably satisfies the sub-10ms latency requirement even under high request concurrency.

Why this answer

Online feature serving requires a low-latency, key-value access pattern keyed by entity ID, with automatic expiry of stale features. An in-memory key-value store provides O(1) lookups in sub-millisecond time and supports TTL-based eviction, satisfying both the 7-day retention and sub-10ms latency requirements. Streaming platforms and analytical stores serve ingestion and batch computation roles instead.

Exam trap

The trap here is assuming that a streaming platform like Kafka, because it ingests real-time events, also serves them as a low-latency online feature store.

432
MCQmedium

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

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

Microservices decouple ingestion from inference via an async queue, absorbing thousands of readings per second without blocking, while streaming responses return anomaly results with minimal latency. This satisfies the throughput and latency constraints that synchronous request-response architectures cannot.

Why this answer

Real-time anomaly detection on high-throughput sensor streams requires low-latency, scalable, event-driven processing. An AI microservices architecture with an async processing queue and streaming responses decouples ingestion from inference, allowing horizontal scaling of model-serving instances and back-pressure handling. This design keeps latency low while processing thousands of readings per second, unlike batch or monolithic approaches.

Exam trap

AI0-001 often tests real-time vs. batch trade-offs — candidates pick batch or serverless because they sound scalable, but only an async streaming microservices design meets the low-latency, high-throughput requirement.

How to eliminate wrong answers

Option A is wrong because hourly Spark batch jobs introduce massive latency and cannot support real-time detection. Option B is wrong because serverless functions on a CDN are designed for edge HTTP request handling, not sustained high-throughput stream processing with stateful ML inference. Option C is wrong because a monolithic web app with a relational database creates a bottleneck and cannot elastically scale to thousands of readings per second with minimal latency.

433
Multi-Selecteasy

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

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

Periodic retraining on recent data directly counters data drift by updating learned parameters to reflect the current input distribution, satisfying the requirement to manage drift in production. It addresses gradual distributional shift, which monitoring alone cannot correct, restoring alignment between the model's training assumptions and live data.

Why this answer

Option C is correct because periodically retraining the model on recent data directly addresses model drift by updating the model's learned parameters to reflect the current data distribution, which is the standard remediation for both data drift and concept drift in production AI systems. Option E is correct because implementing automated monitoring to detect drift indicators (such as statistical divergence in input feature distributions, changes in prediction distributions, or declining accuracy/latency metrics) provides the early-warning capability needed to trigger retraining or rollback before business impact occurs. Option A is incorrect because freezing the model prevents any adaptation and guarantees that drift will progressively degrade performance over time.

Option B, while a reasonable incident-response tactic, is not a drift management action in itself since rollback only restores a prior state that will also drift and does not address the underlying distribution change. Option D is incorrect because manually reviewing all predictions is operationally infeasible at production scale and does not systematically detect or correct drift.

Exam trap

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

434
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

435
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

436
MCQmedium

A company wants to use a pre-trained model from a cloud-based AI service but must ensure that customer data is not used to improve the service. Which configuration should they choose?

A.Set data retention to 30 days
B.Enable content filtering
C.Use a data policy that prohibits training on customer data
D.Enable rate limiting
AnswerC

A data policy prohibiting training on customer data contractually and technically restricts the provider from using submitted inputs to improve or retrain the service, directly satisfying the requirement that customer data is not repurposed. This is the configuration control that enforces the no-training guarantee.

Why this answer

The 'No Training' data policy option explicitly prevents the cloud AI service from using customer prompts and completions to retrain or improve the underlying models. This configuration is essential for compliance with data privacy requirements, ensuring that customer data remains isolated from model improvement pipelines.

Exam trap

The trap here is that candidates often confuse data retention settings (which control storage duration) with data usage policies (which control whether data is used for training), leading them to select Option A instead of the correct data privacy policy that prevents training.

How to eliminate wrong answers

Option A is wrong because setting data retention to 30 days controls how long input and output data is stored for monitoring or debugging, but it does not prevent that data from being used for model training during that period. Option B is wrong because enabling content filtering only blocks harmful or policy-violating content from being generated; it has no effect on whether customer data is used to improve the service. Option D is wrong because rate limiting controls the number of API requests per time unit to manage load and cost, but it does not address data usage for training purposes.

437
MCQmedium

A health system wants to deploy an AI triage tool that analyzes patient symptoms and vital signs to prioritize emergency department patients. Before deployment, the governance committee must determine whether the tool qualifies as a high-risk AI system under the EU AI Act. Which factor is MOST determinative of that classification?

A.Whether the tool is deployed on-premises or through a cloud service
B.Whether the AI model was trained on a dataset containing more than 100,000 patient records
C.Whether the AI tool uses a deep learning architecture rather than a rules-based system
D.Whether the AI tool is used to make decisions that could significantly affect a patient's health, safety, or fundamental rights
AnswerD

Under the EU AI Act, high-risk classification is tied to the intended purpose and the significance of the impact on health, safety, or fundamental rights. A triage tool that prioritizes emergency patients directly affects health outcomes, so its risk level is determined by that impact rather than by the vendor's marketing claims or the model architecture.

Why this answer

High-risk classification under the EU AI Act hinges on the intended purpose and the severity of potential impact on health, safety, or fundamental rights. A triage tool that influences emergency care decisions can directly affect patient health, so it falls into the high-risk category regardless of data size, architecture, or deployment model.

Exam trap

The trap here is assuming that technical characteristics such as dataset size or model architecture determine high-risk classification, rather than the intended purpose and potential impact on health, safety, or fundamental rights.

438
MCQmedium

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

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

Feature combination creates new attributes by arithmetically relating two or more existing variables, here dividing income by debt to produce income_to_debt_ratio. This satisfies the stem's constraint that the engineer derived a single ratio from separate income and debt fields, rather than transforming one column or selecting a subset.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

439
Multi-Selectmedium

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

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

Frequent weekly updates suit RAG because retrieval pulls current documents at query time, so the assistant reflects new content without retraining. Fine-tuning bakes knowledge into model weights, requiring repeated, costly retraining to stay current — directly satisfying the stem's freshness constraint.

Why this answer

Option A is correct because RAG retrieves from an external knowledge base at query time, so weekly-updated legal documents can be re-indexed without retraining the model, whereas fine-tuning would require repeated, costly retraining to keep pace. Option D is correct because RAG naturally returns the retrieved passages that grounded the answer, enabling precise source citations, while a fine-tuned model's parametric knowledge offers no traceable provenance. Option B does not favor RAG, since understanding complex legal terminology is largely a function of the base model's pretraining and can be addressed by either approach.

Option C does not favor RAG either, as deep multi-document reasoning is a model capability rather than a retrieval benefit, and RAG alone does not guarantee it. Option E is not a strong RAG advantage, because building and operating a vector store and retriever also incurs infrastructure and compute costs, so a limited training budget does not decisively favor RAG.

Exam trap

AI0-001 often tests the trade-offs between RAG and fine-tuning, where candidates may incorrectly assume fine-tuning is always better for domain-specific terminology or reasoning, overlooking RAG's advantages in dynamism and citation.

440
Multi-Selectmedium

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

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

Feature selection removes redundant, highly correlated predictors, directly cutting the 100-feature dimensionality that drives overfitting. By retaining only informative variables, the regression model generalises better, satisfying the stem's requirement to improve performance while reducing overfitting from multicollinearity.

Why this answer

Feature selection (A) is correct because it removes irrelevant or redundant features from the 100-feature set, directly reducing the dimensionality and mitigating overfitting caused by highly correlated predictors. Dimensionality reduction such as PCA (B) is also correct because it transforms the correlated features into a smaller set of uncorrelated principal components, preserving most variance while reducing overfitting and improving model performance. Data augmentation (C) is not appropriate here since it expands training data (typically for images/text) and does not address feature correlation or dimensionality.

Adding more hidden layers (D) increases model complexity and would likely worsen overfitting rather than reduce it. Increasing the learning rate (E) is a training hyperparameter change that does not address correlated features and can even destabilize convergence.

Exam trap

AI0-001 often tests whether candidates confuse techniques that reduce model complexity (feature selection, PCA) with techniques that increase capacity or change training dynamics (more layers, higher learning rate), so read the goal — reducing overfitting — carefully.

441
Multi-Selectmedium

A hospital wants to deploy an AI triage model that recommends which emergency department patients should be seen first. The clinical governance committee is defining controls to ensure the system remains accountable and safe after go-live. Which TWO controls BEST support ongoing accountability for this AI system? (Choose two.)

Select 2 answers
A.Retrain the model on the entire production dataset every night to keep it current with the latest patient cases.
B.Require clinicians to accept every model recommendation without modification to keep the workflow consistent.
C.Establish a scheduled monitoring process that tracks model performance and subgroup error rates, with defined thresholds that trigger review.
D.Publish the model's full source code and training weights publicly so external researchers can verify its behavior.
E.Maintain an audit log of model inputs, outputs, and clinician overrides that can be reviewed after adverse events.
AnswersC, E

Post-deployment monitoring detects performance degradation and emerging disparities across patient subgroups, which are common as case mix and clinical practice change. Predefined thresholds convert passive observation into an actionable control that triggers investigation, retraining, or suspension. This keeps the system accountable over time rather than certifying it once at deployment and assuming continued safety.

Why this answer

Ongoing accountability depends on being able to reconstruct what happened and detect when behavior changes. Audit logging preserves the decision trail including clinician overrides, while scheduled performance and subgroup monitoring with defined thresholds turns observation into action. Together they create a feedback loop that supports incident investigation, fairness oversight, and timely intervention, which pure transparency or forced compliance cannot provide.

Exam trap

The trap here is equating transparency, such as publishing source code, with accountability, when accountability actually requires reconstructable decisions and active post-deployment monitoring.

442
MCQmedium

A company is deploying a pre-trained image classification model from a third-party repository. Which supply chain security practice is MOST critical before integration?

A.Detecting backdoored models
B.Monitoring for anomalous inputs
C.Generating a software bill of materials (SBOM)
D.Performing red teaming
AnswerA

Detecting backdoored models directly addresses the third-party repository risk: a pre-trained model can embed a trigger that forces targeted misclassification, which standard accuracy testing will not reveal. Scanning weights and behaviour for such implanted triggers is therefore the critical check before integration, satisfying the untrusted-source constraint in the stem.

Why this answer

Detecting backdoored models is the most critical practice because pre-trained models from third-party repositories can contain hidden malicious behaviors (backdoors) that trigger on specific inputs, compromising the integrity of the entire AI system. Unlike traditional software, models are opaque and can be tampered with during training or conversion, making backdoor detection essential before any integration.

Exam trap

CompTIA often tests the distinction between pre-integration supply chain security (backdoor detection) and post-deployment defenses (anomaly monitoring, red teaming), leading candidates to mistakenly choose runtime controls instead of the critical initial check.

How to eliminate wrong answers

Option B is wrong because monitoring for anomalous inputs is a runtime defense that assumes the model is already trusted; it does not address the pre-integration risk of a backdoored model. Option C is wrong because generating a software bill of materials (SBOM) is useful for tracking software dependencies but does not detect malicious modifications within the model weights or architecture. Option D is wrong because red teaming tests the system's security posture after integration, but it is not the most critical practice before integration—backdoor detection must occur first to prevent a compromised model from being deployed.

443
MCQmedium

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

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

Retraining on labelled images from the rural clinic directly addresses the domain shift causing the sensitivity drop, since lower resolution and different lighting are represented in the new data, aligning the model with deployment conditions.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

444
MCQhard

A data scientist is building a model to detect anomalies in server logs. The dataset contains millions of log entries, each with a timestamp and a message. The scientist wants to create features that capture the frequency of certain keywords (e.g., 'error', 'timeout') over time. Which approach is MOST appropriate for creating these features while avoiding data leakage?

A.Compute keyword frequencies using a sliding window that only includes past log entries relative to each timestamp.
B.Compute keyword frequencies over the entire dataset and use them as static features.
C.Aggregate keyword frequencies per day and assign the same daily frequency to all entries within that day.
D.Use a bag-of-words representation for each log entry individually, ignoring timestamps.
AnswerA

Using a sliding window of past entries ensures that features are computed only from data available before the current timestamp, preventing leakage from future events. This mimics real-time detection where only historical data is available. It also captures temporal patterns like increasing error rates, which are useful for anomaly detection.

Why this answer

To avoid data leakage when creating time-based features, the computation must only use data available up to each point in time. A sliding window that aggregates past log entries ensures causality, mimicking real-time conditions. This captures temporal dynamics like increasing error rates, which are critical for anomaly detection, without using future information that would not be available in production.

Exam trap

The trap here is using global statistics or daily aggregates that inadvertently include future data, which artificially boosts model performance during training but fails in real-world deployment.

445
MCQmedium

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

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

Concept drift occurs when the statistical relationship between input features and target changes over time. The market shift altered purchasing behaviour, so patterns learned from two-year-old data no longer reflect current reality, degrading recommendation relevance.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

446
Multi-Selecthard

A financial services firm is deploying a credit-scoring model that uses alternative data such as utility payments and rental history. The compliance team is concerned about fairness and transparency. Which TWO practices best support responsible AI deployment in this scenario? (Choose two.)

Select 2 answers
A.Provide adverse-action explanations for declined applicants that identify the principal factors influencing the decision.
B.Conduct disparate-impact testing across protected groups and document the results before deployment.
C.Use only the most predictive features and remove any feature that reduces overall accuracy.
D.Retrain the model monthly on all new applications without human review to keep pace with changing data.
E.Encrypt the training data at rest and restrict access to the data science team.
AnswersA, B

Adverse-action explanations are legally required in many credit contexts and directly support transparency. By identifying the principal factors behind a decline, the firm helps applicants understand and potentially contest decisions. This practice also forces the model to be interpretable at the individual level, which is a key responsible-AI requirement when using alternative data that applicants may not expect to influence credit outcomes.

Why this answer

Disparate-impact testing with documentation and adverse-action explanations directly address fairness and transparency in credit scoring. Testing detects discriminatory outcomes across protected groups, while explanations make individual decisions understandable and contestable. Together they satisfy core responsible-AI obligations when alternative data is used.

Exam trap

The trap here is equating data security measures such as encryption with fairness and transparency, when responsible AI in lending specifically requires outcome testing and explainability for affected individuals.

447
MCQhard

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

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

A learning rate that is too high causes the optimiser to overshoot minima, producing the plateau with high variance seen after the initial rapid loss drop. Lowering it reduces update step size, letting the model settle into a smoother minimum and stabilising training.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

448
MCQeasy

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

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

Multimodal models fuse structured tabular embeddings with text embeddings from clinical notes, letting one architecture exploit both data types. This satisfies the stem's requirement to handle age, diagnosis and lab results alongside unstructured notes, whereas single-modality approaches discard half the available signal.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

449
MCQeasy

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

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

Historical bias arises when training data reflects past human prejudice, so the model reproduces that pattern. Here, past hiring favoured men, embedding that imbalance in the labels. This directly satisfies the stem's constraint of skewed historical hiring decisions, producing lower scores for equally qualified female candidates.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

450
MCQmedium

A machine learning engineer is training a Support Vector Machine (SVM) with an RBF kernel on a dataset with features on different scales (e.g., age 0-100, income 0-1,000,000). The model converges slowly and yields poor accuracy. What should the engineer do first?

A.Standardize the features to have zero mean and unit variance
B.Increase the regularization parameter C to penalize misclassifications more
C.Decrease the gamma parameter to reduce the influence of each data point
D.Switch to a linear kernel to avoid distance calculations
AnswerA

The RBF kernel relies on Euclidean distance, so unscaled features such as income dominate age, distorting the kernel and slowing convergence. Standardising to zero mean and unit variance equalises feature influence, directly addressing the scale disparity.

Why this answer

Standardizing features to zero mean and unit variance is the correct first step because SVMs with RBF kernels are distance-based models. Features on vastly different scales (e.g., age 0-100 vs. income 0-1,000,000) cause the kernel to disproportionately weight larger-scale features, leading to slow convergence and poor accuracy. Standardization ensures each feature contributes equally to the distance calculations, improving both training speed and model performance.

Exam trap

The CompTIA AI+ exam often tests the misconception that hyperparameter tuning (C or gamma) is the primary fix for poor SVM performance, when in reality feature scaling is a prerequisite for distance-based kernels like RBF.

How to eliminate wrong answers

Option B is wrong because increasing the regularization parameter C penalizes misclassifications more heavily, which addresses overfitting or underfitting but does not fix the fundamental issue of feature scale disparity. Option C is wrong because decreasing the gamma parameter reduces the influence of each training point, which affects the decision boundary's smoothness but does not correct the scale imbalance that distorts distance computations. Option D is wrong because switching to a linear kernel avoids the RBF kernel's distance-based calculations but does not resolve the scale problem—linear SVMs also rely on distances and benefit from feature scaling.

Page 5

Page 6 of 13

Page 7