Courseiva

CompTIA AI+ AI0-001 (AI0-001) — Questions 826–900

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

Page 11

Page 12 of 13

Page 13
826
MCQmedium

An AI operations team supports a model that scores insurance claims in real time. They need to detect when the live input distribution diverges from the training distribution and alert before claim decisions degrade. Which approach should they implement?

A.Schedule a quarterly manual review of a random sample of claims and adjust the model if reviewers notice problems.
B.Continuously compare live feature distributions against the training baseline using drift metrics such as population stability index, and alert when thresholds are exceeded.
C.Monitor only the model's average prediction value and alert when it changes by more than a fixed percentage.
D.Retrain the model nightly on the most recent claims regardless of any measured change in the data.
AnswerB

Population stability index and similar statistics quantify how far each live feature distribution has moved from the training baseline. Running them continuously on incoming claim features detects divergence early and identifies which variables are responsible, allowing the team to investigate and remediate before decision quality falls. This directly matches the stated need.

Why this answer

Detecting divergence between live and training input distributions requires continuous statistical comparison of feature distributions, which population stability index and related drift metrics provide. This catches change early and pinpoints the drifting features. Output-mean monitoring lags, quarterly sampling is too slow, and unconditional nightly retraining reacts to noise rather than measured drift.

Exam trap

The trap here is monitoring model outputs instead of model inputs, when input-distribution drift must be detected before it degrades the decisions being made.

827
MCQmedium

An organisation is deploying an AI system for credit scoring, which is considered high-risk under the EU AI Act. Which requirement is NOT typically mandated for high-risk systems?

A.Ensure training data is relevant and representative
B.Publish the complete source code of the AI system
C.Establish a risk management system
D.Provide human oversight mechanisms
AnswerB

The EU AI Act mandates risk management, data governance, technical documentation, logging, human oversight and accuracy, but not source code publication. Releasing complete source code is a transparency choice, not a legal obligation, so it is not typically required for high-risk systems.

Why this answer

The EU AI Act mandates several requirements for high-risk AI systems, including risk management, data governance (relevant and representative training data), technical documentation, transparency, human oversight, and accuracy/robustness. Publishing the complete source code is not a typical requirement; the Act focuses on transparency and documentation, not open-sourcing proprietary code. Therefore, option B is the requirement that is NOT typically mandated.

Exam trap

The trap is assuming that transparency under the EU AI Act means publishing source code; candidates may confuse transparency with open-source requirements.

How to eliminate wrong answers

Option A is wrong because ensuring training data is relevant and representative is a core data governance requirement for high-risk AI under the EU AI Act. Option C is wrong because establishing a risk management system is explicitly required for high-risk AI systems. Option D is wrong because providing human oversight mechanisms is a mandated requirement for high-risk AI systems.

828
MCQhard

A team is deploying a machine learning model on a Kubernetes cluster. They need to ensure low-latency inference and efficient resource utilization. Which approach should they use to dynamically scale inference pods based on request volume?

A.Use a Job resource to process requests in batch
B.Deploy a single large pod on a powerful node
C.Use a Horizontal Pod Autoscaler (HPA) with target CPU utilization
D.Set a fixed number of pod replicas equal to the maximum expected load
AnswerC

Horizontal Pod Autoscaler adjusts replica counts from observed CPU utilisation, satisfying the low-latency and efficient-resource constraint by matching pod capacity to request-driven load. It scales horizontally within the cluster, so inference pods expand as traffic rises and contract when idle, avoiding the over-provisioning that fixed replicas would cause.

Why this answer

The Horizontal Pod Autoscaler (HPA) is the correct choice because it automatically scales the number of inference pods based on observed CPU utilization or custom metrics, ensuring low-latency inference by adding replicas during traffic spikes and reducing waste during idle periods. This dynamic scaling aligns with the need for efficient resource utilization in a Kubernetes cluster, as it adjusts pod count in real-time to match request volume without manual intervention.

Exam trap

A common misconception is that batch processing (Jobs) or static scaling is suitable for real-time inference, when in fact dynamic scaling with HPA is required to balance latency and resource efficiency in Kubernetes.

How to eliminate wrong answers

Option A is wrong because a Job resource is designed for batch processing and runs pods to completion, not for serving continuous inference requests that require low-latency responses; it cannot dynamically scale based on request volume. Option B is wrong because deploying a single large pod on a powerful node creates a single point of failure and cannot handle variable request loads efficiently, leading to either over-provisioning or under-provisioning and increased latency during spikes. Option D is wrong because setting a fixed number of pod replicas equal to the maximum expected load wastes resources during low-traffic periods and fails to adapt to actual request volume, contradicting the goal of efficient resource utilization.

829
MCQhard

An organization is implementing an AI-powered chatbot for customer service. The chatbot must comply with GDPR and handle data subject access requests (DSARs). Which design approach best ensures compliance?

A.Minimize data collection by not logging any user interactions.
B.Anonymize all user data before logging interactions.
C.Implement an audit trail that logs interactions with a unique user identifier, and provide a mechanism to delete logs upon user request.
D.Encrypt all chat logs and store them indefinitely for audit purposes.
AnswerC

Logging each interaction against a unique identifier makes records retrievable for DSAR fulfilment, while the deletion mechanism enforces the right to erasure. Together they satisfy GDPR's access and erasure obligations, which the stem's compliance constraint specifically demands.

Why this answer

GDPR requires that personal data be stored only as long as necessary and that data subjects have the right to erasure. By logging interactions with a unique user identifier and providing a deletion mechanism, the chatbot can fulfill DSARs while maintaining an audit trail for compliance monitoring. This approach balances operational needs with regulatory obligations.

Exam trap

CompTIA often tests the misconception that GDPR requires complete data minimization (Option A) or indefinite encryption (Option D), when in fact the regulation mandates a balance between data utility and privacy rights, including the ability to delete data upon request.

How to eliminate wrong answers

Option A is wrong because not logging any user interactions prevents the organization from monitoring chatbot performance, improving the AI model, or detecting security incidents, and GDPR does not prohibit all logging—only excessive or unnecessary data collection. Option B is wrong because anonymization must be irreversible to be GDPR-compliant; if the data can be re-identified (e.g., via correlation with other logs), it is pseudonymization, which still subjects it to GDPR requirements, and anonymizing before logging does not address the need to handle DSARs for data that was originally personal. Option D is wrong because storing chat logs indefinitely violates the GDPR storage limitation principle (Article 5(1)(e)), which mandates that personal data be kept no longer than necessary for the purpose for which it is processed.

830
MCQeasy

A data science team uses a CI/CD pipeline for ML models. They need to ensure that each model version is traceable back to the exact training data and hyperparameters. Which practice should be implemented?

A.Use a model registry with metadata tracking (e.g., MLflow)
B.Use Git LFS for model files
C.Store model artifacts in blob storage with timestamped filenames
D.Record hyperparameters in a shared spreadsheet
AnswerA

A model registry with metadata tracking records each version's lineage, linking artefacts to the exact training dataset and hyperparameter values. MLflow captures these parameters, metrics and data references at logging time, satisfying the traceability constraint the pipeline requires for auditing every deployed model version.

Why this answer

A model registry, such as MLflow, serves as a centralized repository that tracks model versions along with metadata like training data snapshots and hyperparameters, ensuring full traceability. Git LFS (Option B) only handles large files, not metadata. Storing artifacts in blob storage with timestamped filenames (Option C) lacks structured tracking and query capabilities.

A shared spreadsheet (Option D) is error-prone and not integrated into the CI/CD pipeline.

831
MCQeasy

A machine learning engineer notices that a linear regression model has high bias. Which action is most likely to reduce bias?

A.Use a more complex model, such as polynomial regression
B.Reduce the number of training samples
C.Add L2 regularization
D.Apply feature scaling
AnswerA

High bias means the model underfits, so increasing capacity with polynomial regression lets it capture non-linear relationships the linear hypothesis cannot represent, reducing bias. Note this typically raises variance, trading one error source for the other.

Why this answer

High bias indicates that the model is too simple to capture the underlying patterns in the data, leading to underfitting. Using a more complex model, such as polynomial regression, increases the model's capacity to fit the training data better, directly addressing the underfitting issue. This is the standard approach to reduce bias in machine learning.

Exam trap

CompTIA often tests the bias-variance tradeoff by making candidates confuse bias-reduction techniques with variance-reduction techniques, such as regularization or reducing training data, which actually increase bias or do not affect it.

How to eliminate wrong answers

Option B is wrong because reducing the number of training samples typically increases variance and does not reduce bias; it can actually worsen underfitting by providing less data for the model to learn from. Option C is wrong because adding L2 regularization (Ridge regression) penalizes large coefficients, which increases bias by constraining the model, making it simpler and potentially worsening underfitting. Option D is wrong because feature scaling (e.g., normalization or standardization) does not change the model's complexity or bias; it only helps gradient descent converge faster and is irrelevant for bias reduction.

832
MCQmedium

A data scientist is training a binary classification model to detect fraudulent transactions. The dataset contains 99.9% legitimate transactions and 0.1% fraudulent transactions. After training a logistic regression model, the accuracy is 99.9%, but the recall for the fraud class is 0%. Which of the following is the MOST likely cause?

A.The regularization parameter is too large, causing underfitting.
B.The model is overfitting due to too many features.
C.The learning rate was too high.
D.The dataset is highly imbalanced, and the model predicts the majority class for all instances.
AnswerD

With 0.1% fraud, a model predicting legitimate for every transaction scores 99.9% accuracy yet catches no fraud, giving 0% recall. The extreme class imbalance dominates the loss function, so the model never learns the minority pattern. Resampling or class weighting is required.

Why this answer

The dataset has a severe class imbalance (99.9% legitimate, 0.1% fraudulent). A logistic regression model that predicts the majority class (legitimate) for every instance will achieve 99.9% accuracy but 0% recall for the fraud class, because it never identifies any positive fraud cases. This is the classic 'accuracy paradox' in imbalanced classification.

Exam trap

CompTIA often tests the 'accuracy paradox' where candidates mistakenly attribute high accuracy to model quality, ignoring that in imbalanced datasets, a dummy classifier predicting the majority class can achieve the same accuracy, and the trap is to overlook recall or precision for the minority class.

How to eliminate wrong answers

Option A is wrong because a large regularization parameter (e.g., high L2 penalty) causes underfitting by shrinking coefficients too much, but the model here is not underfitting—it is perfectly fitting the majority class, which is a different failure mode. Option B is wrong because overfitting due to too many features would typically cause high variance and poor generalization, not a perfect 99.9% accuracy with 0% recall on the minority class; overfitting would likely memorize some fraud examples. Option C is wrong because a learning rate that is too high would cause the model's loss to diverge or oscillate, not converge to a trivial majority-class predictor with high accuracy.

833
MCQeasy

A hospital deploys an AI model that summarizes clinical notes for physicians. Before go-live, the AI team must verify that the model does not reproduce patient identifiers in its summaries when they are not clinically necessary. Which activity is the MOST appropriate for this verification?

A.Run a red-team evaluation with prompts designed to elicit protected health information and measure leakage rates.
B.Verify that the training dataset was de-identified using an automated named-entity recognition scrubber.
C.Confirm the model card documents the intended use and known limitations of the summarization system.
D.Compare the model's perplexity on the clinical corpus against its perplexity on public text.
AnswerA

Red-teaming directly probes the deployed behavior by attempting to extract identifiers through realistic and adversarial prompts, producing a measured leakage rate the team can compare against an acceptance threshold. This tests the actual risk the hospital cares about, unlike metrics that assess only general language quality or training-set statistics without exercising the summarization path.

Why this answer

Verifying that a summarizer suppresses unnecessary identifiers requires exercising the model with prompts that attempt to elicit protected health information and measuring how often leakage occurs. Red-teaming produces that empirical evidence against a threshold. Perplexity, training-data scrubbing, and model cards are useful complements but none demonstrates the deployed model's output behavior under adversarial or realistic clinical prompts.

Exam trap

The trap here is assuming that de-identifying the training data guarantees the model will not output identifiers, which confuses input hygiene with output verification.

834
MCQhard

A data science team wants to train a model on sensitive medical records while minimizing the risk of leaking individual patient information. They need to ensure that the model's outputs do not reveal whether a specific patient's data was used in training. Which privacy-preserving technique directly addresses this requirement?

A.Homomorphic encryption
B.Differential privacy
C.Data anonymization
D.Federated learning
AnswerB

Differential privacy adds calibrated noise to queries or training so that any single patient's inclusion cannot be distinguished in the output, directly satisfying the requirement that outputs not reveal whether a specific patient's data was used.

Why this answer

Differential privacy directly addresses the requirement by adding calibrated noise to the training process or model outputs, ensuring that the inclusion or exclusion of any single patient's data does not significantly affect the final model. This provides a formal mathematical guarantee (ε-differential privacy) that an adversary cannot infer whether a specific individual's records were used, even with auxiliary information.

Exam trap

CompTIA often tests the misconception that data anonymization is sufficient for preventing membership inference, when in fact it does not provide a formal mathematical guarantee against linkage or re-identification attacks.

How to eliminate wrong answers

Option A is wrong because homomorphic encryption allows computation on encrypted data but does not prevent inference about individual training records from the model's outputs; it protects data in transit or at rest, not the privacy of the training set. Option C is wrong because data anonymization (e.g., removing direct identifiers) is often insufficient against linkage attacks or membership inference, and does not provide a formal guarantee against re-identification or membership disclosure. Option D is wrong because federated learning keeps raw data on local devices and shares only model updates, but those updates can still leak information about individual records through gradient analysis or model inversion without additional noise mechanisms.

835
MCQmedium

During model deployment, a data engineer notices that the model's predictions are consistently lower than expected due to a shift in the distribution of one feature between training and production. Which technique should be used to detect and quantify this shift?

A.Compute the root mean square error (RMSE)
B.Calculate the population stability index (PSI)
C.Generate a confusion matrix
D.Perform a t-test on the means
AnswerB

Calculating the population stability index directly quantifies distributional drift between training and production data for a single feature, satisfying the stem's requirement to detect and measure the shift. PSI compares binned proportions across both datasets, producing a numeric score that flags meaningful divergence, unlike accuracy metrics which cannot isolate feature-level change.

Why this answer

The Population Stability Index (PSI) is specifically designed to detect and quantify shifts in the distribution of a feature or score between two populations, such as training and production datasets. It measures the stability of the feature by comparing the proportion of observations in each bin across the two time periods, making it the correct choice for diagnosing distribution drift in model deployment.

Exam trap

CompTIA often tests the distinction between performance metrics (like RMSE or confusion matrix) and distribution monitoring metrics (like PSI), trapping candidates who confuse model accuracy evaluation with data drift detection.

How to eliminate wrong answers

Option A is wrong because RMSE measures the average magnitude of prediction errors, not distribution shifts between datasets. Option C is wrong because a confusion matrix evaluates classification performance against ground truth labels, not feature distribution changes. Option D is wrong because a t-test on the means only checks for a difference in central tendency, not the full distributional shift that PSI captures, and it is sensitive to sample size rather than bin-wise stability.

836
MCQmedium

During an audit of an AI system, the auditor requests documentation on the model's intended use, performance metrics, and limitations. Which tool is designed to provide this information in a standardized format?

A.SHAP values
B.LIME
C.Model card
D.Data card
AnswerC

A model card is the standardised artefact documenting a model's intended use, performance metrics and limitations, directly satisfying the auditor's request. Unlike datasheets, which describe training datasets, model cards address the deployed model itself, giving the transparency evidence required for AI governance audits.

Why this answer

A model card is a standardized document that describes a model's intended use, performance metrics, limitations, ethical considerations, and other relevant details. It is specifically designed to provide transparency and accountability documentation for AI models, matching the auditor's request. Model cards were popularized by Google and are now a common governance artifact.

Exam trap

AI0-001 often tests the confusion between explainability techniques (SHAP, LIME) and documentation artifacts (model cards, data cards) — candidates must recognize that the auditor is asking for standardized documentation, not a prediction-explanation method.

How to eliminate wrong answers

Option A is wrong because SHAP values are a technique for explaining individual predictions by attributing feature contributions, not a documentation format for model metadata. Option B is wrong because LIME is a local interpretability method that approximates model behavior around a single prediction, not a standardized documentation tool. Option D is wrong because a data card documents a dataset's provenance, composition, and characteristics, not the model's intended use and performance metrics.

837
MCQeasy

A media company uses a generative AI service to draft marketing copy. Legal asks the AI governance team to reduce the risk that outputs reproduce copyrighted passages from the training corpus. Which control most directly addresses that specific risk?

A.Log every prompt and response for ninety days and store the logs in the governance archive.
B.Require all marketing staff to complete annual training on the organization's acceptable-use policy.
C.Enable content-provenance metadata and output filtering that flags or blocks near-verbatim matches to known copyrighted text.
D.Lower the model's temperature setting so generated text is more deterministic.
AnswerC

Near-verbatim reproduction is the concrete harm legal is worried about, and provenance metadata plus similarity filtering targets it at generation time. The filter compares candidate output against reference corpora and blocks or flags long matching spans, while provenance metadata records how the content was produced. Together they give the governance team an enforceable, auditable control tied to the identified risk.

Why this answer

The risk is that generated marketing copy could contain near-verbatim copyrighted material. A control that inspects output for long matches against reference corpora and blocks or flags them, paired with provenance metadata, directly reduces that exposure and leaves an audit trail. Training, temperature tuning, and logging influence behavior or records but do not detect or stop a reproducing output before publication.

Exam trap

The trap here is assuming that lowering model temperature or adding awareness training prevents memorized text from being reproduced, when neither examines the generated output for infringement.

838
Multi-Selectmedium

Which THREE of the following are key principles of trustworthy AI as defined by major regulatory bodies?

Select 3 answers
A.Fairness and non-discrimination
B.Transparency and explainability
C.Maximum profitability
D.Proprietary secrecy
E.Accountability
AnswersA, B, E

Fairness and non-discrimination require AI systems to avoid unjustified disparate treatment or outcomes across protected groups. Regulatory frameworks including the EU AI Act and OECD principles treat this as a core trustworthy AI requirement, satisfying the stem's demand for key principles.

Why this answer

Fairness and non-discrimination (A) is a core principle because trustworthy AI frameworks such as the EU AI Act and OECD AI Principles require systems to avoid biased outcomes and unjust discrimination across protected groups. Transparency and explainability (B) is also correct, as these bodies mandate that AI decisions be understandable and that stakeholders can access meaningful information about how systems operate. Accountability (E) is correct because trustworthy AI requires clear responsibility and redress mechanisms, ensuring that developers and deployers can be held answerable for system outcomes.

Maximum profitability (C) is not a trustworthiness principle; it is a business objective and is not part of regulatory AI ethics definitions. Proprietary secrecy (D) is also not a principle, since trustworthiness frameworks emphasize disclosure, auditability, and transparency rather than concealment.

Exam trap

The AI0-001 exam often tests the distinction between ethical principles and business goals, so candidates mistakenly select 'maximum profitability' or 'proprietary secrecy' because they confuse corporate interests with regulatory requirements for trustworthy AI.

839
Multi-Selectmedium

A logistics company is deploying a computer vision model that reads container identification numbers from photos taken at warehouse gates. The model performs well in testing but struggles in production because lighting, camera angles, and container wear vary widely. The team wants to improve robustness before full rollout. Which TWO actions should they take? (Choose two.)

Select 2 answers
A.Collect and label a sample of real gate images, then add them to the training or validation set.
B.Retrain the model using only the highest-resolution images available in the existing dataset.
C.Augment the training set with images that vary brightness, contrast, rotation, and blur to mimic gate conditions.
D.Lower the confidence threshold so the model returns a prediction for every gate image.
E.Increase the model's parameter count by switching to a larger backbone architecture.
AnswersA, C

Real production images capture the true distribution of lighting, angle, and wear that synthetic augmentation only approximates. Adding them to training or validation closes the domain gap and gives the team an honest measure of field performance. This is essential before committing to full rollout.

Why this answer

Robustness gaps between lab and field are closed primarily with representative data. Augmentation simulates the variability of gate conditions, and real labeled gate images supply the actual distribution the model must handle. Together they improve generalization and provide a truthful validation signal.

Larger models, lower thresholds, and resolution filtering do not address the missing data diversity.

Exam trap

The trap here is assuming a bigger model or a looser threshold can compensate for training data that does not represent production conditions.

840
MCQmedium

A company needs to store large volumes of unstructured data (PDFs, images, logs) for future AI model training. The data must be easily accessible by data scientists using Spark and must support cost-effective storage. Which data infrastructure is MOST appropriate?

A.Snowflake data warehouse
B.Relational database like Amazon RDS
C.Pinecone vector database
D.Amazon S3 data lake
AnswerD

Amazon S3 provides durable, cost-effective object storage for unstructured PDFs, images and logs, and integrates natively with Spark and analytics tooling. This satisfies both the accessibility requirement for data scientists and the cost-effective storage constraint for future AI training.

Why this answer

Amazon S3 is the canonical data lake storage layer for large volumes of unstructured data such as PDFs, images, and logs, and it integrates natively with Spark via the S3A connector and with AWS Glue, EMR, and Athena. Its object storage model, tiered storage classes (Standard, IA, Glacier), and pay-for-what-you-use pricing make it cost-effective for petabyte-scale AI training corpora. This combination of scalability, accessibility, and cost is exactly what the scenario requires.

Exam trap

AI0-001 often tests the confusion between storage layers (S3 data lake) and compute/query layers (Snowflake, RDS) or specialized stores (Pinecone), so candidates who focus on 'analytics' rather than 'unstructured storage' pick the wrong tier.

How to eliminate wrong answers

Option A is wrong because Snowflake is a structured/semi-structured analytical data warehouse optimized for SQL workloads, not a cost-effective store for raw unstructured PDFs and images. Option B is wrong because Amazon RDS is a relational database designed for transactional structured data with row/column schemas, and it cannot economically or practically store large binary objects at petabyte scale. Option C is wrong because Pinecone is a vector database for storing embeddings and performing similarity search, not a general-purpose object store for raw unstructured files.

841
MCQhard

An AI platform team is building a retrieval-augmented generation service over an internal knowledge base of roughly 40 million technical documents. Queries must return semantically relevant passages in under 50 ms at the vector search layer. The team wants approximate nearest neighbor search that supports metadata filtering on fields such as product line and document date, and they want to avoid a separate relational database for those filters. Which vector index type best matches these requirements?

A.HNSW index with payload filtering
B.Flat (brute-force) index
C.Product quantization index without a graph
D.Inverted file index with a very large nlist
AnswerA

HNSW builds a hierarchical navigable small-world graph that delivers high recall at very low latency on tens of millions of vectors, and modern engines support payload or metadata filtering combined with the graph traversal. That satisfies both the sub-50 ms semantic search target and the product-line and date constraints without adding a separate relational store for filters.

Why this answer

The combination of tens of millions of vectors, a strict latency ceiling, and integrated metadata filtering points to a graph-based approximate index with payload filtering. HNSW's layered graph gives logarithmic-style search with high recall, and payload filtering lets the engine apply product-line and date constraints during traversal rather than post-filtering, which would otherwise shrink the candidate pool and hurt recall.

Exam trap

The trap here is treating metadata filtering as something applied after vector search, when post-filtering at this scale can silently drop most candidates and destroy recall.

842
MCQeasy

Which hardware accelerator is specifically designed by Google for training and inference of machine learning models, particularly their TensorFlow framework?

A.NPU
B.FPGA
C.GPU
D.TPU
AnswerD

Tensor Processing Units are Google-designed ASICs built around systolic arrays for matrix multiplication, purpose-built for TensorFlow training and inference workloads. Unlike GPUs, which are general-purpose parallel processors, TPUs deliver higher throughput per watt specifically for the tensor operations the stem describes.

Why this answer

TPU (Tensor Processing Unit) is Google's custom ASIC designed to accelerate ML workloads, especially with TensorFlow.

843
MCQeasy

A security team is red teaming an LLM-powered application. Which activity is MOST likely to be performed during red teaming?

A.Calculating the model's accuracy on a test set
B.Attempting jailbreaks to bypass safety guardrails
C.Reviewing the model's training data for bias
D.Auditing the model's inference latency
AnswerB

Jailbreaking probes craft adversarial prompts that attempt to override system instructions and safety guardrails, directly testing whether the LLM application can be manipulated into prohibited outputs. This adversarial prompt-level testing is the defining activity of red teaming an LLM-powered application.

Why this answer

Red teaming an LLM-powered application focuses on adversarial testing to uncover security vulnerabilities, not on evaluating model performance or data quality. Attempting jailbreaks directly tests whether the LLM's safety guardrails can be bypassed to produce harmful or restricted outputs, which is the core objective of red teaming in AI security.

Exam trap

CompTIA often tests the distinction between red teaming (adversarial security testing) and other model evaluation activities (like accuracy or bias checks), leading candidates to confuse standard ML evaluation with security-specific red teaming.

How to eliminate wrong answers

Option A is wrong because calculating accuracy on a test set is a standard model evaluation technique, not a red teaming activity; red teaming targets security weaknesses, not performance metrics. Option C is wrong because reviewing training data for bias is a fairness or data governance task, not a red teaming exercise; red teaming actively probes the model's behavior under attack. Option D is wrong because auditing inference latency is a performance engineering or monitoring task, unrelated to adversarial security testing.

844
MCQhard

An ML team uses Kubeflow to orchestrate a pipeline that includes data preprocessing, model training, and evaluation. The pipeline runs on a Kubernetes cluster. After a cluster upgrade, the pipeline fails at the training step with an 'OOMKilled' error. What is the MOST likely cause?

A.The training code has a memory leak
B.The pipeline definition is missing a step dependency
C.The Kubernetes node's memory resources were not correctly allocated to the pod's resource requests or limits
D.The training data is corrupted
AnswerC

OOMKilled means the container exceeded its memory limit and the kernel terminated it. If the pod's memory requests or limits were not adjusted for the upgraded node's capacity, the training container gets killed, so misallocated pod memory resources are the most likely cause.

Why this answer

Kubeflow pipelines run each step as a Kubernetes pod, and the OOMKilled status is a Kubernetes-level signal that the container exceeded its memory limit (or the node ran out of allocatable memory). After a cluster upgrade, node instance types, kubelet reservations, or resource quotas often change, so the pod's original requests/limits no longer match available memory. The error appears specifically at the training step because that step has the largest memory footprint, making it the first to be evicted or killed.

Exam trap

The trap here is assuming OOMKilled points to application code (a leak) rather than to Kubernetes resource configuration, when the timing after a cluster upgrade is the decisive clue.

How to eliminate wrong answers

Option A is wrong because a code memory leak would typically cause gradual memory growth and would not correlate with a cluster upgrade; it also would not produce an immediate OOMKilled at the same pipeline stage unless limits were already too tight. Option B is wrong because a missing step dependency causes the pipeline to fail with a DAG/ordering error or a step running before its inputs exist, not an OOMKilled termination. Option D is wrong because corrupted training data produces data parsing, schema, or accuracy errors, not a container memory kill signal from the kubelet.

845
MCQmedium

A model trained on a dataset has high bias and low variance. What does this indicate?

A.Good fit
B.Data leakage
C.Overfitting
D.Underfitting
AnswerD

High bias means the model is too simple to capture the underlying pattern, and low variance means its predictions stay consistently wrong across samples. Together these signal underfitting, where training and validation errors both remain high.

Why this answer

High bias and low variance indicate that the model is too simple to capture the underlying patterns in the data, leading to systematic errors on both training and test sets. This is the classic signature of underfitting, where the model fails to learn the training data adequately.

Exam trap

The CompTIA AI exam often tests the bias-variance tradeoff by reversing the definitions, so candidates mistakenly associate high bias with overfitting or high variance with underfitting.

How to eliminate wrong answers

Option A is wrong because a good fit requires low bias and low variance, not high bias. Option B is wrong because data leakage typically causes overly optimistic performance metrics, not a high-bias, low-variance error pattern. Option C is wrong because overfitting is characterized by low bias and high variance, the exact opposite of the given condition.

846
MCQeasy

A dataset contains features on vastly different scales (e.g., age 0-100 vs. income 0-1,000,000). Which preprocessing step is essential before training a neural network?

A.Data augmentation
B.Dimensionality reduction
C.Feature scaling (standardization or normalization)
D.One-hot encoding
AnswerC

Features on vastly different scales cause gradient updates to be dominated by large-magnitude inputs, slowing or destabilising training. Standardisation or normalisation rescales each feature to a comparable range, ensuring the network converges efficiently and weights are not biased toward high-range variables such as income.

Why this answer

Neural networks rely on gradient-based optimization, where features with larger scales can dominate the weight updates, causing unstable convergence or slow training. Feature scaling (standardization or normalization) ensures all features contribute equally to the loss function, preventing the model from being biased toward high-magnitude features like income versus age.

Exam trap

CompTIA AI often tests the misconception that data augmentation or dimensionality reduction can substitute for feature scaling, when in fact scaling is a prerequisite for stable gradient descent in neural networks.

How to eliminate wrong answers

Option A is wrong because data augmentation is a technique to artificially increase dataset size by creating modified copies of data (e.g., rotations, flips for images), not to address scale differences among features. Option B is wrong because dimensionality reduction (e.g., PCA) reduces the number of features to combat the curse of dimensionality or noise, but it does not equalize the scales of existing features; scaling is still required before or after reduction. Option D is wrong because one-hot encoding is used to convert categorical variables into binary vectors, not to handle numerical features with differing magnitudes.

847
Multi-Selectmedium

An AI developer is selecting a model architecture for a real-time video surveillance system that must detect objects in each frame and also track movement patterns across frames. Which TWO architectures should the developer combine? (Choose 2)

Select 2 answers
A.Transformer encoder only
B.Generative adversarial network (GAN)
C.Variational autoencoder (VAE)
D.Recurrent neural network (RNN) or LSTM
E.Convolutional neural network (CNN)
AnswersD, E

RNNs and LSTMs maintain hidden state across timesteps, so they model temporal dependencies between frames — exactly the movement-tracking requirement. Combined with a CNN for per-frame object detection, they satisfy the stem's dual constraint of detecting objects and tracking motion patterns over time.

Why this answer

Option E, a convolutional neural network (CNN), is correct because CNNs apply learned spatial filters over pixel grids and are the standard architecture for per-frame object detection and feature extraction in video surveillance, efficiently capturing spatial hierarchies in each image. Option D, an RNN or LSTM, is correct because recurrent architectures model temporal dependencies across sequential frames, allowing the system to learn movement patterns and object trajectories over time; LSTMs in particular mitigate vanishing gradients for longer sequences. Together, a CNN front end for spatial detection plus an RNN/LSTM back end for temporal tracking forms a classic video-analysis pipeline.

Option A, a Transformer encoder only, is not the intended pairing here since it lacks the convolutional spatial inductive bias for frame-level detection and, used alone, does not provide the recurrent temporal modeling this scenario calls for. Option B, a GAN, is for generative adversarial training to synthesize or enhance data, not for detection and tracking. Option C, a VAE, is a generative model for learning latent representations and reconstruction, not a supervised detector-tracker component.

848
Multi-Selectmedium

A company is deploying a new AI system that processes personal data. To comply with privacy regulations, they want to minimize the risk of membership inference attacks. Which THREE practices should they adopt? (Select three.)

Select 3 answers
A.Use differential privacy during training
B.Implement access controls on the model API
C.Increase model size to improve accuracy
D.Enable audit logging of all model interactions
E.Use homomorphic encryption for model inference
AnswersA, B, D

Differential privacy adds calibrated noise during training, bounding any single record's influence on the model. This directly reduces the confidence gap between member and non-member records that membership inference exploits, satisfying the regulatory risk-minimisation goal.

Why this answer

Option A (Use differential privacy during training) is correct because differential privacy adds calibrated noise to the training process, which bounds how much any single individual's data can influence the model, directly reducing the signal that membership inference attacks exploit. Option B (Implement access controls on the model API) is correct because membership inference typically requires repeated, query-based probing of the model's outputs; restricting who can query the API and how often limits an adversary's ability to run the statistical tests needed to infer training-set membership. Option D (Enable audit logging of all model interactions) is correct because logging queries and responses enables detection of the anomalous, high-volume probing patterns characteristic of membership inference attempts, supporting timely investigation and response.

Option C (Increase model size to improve accuracy) is not correct because larger, higher-capacity models tend to overfit training data more, which increases rather than minimizes membership inference risk. Option E (Use homomorphic encryption for model inference) is not correct because homomorphic encryption protects data confidentiality during computation but does not prevent an authorized client from analyzing the returned outputs to infer membership.

Exam trap

CompTIA often tests the misconception that larger models are inherently more secure, but the trap here is that increasing model size actually amplifies overfitting and memorization, thereby increasing vulnerability to membership inference attacks.

849
Multi-Selectmedium

A company is implementing an AI solution for fraud detection. The dataset is highly imbalanced (only 1% fraudulent transactions). Which THREE techniques are most appropriate to address class imbalance? (Select three.)

Select 3 answers
A.Apply cost-sensitive learning by assigning a higher misclassification cost to the minority class.
B.Reduce the number of features using principal component analysis (PCA).
C.Use accuracy as the primary evaluation metric.
D.Evaluate model performance using precision-recall curves and F1 score.
E.Use synthetic oversampling (SMOTE) to create additional minority class samples.
AnswersA, D, E

Cost-sensitive methods penalize minority class errors more heavily.

Why this answer

Cost-sensitive learning directly addresses class imbalance by assigning a higher misclassification cost to the minority class (fraudulent transactions). This forces the model to penalize false negatives more heavily, thereby improving recall for the minority class without altering the dataset distribution.

Exam trap

CompTIA often tests the misconception that accuracy is a valid metric for imbalanced datasets, but the trap here is that candidates overlook how a high accuracy can mask poor minority class performance, leading them to select option C instead of focusing on precision-recall curves and F1 score.

850
MCQeasy

Which similarity measure is commonly used in vector search to find the angle between vectors, making it well-suited for high-dimensional embeddings?

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

Cosine similarity measures the cosine of the angle between two vectors, ignoring magnitude and reflecting only directional alignment. This makes it well-suited to high-dimensional embeddings, where orientation encodes semantic meaning and vector length is largely irrelevant.

Why this answer

Cosine similarity measures the cosine of the angle between two vectors, making it ideal for high-dimensional embeddings because it focuses on orientation rather than magnitude. It is widely used in vector search and NLP tasks where vector direction encodes semantic meaning.

Exam trap

AI0-001 often tests whether candidates confuse dot product with cosine similarity — remember that cosine similarity normalizes by magnitude, while dot product does not, making cosine the angle-based measure.

How to eliminate wrong answers

Option A is wrong because Manhattan distance (L1) measures absolute differences along axes and is sensitive to magnitude, not angle. Option B is wrong because Euclidean distance (L2) measures straight-line distance and is also magnitude-sensitive, which can distort similarity in high-dimensional spaces. Option C is wrong because dot product is related to cosine similarity but is not normalized — it conflates magnitude with angle, so it is not purely a measure of angle.

851
MCQmedium

A team trained a deep neural network on a limited dataset. The training loss decreases consistently, but the validation loss starts increasing after 20 epochs. What is the most likely issue and the best corrective action?

A.Vanishing gradient; use ReLU activation
B.Overfitting; apply regularization like dropout
C.Underfitting; increase model complexity
D.Data leakage; reshuffle split
AnswerB

Dropout randomly deactivates neurons during training, forcing the network to learn redundant, generalisable features rather than memorising the limited samples. This directly counteracts the diverging validation loss after epoch 20, which signals overfitting. Regularisation constrains model capacity, restoring alignment between training and validation performance.

Why this answer

The training loss decreasing while validation loss increasing after 20 epochs is the classic signature of overfitting: the model has memorized the training data but fails to generalize to unseen data. Applying regularization like dropout forces the network to learn more robust features by randomly dropping neurons during training, reducing overfitting. This is the most direct and effective corrective action for this specific symptom.

Exam trap

CompTIA often tests the distinction between overfitting and vanishing gradients by showing a loss curve that decreases initially then rises, tricking candidates into thinking the gradient is vanishing when the real issue is poor generalization.

How to eliminate wrong answers

Option A is wrong because vanishing gradient causes the training loss to stagnate or decrease very slowly from the start, not a divergence between training and validation loss after many epochs; ReLU helps mitigate vanishing gradients but does not address overfitting. Option C is wrong because underfitting would show both training and validation loss remaining high or not decreasing, and increasing model complexity would worsen overfitting, not fix it. Option D is wrong because data leakage typically causes both training and validation loss to be artificially low and correlated, not a divergence after a certain number of epochs; reshuffling the split does not address the core issue of model memorization.

852
MCQmedium

A retail company is building a recommendation system to suggest products to customers based on their purchase history. The data engineering team has collected data from point-of-sale systems, online browsing logs, and customer reviews. After cleaning the data, they notice that the feature set has over 500 dimensions, leading to high computational costs and potential overfitting. They need to reduce dimensionality while preserving as much variance as possible for the model. The team is considering various techniques. Which approach should they take to achieve this goal most effectively?

A.Keep all features but apply L1 regularization (Lasso) in the model to automatically reduce coefficients to zero.
B.Apply t-Distributed Stochastic Neighbor Embedding (t-SNE) to reduce the feature space to 50 dimensions.
C.Select only features that have a high correlation with the target variable, discarding all others.
D.Use Principal Component Analysis (PCA) to reduce the feature space to the top 50 principal components that explain 95% of the variance.
AnswerD

PCA transforms the 500 correlated features into orthogonal components ranked by explained variance, so 50 components capture 95% of the variance. This satisfies the stem's dual constraint: cut dimensionality while preserving variance, unlike feature selection, which discards rather than recombines information.

Why this answer

Principal Component Analysis (PCA) is a linear dimensionality reduction technique that transforms the original high-dimensional feature space into a set of orthogonal principal components, ordered by the amount of variance they capture. By selecting the top 50 components that explain 95% of the variance, the team effectively reduces the feature set from over 500 dimensions while preserving the most informative structure in the data, directly addressing the goals of lowering computational cost and mitigating overfitting.

Exam trap

CompTIA AI+ exam questions often test the distinction between dimensionality reduction techniques (PCA) and feature selection methods (Lasso, correlation-based selection) or visualization tools (t-SNE), expecting candidates to recognize that PCA is the only option that explicitly reduces dimensionality while preserving maximum variance in a way that is suitable for downstream modeling.

How to eliminate wrong answers

Option A is wrong because L1 regularization (Lasso) is a feature selection method applied during model training, not a dimensionality reduction technique applied to the feature set before modeling; it does not reduce the number of features in the dataset itself and can still leave high-dimensional data for preprocessing. Option B is wrong because t-SNE is a non-linear visualization technique primarily used for exploring high-dimensional data in 2D or 3D plots; it does not preserve global variance structure, is non-deterministic, and cannot be applied to new unseen data points, making it unsuitable for preprocessing in a production recommendation system. Option C is wrong because selecting only features with high correlation to the target variable ignores interactions between features and can discard features that, while individually weakly correlated, contribute significantly to variance when combined; this approach risks losing valuable information and is not a principled variance-preserving dimensionality reduction method.

853
Multi-Selecteasy

A team is building an AI-powered recommendation system for an e-commerce platform. They want to test the system before deployment. Which TWO types of testing are MOST relevant for this AI system? (Select TWO)

Select 2 answers
A.Load testing the web server
B.Integration tests for API calls
C.Evaluation frameworks for model output quality
D.Unit tests for data pipelines
E.Regression testing on the UI
AnswersC, D

Evaluation frameworks assess recommendation output quality, such as relevance, ranking accuracy and coverage, before deployment. This directly satisfies the stem's requirement to test the AI system's behaviour, catching quality issues that conventional functional testing would miss.

Why this answer

Option C (Evaluation frameworks for model output quality) is correct because AI/ML systems produce probabilistic outputs that cannot be validated by traditional assertions; frameworks such as accuracy, precision/recall, F1, BLEU, or ROUGE metrics are needed to assess whether the recommendation model generates relevant, high-quality predictions before deployment. Option D (Unit tests for data pipelines) is correct because the recommendation system depends on feature engineering and ETL/data ingestion pipelines; unit tests verify transformations, schema conformance, null handling, and data integrity so that garbage data does not silently degrade model behavior. Option A (Load testing the web server) is not selected because it measures infrastructure throughput and concurrency rather than the AI system's model correctness or data quality.

Option B (Integration tests for API calls) is not selected because, while useful generally, it tests service-to-service communication rather than the AI-specific concerns of model output quality and data pipeline correctness. Option E (Regression testing on the UI) is not selected because it validates front-end behavior and visual consistency, which is peripheral to testing the AI model and its data pipeline.

Exam trap

AI0-001 often tests whether candidates default to traditional software testing types (load, integration, UI) instead of recognizing AI-specific testing needs like model evaluation and data pipeline validation.

854
MCQhard

An ML engineer is tuning a random forest classifier for a medical diagnosis task and observes that training accuracy is 99% while validation accuracy is 78%. She wants to reduce the gap without discarding the ensemble approach. Which change is most likely to reduce the generalization gap?

A.Add more trees to the ensemble until the out-of-bag error stops decreasing.
B.Increase the maximum tree depth so each tree can capture more interactions in the training data.
C.Reduce the maximum tree depth and increase the minimum number of samples required at each leaf.
D.Disable bootstrap sampling so every tree is trained on the full dataset instead of a random subset.
AnswerC

A 99% versus 78% split is classic overfitting: individual trees are fitting noise. Limiting depth and raising the minimum samples per leaf constrains tree complexity, forcing each tree to learn broader, more generalizable splits. Combined with the ensemble averaging of a random forest, this typically narrows the train-validation gap while preserving the benefits of bagging and feature subsampling.

Why this answer

The large train-validation gap indicates that the individual trees are too complex and memorizing the training set. Constraining tree depth and requiring more samples per leaf regularizes each estimator. Because a random forest averages many decorrelated trees, this regularization typically improves validation accuracy while keeping the ensemble's variance-reduction benefits intact.

Exam trap

The trap here is assuming that adding more trees or more depth will always improve a random forest, when the gap points to per-tree overfitting that only complexity limits can fix.

855
MCQmedium

A data engineer is building a pipeline to process streaming clickstream data and feed it into a real-time ML feature store. Which tool is BEST suited for the streaming ingestion?

A.Amazon S3
B.Apache Airflow
C.Apache Spark (batch mode)
D.Apache Kafka
AnswerD

Apache Kafka provides a distributed, partitioned commit log with durable ordered ingestion and replay, letting streaming clickstream events feed a real-time feature store with low latency. Batch-oriented tools cannot satisfy the continuous, real-time ingestion requirement.

Why this answer

Apache Kafka is the best tool for streaming ingestion because it is a distributed event streaming platform designed for high-throughput, low-latency ingestion of real-time data streams. It can handle clickstream data and feed it into a feature store with minimal delay, supporting exactly-once semantics and scalability.

Exam trap

AI0-001 often tests the distinction between batch and streaming tools, and candidates may incorrectly choose Airflow or Spark for real-time ingestion due to familiarity.

How to eliminate wrong answers

Option A is wrong because Amazon S3 is object storage designed for batch processing, not real-time streaming ingestion; it has higher latency and is not optimized for continuous data streams. Option B is wrong because Apache Airflow is a workflow orchestration tool for batch pipelines, not a streaming ingestion system; it schedules tasks but does not handle real-time data flow. Option C is wrong because Apache Spark in batch mode processes data in discrete chunks, not continuously; while Spark Streaming exists, the option specifies batch mode, which is unsuitable for real-time ingestion.

856
Multi-Selectmedium

Which TWO of the following are best practices for monitoring AI models in production?

Select 2 answers
A.Set up alerts for prediction latency and error rates.
B.Monitor model accuracy only at deployment time.
C.Regularly retrain without checking performance.
D.Freeze the model version once deployed to avoid changes.
E.Track input data distribution and compare with training data.
AnswersA, E

Prediction latency and error rates are direct operational health signals; alerting on them detects service degradation, timeouts and failed inferences before users are broadly affected. This satisfies the production monitoring requirement for availability and reliability of the deployed model.

Why this answer

Option A is correct because production monitoring must include operational health metrics such as prediction latency and error rates, which surface service degradation, timeouts, and failed inferences before they impact users. Option E is correct because tracking input data distribution and comparing it against the training data detects data drift and covariate shift, which are leading indicators that model accuracy will degrade even when infrastructure metrics look healthy. Together, A and E cover both system-level reliability and statistical/data-quality monitoring, which are the two core pillars of effective ML observability.

Option B is not a best practice because accuracy measured only at deployment time cannot reveal post-deployment degradation caused by drift or changing real-world conditions. Option C is wrong because retraining without validating performance can silently deploy a worse model and provides no monitoring signal. Option D is wrong because freezing the model version does not address monitoring needs and prevents necessary updates when drift or performance decay is detected.

Exam trap

A common misconception in CompTIA AI exams is that model monitoring is a one-time activity at deployment, whereas the correct approach requires continuous observation of both performance metrics (like latency and error rates) and data characteristics (like input distribution shifts) throughout the model's lifecycle.

857
MCQmedium

A security analyst is reviewing logs from an AI chatbot and notices that users can trick the chatbot into revealing its system prompt. Which type of attack is this?

A.Jailbreaking
B.Direct prompt injection
C.Model extraction
D.Prompt leaking
AnswerD

Prompt leaking occurs when crafted inputs cause the model to disclose its own system prompt or confidential instructions. The analyst observed exactly that behaviour, so the attack class is prompt leaking rather than jailbreaking, which bypasses safety guardrails instead of extracting configuration.

Why this answer

Prompt leaking is a specific type of attack where an adversary manipulates an AI chatbot into revealing its system prompt or other sensitive instructions. In this scenario, the user tricks the chatbot into outputting the system prompt, which is the exact definition of prompt leaking. This differs from general jailbreaking or injection attacks because the goal is to extract the hidden prompt, not to bypass restrictions or execute unauthorized commands.

Exam trap

CompTIA often tests the distinction between prompt leaking and direct prompt injection, where candidates mistakenly choose direct prompt injection because they conflate any manipulation of the prompt with injection, but the key differentiator is the specific goal of extracting the system prompt.

How to eliminate wrong answers

Option A is wrong because jailbreaking refers to bypassing the model's safety filters or restrictions to generate prohibited content, not specifically extracting the system prompt. Option B is wrong because direct prompt injection involves inserting malicious instructions into the user input to override the model's behavior, but the primary goal is not to leak the system prompt; it is to execute unauthorized actions. Option C is wrong because model extraction is a technique used to steal the underlying model's architecture, weights, or parameters (e.g., via repeated API queries), not to reveal the system prompt text.

858
Multi-Selectmedium

A deep learning engineer is training a convolutional neural network for image classification. The model is overfitting the training data. Which three techniques can help reduce overfitting? (Choose three.)

Select 3 answers
A.Add dropout layers
B.Apply L2 regularization
C.Use data augmentation
D.Use a smaller learning rate
E.Increase the number of convolutional layers
AnswersA, B, C

Dropout randomly drops units during training, reducing co-adaptation.

Why this answer

Dropout layers randomly deactivate a fraction of neurons during training, which prevents co-adaptation and forces the network to learn more robust features. This reduces overfitting by acting as a form of ensemble learning without increasing model complexity.

Exam trap

In CompTIA AI+ exams, a common trap is assuming that reducing the learning rate or increasing model depth can mitigate overfitting, when in fact these adjustments either have no effect on overfitting or worsen it.

859
MCQhard

An organization implements AI governance following the NIST AI Risk Management Framework. They need to ensure that all model decisions are logged with sufficient detail for later audit. Which logging requirement is most critical for traceability?

A.Input data and model name only
B.Source code and training dataset hash
C.Model outputs and confidence scores only
D.Timestamp, input data, output, and model version
AnswerD

Traceability requires reconstructing each decision, so logs must capture the timestamp, the exact input data, the produced output, and the model version that generated it. Without the model version, an auditor cannot attribute behaviour to a specific deployed artefact.

Why this answer

Timestamp, input data, output, and model version together provide full traceability for audit. Option A is wrong because logging only input data and model name misses outputs, timestamp, and version, which are essential for traceability. Option B is wrong because source code and training dataset hash are not part of the inference audit trail; they are more relevant to model development.

Option C is wrong because logging only model outputs and confidence scores misses inputs and model version, making it impossible to fully trace decisions.

860
MCQmedium

A company is deploying a text generation model for customer service emails. They want to ensure the model's responses are factual and based on internal knowledge bases. Which technique is most effective?

A.Use Retrieval-Augmented Generation (RAG)
B.Fine-tune the model on historical customer service emails
C.Write a detailed system prompt
D.Set the temperature to 0
AnswerA

RAG retrieves relevant passages from internal knowledge bases at inference and conditions generation on them, so responses reflect actual company documentation rather than parametric guesses. This directly satisfies the factual, knowledge-base-grounded requirement for customer service emails.

Why this answer

Retrieval-Augmented Generation (RAG) is the most effective technique because it combines a pre-trained language model with a retrieval system that fetches relevant documents from an internal knowledge base at inference time. This ensures the model's responses are grounded in factual, up-to-date information from the knowledge base, reducing hallucinations.

Exam trap

AI0-001 often tests the difference between RAG and fine-tuning, and candidates may incorrectly choose fine-tuning for factual grounding when RAG is more appropriate.

How to eliminate wrong answers

Option B is wrong because fine-tuning on historical emails may improve style but does not guarantee factual accuracy or access to current knowledge; it can still hallucinate. Option C is wrong because a detailed system prompt can guide behavior but cannot provide the model with specific factual knowledge it lacks. Option D is wrong because setting temperature to 0 makes the model more deterministic but does not ensure factual correctness; it can still produce incorrect information.

861
Multi-Selecthard

A company is building a secure AI system that must comply with GDPR. They want to allow users to request deletion of their personal data from training sets and model outputs. Which THREE techniques should they implement?

Select 3 answers
A.Model ensembling
B.Differential privacy
C.Data retention and deletion policies
D.Machine unlearning
E.Federated learning
AnswersB, C, D

Differential privacy ensures that the model does not memorize individual data points.

Why this answer

Differential privacy (B) is correct because it adds calibrated noise to training data or model outputs, ensuring that the inclusion or exclusion of any individual's data does not significantly affect the model's behavior. This provides a mathematical guarantee of privacy, which is essential for GDPR compliance when handling personal data. By limiting information leakage, differential privacy helps protect user data even if deletion requests are not fully implemented.

Exam trap

CompTIA AI often tests the misconception that federated learning alone satisfies GDPR deletion requirements, when in fact it only addresses data locality, not the ability to remove a specific user's influence from a trained model.

862
MCQmedium

Refer to the exhibit. The training log shows loss and accuracy for a binary classification model. What is the most likely issue with this model?

A.Overfitting
B.Insufficient epochs
C.Underfitting
D.Data leakage
AnswerA

Overfitting is indicated when training loss keeps falling and training accuracy approaches 100% while validation loss rises and validation accuracy stagnates or degrades. That divergence between training and validation curves is the classic signature, matching the exhibit's logged behaviour.

Why this answer

The training log shows that training loss continues to decrease while validation loss increases after a certain point, and training accuracy approaches 100% while validation accuracy plateaus or drops. This divergence is the classic signature of overfitting, where the model memorizes noise in the training data rather than learning generalizable patterns.

Exam trap

The key trap is that candidates may only look at the final accuracy numbers without comparing training and validation curves, missing the divergence that indicates overfitting.

How to eliminate wrong answers

Option B is wrong because insufficient epochs would show both training and validation loss still decreasing at the end of training, not a divergence. Option C is wrong because underfitting would show high loss and low accuracy on both training and validation sets, not the high training accuracy seen here. Option D is wrong because data leakage typically causes unusually high performance on both sets that does not degrade, not a gap between training and validation metrics.

863
MCQmedium

A team is training a neural network for image classification. They observe that training loss decreases steadily but validation loss starts increasing after 20 epochs. What is the most likely issue?

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

Overfitting occurs when the model memorises training data, so training loss keeps falling while validation loss rises after epoch 20. The divergence between decreasing training loss and increasing validation loss is the defining signature, indicating the network no longer generalises to unseen images.

Why this answer

The training loss decreasing while validation loss increases after 20 epochs is the classic signature of overfitting. The model is memorizing the training data (including noise) rather than learning generalizable patterns, causing it to perform poorly on unseen validation data.

Exam trap

The AI0-001 exam often tests the distinction between overfitting and underfitting by showing a loss curve that decreases then increases, which candidates may misinterpret as a learning rate issue or vanishing gradient problem.

How to eliminate wrong answers

Option A is wrong because underfitting would show both training and validation loss remaining high or not decreasing, not a divergence. Option B is wrong because vanishing gradients cause the network to stop learning early (loss plateaus), not a late-stage validation loss increase. Option C is wrong because data leakage typically causes both training and validation metrics to be artificially high or inconsistent from the start, not a clear divergence after many epochs.

864
MCQhard

A developer is building a RAG system and needs to choose a similarity metric for retrieving document chunks. The embedding model they use produces normalized vectors (unit vectors). Which similarity metric is equivalent to cosine similarity in this case?

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

For unit-length vectors, the dot product equals the cosine of the angle between them, since both magnitudes are 1. Cosine similarity therefore reduces exactly to the dot product, making it the equivalent metric and computationally cheaper because no normalisation division is needed.

Why this answer

For normalized (unit-length) vectors, the dot product equals the cosine of the angle between them, because the magnitudes are both 1. Cosine similarity is defined as the dot product divided by the product of magnitudes; when magnitudes are 1, the denominator is 1, so dot product and cosine similarity are mathematically identical. This makes dot product the correct equivalent metric.

Exam trap

AI0-001 often tests the mathematical equivalence between dot product and cosine similarity for normalized vectors, trapping candidates who assume Euclidean distance is the natural equivalent because both measure 'closeness'.

How to eliminate wrong answers

Option A is wrong because Jaccard similarity measures set overlap (intersection over union) and is not defined for continuous embedding vectors. Option B is wrong because Euclidean distance measures straight-line distance and is not equivalent to cosine similarity even for normalized vectors — it is monotonically related but not equal. Option C is wrong because Manhattan distance (L1) sums absolute coordinate differences and has no equivalence to cosine similarity.

865
Multi-Selecteasy

Which THREE are common machine learning algorithms used for regression?

Select 3 answers
A.Logistic regression
B.K-means
C.Linear regression
D.Decision tree
E.K-nearest neighbors
AnswersC, D, E

Linear regression directly models a continuous target by fitting a linear relationship between input features and output, satisfying the regression requirement. Unlike classification algorithms that predict discrete class labels, it minimises squared error to produce numeric predictions, making it a foundational supervised regression technique.

Why this answer

Linear regression (C) is the canonical regression algorithm, modeling a continuous target as a linear combination of input features by minimizing squared error. Decision tree (D) regressors recursively split data on feature thresholds to predict continuous values, e.g., via variance reduction or mean-squared-error minimization at each node. K-nearest neighbors (E) performs regression by averaging the target values of the k closest training points under a chosen distance metric, making it a standard non-parametric regressor.

Logistic regression (A) is excluded because it is a classification algorithm that outputs class probabilities via the sigmoid/softmax function, not a continuous value. K-means (B) is excluded because it is an unsupervised clustering algorithm that partitions data into groups, not a supervised regression method.

Exam trap

CompTIA often tests the distinction between regression and classification algorithms, and the trap here is that candidates mistakenly associate 'logistic regression' with regression tasks due to its name, when it is actually a classification algorithm.

866
MCQeasy

Which component in a RAG system is responsible for converting document chunks into numerical representations that enable similarity search?

A.Vector store index
B.Document chunker
C.Large language model (LLM)
D.Embedding model
AnswerD

Embedding models transform each document chunk into a dense vector, capturing semantic meaning so that similarity search can compare vectors via distance metrics. This satisfies the stem's requirement for numerical representations enabling retrieval, distinct from the LLM that generates answers or the vector store that indexes them.

Why this answer

The embedding model converts text chunks into dense numerical vectors (embeddings) that capture semantic meaning, enabling similarity search in the vector store. It is the component that performs the transformation from raw text to vector representations. Without the embedding model, the vector store would have nothing to index or search.

Exam trap

AI0-001 often tests the distinction between the embedding model (creates vectors) and the vector store (stores/searches vectors), trapping candidates who conflate storage with representation.

How to eliminate wrong answers

Option A is wrong because the vector store index stores and retrieves vectors but does not create them — it relies on embeddings produced elsewhere. Option B is wrong because the document chunker splits documents into smaller pieces but does not convert them to numerical vectors. Option C is wrong because the LLM generates natural language answers from retrieved context; it does not produce the embeddings used for retrieval (unless a separate embedding model is used).

867
MCQmedium

A financial services company is deploying a credit-scoring model built with the AI+ toolkit. The model must produce an explanation for each decision that regulators can review, showing which input features most influenced the score. The data science team has already trained a gradient-boosted tree ensemble. Which approach should the team use to satisfy the regulatory requirement?

A.Publish the model's raw prediction probabilities alongside the input feature values for each applicant.
B.Apply SHAP (SHapley Additive exPlanations) values to the trained ensemble to generate per-instance feature attributions.
C.Replace the ensemble with a single decision tree limited to a depth of three so that the decision path is human-readable.
D.Compute global feature importance by averaging the ensemble's split gains across the entire training set.
AnswerB

SHAP assigns each feature a contribution to the individual prediction based on cooperative game theory, producing locally faithful explanations. For a gradient-boosted ensemble, TreeSHAP computes these values efficiently and exactly, giving regulators a defensible per-decision breakdown. This directly meets the requirement without retraining or replacing the model.

Why this answer

Per-decision explanations require local, instance-level attribution methods. SHAP values quantify how much each feature pushed a single prediction above or below the baseline, and TreeSHAP makes this tractable for tree ensembles. Global importance, model substitution, and raw input-output disclosure all fail to explain why a specific applicant received a specific score.

Exam trap

The trap here is assuming that global feature importance or a simpler surrogate model satisfies a per-decision explainability requirement.

868
MCQmedium

A health-tech firm is preparing a model card for a clinical decision support tool that flags patients at risk of sepsis. The compliance team asks which element of the model card is MOST directly relevant to documenting the system's intended use and out-of-scope applications. Which section should the team prioritize?

A.The 'Performance Metrics' section, which reports AUROC, sensitivity, and specificity at the deployed decision threshold.
B.The 'Training Data' section, which lists the source datasets, their collection dates, and demographic composition.
C.The 'Intended Use' section, which specifies the clinical populations, care settings, and decision boundaries for which the model was validated.
D.The 'Ethical Considerations' section, which discusses potential harms and mitigation strategies identified during review.
AnswerC

This section is the authoritative declaration of the model's scope. It records which patient populations, care environments, and decision types were validated, and explicitly lists out-of-scope uses such as autonomous diagnosis without clinician review. Without this, downstream users cannot judge whether deploying the tool in a new setting is appropriate, so it is the most directly relevant element for the compliance question.

Why this answer

A model card's intended use section is the formal declaration of the validated operating envelope: the populations, settings, and decision types the model supports, plus explicitly excluded uses. Compliance reviewers rely on it to confirm that a proposed deployment falls inside the validated scope. Training data, performance metrics, and ethical considerations are supporting evidence but do not define the boundary of appropriate use.

Exam trap

The trap here is assuming that strong performance metrics or ethical review notes substitute for an explicit intended-use statement, when scope must be declared separately.

869
MCQmedium

A team is building a retrieval-augmented generation (RAG) pipeline. They need to store embeddings of company documents and perform fast similarity searches. Which data store is BEST suited for this task?

A.Snowflake
B.Pinecone
C.Apache Kafka
D.Amazon S3
AnswerB

Pinecone is a purpose-built vector database supporting approximate nearest-neighbour indexes over high-dimensional embeddings, delivering the fast similarity search the RAG pipeline requires. Relational stores lack native vector indexing, so they cannot meet the low-latency retrieval constraint for document embeddings.

Why this answer

Pinecone is a purpose-built vector database designed for storing and querying high-dimensional embeddings with fast approximate nearest neighbor (ANN) search. In a RAG pipeline, embeddings of company documents must be retrieved quickly to feed relevant context to the LLM, and Pinecone’s optimized indexing (e.g., HNSW or IVF) and serverless scaling make it the ideal choice for this task.

Exam trap

The trap here is that candidates may confuse general-purpose storage (like S3 or Snowflake) with specialized vector databases, assuming any database can handle embeddings efficiently, but CompTIA AI tests the understanding that only purpose-built vector stores provide the required ANN search performance for RAG.

How to eliminate wrong answers

Option A is wrong because Snowflake is a cloud data warehouse optimized for SQL-based analytical queries on structured data, not for low-latency vector similarity searches on embeddings. Option C is wrong because Apache Kafka is a distributed event streaming platform for real-time data pipelines and message brokering, not a storage and retrieval system for vector embeddings. Option D is wrong because Amazon S3 is an object storage service for static files and does not natively support vector indexing or similarity search operations.

870
MCQeasy

A developer is building a mobile app that uses a pre-trained image classification model on-device. Which framework should they use to run the model on iOS devices?

A.Hugging Face Transformers
B.TensorFlow Lite
C.PyTorch Mobile
D.Core ML
AnswerD

Core ML is Apple's native on-device inference framework, so it runs the pre-trained image classification model directly on iOS hardware without a network round trip. It satisfies the stem's on-device constraint, unlike cloud-hosted alternatives, and integrates with Xcode tooling to convert and optimise models for Apple silicon.

Why this answer

Core ML is the correct framework because it is Apple's machine learning framework designed specifically for on-device inference on iOS, macOS, watchOS, and tvOS. It provides optimized performance and integration with Apple's hardware, making it the best choice for running a pre-trained image classification model on iOS devices.

Exam trap

AI0-001 often tests the choice of framework for specific platforms, and candidates may choose cross-platform tools like TensorFlow Lite when a native solution like Core ML is more appropriate.

How to eliminate wrong answers

Option A is wrong because Hugging Face Transformers is a library for natural language processing, not optimized for on-device image classification on iOS. Option B is wrong because TensorFlow Lite is a framework for on-device inference but is cross-platform; while it can run on iOS, Core ML is more native and optimized for Apple devices. Option C is wrong because PyTorch Mobile is also cross-platform and can run on iOS, but Core ML is the preferred and most integrated solution for iOS.

871
MCQeasy

A junior data scientist is asked to explain the difference between supervised and unsupervised learning to a product manager. She wants to give a single concrete example that clearly illustrates unsupervised learning. Which example should she choose?

A.Grouping retail customers into segments based on purchasing behavior using k-means clustering.
B.Predicting whether a loan applicant will default using historical labeled outcomes.
C.Training an agent to play a board game by rewarding winning moves over many episodes.
D.Estimating a house's sale price from its square footage and location features.
AnswerA

K-means clustering groups unlabeled data points based on similarity in feature space, with no target variable provided. Customer segmentation is the canonical unsupervised example because the algorithm discovers structure in purchasing behavior rather than predicting a known label. This directly illustrates the defining characteristic of unsupervised learning: learning patterns from data without ground-truth outputs.

Why this answer

Unsupervised learning finds structure in data that has no labels. Clustering customers by purchasing behavior is a textbook example because k-means discovers groups from feature similarity alone. The other choices involve a known target (default status, sale price) or a reward signal (game playing), which place them in supervised or reinforcement learning rather than unsupervised learning.

Exam trap

The trap here is conflating any 'data-driven' task with unsupervised learning, when the presence or absence of labeled targets is what actually distinguishes the paradigms.

872
MCQeasy

A company is deploying an AI system that screens job applications. According to the EU AI Act, this system is likely classified as high-risk because it affects employment opportunities. Which requirement must the company implement for high-risk AI systems?

A.A human-in-the-loop mechanism that enables override of the AI's decisions
B.Full transparency by publishing the model's source code and training data
C.Annual third-party audits of the model's energy consumption
D.Obtaining explicit consent from each applicant to process their data
AnswerA

High-risk AI systems under the EU AI Act require human oversight, so a human-in-the-loop mechanism allowing override of screening decisions satisfies this. It ensures employment outcomes remain subject to meaningful human review rather than automated determination.

Why this answer

Under the EU AI Act, high-risk AI systems must implement appropriate human oversight measures, including human-in-the-loop mechanisms that allow humans to override or intervene in the AI's decisions. This is a key requirement to ensure accountability and prevent harm in critical areas like employment.

Exam trap

AI0-001 often tests the specific requirements for high-risk AI systems, and candidates may confuse GDPR consent requirements with EU AI Act obligations, or think transparency means publishing source code.

How to eliminate wrong answers

Option B is wrong because full transparency by publishing source code and training data is not a mandatory requirement for high-risk AI systems; the Act requires transparency obligations but not to that extent, and it may conflict with intellectual property. Option C is wrong because annual third-party audits of energy consumption are not specified in the EU AI Act; while there are requirements for conformity assessments, energy consumption audits are not a core requirement. Option D is wrong because obtaining explicit consent from each applicant is a GDPR requirement for data processing, not a specific requirement for high-risk AI systems under the EU AI Act, though data protection laws still apply.

873
MCQmedium

A logistics company is building a model to estimate delivery times. The team has a dataset with 120,000 labeled historical deliveries, but the labels for arrival times are noisy because some drivers manually entered them hours later. The team wants to improve label quality without discarding the dataset. Which approach best addresses the noisy-label problem?

A.Remove all records whose arrival times fall outside two standard deviations from the mean.
B.Train a model on the noisy labels, then use its predictions to relabel the most confident examples and retrain.
C.Model the label noise explicitly, for example with a noise-robust loss or a probabilistic noise model, and train with the noisy labels.
D.Apply a clustering algorithm to the delivery records and relabel each cluster with its centroid value.
AnswerC

Noise-robust losses and probabilistic noise models are designed to learn from corrupted labels by down-weighting or modeling the error process. They allow the team to retain all 120,000 records while reducing the influence of late manual entries. This directly targets the stated problem of noisy arrival-time labels without discarding data, making it the most appropriate and technically grounded solution.

Why this answer

Noise-robust training methods explicitly account for corrupted labels, allowing the team to use the full dataset while reducing the impact of late manual entries. Unlike trimming or self-relabeling, this approach models the noise process and preserves legitimate variation, which is essential for accurate delivery-time estimation.

Exam trap

The trap here is treating noisy labels as outliers to delete, when label noise can be distributed throughout the dataset and requires a modeling or robust-loss strategy rather than simple filtering.

874
MCQeasy

Refer to the exhibit. A data engineer is training a binary classification neural network. The loss fluctuates and does not converge. Which hyperparameter adjustment is most likely to stabilize training?

A.Change the activation to tanh
B.Add dropout after each layer
C.Decrease the learning rate
D.Increase the number of units in the first dense layer
AnswerC

Lowering the learning rate reduces the size of each gradient descent step, preventing the optimiser from overshooting minima that cause the loss to oscillate rather than converge. For a binary classification network with fluctuating, non-converging loss, this directly addresses the instability constraint in the stem.

Why this answer

Fluctuating loss that fails to converge during neural network training is a classic sign of an excessively high learning rate, causing the optimizer to overshoot the minimum. Decreasing the learning rate allows the gradient descent updates to take smaller, more stable steps, which smooths the loss curve and promotes convergence.

Exam trap

The CompTIA AI exam often tests the misconception that regularization techniques like dropout or activation changes can fix convergence issues, when in fact the most direct hyperparameter for stabilizing training loss is the learning rate.

How to eliminate wrong answers

Option A is wrong because changing the activation to tanh does not directly address the stability of gradient updates; tanh can help with vanishing gradients in deep networks but does not fix loss oscillation caused by a high learning rate. Option B is wrong because adding dropout is a regularization technique that reduces overfitting by randomly dropping neurons, but it does not stabilize the loss curve during training and may even increase variance in the loss. Option D is wrong because increasing the number of units in the first dense layer increases model capacity and can lead to more complex loss landscapes, potentially exacerbating instability rather than stabilizing training.

875
MCQhard

A financial firm trained a gradient boosting model on two years of loan data. It reported strong AUC during development, but after six months in production, approval rates for a newly launched loan product diverge sharply from expectations. The data science lead suspects the model is stale. Which approach best addresses this deployment issue?

A.Retrain the model on the original two-year dataset with a lower learning rate
B.Switch the evaluation metric from AUC to accuracy without changing the data
C.Increase the number of boosting rounds to improve fit on the existing data
D.Monitor prediction distributions and retrain on recent labeled data when drift is detected
AnswerD

This combines drift detection with periodic retraining on fresh, labeled outcomes, which is the standard remedy for data and concept drift. Monitoring feature and prediction distributions catches when the new loan product shifts the input space, and retraining on recent labels updates the model's learned relationships. It directly addresses staleness while preserving the ability to validate the refreshed model before redeployment in a regulated lending context.

Why this answer

The symptoms describe drift: a new product changes the applicant distribution and recent economic conditions change the relationship between features and default. The durable fix is to monitor for drift and retrain on recent labeled data, then revalidate before deployment. Changing hyperparameters, adding boosting rounds, or swapping metrics leaves the model trained on outdated patterns and cannot restore alignment with current production behavior.

Exam trap

The trap here is treating a production performance drop as a tuning problem, when the real cause is that the training distribution no longer matches the live applicant population.

876
MCQhard

A researcher is developing a generative AI model that creates realistic images. To comply with emerging transparency obligations, the researcher must ensure that AI-generated content can be identified as such. Which technique embeds a digital identifier directly into the content that survives compression and cropping?

A.Model cards
B.Watermarking AI-generated content
C.Deepfake detection software
D.Disclosure statements in metadata
AnswerB

Watermarking embeds a robust, imperceptible signal directly into the image pixels, so the identifier persists through compression and cropping—exactly the durability the stem demands. Unlike metadata tagging, which is stripped by re-encoding, watermarking binds provenance to the content itself, satisfying transparency obligations for AI-generated media.

Why this answer

Watermarking embeds a persistent digital identifier directly into the pixel data of an image, using techniques like spread-spectrum or discrete wavelet transform to survive common transformations such as JPEG compression and cropping. This makes it the correct technique for ensuring AI-generated content remains identifiable even after editing or distribution.

Exam trap

CompTIA tests the distinction between passive metadata (which is fragile) and active content-level embedding (which is resilient), leading candidates to mistakenly choose disclosure statements in metadata because they confuse 'digital identifier' with 'metadata field'.

How to eliminate wrong answers

Option A is wrong because model cards are documentation artifacts that describe a model's intended use, performance, and limitations, not a technique for embedding identifiers into content. Option C is wrong because deepfake detection software analyzes content after the fact to identify manipulation, but does not embed a persistent identifier into the content itself. Option D is wrong because disclosure statements in metadata (e.g., EXIF or XMP fields) are easily stripped or altered during compression, cropping, or re-encoding, and do not survive as robustly as a watermark embedded in the pixel data.

877
Multi-Selecteasy

A company wants to classify images of products into categories. They have a large dataset of labeled images. Which TWO types of neural networks are most suitable for this task? (Select TWO.)

Select 2 answers
A.Generative Adversarial Network (GAN)
B.Convolutional Neural Network (CNN)
C.Recurrent Neural Network (RNN)
D.Transformer (e.g., Vision Transformer)
E.Multi-layer Perceptron (MLP)
AnswersB, D

Convolutional neural networks apply learned filters that exploit spatial locality and translation invariance in images, making them highly effective for classifying labelled product images. This satisfies the stem's requirement for a suitable architecture given a large labelled image dataset.

Why this answer

Option B, Convolutional Neural Network (CNN), is correct because CNNs use convolutional and pooling layers to exploit spatial locality and translation invariance in images, making them the classic architecture for supervised image classification with large labeled datasets. Option D, Transformer (e.g., Vision Transformer), is also correct because a Vision Transformer splits an image into patches, embeds them, and applies self-attention to model global relationships, achieving state-of-the-art results on image classification when sufficient labeled data (or pretraining) is available. Option A, Generative Adversarial Network (GAN), is not appropriate here because GANs are generative models that learn to synthesize data via a generator-discriminator game rather than directly performing supervised category classification.

Option C, Recurrent Neural Network (RNN), is unsuitable because RNNs are designed for sequential data such as text or time series and do not natively capture the 2D spatial structure of images. Option E, Multi-layer Perceptron (MLP), is not the best choice because fully connected layers ignore spatial hierarchy and typically underperform CNNs or Transformers on large-scale image classification.

Exam trap

The common mistake is assuming any general neural network can handle images, but RNNs and MLPs are not suited for spatial feature extraction despite being able to process image data.

878
MCQmedium

A data scientist is using SHAP to explain a complex ensemble model's predictions. A business stakeholder asks why a particular prediction was made. The data scientist wants to show the most influential features for that single prediction. Which SHAP visualisation is most appropriate?

A.A SHAP summary plot showing mean absolute SHAP values across all features
B.A SHAP dependence plot for the top feature
C.A SHAP bar chart of absolute feature importance
D.A SHAP force plot for the individual prediction
AnswerD

A force plot displays the push and pull each feature exerts on one specific prediction, showing magnitude and direction for that single case. It satisfies the stakeholder's request for the most influential features behind an individual outcome, unlike global summary plots.

Why this answer

A SHAP force plot is specifically designed to visualize the contribution of each feature to a single prediction, showing how features push the prediction from the base value (average model output) to the final prediction. This makes it the ideal choice for explaining an individual prediction to a business stakeholder, as it provides a clear, localized explanation of feature impacts.

Exam trap

CompTIA often tests the distinction between global vs. local interpretability, and the trap here is that candidates confuse summary plots (global) or dependence plots (global) with force plots (local), leading them to choose a globally-focused visualization for a single-prediction explanation.

How to eliminate wrong answers

Option A is wrong because a SHAP summary plot shows global feature importance across all predictions (mean absolute SHAP values), not the contribution of features for a single prediction. Option B is wrong because a SHAP dependence plot shows how the value of a single feature affects the model's output across the dataset, not the feature contributions for a specific prediction. Option C is wrong because a SHAP bar chart of absolute feature importance aggregates feature importance globally, ignoring the direction and magnitude of feature contributions for an individual instance.

879
MCQmedium

A company implements an AI-based chatbot for customer service. After deployment, customers report that the chatbot sometimes uses offensive language. The development team reviews the training data and finds no explicit offensive content. What is the most likely explanation?

A.There is a bug in the deployment pipeline
B.The model is overfitting to rare examples
C.The model learned biased language patterns from the training corpus
D.The training data was poisoned by an attacker
AnswerC

Offensive output can emerge without explicit slurs in the corpus, because the model learns statistical associations and tone patterns from biased language present in the training data. Deployment then surfaces these learned patterns as offensive responses.

Why this answer

The chatbot's offensive language likely stems from biased or toxic patterns present in the training corpus, even if no explicit offensive content was flagged. Large language models learn statistical associations from their training data, and if the corpus contains subtle biases, stereotypes, or indirect toxic language, the model can reproduce these patterns in its responses. This is a well-known issue in AI ethics and governance, where models inadvertently amplify societal biases embedded in the data.

Exam trap

The AI0-001 exam often tests the distinction between explicit data contamination (poisoning) and implicit bias learned from benign-looking data, so the trap here is assuming that the absence of explicit offensive content in the training data means the model cannot produce offensive output.

How to eliminate wrong answers

Option A is wrong because a deployment pipeline bug would typically cause functional failures (e.g., model not loading, incorrect API calls) or output errors, not the generation of offensive language that is contextually coherent. Option B is wrong because overfitting to rare examples would cause the model to memorize specific training instances, leading to exact or near-exact reproductions of those rare inputs, not the generation of novel offensive language that was not present in the training data. Option D is wrong because data poisoning requires an attacker to deliberately inject malicious samples into the training set, which would likely leave traces of explicit offensive content; the scenario states no explicit offensive content was found, making this less likely than the model learning implicit biases from the existing corpus.

880
MCQhard

A team is building a model to predict stock prices based on time series data. They need to capture long-term dependencies and avoid vanishing gradients. Which architecture is best suited?

A.Standard RNN
B.LSTM
C.Autoencoder
D.CNN
AnswerB

LSTM networks use gating mechanisms and a cell state that preserve information across many time steps, directly addressing vanishing gradients. This lets the model capture long-term dependencies in time series data, which standard recurrent architectures cannot sustain.

Why this answer

LSTM (Long Short-Term Memory) networks are specifically designed to capture long-term dependencies in sequential data through their gating mechanisms (input, forget, and output gates), which regulate the flow of information and mitigate the vanishing gradient problem that plagues standard RNNs. This makes them ideal for time series forecasting tasks like stock price prediction, where historical context over many time steps is critical.

Exam trap

CompTIA often tests the misconception that any recurrent architecture (like a standard RNN) can handle long sequences, when in fact only gated variants like LSTM or GRU are designed to overcome vanishing gradients in practice.

How to eliminate wrong answers

Option A (Standard RNN) is wrong because it suffers from the vanishing gradient problem during backpropagation through time, making it unable to effectively learn long-term dependencies in sequences longer than about 10–20 steps. Option C (Autoencoder) is wrong because it is an unsupervised learning architecture designed for dimensionality reduction or feature learning (e.g., anomaly detection), not for sequential prediction or capturing temporal dependencies. Option D (CNN) is wrong because while CNNs can be used for time series via 1D convolutions, they lack inherent memory mechanisms and are not optimized for capturing long-range temporal dependencies without extensive stacking or dilation, and they do not directly address vanishing gradients in the same way as LSTMs.

881
MCQeasy

A team wants to predict monthly sales using historical data. Which algorithm is most appropriate?

A.Linear regression
B.K-means
C.Decision tree
D.Logistic regression
AnswerA

Monthly sales is a continuous numeric target, so regression rather than classification applies. Linear regression models the relationship between historical input variables and the sales figure directly, producing a predicted value. It satisfies the forecasting constraint with a simple, interpretable model suited to this trend-based prediction task.

Why this answer

Linear regression is the most appropriate algorithm because the goal is to predict a continuous numerical value (monthly sales) based on historical data. It models the relationship between input features and the target variable by fitting a linear equation, making it ideal for regression tasks where the output is a real number.

Exam trap

CompTIA often tests the distinction between regression and classification algorithms, and the trap here is that candidates may confuse 'regression' in logistic regression with continuous prediction, not realizing it is actually a classification algorithm.

How to eliminate wrong answers

Option B (K-means) is wrong because it is an unsupervised clustering algorithm used to group unlabeled data into clusters, not for predicting continuous values. Option C (Decision tree) is wrong because while it can handle regression, it is more prone to overfitting and less optimal for simple linear relationships compared to linear regression; it is not the most appropriate choice for this straightforward prediction task. Option D (Logistic regression) is wrong because it is designed for binary classification problems, predicting probabilities of discrete outcomes, not continuous numerical values like sales.

882
MCQhard

A logistics company runs a route-optimization model on a Kubernetes cluster. During peak hours the inference pods are frequently evicted because the nodes run out of memory, even though average GPU utilization stays below 40 percent. The team wants to reduce evictions without changing the model or adding nodes. Which action best addresses the root cause?

A.Lower the container image size by switching to a distroless base image for the inference service.
B.Enable horizontal pod autoscaling on GPU utilization so additional replicas start during peak hours.
C.Set explicit CPU and memory requests and limits on the inference containers so the scheduler can place and protect them accurately.
D.Increase the GPU memory allocation per pod by requesting additional nvidia.com/gpu resources.
AnswerC

Evictions driven by node memory pressure usually mean the pods have no memory requests, so the scheduler overcommits the node and the kubelet later reclaims memory by evicting workloads. Declaring realistic requests lets the scheduler reserve capacity and declaring limits bounds each pod, which stops one inference process from consuming memory that other pods depend on and prevents pressure-driven eviction.

Why this answer

Memory-pressure eviction happens when the kubelet must reclaim node memory, and pods without declared memory requests are the first to be sacrificed because the scheduler never reserved capacity for them. Setting realistic requests and limits makes placement accurate and bounds each pod's consumption, so the node stays below its eviction threshold without changing the model or adding hardware.

Exam trap

The trap here is chasing GPU symptoms when the eviction signal points to host memory pressure, so adding accelerators or replicas leaves the actual cause untouched.

883
MCQmedium

A hospital's AI triage model was trained on five years of historical admissions. A governance review finds that patients over 75 are systematically assigned lower acuity scores than clinically equivalent younger patients, even though age is not an input feature. Which governance control most directly addresses this finding?

A.Run a proxy-variable and disparate-impact analysis on the model's outputs before each deployment.
B.Deploy the model in shadow mode and compare its predictions against clinician judgment for one week.
C.Increase the volume of historical training data by adding ten more years of admissions records.
D.Encrypt the training dataset at rest and restrict access to the model registry.
AnswerA

Age is excluded as a direct input, so the disparity must enter through a correlated proxy such as prior utilization, comorbidity coding, or referral source. Testing outputs for disparate impact across age cohorts exposes that indirect pathway and produces evidence the governance board can act on. It targets the observed harm directly rather than treating symptoms such as logging or encryption.

Why this answer

The disparity appears despite age being excluded, which is the classic signature of a proxy variable carrying protected-class information into the model. Testing outcomes for disparate impact across age cohorts, and tracing which features correlate with age, is the control that both detects and documents the harm. Data volume, cryptography, and shadow comparison each address different concerns and leave the indirect bias unmeasured.

Exam trap

The trap here is assuming that removing a protected attribute such as age from the feature set automatically removes bias, when correlated proxy features keep reproducing the disparity.

884
MCQhard

A team is implementing an ML pipeline using a feature store. Which benefit does a feature store primarily provide in an AI operations context?

A.Automated scaling of inference endpoints
B.Real-time monitoring of model performance
C.Consistency of feature computation between training and inference
D.Automatic model versioning and rollback
AnswerC

A feature store computes features once and serves the same definitions to both training and inference pipelines, eliminating training-serving skew. This consistency is its primary AI operations benefit, unlike raw storage, versioning alone, or model hosting, which address different concerns.

Why this answer

A feature store ensures that feature engineering logic is stored, versioned, and reused consistently across both training and inference pipelines. This eliminates training-serving skew, a common cause of model degradation in production, by guaranteeing that the same transformations are applied to data regardless of when or where it is computed.

Exam trap

CompTIA often tests the distinction between infrastructure-level benefits (scaling, monitoring, versioning) and the core data-consistency problem that a feature store solves, leading candidates to confuse feature stores with model registries or serving platforms.

How to eliminate wrong answers

Option A is wrong because automated scaling of inference endpoints is a function of model serving infrastructure (e.g., Kubernetes Horizontal Pod Autoscaler or serverless inference platforms), not a primary benefit of a feature store. Option B is wrong because real-time monitoring of model performance is handled by observability tools (e.g., MLflow, Prometheus, or custom drift detection systems), not by the feature store itself. Option D is wrong because automatic model versioning and rollback is a capability of model registries and CI/CD pipelines (e.g., MLflow Model Registry or DVC), whereas a feature store focuses on feature definitions and values, not model artifacts.

885
MCQhard

A model trained on customer reviews achieves 98% accuracy on the test set. However, when deployed, it performs poorly on real-world data. The data scientist suspects distribution shift. Which action is MOST important to address this?

A.Reduce the learning rate during training
B.Implement a monitoring system to detect data drift and retrain with fresh data
C.Add more features to the model
D.Increase the number of cross-validation folds
AnswerB

Continuous monitoring detects when production input distributions diverge from training data, triggering retraining on fresh samples. This directly addresses distribution shift by closing the feedback loop between deployed predictions and current data, restoring performance that static evaluation on the original test set cannot capture.

Why this answer

Distribution shift (data drift) causes the model's training distribution to differ from the real-world distribution, degrading performance despite high test accuracy. Implementing a monitoring system to detect drift and retraining with fresh data directly addresses this by ensuring the model adapts to the current data distribution, which is the most critical action for maintaining performance in production.

Exam trap

CompTIA often tests the misconception that high test accuracy guarantees real-world performance, leading candidates to focus on training improvements (like tuning hyperparameters or adding features) rather than addressing the root cause of distribution shift through monitoring and retraining.

How to eliminate wrong answers

Option A is wrong because reducing the learning rate affects the optimization step size during training, which does not address distribution shift after deployment; it only changes how the model converges on the training data. Option C is wrong because adding more features may improve model capacity but does not fix the mismatch between training and real-world distributions; it could even exacerbate overfitting to the original distribution. Option D is wrong because increasing cross-validation folds improves the reliability of performance estimates on the training/validation data but does not detect or correct for distribution shift in the deployed environment.

886
Multi-Selecthard

A deployed NLP sentiment analysis model experiences a sharp decline in accuracy on customer reviews. The team has verified the input data format and pipeline are correct. Which THREE actions should be taken to diagnose and remediate? (Choose 3.)

Select 3 answers
A.Analyze recent user input for distribution shifts compared to training data.
B.Immediately retrain the model with all available data.
C.Increase the size of the training dataset by adding synthetic data.
D.Revert to a previous model version that performed well.
E.Conduct a root cause analysis focusing on concept drift.
AnswersA, D, E

Since format and pipeline are verified correct, distribution shift is the likely cause. Comparing recent user input against training data reveals covariate or concept drift, confirming whether the model's learned patterns no longer match current review language.

Why this answer

Option A is correct because when a deployed NLP model's accuracy drops while the input format and pipeline are verified as correct, the most likely cause is data drift — the statistical distribution of recent user input has shifted away from the training distribution, so comparing recent inputs against training data (e.g., via feature/token distributions, embeddings, or KS tests) is the proper first diagnostic step. Option D is correct because reverting to a previously well-performing model version is a valid remediation and diagnostic tactic: it restores service quality immediately and, if the older version still performs well on the new data, it confirms the regression was introduced by the newer model rather than by the data itself. Option E is correct because concept drift — a change in the relationship between inputs and the target label (e.g., sentiment words taking on new meaning) — is a leading cause of accuracy decay in production NLP models, so a structured root cause analysis targeting concept drift (and distinguishing it from data drift) is essential to select the right fix.

Option B is not appropriate as stated because blindly retraining with all available data, including potentially mislabeled or drifted recent data, can propagate the problem and does not diagnose the cause. Option C is not appropriate because adding synthetic data addresses data scarcity, not the verified accuracy decline, and synthetic data can introduce its own distributional biases without first identifying the root cause.

Exam trap

The exam often tests the distinction between reactive fixes (immediate retraining) and systematic diagnosis (drift analysis and rollback), trapping candidates who assume more data always solves model degradation without verifying the drift type.

887
MCQhard

An AI team is deploying a fine-tuned LLM for a code generation assistant. They need to ensure the model outputs only syntactically valid JSON for integration with downstream systems. Which prompt engineering technique is MOST effective for enforcing structured output?

A.Enable JSON mode in the API call, specifying the desired JSON schema
B.Provide a few-shot example of a valid JSON response in the prompt
C.Include a system prompt that says 'You are a helpful coding assistant.'
D.Use chain-of-thought prompting to have the model reason step-by-step before answering
AnswerA

JSON mode constrains decoding to emit only tokens forming valid JSON, and the supplied schema further restricts keys, types and nesting. This guarantees syntactic validity at generation time, satisfying the downstream integration constraint that raw prompt instructions alone cannot reliably enforce.

Why this answer

Enabling JSON mode in the API call and specifying the desired JSON schema is the most effective technique because it constrains the model's decoding process at the API level, forcing the output to conform to valid JSON structure. This is a hard constraint enforced by the inference engine, not a soft suggestion in the prompt. It eliminates the risk of malformed output that downstream systems cannot parse.

Exam trap

The trap is assuming that prompt-level techniques (few-shot, system prompts, chain-of-thought) can guarantee structured output; the exam tests whether you know that only API-level constrained decoding (JSON mode/schema) enforces syntax deterministically.

How to eliminate wrong answers

Option B is wrong because few-shot examples only nudge the model toward the desired format; they do not guarantee syntactic validity, and the model can still emit prose or malformed JSON. Option C is wrong because a generic system prompt ('You are a helpful coding assistant') provides no structural constraint on output format. Option D is wrong because chain-of-thought prompting improves reasoning quality but does not enforce JSON syntax; it may even add explanatory text that breaks parsing.

888
MCQhard

An AI engineer is designing a system to detect unusual patterns in network traffic that may indicate a security breach. The system should learn from normal traffic patterns and flag deviations. Which machine learning approach is MOST appropriate?

A.Reinforcement learning with reward shaping
B.Supervised classification using logistic regression
C.Semi-supervised learning with a small labeled set
D.Unsupervised anomaly detection
AnswerD

Unsupervised anomaly detection learns the baseline distribution of normal traffic without labelled attack examples, then flags statistical deviations. This matches the scenario's constraint that breaches are unknown in advance, unlike supervised classification which needs labelled attack samples.

Why this answer

Unsupervised anomaly detection is the most appropriate approach because the system must learn 'normal' traffic patterns from unlabeled data and then flag deviations without requiring pre-labeled examples of attacks. This aligns with the core requirement of detecting unknown or novel security breaches, which supervised methods cannot handle due to the lack of labeled attack data.

Exam trap

The AI0-001 exam often tests the misconception that semi-supervised learning (Option C) is a middle ground for anomaly detection, but the trap is that it still requires labeled attack data, which is unavailable for unknown security breaches, making unsupervised methods the only viable choice.

How to eliminate wrong answers

Option A is wrong because reinforcement learning with reward shaping is designed for sequential decision-making problems (e.g., autonomous agents) and is not suited for static pattern detection in network traffic; it would require a reward function for 'normal' behavior, which is impractical for anomaly detection. Option B is wrong because supervised classification using logistic regression requires a fully labeled dataset of both normal and attack traffic, which is unavailable when the goal is to detect unknown or novel breaches. Option C is wrong because semi-supervised learning with a small labeled set still relies on labeled attack examples, which are scarce or nonexistent for novel security threats, and it does not purely model normal behavior like unsupervised methods do.

889
Multi-Selectmedium

A retail analytics team is preparing a dataset for a demand forecasting model. The dataset contains a 'store_id' column with several thousand unique values, a 'product_category' column with about twenty values, and a 'day_of_week' column. The team wants to encode these categorical variables so a tree-based model can use them effectively without creating an enormous number of columns. Which TWO encoding approaches are most appropriate? (Choose two.)

Select 2 answers
A.Use target encoding for 'store_id', replacing each store with a statistic such as the mean of the target computed from training folds.
B.Use one-hot encoding for 'store_id' so every store gets its own binary column.
C.Use binary encoding for 'day_of_week' so each day is represented by a binary code across multiple columns.
D.Use one-hot encoding for 'product_category' and 'day_of_week' because they have low cardinality.
E.Use label encoding for 'product_category' so categories become arbitrary integers based on alphabetical order.
AnswersA, D

Target encoding maps each high-cardinality store to a single numeric value derived from the target, so thousands of stores become one column instead of thousands of indicator columns. When computed with out-of-fold statistics it avoids leaking the current row's target into its own feature, and tree models can split on the resulting numeric value efficiently.

Why this answer

High-cardinality identifiers like store_id need a compact numeric representation, and out-of-fold target encoding provides one column that captures store-level signal without exploding dimensionality. Low-cardinality nominal features like product_category and day_of_week are best handled with one-hot encoding, which avoids implying an order and keeps the feature space small. Together these choices match encoding strategy to cardinality.

Exam trap

The trap here is applying one encoding method uniformly across all categorical features instead of matching the technique to each feature's cardinality.

890
MCQeasy

A startup is training a recommendation model on a single workstation with one GPU. The dataset has grown to 2 TB, and training now takes several days. The team wants to reduce training time by adding more GPUs to the same workstation. Which technology should they use to enable efficient multi-GPU training with minimal code changes?

A.Apache Hadoop MapReduce
B.CUDA Multi-Process Service (MPS)
C.NVIDIA NCCL with DistributedDataParallel
D.TensorFlow Lite
AnswerC

NCCL provides optimized inter-GPU communication, and DistributedDataParallel in PyTorch enables data-parallel training across multiple GPUs with minimal code changes. This combination is the standard for scaling training on a single node with multiple GPUs, directly reducing training time.

Why this answer

NCCL with DistributedDataParallel is the standard approach for multi-GPU training within a single node. It provides efficient gradient synchronization and requires minimal code changes in PyTorch. The other options are either for data processing, single-GPU sharing, or edge inference, none of which solve the training time issue.

Exam trap

The trap here is assuming that any parallel computing framework, such as Hadoop, can accelerate GPU training, when it lacks the necessary communication primitives.

891
MCQeasy

In the AI project lifecycle, after a model is trained and evaluated, it is deployed to a production environment. What is the NEXT critical step to ensure the model continues to perform well over time?

A.Collect more training data
B.Archive the model and start a new project
C.Monitoring the model's performance and data drift
D.Re-train the model from scratch
AnswerC

Monitoring performance and data drift detects degradation once the model is live, satisfying the requirement to sustain accuracy over time. Data drift measures changes in input feature distributions; performance monitoring tracks prediction quality against ground truth. Together they trigger retraining before silent failures erode business outcomes.

Why this answer

After deployment, the next critical step is monitoring the model's performance and detecting data drift, because production data distributions change over time and model accuracy degrades silently. Monitoring closes the MLOps loop by feeding real-world performance signals back to the team, enabling timely retraining or rollback. Without monitoring, degradation goes unnoticed until business impact occurs.

Exam trap

The trap is jumping to remediation actions (retrain, collect data) instead of the diagnostic step (monitoring); the exam tests whether you understand that you must detect degradation before you can fix it.

How to eliminate wrong answers

Option A is wrong because collecting more training data is a response to detected drift or poor performance, not the immediate next step after deployment. Option B is wrong because archiving the model and starting a new project abandons the deployed system and ignores the need to maintain it. Option D is wrong because retraining from scratch is a costly remediation action triggered by monitoring insights, not the first step after deployment.

892
Multi-Selectmedium

An organization is evaluating a third-party large language model to integrate into their customer-facing application. As part of supply chain security, which THREE steps should they take to vet the model before deployment?

Select 3 answers
A.Conduct security testing, including red teaming, to identify vulnerabilities in the model
B.Use federated learning to retrain the model on internal data
C.Review the model card and documentation for intended use, limitations, and known biases
D.Run a model inversion attack on the model to verify training data privacy
E.Obtain a software bill of materials (SBOM) for AI components to identify dependencies and known vulnerabilities
AnswersA, C, E

Red teaming actively probes the third-party model for exploitable weaknesses, such as jailbreaks or harmful outputs, before it faces customers. This directly satisfies the supply chain security requirement to validate the model's behaviour rather than trusting vendor claims alone.

Why this answer

Option A is correct because security testing such as red teaming is a core supply chain vetting step that probes the third-party LLM for prompt injection, jailbreaks, data leakage, and other adversarial vulnerabilities before it is exposed to customers. Option C is correct because reviewing the model card and documentation reveals the model's intended use, limitations, training provenance, and known biases, allowing the organization to assess whether the model is suitable and safe for its customer-facing scenario. Option E is correct because an SBOM for AI components enumerates the model's dependencies, libraries, and versions, enabling the organization to identify known vulnerabilities and manage supply chain risk.

Option B does not belong because federated learning is a training technique for building or adapting models on distributed internal data, not a vetting step for evaluating a third-party model. Option D does not belong because running a model inversion attack is an offensive research technique that could itself compromise privacy, rather than a standard supply chain security review step.

Exam trap

AI0-001 often tests whether candidates confuse offensive security techniques (model inversion) or training methodologies (federated learning) with the standard vetting triad of red teaming, model card review, and SBOM analysis.

893
Multi-Selectmedium

A bank plans to deploy a credit-scoring model that will make automated decisions about loan applications. Compliance requires the bank to provide meaningful information about how the system reaches decisions and to give applicants a way to contest outcomes. Which TWO operational practices best support these obligations? (Choose two.)

Select 2 answers
A.Publish the full training dataset and model weights so applicants can inspect them directly.
B.Generate per-applicant reason codes that identify the principal factors driving each decision, using techniques such as SHAP or LIME.
C.Disable logging of decision inputs to minimize the personal data retained about applicants.
D.Reduce the model to a single decision tree so every applicant can be shown the same global tree structure.
E.Provide a documented human review pathway where applicants can request reconsideration and a qualified reviewer can override the automated decision.
AnswersB, E

Reason codes translate a model score into the specific factors, such as debt-to-income ratio or recent delinquencies, that moved the decision. This gives applicants the meaningful information regulators expect and gives reviewers a concrete basis for evaluating a contest. SHAP and LIME produce these local attributions from the deployed model without altering its predictions.

Why this answer

Meaningful transparency and contestability for automated credit decisions rest on two capabilities: per-applicant reason codes from local attribution methods, and a documented human review path that can reconsider and override the model. Together they let an applicant understand the decision and challenge it. Publishing data and weights, collapsing to one tree, or deleting decision logs either breaches privacy or removes the evidence needed for review.

Exam trap

The trap here is equating transparency with full disclosure of data and model internals, when the obligation is an understandable per-decision explanation plus a real human review route.

894
Multi-Selecteasy

A security team is auditing an AI system and identifies risks related to the OWASP LLM Top 10. Which TWO risks are directly associated with data handling and privacy? (Select two.)

Select 2 answers
A.Supply chain vulnerabilities
B.Model denial of service
C.Overreliance
D.Training data poisoning
E.Sensitive information disclosure
AnswersD, E

Training data poisoning corrupts the model's learned parameters by injecting manipulated samples during training, directly compromising the integrity of data handling. It appears in the OWASP LLM Top 10 as LLM04, satisfying the stem's requirement for a risk tied to how training data is sourced, curated and protected.

Why this answer

Option D (Training data poisoning) is correct because it directly concerns the integrity of the data used to train or fine-tune an LLM: attackers can inject malicious or manipulated samples into the training corpus, corrupting model behavior and compromising the confidentiality, integrity, and trustworthiness of the underlying data pipeline. Option E (Sensitive information disclosure) is correct because it is the OWASP LLM Top 10 risk specifically covering leakage of PII, credentials, proprietary text, or other private data through model outputs, often due to memorization of training data, inadequate output filtering, or prompt-based extraction. The other options do not belong: A (Supply chain vulnerabilities) targets third-party models, datasets, and dependencies rather than data privacy itself; B (Model denial of service) is an availability/resource-exhaustion risk; and C (Overreliance) is a human-factors risk of trusting incorrect model output, not a data-handling or privacy issue.

Exam trap

CompTIA AI often tests the distinction between risks that affect data integrity/privacy (like poisoning and disclosure) versus those affecting availability, trust, or supply chain, so candidates mistakenly select overreliance or supply chain vulnerabilities because they seem related to data but are actually about user behavior or third-party dependencies.

895
MCQhard

An AI team is developing a model that approves loan applications. The dataset contains historical loan decisions where a protected group was disproportionately denied loans. The team wants to ensure the model does not perpetuate this bias. Which fairness metric should be used during validation to directly measure whether the model's positive prediction rate is equal across groups?

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

Demographic parity compares the positive prediction rate between groups, directly quantifying whether approval rates are equal regardless of protected attributes. This matches the requirement to measure equal positive prediction rates across groups, exposing the historical denial disparity.

Why this answer

Demographic parity (also called statistical parity) directly measures whether the positive prediction rate is equal across groups. It is the fairness metric that compares the proportion of positive outcomes for each protected group, which aligns with the requirement to measure equal positive prediction rates.

Exam trap

AI0-001 often tests the confusion between demographic parity and equalised odds — candidates must remember that demographic parity only looks at positive prediction rates, while equalised odds also considers true and false positive rates.

How to eliminate wrong answers

Option B is wrong because calibration measures whether predicted probabilities match actual outcomes within groups, not whether positive prediction rates are equal. Option C is wrong because individual fairness focuses on treating similar individuals similarly, not on group-level positive rates. Option D is wrong because equalised odds requires equal true positive and false positive rates across groups, which is a different condition than equal positive prediction rates.

896
MCQhard

An AI developer is building an agent that can book flights and hotels by calling external APIs. The agent needs to decide which API to call and in what order based on user requests. Which pattern is BEST suited for this multi-step reasoning and tool use?

A.Implement a simple Retrieval-Augmented Generation (RAG) pipeline
B.Fine-tune a model to output API call sequences directly
C.Use function calling with a fixed sequence of API calls
D.Apply the ReAct pattern (Reasoning and Acting)
AnswerD

ReAct interleaves chain-of-thought reasoning with tool calls, letting the agent decide which API to invoke and in what order, then feed results back into reasoning. This satisfies the stem's need for multi-step reasoning plus external API orchestration.

Why this answer

The ReAct (Reasoning and Acting) pattern interleaves natural-language reasoning traces with tool/API calls, allowing the agent to decide which API to invoke, observe the result, and reason about the next step. This iterative loop is ideal for multi-step tasks like booking flights and hotels, where the sequence depends on intermediate results (e.g., flight availability before hotel dates). It is the best-suited pattern for dynamic, multi-step tool use.

Exam trap

The trap is confusing RAG (retrieval for knowledge) or fine-tuning (static behavior) with agentic reasoning; the exam tests whether you recognize that multi-step tool use requires an iterative reason-act loop like ReAct.

How to eliminate wrong answers

Option A is wrong because a simple RAG pipeline retrieves documents to augment generation; it does not orchestrate multi-step API calls or decision-making. Option B is wrong because fine-tuning a model to output API sequences directly is brittle — it cannot adapt to dynamic API responses or errors, and it lacks the reasoning loop needed for conditional sequencing. Option C is wrong because a fixed sequence of API calls cannot handle the conditional logic required (e.g., choosing a hotel based on flight arrival time); it is not adaptive.

897
MCQmedium

A computer vision team trains a convolutional neural network for manufacturing defect detection on a workstation with an NVIDIA RTX A6000 GPU. They want to reduce training time by increasing throughput without changing model architecture or batch size. Which action should they take?

A.Increase the batch size to the maximum that fits in GPU memory and keep the learning rate unchanged.
B.Shard the dataset across multiple CPU cores using NumPy and disable GPU acceleration for the convolution layers.
C.Enable mixed-precision training using NVIDIA Tensor Cores with FP16 compute and FP32 accumulation.
D.Convert the trained model to TensorFlow Lite and redeploy it for training on the GPU.
AnswerC

Mixed-precision training uses Tensor Cores to perform matrix multiplications in FP16 while accumulating in FP32, roughly doubling throughput on Ampere-class GPUs without altering the model architecture or batch size. It preserves numerical stability because accumulation stays in FP32. This directly reduces training time for the existing CNN on the RTX A6000.

Why this answer

Mixed-precision training exploits Tensor Cores to compute in FP16 while accumulating in FP32, delivering substantial throughput gains on modern NVIDIA GPUs with minimal accuracy impact. Because the architecture and batch size remain unchanged, it fits the constraint precisely. Other listed actions either alter training semantics or move work to slower hardware, so they do not satisfy the goal.

Exam trap

The trap here is assuming that any change to precision degrades model accuracy, when mixed-precision keeps FP32 accumulation specifically to preserve numerical stability.

898
MCQmedium

An organization wants to use a pre-trained language model from a third party. Which practice is MOST critical to ensure supply chain security for the AI component?

A.Vetting the pre-trained model for backdoors, data lineage, and provenance
B.Reviewing the model's software bill of materials (SBOM)
C.Implementing rate limiting on API calls to the model
D.Performing model inversion defense
AnswerA

Vetting the pre-trained model for backdoors, data lineage, and provenance directly addresses the third-party supply chain risk. Because the model originates externally, its weights, training data and update pipeline are untrusted; inspecting these artefacts detects implanted triggers or poisoned lineage before deployment, satisfying the stem's requirement to secure the AI component's origin.

Why this answer

Vetting the pre-trained model for backdoors, data lineage, and provenance directly addresses supply chain risks by verifying the model's integrity, origin, and training data. This practice ensures the model has not been tampered with or poisoned during development or distribution, which is critical for AI supply chain security.

Exam trap

CompTIA often tests the distinction between general software supply chain practices (like SBOM) and AI-specific supply chain risks (like model backdoors and data poisoning), leading candidates to mistakenly choose SBOM review as the most critical practice.

How to eliminate wrong answers

Option B is wrong because reviewing the software bill of materials (SBOM) is important for traditional software supply chain security but does not specifically address AI model risks like backdoors or poisoned training data. Option C is wrong because implementing rate limiting on API calls is a runtime operational control to prevent abuse or denial of service, not a supply chain security practice. Option D is wrong because performing model inversion defense is a privacy protection technique to prevent extraction of training data, not a supply chain security measure for vetting third-party models.

899
Multi-Selecteasy

Which TWO of the following are essential components of a responsible AI governance framework?

Select 2 answers
A.Assignment of a responsible owner for each AI system's outcomes
B.Using ensemble methods to reduce overfitting
C.Clear documentation of model development and decision-making processes
D.Automated hyperparameter tuning to improve accuracy
E.Deploying models on dedicated hardware to reduce latency
AnswersA, C

Accountability is a fundamental governance requirement.

Why this answer

Assigning a responsible owner for each AI system's outcomes ensures accountability, which is a core principle of AI governance. This owner is typically a designated individual or team that oversees the system's lifecycle, including monitoring for bias, compliance with regulations, and handling incidents. Without clear ownership, there is no single point of contact for ethical or legal issues, making governance ineffective.

Exam trap

CompTIA often tests the distinction between technical implementation details (like ensemble methods or hyperparameter tuning) and governance framework components, so candidates mistakenly select options that improve model performance rather than those ensuring accountability and transparency.

900
MCQeasy

A startup wants to identify unusual patterns in network traffic to detect potential security breaches. They have a large dataset of normal traffic but very few labeled attacks. Which machine learning approach is MOST suitable?

A.Supervised classification with logistic regression
B.Unsupervised anomaly detection
C.Reinforcement learning
D.Semi-supervised learning
AnswerB

With abundant normal traffic and almost no labelled attacks, supervised methods lack sufficient examples. Unsupervised anomaly detection learns the baseline distribution of normal traffic and flags statistical deviations, directly satisfying the constraint of scarce attack labels while surfacing unknown breach patterns.

Why this answer

Unsupervised anomaly detection is the most suitable approach because the startup has a large dataset of normal traffic but very few labeled attacks. This technique learns the baseline of normal behavior from unlabeled data and flags deviations as potential anomalies, which is ideal for detecting unknown or rare attack patterns without requiring labeled attack samples.

Exam trap

The AI0-001 exam often tests the misconception that semi-supervised learning is the best choice when labeled data is scarce, but the key distinction is that semi-supervised learning still requires a meaningful amount of labeled data for the target class, whereas unsupervised anomaly detection works with zero labeled attacks.

How to eliminate wrong answers

Option A is wrong because supervised classification with logistic regression requires a large, balanced set of labeled attack and normal traffic data to train effectively, which the startup lacks. Option C is wrong because reinforcement learning is designed for sequential decision-making problems (e.g., autonomous agents) and is not suited for static pattern detection in network traffic. Option D is wrong because semi-supervised learning still requires at least some labeled attack data to guide the model, and the startup has very few labeled attacks, making it less effective than pure unsupervised anomaly detection.

Page 11

Page 12 of 13

Page 13