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

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

Page 1

Page 2 of 14

Page 3
76
Multi-Selecteasy

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

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

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

Why this answer

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

Exam trap

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

77
Multi-Selectmedium

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

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

Removing punctuation helps tokens become clean words.

Why this answer

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

Exam trap

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

78
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

79
Multi-Selectmedium

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

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

Model registries provide centralized versioning and lifecycle management.

Why this answer

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

Exam trap

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

80
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

81
MCQeasy

A data scientist wants to protect the privacy of individuals whose data is used to train a model, even if the model is compromised. Which technique ensures that the model does not memorize sensitive information?

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

Differential privacy mathematically limits what can be inferred about individuals from the model.

Why this answer

Differential privacy (C) is the correct technique because it adds calibrated noise to the training data or model updates, ensuring that the model's outputs do not reveal whether any specific individual's data was included. This guarantees that even if an attacker gains full access to the model, they cannot extract sensitive information about any single record, as the noise bounds the influence of any one data point.

Exam trap

CompTIA often tests the misconception that data anonymization (D) is sufficient for model privacy, but candidates must recognize that anonymization does not protect against model inversion or membership inference attacks, whereas differential privacy provides a formal mathematical guarantee.

How to eliminate wrong answers

Option A is wrong because federated learning distributes training across devices but does not inherently prevent memorization; the model can still leak sensitive data if the aggregation or updates are not privacy-preserving. Option B is wrong because homomorphic encryption allows computation on encrypted data but protects data in transit or at rest, not the model's internal memorization of training examples. Option D is wrong because data anonymization removes direct identifiers but is vulnerable to re-identification attacks via auxiliary information, and does not prevent the model from memorizing patterns that can be linked back to individuals.

82
MCQmedium

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

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

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

Why this answer

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

83
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

84
Multi-Selectmedium

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

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

Fairness-aware algorithms can reduce bias during training.

Why this answer

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

A black-box model without explanation would hinder compliance.

85
MCQmedium

A deep learning model for sentiment analysis uses a softmax output layer. The hidden layers currently use tanh activation. Which activation function should replace tanh to mitigate vanishing gradients in deeper networks?

A.Sigmoid
B.Softmax
C.ReLU
D.Linear
AnswerC

ReLU is non-saturating and helps mitigate vanishing gradients.

Why this answer

ReLU (Rectified Linear Unit) is correct because it outputs zero for negative inputs and a positive linear slope for positive inputs, which avoids the saturation problem of tanh. In deeper networks, tanh gradients can vanish as activations approach ±1, slowing or halting learning. ReLU's non-saturating nature keeps gradients flowing for positive inputs, mitigating the vanishing gradient problem.

Exam trap

Candidates often mistakenly believe that any non-linear activation works equally well in deep networks, but the trap is that they may choose sigmoid because it is non-linear, ignoring its saturation-induced vanishing gradient problem in deeper architectures.

How to eliminate wrong answers

Option A is wrong because sigmoid also saturates at 0 and 1, causing vanishing gradients in deep networks, similar to tanh. Option B is wrong because softmax is typically used in the output layer for multi-class classification, not in hidden layers, and it saturates across classes, exacerbating vanishing gradients. Option D is wrong because a linear activation would collapse the network into a single linear transformation, removing the non-linearity needed to learn complex patterns in sentiment analysis.

86
Multi-Selecteasy

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

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

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

Why this answer

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

Exam trap

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

87
MCQhard

A team is training a deep learning model for image classification. The training loss decreases rapidly but validation loss starts increasing after a few epochs. Which regularization technique should be applied to mitigate this issue?

A.Data augmentation
B.L2 regularization
C.Early stopping
D.Dropout
AnswerC

Early stopping prevents overfitting by stopping training when validation loss starts to rise.

Why this answer

Option C is correct because early stopping halts training when validation loss starts increasing, preventing overfitting. Option A (data augmentation) is wrong because it increases data diversity but does not stop training when validation loss increases. Option B (L2 regularization) is wrong because it penalizes large weights but does not directly address the issue of validation loss increasing.

Option D (dropout) is wrong because while it helps generalize by randomly dropping neurons, it does not stop training when overfitting occurs.

88
MCQeasy

An organization deploys a large language model (LLM) to summarize confidential emails. They are concerned about sensitive information being exposed through the model's responses. Which attack should they be MOST worried about?

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

Prompt injection can bypass instructions and cause the LLM to output sensitive information.

Why this answer

Prompt injection is the most immediate threat because it allows an attacker to override the LLM's system instructions, potentially causing it to reveal confidential email content in its responses. Unlike other attacks, prompt injection directly exploits the model's inability to distinguish between user input and trusted instructions, making it the primary vector for leaking sensitive data from summarization tasks.

Exam trap

CompTIA often tests prompt injection as the primary real-time attack on LLMs in production, while candidates mistakenly choose data poisoning or membership inference because they associate 'sensitive information exposure' with training data leaks rather than runtime manipulation.

How to eliminate wrong answers

Option A is wrong because data poisoning involves corrupting the training data to alter model behavior over time, but it does not directly cause the model to leak confidential emails in real-time responses. Option B is wrong because membership inference determines whether a specific data point was used in training, which is a privacy concern but does not extract the content of confidential emails. Option D is wrong because model extraction aims to steal the model's architecture or weights through repeated queries, not to retrieve specific sensitive information from the model's responses.

89
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

90
Multi-Selecthard

A company is integrating a third-party pre-trained model into its product. To address supply chain security, which THREE actions are most important? (Choose three.)

Select 3 answers
A.Checking the model for backdoors using validation techniques
B.Using homomorphic encryption for model inference
C.Creating a software bill of materials (SBOM) for AI components
D.Implementing federated learning for future updates
E.Vetting the model's provenance and dataset lineage
AnswersA, C, E

Backdoor detection is critical to ensure the model hasn't been tampered with.

Why this answer

Option A is correct because checking a pre-trained model for backdoors using validation techniques (e.g., adversarial input testing, neuron coverage analysis, or differential privacy auditing) directly mitigates supply chain risks where a third-party model may contain hidden malicious behaviors. Backdoors can be inserted during training to trigger misclassification on specific inputs, and validation techniques help detect such anomalies before integration.

Exam trap

CompTIA often tests the distinction between supply chain security (provenance, SBOM, backdoor checks) and operational security (encryption, federated learning), so candidates mistakenly pick options that sound security-related but address different threat models.

91
MCQhard

A data scientist is training a random forest model on a large dataset and notices that the model is overfitting. Which hyperparameter adjustment is most likely to reduce overfitting?

A.Increase the maximum features
B.Decrease the maximum depth of trees
C.Decrease the minimum samples split
D.Increase the number of trees
AnswerB

Shorter trees are less complex and generalize better.

Why this answer

Decreasing the maximum depth of trees limits how deep each decision tree can grow, which reduces the model's capacity to learn overly specific patterns from the training data. This directly combats overfitting by enforcing simpler trees that generalize better to unseen data.

Exam trap

A common mistake is assuming that increasing the number of trees always reduces overfitting, but in random forests, while more trees reduce variance through averaging, they do not address the root cause of overfitting in individual trees. Decreasing maximum depth directly limits tree complexity.

How to eliminate wrong answers

Option A is wrong because increasing the maximum features (the number of features considered at each split) actually increases tree diversity and can reduce overfitting in some cases, but it is not the most direct adjustment for overfitting—it can also increase variance if set too high. Option C is wrong because decreasing the minimum samples split (the minimum number of samples required to split an internal node) allows trees to split on smaller subsets, which increases model complexity and exacerbates overfitting. Option D is wrong because increasing the number of trees generally improves stability and reduces variance due to averaging, but it does not directly reduce overfitting; in fact, more trees can sometimes memorize noise if individual trees are already overfit.

92
Multi-Selectmedium

A team is selecting a vector database for a RAG application that requires low-latency similarity search on millions of embeddings. They prioritize ease of use and fully managed cloud service. Which TWO options meet these requirements?

Select 2 answers
A.Pinecone
B.pgvector
C.Chroma
D.Weaviate
E.Milvus
AnswersA, D

Pinecone is a fully managed, cloud-native vector database with low-latency similarity search, ideal for production RAG.

Why this answer

Pinecone is a fully managed vector database designed for production-scale RAG applications, offering low-latency similarity search on millions of embeddings without requiring users to manage infrastructure. Its serverless architecture and simple API align directly with the team's priorities of ease of use and a fully managed cloud service.

Exam trap

CompTIA often tests the distinction between open-source, self-managed tools and fully managed cloud services, where candidates may incorrectly assume that any popular vector database (like Milvus or pgvector) inherently provides a managed cloud experience without checking the deployment model.

93
MCQeasy

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

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

The board provides oversight and guidance on ethical matters.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

94
MCQhard

An engineer is deploying a model on edge devices with limited compute. The model was trained in PyTorch. They need to convert it to a format optimized for mobile CPUs. Which framework should they use?

A.OpenVINO
B.TensorFlow Lite
C.ONNX Runtime Mobile
D.Core ML
AnswerB

TensorFlow Lite is the standard for deploying models on mobile, embedded, and IoT devices with hardware acceleration.

Why this answer

TensorFlow Lite (TFLite) is specifically designed for on-device inference on mobile CPUs with limited compute, offering quantization and reduced model size. Since the model is trained in PyTorch, it can be converted to TFLite via ONNX or directly using PyTorch's export to TorchScript followed by conversion through TensorFlow. TFLite's optimized kernels for ARM CPUs make it the best choice for mobile CPU deployment.

Exam trap

CompTIA often tests the misconception that ONNX Runtime Mobile is the universal solution for all edge devices, but it lacks the mobile-specific CPU optimizations and ecosystem maturity of TensorFlow Lite for ARM-based mobile CPUs.

How to eliminate wrong answers

Option A is wrong because OpenVINO is optimized for Intel CPUs, GPUs, and VPUs, not for general mobile CPUs (e.g., ARM-based), and lacks native mobile runtime support. Option C is wrong because ONNX Runtime Mobile is designed for cross-platform inference but does not provide the same level of CPU kernel optimization for mobile devices as TFLite, and its mobile support is less mature. Option D is wrong because Core ML is Apple's framework for iOS devices only, not for cross-platform mobile CPUs, and requires conversion to a proprietary format that may not support all PyTorch operators.

95
Multi-Selecthard

A company is building a multi-modal AI application that processes text, images, and audio. They need a unified platform to store embeddings for all modalities, perform hybrid search (vector + metadata filtering), and scale to millions of vectors. Which THREE services are suitable for this purpose? (Choose THREE.)

Select 3 answers
A.Weaviate
B.Amazon S3
C.Snowflake
D.pgvector (PostgreSQL extension)
E.Pinecone
AnswersA, D, E

Weaviate is a vector database with hybrid search and multi-modal support.

Why this answer

Weaviate is a purpose-built vector database that natively supports multi-modal embeddings (text, images, audio) through its vectorizer modules and provides hybrid search combining vector similarity with metadata filtering (e.g., using GraphQL or REST APIs). It is designed to scale to millions of vectors with built-in sharding and replication, making it a strong fit for the described unified platform.

Exam trap

CompTIA often tests the distinction between general-purpose storage (S3) or analytics platforms (Snowflake) and purpose-built vector databases, leading candidates to mistakenly choose services that store data but lack native vector search and hybrid filtering capabilities.

96
MCQmedium

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

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

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

Why this answer

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

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

97
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

98
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

99
MCQhard

A company is building a computer vision system to detect defects in manufactured parts. They have 10,000 labeled images per class (defective and non-defective). They want to achieve high accuracy with limited computational resources. Which deep learning architecture and approach is most appropriate?

A.Train a custom CNN from scratch with many layers
B.Use a decision tree ensemble
C.Use a pre-trained VGG16 and fine-tune the last few layers
D.Use an RNN to process image sequences
AnswerC

Transfer learning with fine-tuning is efficient and effective for moderate datasets.

Why this answer

Option C is correct because using a pre-trained VGG16 and fine-tuning the last few layers leverages transfer learning, which is ideal when you have a moderate-sized labeled dataset (10,000 images per class) and limited computational resources. The pre-trained model already captures general visual features from ImageNet, so only the task-specific layers need to be trained, reducing training time and resource requirements while still achieving high accuracy.

Exam trap

CompTIA AI often tests the misconception that more layers or training from scratch always yields better accuracy, when in reality transfer learning with a pre-trained model is the most practical choice for moderate datasets and limited compute.

How to eliminate wrong answers

Option A is wrong because training a custom CNN from scratch with many layers would require a very large dataset (typically millions of images) and extensive computational resources to converge, and with only 10,000 images per class, it risks overfitting and poor generalization. Option B is wrong because decision tree ensembles are not designed for high-dimensional image data; they lack the spatial feature extraction capabilities of CNNs and would perform poorly on raw pixel inputs. Option D is wrong because RNNs are designed for sequential data (e.g., time series, text) and are not suitable for static image classification; they would ignore spatial structure and be computationally inefficient for this task.

100
MCQmedium

A company is implementing a guardrail system for their LLM chatbot. Which of the following is an example of a guardrail?

A.Using a larger context window
B.Rejecting requests that ask for illegal advice
C.Increasing the model's temperature parameter
D.Enabling caching for frequent queries
AnswerB

This is a content-based guardrail that blocks harmful outputs.

Why this answer

Option B is correct because a guardrail in an LLM system is a safety constraint that filters or rejects harmful inputs and outputs. Rejecting requests for illegal advice directly enforces policy compliance and prevents the model from generating prohibited content, which is the core function of a guardrail.

Exam trap

Candidates often confuse performance tuning parameters (context window, temperature, caching) with actual safety controls, leading them to mistake model configuration options for guardrail mechanisms.

How to eliminate wrong answers

Option A is wrong because using a larger context window increases the amount of text the model can process but does not enforce any safety or policy restrictions; it is a performance parameter, not a guardrail. Option C is wrong because increasing the model's temperature parameter controls randomness in output generation and has no role in blocking harmful or illegal requests; it is a generation hyperparameter, not a safety mechanism. Option D is wrong because enabling caching for frequent queries improves response latency and reduces computational load but does not filter or reject any content; it is an optimization technique, not a guardrail.

101
MCQmedium

A healthcare AI system misdiagnosed patients due to adversarial inputs. What security measure should be prioritized?

A.Encrypt all patient data
B.Use stronger authentication
C.Regular software updates
D.Implement adversarial training
AnswerD

Directly mitigates adversarial examples.

Why this answer

Option D (Implement adversarial training) is correct because adversarial training makes the model robust to input manipulation. Option A (Encrypt all patient data) protects data privacy but not model integrity. Option B (Use stronger authentication) is for access control.

Option C (Regular software updates) is general maintenance and does not specifically address adversarial inputs.

102
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

103
MCQhard

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

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

Input validation can identify adversarial examples based on statistical anomalies.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

104
MCQmedium

A company uses an AI model to screen job applications. The model is trained on historical hiring data that reflects past biases. After deployment, the model disproportionately rejects candidates from certain demographics. Which concept does this best illustrate?

A.Overfitting
B.Model drift
C.Algorithmic bias
D.Underfitting
AnswerC

Correct; this describes the biased outcome due to biased data.

Why this answer

Option C is correct because algorithmic bias refers to systematic and unfair discrimination in AI outputs due to biased training data or model design. Option A (overfitting) is about a model that performs well on training data but poorly on new data due to excessive complexity. Option B (model drift) is about performance degradation over time due to changes in data distribution.

Option D (underfitting) is when a model is too simple to capture patterns.

105
MCQhard

A team uses a retrieval-augmented generation (RAG) system to answer questions from a large enterprise document repository. They observe that the generated answers sometimes contain information not present in the retrieved documents. What is the MOST likely cause?

A.The vector database has low recall
B.The temperature setting is too high
C.The embedding model is not accurately representing document semantics
D.The LLM's context window is too small to include all retrieved chunks
AnswerD

When the context window truncates retrieved documents, the LLM lacks necessary information and may generate unsupported content.

Why this answer

When the LLM's context window is too small to include all retrieved chunks, the model may generate information not present in the provided context to fill gaps, a phenomenon known as hallucination. This occurs because the model relies on its internal knowledge when relevant retrieved content is truncated, leading to fabricated details. Option D directly addresses this mismatch between retrieval capacity and generation constraints.

Exam trap

CompTIA often tests the distinction between retrieval-side failures (low recall, poor embeddings) and generation-side failures (context window limits, hallucination), trapping candidates who confuse missing information with fabricated information.

How to eliminate wrong answers

Option A is wrong because low recall in the vector database means relevant documents are missed, which would cause incomplete or missing answers, not the addition of extra information not in the retrieved set. Option B is wrong because a high temperature setting increases randomness in token selection, potentially causing less coherent or more creative outputs, but it does not directly cause the model to fabricate facts absent from the provided context. Option C is wrong because an inaccurate embedding model leads to poor semantic matching and retrieval of irrelevant documents, but the generated answer would still be based on whatever documents were retrieved, not on information outside those documents.

106
MCQmedium

A company wants to automatically group customer support tickets into categories (e.g., billing, technical, account) without pre-labeled data. Which machine learning approach should they use?

A.Supervised classification with logistic regression
B.Semi-supervised learning with a small labeled set
C.Unsupervised clustering using K-means
D.Reinforcement learning with a reward function
AnswerC

K-means clustering groups similar tickets without labels.

Why this answer

Option C is correct because the company has no pre-labeled data, which means supervised learning (which requires labeled examples) is not feasible. Unsupervised clustering, such as K-means, groups data points into clusters based on feature similarity without needing any labels, making it ideal for automatically discovering categories like billing, technical, or account from raw ticket text.

Exam trap

CompTIA AI often tests the distinction between supervised and unsupervised learning by presenting a scenario with 'no pre-labeled data' to trick candidates into choosing semi-supervised learning (Option B) because it sounds like a compromise, but the correct answer is always unsupervised clustering when zero labels are available.

How to eliminate wrong answers

Option A is wrong because supervised classification with logistic regression requires a pre-labeled training dataset, which the company does not have. Option B is wrong because semi-supervised learning still requires at least a small set of labeled data to guide the model, contradicting the 'without pre-labeled data' condition. Option D is wrong because reinforcement learning uses a reward function to learn a policy through trial-and-error interactions with an environment, which is not suited for static grouping of text data into categories.

107
MCQeasy

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

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

Clustering groups unlabeled data based on similarity.

Why this answer

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

108
MCQhard

A team wants to deploy a large language model on edge devices with limited memory and compute. They need to reduce model size by at least 50% while preserving accuracy. Which combination of techniques is most effective?

A.Apply INT8 quantization and weight pruning
B.Distill the model into a smaller architecture without quantization or pruning
C.Use FP32 precision and increase batch size
D.Use FP16 quantization and add more layers
AnswerA

INT8 reduces storage and computation; pruning removes redundant weights, yielding >50% size reduction with minor accuracy impact.

Why this answer

INT8 quantization reduces the precision of weights and activations from 32-bit to 8-bit, cutting memory usage by approximately 75% for those tensors, while weight pruning removes redundant connections, often achieving over 50% size reduction with minimal accuracy loss when combined. Together, they directly address the constraints of edge devices by shrinking the model footprint and computational requirements without requiring a complete architecture redesign.

Exam trap

The exam often tests the misconception that a single technique (like distillation or FP16) is sufficient for aggressive size reduction, when in reality, combining complementary compression methods (quantization and pruning) is necessary to meet both the 50% size reduction and accuracy preservation requirements on edge devices.

How to eliminate wrong answers

Option B is wrong because knowledge distillation alone reduces model size by training a smaller student network, but without quantization or pruning, the student model may still exceed the 50% reduction target or suffer significant accuracy loss if the architecture is not aggressively compressed. Option C is wrong because using FP32 precision and increasing batch size actually increases memory and compute demands, making it unsuitable for resource-constrained edge devices. Option D is wrong because FP16 quantization provides only a 50% memory reduction (not guaranteed to meet the target when combined with adding layers, which increases model size and complexity, often negating the quantization benefit and degrading accuracy on edge hardware without native FP16 support.

109
MCQmedium

A self-driving car uses an AI model that learns by trial and error, receiving rewards for correct actions and penalties for mistakes. This type of learning is:

A.Supervised learning
B.Unsupervised learning
C.Transfer learning
D.Reinforcement learning
AnswerD

Correct; RL uses rewards to learn optimal actions.

Why this answer

Reinforcement learning (RL) is the correct answer because the self-driving car's AI model learns through trial and error, receiving rewards for correct actions and penalties for mistakes. This feedback-driven process, where an agent interacts with an environment to maximize cumulative reward, is the defining characteristic of reinforcement learning, not supervised or unsupervised learning.

Exam trap

CompTIA often tests the distinction between reinforcement learning and supervised learning by describing a scenario with feedback (rewards/penalties) but no labeled dataset, leading candidates to mistakenly choose supervised learning because they associate 'feedback' with 'labels'.

How to eliminate wrong answers

Option A is wrong because supervised learning requires labeled input-output pairs (e.g., images tagged with 'stop sign') to train a model, not trial-and-error feedback. Option B is wrong because unsupervised learning finds hidden patterns in unlabeled data (e.g., clustering sensor readings) without any reward or penalty signals. Option C is wrong because transfer learning applies knowledge from a pre-trained model to a new but related task, not learning from scratch via rewards and punishments.

110
Multi-Selectmedium

A company is building an AI-based resume screening tool. They want to ensure the system is secure against data poisoning attacks during the training phase. Which THREE of the following are appropriate defensive measures?

Select 3 answers
A.Apply input sanitization to inference-time queries
B.Use robust statistical methods (e.g., trimmed mean) that are less sensitive to outliers
C.Validate and clean training data to remove anomalies and outliers
D.Restrict training data sources to trusted, verified providers only
E.Implement differential privacy during model training
AnswersB, C, D

Robust aggregation techniques reduce the impact of maliciously inserted outliers on the model's learned parameters.

Why this answer

Option B is correct because robust statistical methods like trimmed mean reduce the influence of outlier data points that could be injected by an adversary during training. By discarding extreme values, the model becomes less sensitive to poisoned samples, which is a key defense against data poisoning attacks that aim to corrupt the learned parameters.

Exam trap

Cisco often tests the distinction between training-phase attacks (data poisoning) and inference-phase attacks (evasion), so candidates mistakenly apply inference-time defenses like input sanitization to training security.

111
MCQmedium

A company using an AI-based hiring tool receives a candidate request for explanation of an automated rejection. Which GDPR principle is most directly relevant?

A.Right to erasure
B.Right to data portability
C.Right to access
D.Right to explanation
AnswerD

Article 22 and Recitals 71-72 of GDPR provide a right to explanation of decisions based solely on automated processing.

Why this answer

The GDPR includes a right to explanation for automated individual decision-making, including profiling. The right to access is broader. The right to erasure is about deletion.

The right to data portability is about data transfer.

112
MCQhard

A company trains a sentiment analysis model on customer reviews. An attacker submits hundreds of reviews with the word 'excellent' attached to negative feedback, causing the model to classify negative reviews as positive. This is an example of which attack?

A.Data poisoning
B.Model extraction
C.Adversarial example
D.Prompt injection
AnswerA

Data poisoning involves corrupting the training dataset to alter model behavior.

Why this answer

Data poisoning occurs when an attacker deliberately corrupts the training data to manipulate the model's behavior. By injecting hundreds of reviews that pair the word 'excellent' with negative sentiment, the attacker shifts the model's learned decision boundary, causing it to misclassify genuinely negative reviews as positive. This directly undermines the integrity of the training dataset, which is the hallmark of a data poisoning attack.

Exam trap

Cisco often tests the distinction between attacks that occur during training (data poisoning) versus attacks that occur during inference (adversarial examples), so candidates mistakenly choose adversarial example because they focus on the input manipulation rather than the stage of the attack lifecycle.

How to eliminate wrong answers

Option B is wrong because model extraction involves querying a model to reconstruct its parameters or architecture, not corrupting its training data. Option C is wrong because adversarial examples are crafted inputs that fool a trained model at inference time, not during training. Option D is wrong because prompt injection targets large language models by manipulating input prompts to override instructions, not by corrupting training data.

113
Multi-Selecthard

Which TWO techniques are most effective for ensuring model explainability in a production loan approval AI system subject to regulatory review? (Select TWO.)

Select 2 answers
A.Replace the model with a decision tree for transparency
B.Use SHAP values to understand feature contributions
C.Rely on the model's internal attention weights (if transformer-based)
D.Apply LIME to generate local explanations for each prediction
E.Calculate global feature importance using permutation importance
AnswersB, D

SHAP provides consistent and theoretically grounded explanations.

Why this answer

The correct answers are B (SHAP values) and D (LIME). SHAP values provide both global and local feature importance, satisfying explainability for regulatory review. LIME generates local explanations for individual predictions, which is crucial for understanding specific loan decisions.

Option A is incorrect because replacing the model with a decision tree may not be feasible or maintain performance. Option C is incorrect because attention weights are not reliable or standardized for explainability. Option E is incorrect because permutation importance offers global importance but lacks local explanations.

114
Multi-Selectmedium

A company is training a model on proprietary data and wants to prevent data poisoning. Which TWO practices are most important? (Select TWO.)

Select 2 answers
A.Implementing access controls on the training dataset
B.Validating the integrity of training data
C.Using a larger model
D.Increasing training epochs
E.Using homomorphic encryption
AnswersA, B

Access controls restrict who can modify the training data, reducing the risk of poisoning.

Why this answer

Implementing access controls on the training dataset (Option A) is critical because it restricts who can read, modify, or delete the data, thereby preventing unauthorized actors from injecting malicious samples. This is a fundamental security measure to protect the integrity of the training pipeline against data poisoning attacks. Validating the integrity of training data (Option B) ensures that the data has not been tampered with, for example by using checksums or cryptographic hashes, which directly counters poisoning attempts that rely on corrupted input.

Exam trap

Cisco often tests the distinction between security controls that prevent attacks (access controls, integrity validation) versus performance tuning (model size, epochs) or privacy techniques (homomorphic encryption), leading candidates to confuse data poisoning prevention with unrelated optimizations.

115
Multi-Selecteasy

A data scientist wants to build a proof-of-concept chatbot using a large language model. They need to choose a cloud AI platform that provides easy access to pre-trained models via API, with built-in safety filters and prompt engineering tools. Which TWO platforms are best suited?

Select 2 answers
A.Amazon Bedrock
B.Azure OpenAI Service
C.Amazon SageMaker
D.Hugging Face Hub
E.Google Vertex AI
AnswersB, E

Azure OpenAI provides managed access to GPT models with safety filters and prompt engineering.

Why this answer

Azure OpenAI Service (B) is correct because it provides direct API access to pre-trained models like GPT-4 with built-in content safety filters (e.g., Azure AI Content Safety) and integrated prompt engineering tools (e.g., Prompt Flow in Azure Machine Learning). This makes it ideal for quickly building a proof-of-concept chatbot with safety guardrails.

Exam trap

The CompTIA AI+ exam often tests the distinction between a managed API service for pre-trained models (Azure OpenAI, Vertex AI) and a full ML platform (SageMaker) or a model hub (Hugging Face) that lacks integrated safety and prompt engineering tools.

116
Multi-Selectmedium

Which TWO of the following are appropriate uses of unsupervised learning?

Select 2 answers
A.Classifying emails as spam or not spam
B.Predicting the sale price of a house given its features
C.Detecting unusual patterns in network traffic that may indicate a cyberattack
D.Identifying a person from a photo
E.Segmenting customers into groups based on purchasing behavior
AnswersC, E

Anomaly detection often uses unsupervised methods.

Why this answer

Unsupervised learning discovers hidden patterns or structures in unlabeled data. Detecting unusual patterns in network traffic (option C) is a classic anomaly detection task, often performed using clustering or autoencoders, where the model learns 'normal' behavior and flags deviations without requiring labeled attack data.

Exam trap

CompTIA often tests the distinction between supervised and unsupervised learning by presenting tasks that seem 'automatic' but actually require labeled data, tricking candidates into choosing supervised tasks as unsupervised uses.

117
MCQhard

The exhibit shows the output of a drift monitoring command for a fraud detection model. The team has an automated pipeline that triggers retraining when the overall average drift score exceeds 0.10. Based on the exhibit, what should the operations team do next?

A.Force retraining on all features to ensure the model adapts to the new data distribution.
B.Manually analyze the drift in 'amount' and 'location' and investigate potential causes.
C.No action is needed because the model is performing within acceptable drift limits.
D.Initiate the automated retraining pipeline since the average drift exceeds 0.05.
AnswerB

Investigating root causes of drift helps determine if retraining or data correction is appropriate.

Why this answer

Option B is correct because the exhibit shows that the overall average drift score is below 0.10, so the automated retraining pipeline should not trigger. However, individual features like 'amount' and 'location' show elevated drift values that warrant manual investigation to understand root causes before any retraining decision. The team should analyze these specific features to determine if the drift is due to genuine data distribution changes or data quality issues.

Exam trap

CompTIA AI often tests the distinction between aggregate drift thresholds and per-feature drift analysis, trapping candidates who assume that a low overall average drift means no action is needed, ignoring that individual features may still require investigation.

How to eliminate wrong answers

Option A is wrong because force retraining on all features is an overreaction and could introduce model instability; retraining should be targeted or based on the overall drift threshold, not forced indiscriminately. Option C is wrong because while the overall average drift is below 0.10, the elevated drift in 'amount' and 'location' indicates that action is needed to investigate potential causes, so 'no action' is not appropriate. Option D is wrong because the automated retraining pipeline triggers when the overall average drift score exceeds 0.10, not 0.05; the exhibit shows the average drift is below 0.10, so the pipeline should not be initiated.

118
MCQeasy

A data scientist is deploying a machine learning model to production. The model was trained on an imbalanced dataset. Which technique should be used during deployment to mitigate bias without retraining the model?

A.Apply post-processing calibration to adjust decision thresholds
B.Use an ensemble of models trained on balanced subsets
C.Rebalance the dataset using SMOTE before inference
D.Remove sensitive features from the input data
AnswerA

Post-processing calibration adjusts thresholds to improve fairness without retraining.

Why this answer

Post-processing calibration adjusts the decision threshold of the model to account for the class imbalance present in the training data. This technique modifies the output probabilities or classification boundary without requiring access to the original training data or retraining the model, making it suitable for deployment scenarios where the model is already fixed.

Exam trap

CompTIA often tests the distinction between techniques applied during training versus deployment, and the trap here is that candidates mistakenly choose SMOTE or ensemble methods, which require retraining, instead of recognizing that threshold adjustment is a valid post-deployment bias mitigation strategy.

How to eliminate wrong answers

Option B is wrong because using an ensemble of models trained on balanced subsets requires retraining or modifying the model architecture, which violates the constraint of not retraining the model. Option C is wrong because SMOTE (Synthetic Minority Over-sampling Technique) is a data preprocessing method applied before training to balance the dataset, not during inference; applying it at inference time would require access to the original training data and would alter the input distribution, which is not feasible or correct. Option D is wrong because simply removing sensitive features does not mitigate bias caused by imbalanced data; bias can still propagate through correlated features, and this approach does not address the class imbalance issue directly.

119
MCQmedium

A company deploys a machine learning model for fraud detection. After one month, the false positive rate has increased significantly. The model is retrained weekly on all historical data. What is the MOST effective immediate action?

A.Replace the model with a simpler logistic regression model.
B.Continue retraining weekly on all historical data.
C.Adjust the classification threshold to reduce false positives.
D.Retrain the model on only the most recent 30 days of data.
AnswerD

Recent data captures current fraud patterns, reducing false positives.

Why this answer

The false positive rate increase suggests the model is reacting to a shift in the underlying data distribution (concept drift). Retraining on only the most recent 30 days of data (option D) is the most effective immediate action because it focuses the model on the current fraud patterns, discarding stale historical data that may no longer be representative. This approach directly addresses the drift by adapting the model to the latest behavior.

Exam trap

CompTIA often tests the misconception that adjusting the classification threshold is a sufficient fix for model degradation, when in reality it only trades off error types without addressing the underlying data drift that caused the false positive increase.

How to eliminate wrong answers

Option A is wrong because replacing the model with a simpler logistic regression model does not address the root cause of concept drift and may reduce predictive performance without solving the false positive issue. Option B is wrong because continuing to retrain weekly on all historical data will dilute the influence of recent patterns with outdated data, likely perpetuating the high false positive rate. Option C is wrong because adjusting the classification threshold is a post-hoc fix that reduces false positives at the cost of increasing false negatives, and it does not correct the underlying model drift or data quality issue.

120
MCQmedium

A team is developing a recommendation system for an e-commerce platform. They want to use collaborative filtering but are concerned about cold-start problems for new users. Which approach would best mitigate the cold-start problem?

A.Incorporate user demographic features as side information
B.Increase the number of latent factors in matrix factorization
C.Use a popularity-based baseline for all recommendations
D.Use only item-based collaborative filtering
AnswerA

Demographic features enable recommendations for cold-start users by using profile information.

Why this answer

Option A is correct because incorporating user demographic features as side information allows the collaborative filtering model to generate initial recommendations for new users based on their demographic profile, effectively addressing the cold-start problem. This approach uses content-based features to bootstrap the recommendation process until sufficient user interaction data is collected.

Exam trap

The CompTIA AI+ exam often tests the misconception that increasing model complexity or switching between collaborative filtering variants alone can solve the cold-start problem, when in fact the solution requires incorporating auxiliary data (side information) to bootstrap recommendations for new users.

How to eliminate wrong answers

Option B is wrong because increasing the number of latent factors in matrix factorization does not solve the cold-start problem; it only increases model complexity and may lead to overfitting without addressing the lack of user interaction data. Option C is wrong because using a popularity-based baseline for all recommendations ignores personalization entirely, which defeats the purpose of collaborative filtering and does not leverage user-specific signals even when they become available. Option D is wrong because using only item-based collaborative filtering still requires some user interaction data to compute item similarities; it does not inherently handle new users with no history.

121
MCQhard

A financial institution uses a deep learning model for loan approvals. Under the EU AI Act, this is considered a high-risk AI system. Which mandatory requirement must the institution fulfill before deployment?

A.Obtain certification from an ISO 27001 auditor
B.Publish the model's source code publicly
C.Register the AI system with the national data protection authority
D.Conduct a risk assessment and bias testing
AnswerD

The EU AI Act mandates a risk management system and bias audits for high-risk systems.

Why this answer

Under the EU AI Act, high-risk AI systems must undergo a conformity assessment that includes a risk assessment and bias testing to ensure fairness, transparency, and non-discrimination before deployment. This requirement is mandated by Articles 9 and 10 of the Act, which specifically address risk management and data governance for high-risk systems. Option D correctly identifies this mandatory step, as the institution must demonstrate that the model does not produce biased outcomes that could lead to discriminatory lending practices.

Exam trap

Cisco often tests the misconception that all AI systems require public transparency or external certification, but the EU AI Act specifically mandates internal risk and bias assessments for high-risk systems, not broad publication or ISO standards.

How to eliminate wrong answers

Option A is wrong because ISO 27001 certification pertains to information security management systems, not to AI-specific risk or bias compliance under the EU AI Act; the Act does not require ISO 27001 certification for high-risk AI systems. Option B is wrong because the EU AI Act does not mandate public disclosure of source code; doing so could violate trade secrets and intellectual property rights, and transparency requirements are limited to documentation and logging, not open-source publication. Option C is wrong because registration with a national data protection authority is not a pre-deployment requirement for high-risk AI systems under the EU AI Act; instead, the Act requires registration in an EU-wide database managed by the European Commission, not individual national authorities.

122
Multi-Selectmedium

A healthcare organization is deploying an AI model to predict patient readmission risk. They must comply with regulations that protect patient privacy. Which TWO techniques should they implement to enhance privacy preservation?

Select 2 answers
A.Data augmentation
B.Differential privacy
C.Model quantization
D.Federated learning
E.Dropout regularization
AnswersB, D

Differential privacy limits information leakage about individuals.

Why this answer

Differential privacy (B) is correct because it adds calibrated noise to the training data or model outputs, ensuring that the inclusion or exclusion of any single patient's record does not significantly affect the model's predictions. This provides a formal mathematical guarantee of privacy, which is essential for complying with regulations like HIPAA that protect patient data.

Exam trap

Cisco often tests the misconception that any regularization or optimization technique (like dropout or quantization) can provide privacy, when in fact only methods that explicitly limit information leakage (like differential privacy and federated learning) are designed for that purpose.

123
Multi-Selecthard

Which THREE are effective methods for ensuring data privacy in AI training? (Choose three.)

Select 3 answers
A.Data encryption at rest
B.Data anonymization
C.Differential privacy
D.Data replication
E.Federated learning
AnswersB, C, E

Removes personally identifiable information.

Why this answer

Data anonymization (B) is correct because it removes or obfuscates personally identifiable information (PII) from training datasets, ensuring that individuals cannot be re-identified. This is a foundational privacy technique that directly addresses regulatory requirements like GDPR and CCPA by breaking the link between data and specific individuals.

Exam trap

Cisco often tests the distinction between security controls (like encryption) and privacy-preserving techniques, trapping candidates who confuse data protection at rest with privacy during model training.

124
MCQmedium

A company is fine-tuning a large language model using PEFT (Parameter-Efficient Fine-Tuning) to reduce GPU memory usage. They have limited hardware and need to fine-tune a 70B parameter model on a single GPU with 24 GB VRAM. Which technique is MOST suitable?

A.Full fine-tuning with gradient checkpointing
B.QLoRA (Quantization-aware LoRA) with 4-bit quantization
C.Instruction tuning with a smaller 7B model
D.LoRA (Low-Rank Adaptation) alone
AnswerB

QLoRA quantizes the base model to 4-bit, drastically reducing memory usage, and uses LoRA adapters for fine-tuning, fitting a 70B model in 24GB VRAM.

Why this answer

QLoRA combines quantization (4-bit) and LoRA to fine-tune very large models on limited hardware, achieving significant memory reduction while maintaining performance.

125
MCQeasy

A data scientist notices that a binary classification model consistently predicts the majority class. Which data engineering technique should be applied?

A.Feature scaling
B.Dimensionality reduction
C.Polynomial features
D.Oversampling
AnswerD

Oversampling (e.g., SMOTE) creates synthetic samples of the minority class to balance the dataset.

Why this answer

Oversampling (Option D) is correct because the model's bias toward the majority class indicates a class imbalance problem. By synthetically increasing the number of minority class samples (e.g., using SMOTE or random oversampling), the training data becomes more balanced, allowing the classifier to learn decision boundaries that are not skewed toward the majority class.

Exam trap

CompTIA often tests the misconception that feature scaling or dimensionality reduction can fix class imbalance, when in reality these techniques address different issues like feature magnitude or curse of dimensionality, not skewed target distributions.

How to eliminate wrong answers

Option A is wrong because feature scaling normalizes the range of input features (e.g., via min-max scaling or standardization) but does not address class imbalance; it only prevents features with larger magnitudes from dominating gradient-based optimization. Option B is wrong because dimensionality reduction (e.g., PCA or t-SNE) reduces the number of features to combat overfitting or noise, but it does not alter the class distribution, so the majority class bias remains. Option C is wrong because polynomial features create interaction or higher-degree terms from existing features to capture non-linear relationships, but they do not change the ratio of majority to minority samples, leaving the imbalance untouched.

126
Multi-Selecthard

An AI engineer is fine-tuning a transformer-based language model for a domain-specific task. They want to improve the model's factual accuracy and reduce hallucinations. Which THREE strategies should they consider? (Select THREE)

Select 3 answers
A.Increase the model's context window size beyond the training limit
B.Fine-tune the model on a curated domain-specific corpus
C.Use a higher temperature setting during generation
D.Apply chain-of-thought prompting for complex queries
E.Implement Retrieval-Augmented Generation (RAG)
AnswersB, D, E

Fine-tuning adapts the model's knowledge to the domain, improving accuracy.

Why this answer

Option B is correct because fine-tuning on a curated domain-specific corpus directly aligns the model with the factual patterns and terminology of the target domain. This supervised learning process adjusts the model's weights to reduce the probability of generating incorrect or hallucinated content by reinforcing ground-truth examples from the domain.

Exam trap

The CompTIA AI+ exam often tests the misconception that increasing randomness (higher temperature) or extending context windows beyond training limits can improve factual accuracy, when in fact these techniques degrade reliability.

127
MCQhard

A team is training a recurrent neural network (RNN) with LSTM units to predict stock prices. The validation loss is significantly higher than the training loss. Which action is MOST likely to reduce the gap?

A.Increase the number of LSTM units
B.Increase the number of training epochs
C.Reduce the sequence length
D.Increase the dropout rate in LSTM layers
AnswerD

Dropout regularises the network, reducing overfitting and closing the train-validation gap.

Why this answer

A large gap between training and validation loss indicates overfitting. Increasing dropout (a regularisation technique) reduces overfitting by preventing co-adaptation of neurons. Increasing LSTM units or epochs would worsen overfitting, and reducing sequence length may lose important temporal patterns.

128
MCQhard

A team is fine-tuning a large language model using LoRA. They have limited GPU memory. Which technique can further reduce memory consumption while maintaining similar fine-tuning quality?

A.Fine-tune all layers instead of using LoRA
B.Increase the rank of LoRA adapters
C.Use QLoRA with 4-bit quantization of the base model
D.Use a larger batch size
AnswerC

QLoRA quantizes the base model to 4 bits, significantly reducing memory while LoRA adapters handle fine-tuning.

Why this answer

QLoRA combines 4-bit quantization of the base model with LoRA adapters, drastically reducing memory usage while preserving fine-tuning performance.

129
MCQmedium

A data scientist is building a regression model to predict house prices. The dataset contains features such as square footage, number of bedrooms, and year built. Initial model performance is poor, and the scientist suspects that feature engineering could help. Which approach is most likely to improve model accuracy?

A.Use only linear features because polynomial terms overfit
B.Remove all features except square footage to reduce noise
C.Create interaction terms such as bedrooms times square footage
D.Add random noise to the target variable to increase variance
AnswerC

Interaction terms capture combined effects of features, often improving regression models.

Why this answer

Creating interaction terms like bedrooms × square footage captures non-linear relationships and synergies between features that a linear model alone cannot represent. In real estate, the effect of square footage on price often depends on the number of bedrooms (e.g., a large house with few bedrooms may be less valuable), so interaction terms allow the model to learn these conditional patterns, directly improving predictive accuracy.

Exam trap

CompTIA often tests the misconception that adding more features always causes overfitting, when in fact carefully engineered interaction terms can reduce bias without excessive variance if regularized properly.

How to eliminate wrong answers

Option A is wrong because restricting to only linear features ignores potentially valuable non-linear patterns; polynomial terms can be regularized to avoid overfitting and are often necessary for complex relationships. Option B is wrong because removing all features except square footage discards important predictors like bedrooms and year built, which carry significant signal for house prices, thus increasing bias and reducing accuracy. Option D is wrong because adding random noise to the target variable artificially increases variance and corrupts the ground truth, making it harder for the model to learn the true underlying patterns and degrading performance.

130
MCQeasy

A data science team is preparing a dataset for a supervised learning task. They split the data into training and test sets. The team then normalizes the features using the mean and standard deviation calculated from the entire dataset before splitting. What issue does this introduce?

A.It improves model generalization
B.It introduces train/test leakage
C.It causes the model to overfit the training data
D.It reduces the variance of the features
AnswerB

Correct: normalizing using global statistics means test set information is used to transform training data, leaking information.

Why this answer

Using statistics from the entire dataset before splitting causes test data information to influence the training process, leading to train/test leakage and overly optimistic performance estimates.

131
MCQmedium

A team is reviewing a neural network model summary. The input layer expects 784 features (e.g., 28x28 images). How many parameters does the first dense layer have?

A.100,224
B.109,258
C.100,352
D.8,256
AnswerC

100,352 is correct. It equals the weight parameters (784 * 128) with no biases.

Why this answer

The first dense layer has 128 neurons. The parameter count is computed as input_dim * units = 784 * 128 = 100,352. This model summary excludes bias parameters, so the weight count alone is 100,352.

Exam trap

Candidates may add bias parameters (128) to get 100,480, but that option is not listed. The correct answer is the weight-only count (100,352) because the summary excludes biases.

How to eliminate wrong answers

Option A (100,224) is wrong because it likely results from miscalculating the product of 784 and 128 as 100,224, which is off by 128 (the bias count), or from using an incorrect input dimension. Option B (109,258) is wrong because it does not correspond to any standard calculation for a dense layer with 784 inputs and 128 outputs; it may arise from mistakenly using 854 inputs or a different layer size. Option D (8,256) is wrong because it represents only the bias parameters if there were 128 units (128 * 64 = 8,192, close but not exact) or a confusion with the number of outputs squared, not the full parameter count.

132
MCQmedium

A data science team is deploying a deep learning model for real-time inference on edge devices with limited power and memory. Which model optimisation technique would be MOST effective for reducing latency and memory footprint while maintaining acceptable accuracy?

A.Use a larger batch size during inference
B.Train the model for more epochs to improve convergence
C.Apply quantisation to convert weights from FP32 to INT8
D.Increase the number of layers to improve feature extraction
AnswerC

Quantisation reduces model size and speeds up inference, making it ideal for edge devices.

Why this answer

Quantization reduces the precision of model weights from 32-bit floating point (FP32) to 8-bit integer (INT8), which directly cuts memory usage by 75% and accelerates inference on edge devices by leveraging integer arithmetic. This technique is specifically designed for resource-constrained environments where power and memory are limited, and it typically preserves accuracy within 1-2% of the original model.

Exam trap

CompTIA often tests the misconception that increasing model complexity (more layers or epochs) improves deployment performance, when in fact the opposite is true for edge inference; candidates may confuse training optimization with inference optimization.

How to eliminate wrong answers

Option A is wrong because increasing batch size during inference increases memory consumption and latency on edge devices, as it requires processing multiple inputs simultaneously, which is counterproductive for real-time, low-latency requirements. Option B is wrong because training for more epochs improves convergence and accuracy but does not reduce model size or inference latency; it may even lead to overfitting without any benefit to deployment efficiency. Option D is wrong because adding more layers increases the model's parameter count, memory footprint, and computational latency, directly opposing the goal of reducing resource usage on edge devices.

133
Multi-Selectmedium

A company is developing an AI policy for internal use. According to corporate AI governance best practices, which TWO components are essential for the policy?

Select 2 answers
A.Definition of roles and responsibilities for AI development
B.Establishment of an AI ethics board
C.Vendor AI assessment procedures
D.Data minimization requirements
E.Responsible use guidelines for employees
AnswersB, E

An ethics board provides governance and oversight.

Why this answer

An AI ethics board is essential because it provides independent oversight to ensure AI systems align with ethical principles, legal requirements, and corporate values. This board reviews high-risk AI use cases, approves ethical impact assessments, and enforces accountability, which is a core requirement of AI governance frameworks like the NIST AI Risk Management Framework.

Exam trap

CompTIA often tests the distinction between governance-level components (like an ethics board and responsible use guidelines) and operational or data-specific practices, leading candidates to mistakenly select role definitions or vendor assessments as essential policy components.

134
Multi-Selecthard

Which TWO strategies are effective for handling missing values in a dataset when the missingness is not random (MNAR)?

Select 2 answers
A.Multiple imputation using chained equations
B.Treat missing as a separate category (e.g., for categorical features)
C.Listwise deletion
D.KNN imputation
E.Mean imputation
AnswersA, B

Multiple imputation can handle MNAR if the imputation model incorporates variables that predict missingness.

Why this answer

Multiple imputation using chained equations (MICE) is effective for MNAR because it models each variable with missing values as a function of other variables, iteratively generating plausible values that preserve the relationships and uncertainty in the data. This approach can account for the systematic pattern of missingness by incorporating auxiliary variables that are correlated with both the missing values and the missingness mechanism, making it robust even when missingness depends on unobserved data.

Exam trap

CompTIA often tests the misconception that mean imputation or KNN imputation are safe defaults for any missing data pattern, but the trap here is that MNAR requires methods that explicitly model the missingness mechanism, which simple imputation techniques fail to do.

135
MCQhard

Refer to the exhibit. A data engineer notices that the batch processing step is taking too long and causing delays. Which change would most likely reduce the latency?

A.Increase the parallelism of the Spark job
B.Move feature engineering to the stream processing step in Flink
C.Replace Apache Flink with Apache Storm for stream processing
D.Change the output format from Parquet to CSV
AnswerB

Performing feature engineering in stream reduces batch processing time and overall latency.

Why this answer

Moving feature engineering from the batch Spark job to the stream processing Flink job reduces the workload on the batch step, making it faster. Replacing Flink, increasing parallelism, or changing output format do not address the bottleneck as effectively.

136
MCQmedium

A data engineer is designing a pipeline to train a linear regression model on a dataset with 10 million rows and 50 features. The dataset fits in memory. Which approach should the engineer use to train the model efficiently?

A.Normal equation
B.Batch gradient descent
C.Principal component analysis
D.Stochastic gradient descent
AnswerD

SGD updates weights per sample, making it efficient for large datasets.

Why this answer

Stochastic gradient descent (SGD) is the most efficient approach for training a linear regression model on a dataset with 10 million rows and 50 features because it updates the model parameters using only one training example per iteration, leading to much faster convergence per epoch compared to batch methods. Since the dataset fits in memory, SGD can still be implemented efficiently without the overhead of loading data in batches from disk, and it scales well to large datasets where the normal equation or batch gradient descent would be computationally prohibitive.

Exam trap

CompTIA often tests the misconception that the normal equation is always the best for small feature sets, but the trap here is that candidates overlook the massive computational cost of the O(n * f^2) matrix multiplication when n is large (10 million rows), even though f is small (50 features).

How to eliminate wrong answers

Option A is wrong because the normal equation requires computing (X^T X)^{-1} X^T y, which involves inverting a 50x50 matrix (feasible) but also computing X^T X, which is O(n * f^2) = 10 million * 2500 = 25 billion operations, making it extremely slow and memory-intensive for 10 million rows. Option B is wrong because batch gradient descent processes the entire 10-million-row dataset in each iteration, requiring O(n * f) = 500 million operations per epoch, which is computationally expensive and converges slowly compared to SGD. Option C is wrong because principal component analysis (PCA) is a dimensionality reduction technique used for feature reduction or visualization, not a method for training a linear regression model; it does not perform parameter optimization.

137
MCQmedium

A data scientist needs to deploy a PyTorch model to production with low-latency inference. The model must be served as a REST API and should support GPU acceleration. Which combination of tools is MOST suitable for this task?

A.ONNX runtime with a gRPC endpoint on a CPU-only node
B.Apache Spark with MLlib to serve the model in batch mode
C.Docker container with a FastAPI application and Nvidia GPU support
D.Kubeflow Pipelines to deploy the model as a scheduled job
AnswerC

Docker encapsulates the environment, FastAPI provides REST API capabilities, and Nvidia GPU support enables GPU acceleration for inference.

Why this answer

Option C is correct because it combines Docker containerization with FastAPI for a lightweight REST API and NVIDIA GPU support (via nvidia-docker or NVIDIA Container Toolkit) to enable low-latency GPU-accelerated inference. This stack directly meets the requirements of low-latency inference, REST API serving, and GPU acceleration without unnecessary overhead.

Exam trap

CompTIA often tests the distinction between batch/offline processing tools (like Spark or Kubeflow Pipelines) and real-time serving frameworks, leading candidates to confuse orchestration or batch tools with low-latency inference solutions.

How to eliminate wrong answers

Option A is wrong because ONNX Runtime with a gRPC endpoint on a CPU-only node cannot provide GPU acceleration, which is explicitly required. Option B is wrong because Apache Spark with MLlib is designed for distributed batch processing and large-scale data pipelines, not for low-latency real-time REST API serving of a single PyTorch model. Option D is wrong because Kubeflow Pipelines is a workflow orchestration tool for scheduling and managing ML pipelines, not a real-time inference serving solution; it lacks native REST API endpoints for low-latency inference.

138
MCQhard

A data scientist trains a deep neural network for image classification. The training loss decreases but validation loss starts increasing after 50 epochs. What should the data scientist do to improve generalization?

A.Decrease batch size
B.Apply dropout and early stopping
C.Add more hidden layers
D.Increase learning rate
AnswerB

Dropout randomly ignores neurons during training to reduce overfitting, and early stops when validation loss worsens, preventing further overfitting.

Why this answer

The increasing validation loss while training loss decreases is a classic sign of overfitting. Dropout randomly deactivates neurons during training, which prevents co-adaptation and forces the network to learn more robust features. Early stopping halts training when validation performance stops improving, directly addressing the overfitting by selecting the model with the best generalization before it degrades.

Exam trap

CompTIA often tests the misconception that increasing model complexity (more layers) or adjusting batch size/learning rate can fix overfitting, when in reality these changes either exacerbate the problem or address unrelated training dynamics.

How to eliminate wrong answers

Option A is wrong because decreasing batch size introduces more noise into the gradient estimates, which can actually hurt generalization and may lead to slower convergence or instability, not a direct cure for overfitting. Option C is wrong because adding more hidden layers increases model capacity and complexity, which typically worsens overfitting by allowing the network to memorize the training data even more. Option D is wrong because increasing the learning rate can cause the optimizer to overshoot minima, leading to divergence or poor convergence, and does not address the fundamental issue of the model fitting noise in the training data.

139
MCQmedium

An LLM-based chatbot is being deployed for customer support. The security team wants to prevent the bot from generating toxic or harmful responses. Which defense is MOST appropriate?

A.Input validation and sanitization
B.Rate limiting on API requests
C.Output filtering and guardrails
D.Red teaming the AI system
AnswerC

Output filters and guardrails can detect and block harmful content in real-time.

Why this answer

Output filtering and guardrails can block harmful content before it reaches the user. Input validation sanitizes inputs, red teaming identifies vulnerabilities, and rate limiting prevents abuse but not toxic content.

140
Multi-Selecteasy

An organization is planning to fine-tune an open-source LLM for internal use. To secure the supply chain, which TWO steps should they take before using the base model? (Select two.)

Select 2 answers
A.Retrain the model from scratch
B.Verify the model's provenance and checksums
C.Vet the pre-trained model for potential backdoors
D.Set up audit logging of all interactions
E.Fine-tune the model on sensitive internal data
AnswersB, C

Ensures the model comes from a trusted source and has not been altered.

Why this answer

Verifying the model's provenance and checksums (Option B) ensures the base model has not been tampered with during download or transfer, confirming its integrity and authenticity. This is a critical supply chain security step before any fine-tuning, as it prevents the introduction of malicious modifications from untrusted sources.

Exam trap

CompTIA often tests the distinction between pre-deployment supply chain security (verification and vetting) and post-deployment operational controls (logging, fine-tuning), tricking candidates into selecting runtime measures for a supply chain question.

141
MCQhard

A media company uses a natural language processing (NLP) model to classify news articles into topics. The model was trained on articles from 2015-2018. In 2023, the model's F1 score drops significantly. The data scientists find that the word embeddings no longer capture the meaning of some terms (e.g., 'covid', 'metaverse'). The model uses static word embeddings (Word2Vec) trained on the original corpus. Which solution BEST addresses the observed degradation? A. Replace static embeddings with contextual embeddings from a transformer model like BERT, then fine-tune the classifier. B. Retrain the static Word2Vec embeddings on a larger corpus from 2023. C. Apply data augmentation to the original training data by replacing words with synonyms. D. Increase the dimensionality of the static embeddings.

A.Retrain the static Word2Vec embeddings on a larger corpus from 2023.
B.Increase the dimensionality of the static embeddings.
C.Replace static embeddings with contextual embeddings from a transformer model like BERT, then fine-tune the classifier.
D.Apply data augmentation to the original training data by replacing words with synonyms.
AnswerC

Contextual embeddings dynamically represent words based on context, handling semantic shift effectively.

Why this answer

Option C is correct. Contextual embeddings (e.g., BERT) capture meaning based on context, adapting to new uses of words like 'covid' meaning pandemic. Fine-tuning the classifier on new data would update the model.

Option A (retraining static embeddings) might capture new word senses but still assigns a single vector per word, missing context. Option B (increasing dimensionality) does not address the semantic shift. Option D (data augmentation) does not introduce new word meanings.

142
MCQmedium

A data scientist is using a linear regression model to predict house prices and observes that the model performs well on training data but poorly on test data. Which regularisation technique is MOST appropriate to reduce overfitting?

A.L1 regularisation (Lasso)
B.Dropout
C.L2 regularisation (Ridge)
D.Data augmentation
AnswerC

Ridge adds squared magnitude penalty, shrinking coefficients smoothly, which helps generalise.

Why this answer

L2 regularisation (Ridge) adds a penalty term equal to the sum of the squared coefficients to the loss function, which shrinks coefficient magnitudes without forcing them to zero. This reduces variance and overfitting by making the model less sensitive to individual features, which is ideal when the model performs well on training data but poorly on test data due to high variance.

Exam trap

CompTIA often tests the distinction between L1 and L2 regularisation by presenting a scenario where feature selection is not needed, and candidates mistakenly choose Lasso because they confuse 'reducing coefficients' with 'eliminating coefficients'.

How to eliminate wrong answers

Option A is wrong because L1 regularisation (Lasso) performs feature selection by shrinking some coefficients exactly to zero, which is more appropriate when you suspect many features are irrelevant, not for general variance reduction. Option B is wrong because Dropout is a regularisation technique specific to neural networks, not linear regression models. Option D is wrong because data augmentation is used to artificially increase the size of the training dataset, typically for image or text data, and does not directly address overfitting in a linear regression context.

143
Multi-Selectmedium

A data scientist suspects a model extraction attack on their deployed classifier. Which TWO indicators are MOST consistent with such an attack? (Select two.)

Select 2 answers
A.Queries that include SQL injection attempts
B.Queries that repeatedly ask for the same prediction
C.A large number of queries from a single IP address over a short period
D.Queries with special characters attempting to reveal system prompts
E.Queries covering a wide range of diverse inputs
AnswersC, E

High query volume is typical for extraction.

Why this answer

Option C is correct because a model extraction attack involves an adversary sending a large volume of queries from a single IP address in a short period to systematically probe the decision boundary of the classifier. This behavior is consistent with the attacker attempting to reconstruct a surrogate model by collecting enough input-output pairs to approximate the target model's function.

Exam trap

CompTIA AI exams often test the distinction between model extraction (which requires diverse inputs to map the decision boundary) and denial-of-service or brute-force attacks (which involve repeated identical queries), so candidates mistakenly select Option B thinking any high query volume indicates extraction.

144
Multi-Selectmedium

A data scientist is evaluating a binary classifier for a medical diagnosis task. The dataset is imbalanced with 5% positive cases. Which THREE metrics should the data scientist consider for a comprehensive evaluation?

Select 3 answers
A.Precision
B.F1 score
C.Accuracy
D.Perplexity
E.Recall
AnswersA, B, E

Precision measures the proportion of positive predictions that are correct.

Why this answer

Precision (A) is correct because it measures the proportion of true positive predictions among all positive predictions, which is critical in imbalanced medical diagnosis where false positives can lead to unnecessary stress or procedures. In a dataset with only 5% positive cases, a model that predicts all negatives would achieve high accuracy but zero precision, so precision helps assess the cost of false alarms.

Exam trap

The trap here is that candidates often default to accuracy as a universal metric, but CompTIA AI tests the understanding that accuracy is unreliable for imbalanced datasets, and that metrics like precision, recall, and F1 score are required for a comprehensive evaluation.

145
Multi-Selecthard

Which TWO of the following are techniques used for reducing overfitting in neural networks? (Choose two.)

Select 2 answers
A.Dropout
B.Boosting
C.L2 regularization
D.Increasing the learning rate
E.Increasing the number of hidden layers
AnswersA, C

Dropout randomly drops neurons to reduce overfitting.

Why this answer

Dropout is a regularization technique that randomly drops a fraction of neurons during training, which prevents the network from relying too heavily on any single neuron and forces it to learn more robust features. This reduces overfitting by introducing noise that improves generalization.

Exam trap

CompTIA often tests the distinction between regularization techniques and other training strategies, so the trap here is that candidates may confuse boosting (an ensemble method) with regularization, or assume that increasing model complexity (more layers) or learning rate can help reduce overfitting when they actually do the opposite.

146
MCQhard

An organization is developing an AI system to approve loan applications. They want to ensure the model does not discriminate based on race or gender. Which technique BEST addresses this concern?

A.Remove race and gender features from the training data.
B.Use a more complex model to capture nuances.
C.Apply adversarial debiasing during model training.
D.Collect more training data from diverse populations.
AnswerC

Correct; adversarial debiasing learns fair representations.

Why this answer

Adversarial debiasing is a technique that explicitly trains the model to remove sensitive information (like race or gender) from its internal representations, preventing the model from learning discriminatory patterns even if correlated features remain. This directly addresses fairness by making the model's predictions independent of protected attributes, which is more robust than simply removing features (which can still allow proxy discrimination).

Exam trap

CompTIA often tests the misconception that removing protected attributes is sufficient to eliminate bias, when in reality proxy features and correlated variables can still cause discrimination, making adversarial debiasing or other fairness-aware algorithms necessary.

How to eliminate wrong answers

Option A is wrong because simply removing race and gender features does not prevent the model from learning proxies for these attributes (e.g., zip code, income bracket) that can still lead to discriminatory outcomes. Option B is wrong because using a more complex model increases the risk of overfitting to spurious correlations and does not inherently address fairness; it may even amplify biases present in the data. Option D is wrong because collecting more diverse data does not guarantee fairness; biased labeling, historical discrimination, or imbalanced representation can persist, and the model may still learn to discriminate unless debiasing techniques are applied.

147
MCQeasy

A bank uses an AI model to approve loans. During an audit, it is found that the model denies loans at a higher rate for a certain ethnic group. Which governance principle is primarily violated?

A.Accountability
B.Fairness
C.Transparency
D.Privacy
AnswerB

Fairness requires non-discrimination, which is violated here.

Why this answer

The model's disparate impact on a specific ethnic group directly violates the principle of Fairness, which requires that AI systems do not discriminate based on protected attributes such as race, ethnicity, or gender. In lending, fairness is often assessed using metrics like demographic parity or equal opportunity, and a higher denial rate for one group indicates a lack of algorithmic fairness.

Exam trap

Cisco often tests the distinction between Fairness and Transparency, where candidates mistakenly choose Transparency because they think 'explaining the bias' is the primary issue, but the question asks which principle is violated by the biased outcome itself.

How to eliminate wrong answers

Option A is wrong because Accountability refers to the assignment of responsibility for the model's decisions and outcomes, not the presence of bias itself; while the bank must be accountable for the bias, the primary violation here is the discriminatory outcome. Option C is wrong because Transparency concerns the ability to explain and understand how the model makes decisions (e.g., through interpretability or documentation), but the core issue is the biased result, not a lack of explanation. Option D is wrong because Privacy involves the protection of personal data and compliance with regulations like GDPR or CCPA; the scenario does not describe unauthorized data use or exposure, only discriminatory lending decisions.

148
MCQhard

A company uses Azure OpenAI to generate customer support responses. The team notices that repeated queries with similar context incur high costs due to token usage. They want to reduce costs without affecting response quality. Which strategy is MOST effective?

A.Use a larger model to improve efficiency
B.Increase the frequency penalty
C.Reduce the max_tokens parameter
D.Implement prompt caching
AnswerD

Prompt caching avoids recomputing common prefixes, reducing token usage.

Why this answer

Prompt caching stores and reuses tokens from previous queries, reducing token consumption for similar requests and lowering costs without quality loss.

149
MCQeasy

An AI practitioner needs to measure the performance of a binary classification model for disease detection, where the cost of false negatives is very high. Which metric should be prioritized?

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

Recall measures the proportion of actual positives correctly identified, directly addressing the cost of false negatives.

Why this answer

Recall (true positive rate) minimises false negatives, which is critical when missing a positive case is dangerous.

150
MCQmedium

A data pipeline processes customer data from multiple sources. The data quality check reveals duplicate records. Which step should the pipeline include to handle this?

A.Data deduplication
B.Data encryption
C.Data transformation
D.Data validation
AnswerA

Deduplication specifically targets and eliminates duplicate records.

Why this answer

Duplicate records in a data pipeline compromise data integrity and downstream analytics. Data deduplication (Option A) is the correct step because it identifies and removes redundant entries based on key fields or fuzzy matching, ensuring each customer record is unique. This is a core data quality operation in ETL pipelines, often implemented via hash-based comparison or SQL window functions like ROW_NUMBER().

Exam trap

This question tests the distinction between data quality actions (deduplication) and data security or formatting actions (encryption, transformation), leading candidates to confuse validation (which only flags issues) with remediation (which removes duplicates).

How to eliminate wrong answers

Option B (Data encryption) is wrong because encryption secures data at rest or in transit (e.g., AES-256, TLS 1.3) and does not address duplicate records. Option C (Data transformation) is wrong because transformation changes data format or structure (e.g., type casting, normalization) but does not inherently remove duplicates. Option D (Data validation) is wrong because validation checks data against rules (e.g., schema constraints, range checks) and flags errors, but it does not actively eliminate duplicate rows.

Page 1

Page 2 of 14

Page 3