CompTIA SecAI+ v1 Exam Questions and Answers
A short AI-generated video shows a celebrity ' s likeness talking about a fake public security event.
Which of the following was used to create this video?
Options:
Statistical analysis
Convolutional neural network
Machine learning (ML) classifier
Random forest
Answer:
BExplanation:
Basic Concept: Creating realistic deepfake videos that convincingly replicate a real person ' s facial expressions, movements, and voice requires deep learning models capable of learning and synthesizing complex spatial and temporal features from existing video data. CompTIA SecAI+ covers deepfake technologies under basic AI concepts.
Why B is Correct: Convolutional Neural Networks are foundational to deepfake video generation. CNNs excel at learning spatial features from visual data and are used within deepfake architectures to analyze source and target faces, extract facial features, and synthesize realistic face swaps or face animations. Modern deepfake systems typically combine CNNs with autoencoders and GANs to generate convincing video content showing a person saying or doing things they never did.
Why A is Wrong: Statistical analysis involves mathematical methods for analyzing data distributions and relationships. It does not have the capability to generate synthetic video content or replicate a person ' s visual likeness in motion.
Why C is Wrong: An ML classifier assigns input data to predefined categories. Classification models detect and label content rather than generating new synthetic video content of a person ' s likeness. They are detection tools, not generation tools.
Why D is Wrong: Random forest is an ensemble ML method using multiple decision trees for classification and regression tasks. It works on structured, tabular data and cannot process or generate visual, spatial data needed for realistic deepfake video synthesis.
Customer feedback for an AI chatbot has a high-rate of non-answers, which is causing higher central processing unit (CPU) utilization.
Which of the following should be implemented?
Options:
Guardrails
Response confidence level
Prompt logging
Cost monitoring
Answer:
BExplanation:
Basic Concept: AI chatbots that generate non-answers — responses that do not actually address user questions — consume CPU resources for processing without delivering value. This can indicate the model is attempting to generate responses for queries outside its knowledge domain or confidence threshold. CompTIA SecAI+ Study Guide covers AI performance optimization and response quality management.
Why B is Correct: Implementing a response confidence level threshold allows the chatbot to recognize when it lacks sufficient confidence to provide a meaningful answer and respond accordingly, either with a helpful redirect or a clear indication that it cannot answer the query. This reduces the costly processing cycles spent generating poor-quality non-answers, lowers CPU utilization from failed response generation, and improves customer experience by setting appropriate expectations rather than returning unhelpful responses.
Why A is Wrong: Guardrails filter content for safety and policy compliance. They prevent harmful or out-of-policy responses but do not address the underlying issue of the model generating low-confidence non-answers to legitimate customer queries.
Why C is Wrong: Prompt logging records user inputs for analysis and auditing. While useful for identifying what types of questions cause non-answers, logging alone does not solve the problem or reduce CPU utilization from failed response generation.
Why D is Wrong: Cost monitoring tracks AI system expenditure. It can identify that costs are high due to excessive CPU usage but does not implement a solution to reduce the non-answer rate or improve response generation efficiency.
Users report that the output of a generative AI application seems unrelated to the prompts and contains offensive content. A security team investigates and determines that there was an on-path attack.
Which of the following is the most likely attack method?
Options:
Application server hijacking
Session hijacking
Domain hijacking
Model hijacking
Answer:
BExplanation:
Basic Concept: An on-path (formerly man-in-the-middle) attack intercepts communication between two parties, allowing the attacker to read, modify, or inject content. In the context of a generative AI application, an on-path attack on the session between user and AI service can manipulate prompts being sent to the model or responses being returned to users. CompTIA SecAI+ covers AI-specific attack vectors under securing AI systems.
Why B is Correct: Session hijacking involves an attacker taking control of an active user session by capturing or forging session tokens. In this attack, the attacker intercepts the communication channel between users and the AI application, allowing them to modify prompts sent to the model or replace legitimate model responses with offensive content. This explains why outputs seem unrelated to prompts and contain offensive material.
Why A is Wrong: Application server hijacking involves gaining unauthorized control of the server hosting the application. While severe, this would typically manifest as complete service disruption or data exfiltration rather than targeted modification of individual user session content.
Why C is Wrong: Domain hijacking involves unauthorized transfer of a domain name registration, redirecting all users to a different IP address. This would affect all users simultaneously and typically redirect to a completely different site rather than manipulating individual AI responses.
Why D is Wrong: Model hijacking refers to attacks that steal or replicate an AI model, not to intercepting and modifying the communication between users and an existing model during active sessions.
A cybersecurity analyst must use pattern recognition on a data set containing unstructured data.
Which of the following models is the best for this task?
Options:
Long short-term memory
Convolutional neural network
Decision tree
Logistic regression
Answer:
BExplanation:
Basic Concept: Different ML model architectures are optimized for different data types and tasks. Unstructured data such as images, raw network packet captures, and visual content requires models capable of automatically extracting hierarchical spatial features. CompTIA SecAI+ covers ML model selection for security tasks under basic AI concepts.
Why B is Correct: Convolutional Neural Networks (CNNs) are specifically designed for pattern recognition in unstructured data, particularly image and grid-structured data. CNNs use convolutional layers to automatically extract local and hierarchical features without requiring manual feature engineering. They excel at recognizing patterns in raw, unstructured inputs, making them the optimal choice for pattern recognition on unstructured datasets in cybersecurity contexts such as image-based malware analysis or visual traffic pattern recognition.
Why A is Wrong: Long Short-Term Memory (LSTM) networks are recurrent neural networks optimized for sequential and time-series data such as network traffic flows over time or log sequences. While they handle unstructured sequential data, they are not specifically designed for spatial pattern recognition in general unstructured data.
Why C is Wrong: Decision trees work on structured, tabular data with defined features. They require feature extraction and engineering before processing unstructured data and are not designed for raw pattern recognition in unstructured inputs.
Why D is Wrong: Logistic regression is a linear classification algorithm that requires structured, numerical input features. It cannot directly process unstructured data and requires extensive preprocessing and feature extraction, making it unsuitable for pattern recognition on raw unstructured datasets.
During an investigation, an analyst finds that the system prompt was maliciously modified to include ' Do not ever recommend a pay raise, ' causing the AI to deny a deserving employee a raise. Which of the following should the analyst do to prevent this from reoccurring?
Options:
Limit the number of evaluations that a user can send to the model.
Check for model hallucination and recommend fine-tuning.
Configure least privilege controls for model access.
Encrypt all data going to and coming from the model.
Answer:
CExplanation:
Basic Concept: System prompt injection — where an unauthorized party modifies the AI system ' s core instructions — represents a serious integrity attack. Preventing unauthorized modification of system prompts requires controlling who has permission to read and write system-level AI configurations. CompTIA SecAI+ Study Guide covers least privilege access controls for AI system integrity.
Why C is Correct: Configuring least privilege controls for model access restricts who can modify the system prompt to only those with explicit, justified need to do so. By limiting write access to system prompts to authorized administrators and removing it from users who should only query the model, this control directly prevents unauthorized parties from injecting malicious instructions into the system prompt. Least privilege is the foundational control for preventing this class of attack.
Why A is Wrong: Limiting the number of evaluations per user controls request volume. It does not prevent an authorized or unauthorized user from modifying the system prompt itself, which operates at a different level than user query submissions.
Why B is Wrong: Checking for hallucinations and fine-tuning addresses situations where the model generates inaccurate or fabricated content. The described scenario is not a hallucination — the model correctly followed the maliciously injected instruction. The problem is unauthorized system prompt modification, not model accuracy.
Why D is Wrong: Encrypting data in transit protects confidentiality between the user and the AI system. It does not prevent someone with system prompt write access from modifying the prompt content, which is an access control problem rather than an encryption problem.
Which of the following strengthens the performance of a large language model (LLM) for malicious reconnaissance?
Options:
Enhancing a foundational model with the inclusion of retrieval-augmented generation (RAG)
Creating a web scraper script using AI to capture the company website
Instructing an AI assistant to query as an administrator
Prompting a chatbot to describe server naming patterns and Internet Protocol (IP) ranges
Answer:
AExplanation:
Basic Concept: Reconnaissance is the information gathering phase of an attack. LLMs can be enhanced to perform more effective reconnaissance by giving them access to current, specific information beyond their training data cutoff. CompTIA SecAI+ covers AI augmentation techniques including RAG under AI-assisted security.
Why A is Correct: RAG enhances an LLM by connecting it to an external knowledge base or real-time data sources that it can query during inference. For reconnaissance purposes, a RAG-enabled LLM can access up-to-date organizational information, technical documentation, and intelligence feeds that go beyond its static training data. This makes the LLM significantly more capable for gathering current, targeted intelligence about specific organizations or infrastructure.
Why B is Wrong: Creating a web scraper is a basic data collection technique. While AI can help write scraper code, the scraper itself is a simple script that does not enhance the LLM ' s intelligence or reasoning capabilities for sophisticated reconnaissance.
Why C is Wrong: Instructing an AI assistant to query as an administrator is a prompt manipulation attempt. An LLM cannot actually gain elevated permissions through a prompt instruction; this describes social engineering or privilege escalation via prompting, not a performance enhancement technique.
Why D is Wrong: Prompting a chatbot to describe naming patterns is a basic use of an existing LLM ' s knowledge. It does not strengthen or enhance the model ' s capabilities; it merely queries what the model already knows from training data, which may be outdated or generic.
A security administrator must implement security controls for AI systems.
Which of the following access controls should the administrator set up first for authentication?
Options:
Model
Server
Data
Endpoint
Answer:
DExplanation:
Basic Concept: In a layered AI system security architecture, access control must be established at each layer, beginning from the outermost point of entry. Authentication must be established at the endpoint level first, as this is the first point of interaction between users and the AI system. CompTIA SecAI+ Study Guide establishes endpoint authentication as the initial access control layer for AI systems.
Why D is Correct: Endpoint access control is the first authentication control to implement because it governs the initial connection from user devices or client applications to the AI system. All subsequent access layers including server access, model access, and data access depend on the endpoint being authenticated first. Establishing endpoint authentication ensures that only authorized endpoints can initiate sessions and proceed through subsequent authentication layers.
Why A is Wrong: Model access controls govern who can query, update, or access the AI model ' s parameters and functions. This control layer is implemented after endpoint authentication has been established, as it applies to requests that have already been authenticated at the endpoint level.
Why B is Wrong: Server access controls manage access to the computing infrastructure hosting the AI system. While critical for infrastructure security, server-level controls are configured by administrators and are not the first authentication control for end-user access flows.
Why C is Wrong: Data access controls define what data the AI system and its users can read, write, or query. These are implemented at a deeper layer after endpoint and potentially model authentication have verified that the requester is authorized to interact with the system at all.
A user interface engineer adds new graphics to the latest release of an AI-integrated application. During the update, the engineer accidentally causes the model to retrain on unverified data. After the update, the model begins to return many errors.
Which of the following is the best way to mitigate future errors?
Options:
Web application firewall
Role-based access control
Model development life cycle
Generative adversarial network
Answer:
CExplanation:
Basic Concept: When a non-ML engineer can accidentally trigger model retraining during a UI update, this indicates a lack of proper lifecycle management and change controls around the AI model. Uncontrolled retraining on unverified data is a critical vulnerability in the development and deployment process. CompTIA SecAI+ Study Guide identifies the Model Development Life Cycle as the framework for preventing such issues.
Why C is Correct: Implementing a Model Development Life Cycle (MDLC) establishes formal, controlled processes for every stage of model development and updates including data validation requirements before training, change management gates, testing and validation stages, and separation of duties between UI development and model training activities. An MDLC would have prevented the accidental retraining by requiring explicit, controlled authorization before any model training occurs.
Why A is Wrong: A WAF filters HTTP traffic at the application boundary. It does not govern internal development processes or control when and how model retraining occurs within the AI development pipeline.
Why B is Wrong: Role-based access control can restrict who has permission to trigger model retraining, which would help prevent this specific incident. However, it is one component of a broader MDLC governance framework and does not address data validation, testing stages, or the complete change management process.
Why D is Wrong: A GAN is a model architecture for generating synthetic data. It is a training technique unrelated to lifecycle governance or preventing accidental retraining from unverified data during unrelated application updates.
During an update, an AI system flags some potential compatibility issues and provides recommendations. An administrator reviews the recommendations before addressing the issues.
Which of the following processes describes this scenario?
Options:
Data validation
Data preparation
Human-in-the-loop
Model evaluation
Answer:
CExplanation:
Basic Concept: Human-in-the-loop is a design pattern where AI systems generate recommendations or decisions but require human review and approval before those recommendations are acted upon. This approach maintains human oversight and accountability in AI-assisted workflows. CompTIA SecAI+ Study Guide covers human-in-the-loop as a key responsible AI principle and operational pattern.
Why C is Correct: The scenario precisely describes the human-in-the-loop pattern: the AI system identifies potential issues and provides recommendations, but an administrator must review those recommendations before any action is taken. This deliberate inclusion of human judgment in the AI ' s decision or recommendation workflow ensures human oversight is maintained, which is the defining characteristic of the human-in-the-loop process.
Why A is Wrong: Data validation verifies that data meets expected quality standards and formats before being used in AI processing. It is a data quality control activity, not a workflow pattern describing human review of AI recommendations.
Why B is Wrong: Data preparation involves transforming raw data into a format suitable for AI model training or inference. It encompasses cleaning, normalizing, and formatting data, not the process of human review of AI-generated recommendations during system updates.
Why D is Wrong: Model evaluation assesses a model ' s performance against metrics such as accuracy, precision, and recall on test datasets. It is a technical assessment of model quality, not a workflow process where humans review AI-generated recommendations before acting on them.
A large number of employees receive a video message in which the company ' s CEO states that the company will be filing for bankruptcy. After an investigation, it was discovered that the CEO did not send this message.
Which of the following is this scenario an example of?
Options:
On-path attack
Phishing
Deepfake
Social engineering
Answer:
CExplanation:
Basic Concept: Advances in AI generative technology have enabled the creation of highly realistic synthetic video and audio content that convincingly impersonates real individuals. These AI-generated impersonations are called deepfakes and represent a significant threat for corporate fraud, misinformation, and social engineering. CompTIA SecAI+ covers deepfakes under basic AI concepts and cybersecurity threats.
Why C is Correct: The scenario describes a video in which the CEO ' s likeness was convincingly replicated to deliver a false message about bankruptcy. This is a textbook deepfake attack — AI-generated synthetic media using the target ' s face and potentially voice to make it appear they said something they never said. Deepfake technology uses GANs and CNNs to create this type of convincing impersonation, and the attack specifically exploited AI generation for deception.
Why A is Wrong: An on-path attack intercepts network communications between two parties to eavesdrop or modify traffic. It requires positioning in the network path, not creating synthetic media of a person ' s likeness.
Why B is Wrong: Phishing is a social engineering attack that uses deceptive messages typically via email to trick recipients into taking harmful actions such as clicking malicious links or providing credentials. While this attack has social engineering elements, the use of AI-generated video to impersonate the CEO specifically categorizes it as a deepfake attack.
Why D is Wrong: Social engineering broadly describes psychological manipulation tactics to deceive individuals. While deepfakes can be used as part of social engineering campaigns, the specific technical technique used — AI-generated synthetic video — makes deepfake the most precise and accurate categorization.
A data scientist is working with unlabeled data and wants to build a clustering model.
Which of the following techniques should a data scientist use?
Options:
Supervised learning
Reinforcement learning
Unsupervised learning
Semi-supervised learning
Answer:
CExplanation:
Basic Concept: Different ML learning paradigms handle different data situations. The availability of labeled versus unlabeled data determines which learning approach is appropriate. Building clustering models specifically requires learning from data without predefined category labels. CompTIA SecAI+ Study Guide covers ML learning paradigms under basic AI concepts.
Why C is Correct: Unsupervised learning works with unlabeled data by discovering inherent patterns, structures, and groupings within the data without predefined categories. Clustering is the canonical unsupervised learning task, where algorithms like k-means, hierarchical clustering, or DBSCAN group similar data points together based on feature similarity. Since the data scientist has unlabeled data and wants to find natural groupings, unsupervised learning is the appropriate and correct technique.
Why A is Wrong: Supervised learning requires labeled training data where each example has a corresponding correct output label. The data scientist explicitly has unlabeled data, making supervised learning inapplicable without first completing the labor-intensive task of manually labeling all examples.
Why B is Wrong: Reinforcement learning trains agents to take actions in an environment to maximize cumulative rewards through trial and error. It is designed for sequential decision-making problems, not for finding groupings in static, unlabeled datasets.
Why D is Wrong: Semi-supervised learning combines a small amount of labeled data with a large amount of unlabeled data. It requires at least some labels to guide learning. The scenario specifies working with unlabeled data only, making unsupervised learning the pure fit.
A customer-facing, AI-powered chatbot has been jailbroken through prompt injections. As a result, the AI model is offering a 99% discount on the purchase of a new vehicle.
Which of the following should be implemented to enhance the model ' s robustness against such attacks?
Options:
Bias filtering
System prompt
Log monitoring
Guardrails
Answer:
DExplanation:
Basic Concept: Jailbreaking through prompt injection exploits the LLM ' s tendency to follow instructions embedded in user input, overriding its intended behavior. The model was manipulated to offer unauthorized discounts, demonstrating that its operational boundaries were not properly enforced. CompTIA SecAI+ Study Guide identifies guardrails as the primary defense against jailbreaking attacks.
Why D is Correct: Guardrails are robust, layered controls that enforce behavioral boundaries on LLM inputs and outputs. They can detect and block jailbreaking attempts, enforce business logic constraints such as preventing unauthorized discounts, validate outputs against policy rules before delivery, and prevent the model from operating outside its defined scope. Guardrails are specifically designed to make models more robust against prompt injection and jailbreaking.
Why A is Wrong: Bias filtering is designed to detect and remove biased, discriminatory, or offensive content from model outputs. It addresses content fairness issues but does not prevent jailbreaking attacks that manipulate the model into performing unauthorized actions.
Why B is Wrong: A system prompt sets the model ' s base instructions and persona, but the jailbreak attack already demonstrates that the current prompt can be overridden. Guardrails provide enforcement at a layer that is more resistant to prompt manipulation than the system prompt alone.
Why C is Wrong: Log monitoring detects jailbreaking attempts after they have already succeeded. It is a detective control that enables incident response but does not prevent the model from offering unauthorized discounts in the first place.
A security analyst receives an alert about an AI system and is investigating the following output:

Which of the following is the most appropriate control the analyst should recommend?
Options:
Integrating data sanitization
Implementing user input validation
Monitoring logs for attack words from the system
Hardening the Model Context Protocol server
Answer:
BExplanation:
Basic Concept: Suspicious or unexpected AI system outputs are often caused by malicious or malformed user inputs that exploit the AI ' s input processing. Validating and sanitizing user inputs before they reach the AI model prevents many classes of attacks including prompt injection, data exfiltration attempts, and input manipulation. CompTIA SecAI+ Study Guide emphasizes input validation as a foundational AI security control.
Why B is Correct: Implementing user input validation applies checks and constraints to all user-submitted content before it is processed by the AI system. Input validation can enforce length limits, detect injection patterns, filter disallowed characters or command structures, and ensure inputs conform to expected formats. By rejecting malicious or malformed inputs at the entry point, this control prevents them from reaching the model and causing the suspicious outputs observed.
Why A is Wrong: Data sanitization processes data to remove harmful elements and is closely related to validation. However, input validation is broader and more proactive, checking conformance to rules before processing, while sanitization typically operates during or after processing. Validation at the input boundary is the more appropriate first-line control.
Why C is Wrong: Monitoring logs for attack keywords is a detective control that identifies attacks after they have already affected the system. It does not prevent suspicious outputs from being generated in the first place.
Why D is Wrong: Hardening the Model Context Protocol server improves the security of the infrastructure hosting the AI components. While important for infrastructure security, it does not directly validate or inspect the content of user inputs that cause suspicious outputs.
An organization wants to reduce vulnerabilities after deployment. The organization decides to incorporate an AI-assisted early detection and vulnerability identification process in its development workflow.
Which of the following AI-assisted functions is the best option?
Options:
Code linting
Incident management
Automated deployment/rollback
System auditing
Answer:
AExplanation:
Basic Concept: Reducing post-deployment vulnerabilities requires catching security issues as early as possible in the development workflow. AI-assisted tools that analyze code during development provide the earliest possible intervention point. CompTIA SecAI+ Study Guide covers AI integration in secure development under AI-assisted security.
Why A is Correct: AI-assisted code linting analyzes source code in real time during development to identify security vulnerabilities, insecure coding patterns, policy violations, and quality issues before code is compiled or committed. By catching vulnerabilities at the coding stage — the earliest possible point in the development workflow — AI code linting prevents vulnerable code from progressing to testing, staging, or production, directly reducing post-deployment vulnerabilities at their source.
Why B is Wrong: Incident management handles security events and incidents after they have occurred in production. It is a reactive capability focused on response and recovery rather than early-stage vulnerability identification in the development workflow.
Why C is Wrong: Automated deployment/rollback automates the process of pushing code to production and reverting to previous versions when issues are detected post-deployment. It is a deployment safety mechanism rather than an early detection tool during the development phase.
Why D is Wrong: System auditing reviews and records system activities and configurations for compliance verification. It is primarily a detective and compliance control for systems that are already deployed, not an early development-phase vulnerability identification tool.
Which of the following roles best supports the implementation of AI governance, risk, and compliance (GRC)? (Choose two.)
Options:
Desktop specialist
Data scientist
Software developer
Security architect
Security operations center (SOC) analyst
Network engineer
Answer:
B, DExplanation:
Basic Concept: AI GRC implementation requires roles that combine understanding of AI technical capabilities and limitations with security risk assessment, control design, and compliance framework expertise. Identifying which roles naturally contribute to AI GRC is essential for team design. CompTIA SecAI+ Study Guide covers AI governance role responsibilities under Domain 4.
Why B is Correct: Data Scientists possess deep understanding of AI model capabilities, limitations, data requirements, and failure modes. For GRC implementation, their technical expertise is essential for identifying AI-specific risks such as bias, model drift, and data quality issues, assessing compliance implications of model design choices, and evaluating whether AI systems meet governance requirements.
Why D is Correct: Security Architects design comprehensive security frameworks and risk management strategies. For AI GRC, they translate governance requirements into technical controls, design AI security architectures that satisfy compliance obligations, assess the risk posture of AI deployments, and ensure security principles including least privilege, defense-in-depth, and audit logging are built into AI system designs.
Why A is Wrong: Desktop specialists manage user workstation hardware and software. Their role focuses on endpoint management and user support, not on the strategic risk assessment, compliance evaluation, or technical AI governance activities required for AI GRC implementation.
Why C is Wrong: Software developers write application code. While they implement security controls when directed, they typically lack the broad risk management, compliance framework expertise, and security architecture perspective needed to lead AI GRC implementation.
Why E is Wrong: SOC analysts focus on monitoring, detecting, and responding to security incidents in operational environments. Their expertise is in reactive security operations rather than the proactive governance framework design and compliance management that AI GRC requires.
Why F is Wrong: Network engineers design and maintain network infrastructure. Their expertise is in network connectivity and protocols, not in AI system governance, risk assessment frameworks, or compliance requirements.
A security analyst notices that regardless of user-submitted prompts, an AI model always returns unsanitized responses. These responses are then passed to multiple plug-ins. The analyst is concerned with the potential security implications.
Which of the following Open Worldwide Application Security Project (OWASP) categories addresses this vulnerability?
Options:
Misinformation
Prompt injection
Unbounded consumption
Improper output handling
Answer:
DExplanation:
Basic Concept: OWASP has published the Top 10 vulnerabilities for Large Language Model Applications, each addressing a distinct category of LLM security risk. Understanding which OWASP category maps to specific LLM vulnerability scenarios is a key competency in the CompTIA SecAI+ Study Guide under securing AI systems.
Why D is Correct: Improper output handling (OWASP LLM02) occurs when an application passes LLM-generated outputs to downstream systems such as plug-ins, web browsers, or databases without proper validation, sanitization, or encoding. This can enable XSS, SQL injection, remote code execution, or other injection attacks against plug-ins and downstream systems. The scenario exactly matches this: unsanitized AI responses are automatically passed to multiple plug-ins, which could execute malicious content in the model ' s output.
Why A is Wrong: Misinformation refers to the AI generating false or misleading content that users might believe. It is a content accuracy concern related to hallucinations and false information propagation, not a vulnerability describing how model outputs are handled by downstream systems.
Why B is Wrong: Prompt injection involves crafting inputs to manipulate model behavior and override instructions. While it can be a contributing cause of unsafe outputs, the vulnerability described — passing unsanitized outputs to plug-ins — is specifically the output handling failure, not the injection mechanism itself.
Why C is Wrong: Unbounded consumption (OWASP LLM10) refers to resource exhaustion attacks including denial-of-wallet and denial-of-service through excessive token consumption. It addresses resource management vulnerabilities, not the security implications of passing model outputs to downstream systems.
Which of the following controls is the best way to mitigate a denial-of-service (DoS) attack?
Options:
Model guardrails
Rate limiting
End-to-end encryption
Access controls
Answer:
BExplanation:
Basic Concept: DoS attacks overwhelm AI systems by sending excessive requests that exhaust computational resources, memory, or bandwidth, preventing legitimate users from being served. The primary defense against volume-based attacks is throttling the rate at which requests can be processed. CompTIA SecAI+ Exam Objectives identify rate limiting as the key DoS mitigation control for AI systems.
Why B is Correct: Rate limiting directly addresses the root mechanism of DoS attacks by restricting the number of requests any single client or IP address can submit within a defined time window. By enforcing request quotas, rate limiting prevents attackers from generating the request volume necessary to overwhelm the system while preserving capacity for legitimate users. It is the most direct and effective preventive control against DoS attacks on AI APIs and services.
Why A is Wrong: Model guardrails inspect and filter the content of prompts and responses for policy compliance and safety. They operate at the semantic content level, not at the request volume level, and cannot prevent resource exhaustion from high-volume request flooding.
Why C is Wrong: End-to-end encryption protects the confidentiality and integrity of data in transit. Encrypted DoS traffic is just as damaging as unencrypted traffic; encryption does not limit request rates or prevent resource exhaustion.
Why D is Wrong: Access controls restrict who can interact with the system, which can reduce the potential attacker pool. However, authenticated users and compromised accounts can still launch DoS attacks, and access controls alone cannot prevent high-volume attacks from authorized sources.
Which of the following ensures the integrity of data usage in an AI system?
Options:
Data masking
Data cleansing
Data verification
Data lineage
Answer:
DExplanation:
Basic Concept: Data integrity in AI systems requires not only that data is accurate at a point in time, but that its entire history of transformation and usage can be traced and verified. Tracking how data has been used and transformed throughout the AI system lifecycle provides ongoing integrity assurance. CompTIA SecAI+ Study Guide covers data governance controls including lineage for AI integrity.
Why D is Correct: Data lineage tracks and documents the complete journey of data from its origin through every transformation, processing step, and use within an AI system. By recording what happened to the data, when, by whom, and through which processes, data lineage provides the audit trail needed to ensure data integrity throughout the AI system ' s data usage lifecycle. It enables verification that data has been used as intended and has not been improperly modified at any stage.
Why A is Wrong: Data masking replaces sensitive data values with anonymized equivalents to protect privacy. It is a confidentiality control that modifies data values rather than a mechanism for ensuring or tracking data integrity across the system.
Why B is Wrong: Data cleansing removes or corrects errors, inconsistencies, and noise in datasets to improve data quality. It is a data preparation activity that improves data accuracy at a point in time but does not track data usage or provide ongoing integrity assurance throughout the AI system lifecycle.
Why C is Wrong: Data verification confirms that data meets expected quality standards and validates its accuracy at a specific check point. While important for quality assurance, it provides a point-in-time check rather than continuous tracking of data usage and transformations as data lineage does.
An organization deploys an application programming interface (API) to allow external customers to perform tasks supported by internally developed AI models. Some customers require limited use of sensitive data. After the API is deployed, customers report that the API returns sensitive data to all customers. Which of the following is the best action to take with the API?
Options:
Reconfigure the API to use different models.
Retrain the models on the correct data.
Relocate the model to a virtual private cloud (VPC).
Implement role-based access control.
Answer:
DExplanation:
Option D is correct because the failure is an authorization problem: every external customer can receive sensitive information even though only some customers are permitted to use it. Role-based access control assigns permissions to defined customer roles and requires the API to evaluate the caller’s role before returning protected fields or invoking sensitive model functions. Properly implemented, RBAC supports least privilege and separates ordinary customers from approved sensitive-data users. Option A may route customers to different models, but model selection does not itself enforce who is authorized to receive data. Option B changes model behavior and training data, yet retraining cannot replace an access-control decision at the API boundary. Option C may improve network isolation, but placing the model in a VPC does not stop an authenticated external customer from receiving information that the API exposes. The organization should also apply field-level filtering, deny-by-default policies, logging, and authorization testing. NIST’s RBAC model assigns users to roles and associates each role with permitted privileges, directly supporting this control.
================
An airline corporation wants to implement a chatbot application using a large language model (LLM) so its customers can ask questions and receive answers about flight details and have the option to upload files.
Which of the following security controls should the airline use to protect against malicious input and unauthorized use beyond the service-level agreement? (Choose two.)
Options:
Prompt guardrails
Role-based access controls
Firewall rules
Model token quotas
Answer:
A, DExplanation:
Basic Concept: LLM-based chatbots accepting user-uploaded files face two critical risk categories: malicious input injection and resource or cost abuse. CompTIA SecAI+ Study Guide highlights prompt security controls and resource management as key defensive layers for public-facing LLM applications.
Why A is Correct: Prompt guardrails intercept and filter user inputs and model outputs, blocking malicious prompts, prompt injection attempts, and harmful file content before affecting model behavior. Since users can upload files, guardrails are essential for sanitizing and validating that content before processing.
Why D is Correct: Model token quotas directly limit how much of the LLM ' s processing capacity a user can consume. This prevents abuse beyond the SLA, including denial-of-wallet attacks or resource exhaustion through excessively large inputs or repeated requests.
Why B is Wrong: Role-based access controls manage who can access what resources. While useful for internal systems, they do not address malicious input content or enforce LLM resource consumption limits for a public-facing chatbot.
Why C is Wrong: Firewall rules operate at the network layer and can block unauthorized IPs or ports but cannot inspect or filter the semantic content of prompts or control token-level LLM usage.
A company develops an AI model to diagnose patients. Hospitals access the model through an integrated application programming interface (API). The security team performs a denial-of-service (DoS) attack via brute force on the model.
Which of the following controls would have prevented this issue?
Options:
Tokenization
Model guardrails
Rate limiting
Prompt firewall
Answer:
CExplanation:
Basic Concept: API-based AI systems are susceptible to DoS attacks where excessive requests overwhelm the system ' s ability to respond to legitimate users. Rate limiting is the standard control for preventing both intentional and unintentional API abuse. CompTIA SecAI+ Study Guide covers rate limiting as a key availability control for AI APIs.
Why C is Correct: Rate limiting restricts the number of requests a client can make to an API within a defined time window. In this scenario, a brute-force DoS attack works by sending a massive volume of requests to exhaust the model ' s resources. Rate limiting would have automatically throttled or blocked the excessive request volume, preventing the attack from succeeding and preserving service availability for legitimate hospital users.
Why A is Wrong: Tokenization replaces sensitive data values with non-sensitive placeholders. It is a data security control for protecting sensitive information such as patient identifiers, not a control for managing API request volumes or preventing DoS attacks.
Why B is Wrong: Model guardrails filter and constrain model inputs and outputs for safety and policy compliance. They inspect content quality, not request volume, and cannot prevent a volume-based DoS attack.
Why D is Wrong: A prompt firewall inspects the content of prompts for malicious patterns or policy violations. Like guardrails, it analyzes content rather than controlling request frequency and cannot prevent resource exhaustion from a high-volume brute-force attack.
A company uses human review for software development validation and wants to add another validation layer.
Which of the following should a security administrator use to accomplish this task?
Options:
AI-assisted approval
Low-code plug-in
Automated rollback
Regression testing
Answer:
AExplanation:
Basic Concept: Adding validation layers to software development processes improves security assurance by catching issues that human reviewers might miss. AI-assisted validation provides an automated, systematic review that complements human judgment. CompTIA SecAI+ Study Guide covers AI-assisted development security controls.
Why A is Correct: AI-assisted approval adds an intelligent automated review layer that works alongside existing human review. AI can systematically analyze code for security vulnerabilities, coding standard violations, dependency risks, and policy compliance with greater consistency and speed than manual review. This creates a defense-in-depth validation approach where both AI and human reviewers must approve changes, catching issues that either layer might miss independently.
Why B is Wrong: A low-code plug-in provides simplified visual development tools that reduce the amount of manual code writing required. It is a development productivity tool, not a security validation layer for reviewing already-written code.
Why C is Wrong: Automated rollback is a deployment safety mechanism that reverts a deployment to the previous version when errors are detected after deployment. It is a recovery control, not a validation layer applied during the development review process.
Why D is Wrong: Regression testing verifies that new code changes have not broken existing functionality. It tests functional correctness, not security vulnerabilities, and does not add an AI-powered security validation capability to the existing human review process.
A cybersecurity administrator must examine the cost of AI and implement controls so the research environment operates within a specified budget.
Which of the following controls is best for this situation?
Options:
Prompt firewalls
Application programming interface (API) access
Model guardrails
Token limits
Answer:
DExplanation:
Basic Concept: Operating AI systems within a budget requires direct control over the primary cost driver of LLM usage. For research environments where users may run extensive queries, token consumption management is the most effective budget control mechanism. CompTIA SecAI+ Study Guide covers token limits as the key cost management control for AI environments.
Why D is Correct: Token limits set hard caps on the maximum tokens consumed per request and per session, directly controlling the per-interaction cost of LLM API usage. In a research environment where users may submit complex, multi-part queries generating long responses, token limits prevent any single interaction from consuming disproportionate budget and enable the administrator to enforce aggregate budget constraints across all users and research activities.
Why A is Wrong: Prompt firewalls inspect and filter prompt content for security and policy compliance. They are security controls designed to prevent malicious or policy-violating prompts, not financial controls for managing token consumption or enforcing budget limits.
Why B is Wrong: API access controls manage authentication and authorization for API interactions, governing who can connect to the AI API. While restricting API access could limit who uses the system, it does not control how much budget individual authorized users consume through their research queries.
Why C is Wrong: Model guardrails enforce content policy and behavioral constraints on model inputs and outputs. They ensure safe and appropriate responses but do not limit the computational resources or tokens consumed by interactions, making them unsuitable as budget enforcement controls.
A global security operations center (SOC) wants to adapt and leverage the strength of AI in order to enhance its security operations.
Which of the following is the best way to enhance the global SOC functions?
Options:
Generate code and execute in production to help save time.
Enable a personal assistant that can act in the global SOC with no human intervention.
Use open-source models in production to help the efficiency of threat detection and threat analysis.
Summarize alerts to easily gain insights on the environment.
Answer:
DExplanation:
Basic Concept: AI can augment SOC operations in various ways, but the most appropriate uses maintain human oversight and leverage AI ' s natural language understanding to reduce cognitive load on analysts. CompTIA SecAI+ Study Guide identifies alert summarization as a high-value, low-risk AI application for SOC enhancement.
Why D is Correct: AI-powered alert summarization consolidates complex, high-volume security alerts into concise, actionable insights, helping analysts rapidly understand threats without reading extensive raw log data. This is a safe, bounded AI application that enhances analyst efficiency while preserving human decision-making authority, directly addressing the volume and complexity challenges SOCs face.
Why A is Wrong: Generating and executing code directly in production without human review introduces serious risk. AI-generated code may contain errors, security vulnerabilities, or unintended side effects that could disrupt or compromise production systems.
Why B is Wrong: Enabling an AI assistant to act autonomously with no human intervention violates the human-in-the-loop principle. Autonomous AI in a SOC without oversight could incorrectly contain legitimate systems, miss actual threats, or make consequential decisions without accountability.
Why C is Wrong: Deploying open-source models directly in production without proper vetting, security hardening, and compliance review introduces supply chain risk, model reliability concerns, and potential intellectual property issues into sensitive security operations.
An attacker successfully completes a denial-of-service (DoS) attack through the context window of an AI system. Thousands of characters are obfuscated and hidden behind an emoji.
Which of the following techniques best mitigates this type of attack?
Options:
Fraud detection
Large language model (LLM)-as-a-judge
Pattern recognition
Prompt filter
Answer:
DExplanation:
Basic Concept: Context window DoS attacks flood an LLM ' s context with obfuscated content to exhaust processing resources or manipulate model behavior. Attackers may hide large amounts of text behind Unicode characters like emojis. CompTIA SecAI+ Study Guide identifies prompt filtering as the primary defense against input-based attacks on LLMs.
Why D is Correct: A prompt filter inspects incoming inputs before they reach the LLM, detecting and blocking malicious content including obfuscated text hidden behind Unicode characters or emojis. By analyzing input structure, character counts, hidden content, and encoding anomalies, prompt filters can identify and reject attacks that attempt to abuse the context window, preventing resource exhaustion.
Why A is Wrong: Fraud detection systems are designed to identify fraudulent transactions or activities in structured data contexts. They are not designed to inspect LLM prompt structures for obfuscated content attacks on context windows.
Why B is Wrong: LLM-as-a-judge uses a secondary LLM to evaluate the quality or safety of another model ' s outputs. It operates post-generation and cannot prevent a DoS attack that occurs during input processing before output is generated.
Why C is Wrong: Pattern recognition can identify known attack patterns but requires the attack to match pre-learned patterns. Novel obfuscation techniques using Unicode or emoji hiding may evade pattern-based detection without dedicated prompt filtering logic.
Which of the following is required first in order to send a prompt query and response in a language model (LLM) system when authentication is enabled?
Options:
Front-end web proxy gateway
Endpoint access control
Application programming interface gateway
Back-end access gateway
Answer:
BExplanation:
Basic Concept: When authentication is enabled on an LLM system, users must prove their identity before the system processes any requests. The authentication process must occur at the point where users first attempt to access the system before any data can be transmitted. CompTIA SecAI+ Study Guide covers the order of authentication controls in AI system access architectures.
Why B is Correct: Endpoint access control is the first requirement when authentication is enabled, as it governs the initial connection from the user ' s device to the system. Before any prompt can be sent or response received, the endpoint must be authenticated and authorized to access the LLM service. Endpoint access control verifies user identity and device compliance at the earliest possible point in the request flow, gating all subsequent processing.
Why A is Wrong: A front-end web proxy gateway routes and manages web traffic between users and backend services. While it may participate in the authentication flow, it is a routing and mediation component that operates after the endpoint has been validated, not the first authentication requirement.
Why C is Wrong: An API gateway manages API traffic, authentication tokens, and rate limiting for API interactions. It processes requests after initial endpoint authentication has been established and the request is being routed to the LLM backend.
Why D is Wrong: A back-end access gateway controls access to backend services and resources. It operates downstream from both endpoint authentication and API gateway processing, representing a deeper layer of the access control architecture rather than the first authentication requirement.
A recently deployed AI system becomes persistently unavailable. A restart temporarily fixes the issue, but the issue happens again. Upon examination of API logs, an analyst finds that external calls continued to use system resources after the action completed.
Which of the following is the best way to improve availability of the system?
Options:
Creating token limits
Enforcing session expiration
Increasing system memory
Implementing multifactor authentication (MFA)
Answer:
BExplanation:
Basic Concept: When API sessions or connections remain active and consuming resources after their intended operations have completed, they create resource leaks that progressively degrade system availability. Session lifecycle management is critical for maintaining AI system health. CompTIA SecAI+ Study Guide covers session management as an availability control for AI systems.
Why B is Correct: Enforcing session expiration ensures that external API sessions and connections are automatically terminated after a defined idle period or maximum duration. This prevents resource-consuming zombie sessions from accumulating and exhausting system memory, thread pools, or connection limits. The observed pattern — persistent unavailability that resolves temporarily with restart — is classic resource leak behavior from sessions that never close, making session expiration the direct fix.
Why A is Wrong: Token limits cap the number of tokens processed per request. While useful for controlling per-request resource consumption, they do not address the root cause of sessions persisting and consuming resources long after their operations complete.
Why C is Wrong: Increasing system memory defers the problem rather than solving it. The leak will eventually consume the additional memory too, requiring another restart. Addressing the root cause through session management is superior to scaling resources to accommodate the leak.
Why D is Wrong: MFA adds an additional authentication factor for users accessing the system. It is a security control for identity verification, not a mechanism for managing session lifecycle or preventing resource exhaustion from lingering sessions.
Which of the following provides guidance on AI-specific compliance?
Options:
Organisation for Economic Co-operation and Development (OECD)
International Organization for Standardization (ISO) 27001
Payment Card Industry Data Security Standard (PCI DSS)
General Data Protection Regulation (GDPR)
Answer:
AExplanation:
Basic Concept: Different regulatory and standards bodies address different aspects of technology governance. For AI-specific compliance guidance that addresses the unique characteristics of AI systems including transparency, fairness, accountability, and societal impact, a framework specifically designed for AI is required. CompTIA SecAI+ Study Guide identifies OECD as a key source of AI-specific compliance guidance.
Why A is Correct: The OECD AI Principles and Recommendation on AI provide internationally recognized, AI-specific guidance on compliance with responsible AI values including transparency, accountability, robustness, security, safety, and human-centric values. The OECD has developed a dedicated framework specifically addressing the compliance considerations unique to AI systems across sectors and national boundaries, making it the most AI-specific compliance guidance option listed.
Why B is Wrong: ISO 27001 is a general information security management standard addressing broad organizational security controls. It is not AI-specific and does not address the unique compliance considerations of AI transparency, fairness, or algorithmic accountability.
Why C is Wrong: PCI DSS is a payment card industry security standard focused on protecting payment card data. It has no AI-specific compliance provisions and is limited to financial transaction security requirements.
Why D is Wrong: GDPR is a European data protection regulation focused on personal data privacy rights and obligations. While relevant to AI systems that process personal data, GDPR is a privacy regulation rather than AI-specific compliance guidance addressing the full spectrum of AI governance considerations.
Which of the following improves the observability and auditing of an AI system?
Options:
Redeploying the model
Using manual detection
Implementing machine learning operations (MLOps)
Using anomaly detections
Answer:
CExplanation:
Basic Concept: Observability in AI systems refers to the ability to monitor, log, trace, and audit the behavior of AI models in production. MLOps is the operational discipline that establishes the processes, tooling, and practices for managing AI systems throughout their lifecycle. CompTIA SecAI+ Study Guide covers MLOps as a key mechanism for AI system transparency and auditability.
Why C is Correct: MLOps implements comprehensive monitoring, logging, versioning, and audit pipelines for AI systems. It provides observability through model performance tracking, data drift detection, prediction logging, lineage tracking, and audit trails. MLOps platforms enable organizations to understand what their AI models are doing, why they are making certain decisions, and how their behavior changes over time, directly improving observability and auditing.
Why A is Wrong: Redeploying a model is an operational action taken to restore a previous version or apply updates. It does not improve monitoring infrastructure, logging capabilities, or auditing frameworks for ongoing observability.
Why B is Wrong: Manual detection relies on human observation to identify issues. It is labor-intensive, inconsistent, and not scalable for AI systems processing high volumes of data. It does not provide systematic observability or comprehensive audit trails.
Why D is Wrong: Anomaly detection identifies unusual patterns in data or behavior. While useful as a monitoring component within an observability strategy, it is a single technique and does not encompass the full observability and auditing capabilities provided by a comprehensive MLOps implementation.
Which of the following is a risk addressed by responsible AI?
Options:
Model drift
Reputational loss
Response bias
Data poisoning
Answer:
CExplanation:
Basic Concept: Responsible AI is a governance framework addressing risks that arise from AI systems producing outcomes that are unfair, harmful, or contrary to human values. Different risk types fall under different governance domains — some under responsible AI, others under security or operational management. CompTIA SecAI+ Study Guide covers responsible AI risk categories under Domain 4.
Why C is Correct: Response bias occurs when an AI system ' s outputs are systematically skewed against certain groups, topics, or perspectives, reflecting biases embedded in training data or model design. This is a core risk addressed by responsible AI principles including fairness, non-discrimination, and explainability. Responsible AI frameworks mandate bias detection, assessment, and mitigation to ensure AI responses treat all users and groups equitably.
Why A is Wrong: Model drift describes the degradation of model performance over time as the distribution of real-world data diverges from the training data distribution. While an important operational concern, model drift is primarily a technical performance risk managed through MLOps and monitoring practices, not a core responsible AI governance concern.
Why B is Wrong: Reputational loss is a business risk consequence that may result from various AI failures including biased outputs or privacy violations. It is an outcome or impact rather than a specific risk category that responsible AI frameworks directly address.
Why D is Wrong: Data poisoning is a security attack where adversaries corrupt AI training data to manipulate model behavior. This is a cybersecurity threat managed through security controls and data integrity protections rather than responsible AI ethical governance frameworks focused on fairness and accountability.
An internal user enters a client credit card number into an internal generative machine learning (ML) model:
#User prompt: Customer Jane Doe has a new credit card that she wants to add to her account. The number is 5555-5555-5555-5555
Which of the following is the most effective way to prevent prompt injection attacks against a large language model (LLM)?
Options:
Guardrails
Antivirus
Web application firewall (WAF)
Role-based access control
Answer:
AExplanation:
Basic Concept: Prompt injection occurs when malicious content embedded in user input manipulates an LLM ' s behavior, causing it to leak sensitive data, bypass restrictions, or execute unintended actions. Preventing such attacks requires mechanisms that inspect and filter content at the prompt level. CompTIA SecAI+ covers LLM-specific security controls extensively.
Why A is Correct: Guardrails are purpose-built controls that inspect, filter, and constrain both input prompts and output responses in LLM systems. They can detect sensitive data patterns such as credit card numbers, block prompt injection payloads, enforce content policies, and prevent the model from processing or outputting restricted information. Guardrails are the primary LLM-native defense against prompt injection as cited in the CompTIA SecAI+ Study Guide.
Why B is Wrong: Antivirus software detects known malware signatures in files and executables. It does not inspect or understand the semantic content of LLM prompts and cannot detect or block prompt injection attacks.
Why C is Wrong: A WAF operates at the HTTP layer inspecting web requests and responses against rule sets. While it can block some patterns, it lacks the contextual intelligence to understand LLM prompt semantics and cannot prevent sophisticated injection attacks.
Why D is Wrong: Role-based access control manages who can access which resources. It controls authorization but does not inspect the content of prompts to prevent injection attacks once a user has legitimate access.
A security analyst reviews a recently released chatbot ' s log and discovers that outputs sometimes include personally identifiable information (PII) from other chatbot users.
Which of the following corrective actions should the security analyst take first to resolve this issue?
Options:
Take the chatbot offline and restore it from a backup.
Disable memory from the chat history for all users.
Ask all users to refrain from using PII with the chatbot.
Require users to label the sensitivity of their requests.
Answer:
BExplanation:
Basic Concept: When a chatbot leaks PII from one user ' s conversation into another user ' s responses, the root cause is cross-user memory contamination — the chatbot is retaining and sharing conversation context across user sessions. Disabling the memory feature stops the active data leakage immediately. CompTIA SecAI+ Study Guide covers session memory management as a privacy control for AI chatbots.
Why B is Correct: Disabling memory from chat history for all users immediately stops the mechanism causing PII leakage between users. If the chatbot retains no cross-session memory, it cannot include information from one user ' s conversation in another user ' s response. This is the most direct, immediate corrective action that eliminates the root cause of the privacy violation without requiring additional user behavior changes or service disruption.
Why A is Wrong: Taking the chatbot offline and restoring from backup is a drastic action appropriate when the issue requires investigating a potential compromise or data breach. For a configuration issue such as cross-user memory sharing, disabling the memory feature is a more targeted and proportionate first response that addresses the root cause directly.
Why C is Wrong: Asking users to refrain from using PII relies on voluntary user behavior change and does not address the technical root cause. Users may not comply, and even if they do, previously stored PII in memory would continue to leak. This is an ineffective first corrective action.
Why D is Wrong: Requiring users to label sensitivity does not stop the chatbot from storing and sharing PII that has already been submitted. Labels inform the system about data sensitivity but do not prevent the memory mechanism from sharing labeled sensitive data across user sessions.
An organization recently created a custom model that integrates with a language model (LLM). The developer notices that the application programming interface (API) costs have increased.
Which of the following is the best control to reduce cost?
Options:
Implementing prompt templates
Increasing central processing unit (CPU) and memory
Reducing the model size
Adjusting token limits
Answer:
DExplanation:
Basic Concept: LLM API pricing is primarily based on token consumption — the number of tokens processed in both input prompts and output responses. Controlling token usage is the most direct lever for managing and reducing LLM API costs. CompTIA SecAI+ Study Guide covers AI cost management and resource controls under securing AI systems.
Why D is Correct: Adjusting token limits directly caps the maximum number of tokens used per request for both input and output. By setting appropriate token limits, the organization prevents excessively long prompts or verbose responses from consuming unnecessary tokens, directly translating to lower API costs and providing hard budget control.
Why A is Wrong: Prompt templates standardize how queries are structured, which can indirectly improve efficiency. However, they do not enforce a hard cap on token usage and cannot prevent costs from escalating with large volumes or verbose responses.
Why B is Wrong: Increasing CPU and memory addresses computational infrastructure performance on the client side. LLM API costs are billed by the API provider based on token usage, not on the client ' s hardware resources.
Why C is Wrong: Reducing model size means using a smaller, less powerful model version. While this may lower cost per token, it is a model selection decision, not an ongoing operational control that can be adjusted to manage cost in real time.
A security analyst is aware of an active penetration test in the environment. The analyst examines SIEM log data and notices the following AI system output:

Which of the following is the vulnerability that has occurred and the control the analyst should implement?
Options:
The vulnerability is prompt injection, and the analyst should use endpoint detection response (EDR).
The vulnerability is model hallucinations, and the analyst should develop output validations.
The vulnerability is jailbreaking, and the analyst should utilize role-based access control.
The vulnerability is sensitive information disclosure, and the analyst should employ masking.
The vulnerability is role impersonation, and the analyst should use validation.
Answer:
DExplanation:
Basic Concept: AI systems can inadvertently reveal sensitive information such as PII, credentials, or internal data in their outputs when not properly controlled. Sensitive information disclosure is a critical OWASP LLM Top 10 risk. CompTIA SecAI+ Study Guide covers both vulnerability identification and appropriate data protection controls for AI outputs.
Why D is Correct: The scenario describes the AI system outputting sensitive information in its responses, which is a sensitive information disclosure vulnerability. The appropriate control is masking, which replaces sensitive data values such as credit card numbers, SSNs, or API keys with redacted or tokenized equivalents in the model ' s outputs before they are returned to users. This prevents the AI from disclosing sensitive data while still providing useful responses.
Why A is Wrong: Prompt injection involves crafting inputs to override model instructions. If the penetration test revealed sensitive information, the primary vulnerability is the disclosure of that sensitive data, not the injection mechanism itself. EDR monitors endpoint behavior, not AI output content.
Why B is Wrong: Model hallucinations produce fabricated information rather than disclosing real sensitive data. The described scenario involves actual sensitive information being revealed, not fictitious content generation.
Why C is Wrong: Jailbreaking circumvents safety restrictions but the primary harm demonstrated is sensitive data exposure. RBAC manages access permissions but does not prevent the model from including sensitive data in responses once access is granted.
Why E is Wrong: Role impersonation involves the AI pretending to be a different entity. This may be a secondary technique used by the penetration tester but the primary vulnerability described is the disclosure of actual sensitive information in the output.
After the latest software update, a developer receives reports that the system no longer requires reauthentication to display account balances because this issue was present in a previous release. Which of the following should the developer do to best mitigate the risk of recurrence?
Options:
Ensure that AI approvals are required to push changes into production.
Implement AI regression testing into the continuous integration/continuous deployment (CI/CD) pipeline.
Deploy an AI-assisted change management system to schedule and track feature releases.
Use code commit automation to perform AI-assisted static application security testing (SAST) scans.
Answer:
BExplanation:
Option B is correct because the defect is a regression: a security behavior that should require reauthentication was previously corrected but reappeared after a software update. Automated AI-assisted regression testing in the CI/CD pipeline can repeatedly verify that protected account-balance functions still demand reauthentication before a release is promoted. The test should reproduce the prior defect, fail the build when authentication is bypassed, and preserve the case as a permanent security test. Option A adds an approval step, but an approver may not detect the reintroduced behavior without an executable test. Option C improves release scheduling and traceability but does not prove that security controls still function. Option D uses SAST to inspect source code for known weakness patterns; it may identify some authentication flaws, but it does not reliably validate the end-to-end runtime behavior described here. Regression testing is the direct control for preventing recurrence. The NIST AI Risk Management Framework emphasizes testing AI systems before deployment and regularly during operation, supporting automated security validation within the delivery pipeline.
================
An AI architect reviews AI utilization and wants to improve the user experience.
Which of the following should the architect review within the logs?
Options:
Rate monitoring
Model accuracy
Access controls
Data storage
Answer:
BExplanation:
Basic Concept: User experience with AI systems is directly correlated to how accurately and relevantly the model responds to user queries. Poor model accuracy manifests as irrelevant, incorrect, or unhelpful responses, which is the primary driver of poor user experience. CompTIA SecAI+ Study Guide covers AI performance monitoring and user experience optimization.
Why B is Correct: Model accuracy metrics in logs reveal how often the model provides correct, relevant, and useful responses. Reviewing accuracy-related log data such as confidence scores, response quality ratings, error rates, and user feedback correlations enables the architect to identify performance gaps causing poor experiences and guides optimization efforts like fine-tuning or retrieval improvements.
Why A is Wrong: Rate monitoring tracks API call frequency and throughput. While important for capacity planning and detecting abuse, it does not directly reflect the quality of model responses that determine user experience.
Why C is Wrong: Access controls manage who can use the system and what permissions they have. They are a security concern rather than a user experience metric. Reviewing access control logs does not reveal information about response quality.
Why D is Wrong: Data storage metrics relate to storage capacity, utilization, and performance of data persistence layers. While these can affect response speed, they do not provide insights into model response quality or accuracy that drive user experience.
User experience is declining since the launch of a large language model (LLM) in internal networks.
Which of the following should be the highest priority for the prompt engineers?
Options:
Customer success management
Sales life cycle
Quality control
Business objectives
Answer:
CExplanation:
Basic Concept: Prompt engineers are responsible for designing and refining the prompts and instructions that guide an LLM ' s behavior. When user experience is declining after an LLM launch, this signals that the model ' s outputs are not meeting quality standards. CompTIA SecAI+ addresses prompt engineering quality management under securing and optimizing AI systems.
Why C is Correct: Quality control should be the highest priority when user experience is declining. Prompt engineers must systematically evaluate model responses against quality benchmarks, identify failure patterns causing poor user experience, and iteratively refine prompts to produce accurate, relevant, and appropriately formatted responses. Quality control encompasses testing, evaluation, and continuous improvement of prompt performance.
Why A is Wrong: Customer success management is a business function focused on customer relationship management and retention. While related to user experience outcomes, it is not a technical priority that prompt engineers can directly address through their core competency of prompt design and refinement.
Why B is Wrong: Sales life cycle management is a business process for managing customer acquisition and revenue. It is entirely outside the scope of prompt engineering activities and does not address declining LLM user experience.
Why D is Wrong: Business objectives define what the organization aims to achieve with the LLM deployment. These are set at the strategic level and inform the direction for prompt engineering. They are inputs to the quality control process rather than the priority action prompt engineers should take when experience is declining.
Which of the following responsible AI standards refers to a principle that clearly states the reasons behind the decisions for a particular conclusion?
Options:
Accountability
Auditability
Transparency
Explainability
Answer:
DExplanation:
Basic Concept: Responsible AI encompasses several key principles governing how AI systems should behave to be trustworthy and ethical. These principles are distinct but related. Understanding their precise definitions is essential for CompTIA SecAI+ Domain 4 governance questions.
Why D is Correct: Explainability in responsible AI means the AI system can clearly articulate the specific reasons, factors, and logic that led to a particular decision or output. It answers the question " why did the AI make this specific decision? " For example, an explainable credit scoring AI would not only give a score but also explain which factors such as payment history or credit utilization contributed most to that specific score. This directly matches the question ' s description of " clearly stating reasons behind decisions. "
Why A is Wrong: Accountability refers to the ability to identify who is responsible for AI system decisions and their consequences. It addresses ownership and responsibility assignment rather than explaining the reasoning behind specific decisions.
Why B is Wrong: Auditability refers to the ability to examine and verify an AI system ' s decisions, processes, and outputs through systematic review. It enables after-the-fact verification but does not mean the system itself explains its reasoning.
Why C is Wrong: Transparency refers to openness about how an AI system works at a general level, including its purpose, capabilities, limitations, and the data it was trained on. It is broader than explainability and does not specifically address articulating reasons for individual decisions.
An AI security team must assess the probability of an attack on its new system and the impact associated with such an attack.
Which of the following threat-modeling resources best addresses the threat landscape for machine learning (ML)?
Options:
Common Vulnerabilities and Exposures (CVE) AI working group
MITRE Adversarial Threat Landscape for AI Systems (ATLAS)
Massachusetts Institute of Technology (MIT) risk repository
Open Worldwide Application Security Project (OWASP)
Answer:
BExplanation:
Basic Concept: Assessing attack probability and impact for ML systems requires a resource specifically built to catalog real-world adversarial attacks against AI and ML systems, including documented techniques with associated impact information. CompTIA SecAI+ Exam Objectives identify MITRE ATLAS as the authoritative ML threat landscape resource.
Why B is Correct: MITRE ATLAS is specifically designed as a comprehensive knowledge base of adversarial tactics, techniques, and case studies targeting AI and ML systems. It catalogs real-world attacks with associated probability factors derived from actual incidents and provides impact assessments for various attack types including data poisoning, model evasion, model extraction, and inference attacks. This directly enables the probability and impact assessment the team requires.
Why A is Wrong: The CVE AI working group focuses on identifying and cataloging specific vulnerability instances in AI software components. While useful for vulnerability management, it does not provide the comprehensive threat landscape coverage with probability and impact assessments for ML-specific attack tactics that ATLAS provides.
Why C is Wrong: The MIT risk repository is an academic resource cataloging general AI-related risks. It is research-oriented and does not provide the practitioner-focused, operational attack taxonomy and case study library that MITRE ATLAS offers for ML threat modeling.
Why D is Wrong: OWASP provides application security guidance including the OWASP LLM Top 10. While valuable for LLM-specific risks, OWASP does not provide the comprehensive ML threat landscape coverage or the probability and impact data that MITRE ATLAS offers for assessing the full spectrum of ML attack scenarios.
A security analyst finds that the AI system is under a denial-of-wallet attack.
Which of the following should the analyst enforce to protect the company? (Choose two.)
Options:
Endpoint access controls
Content delivery network (CDN)
Model fine-tuning
Modality controls
Application programming interface (API) rate controls
Output token controls
Answer:
E, FExplanation:
Basic Concept: A denial-of-wallet (DoW) attack deliberately generates excessive API calls or token consumption to exhaust an organization ' s AI budget. Since LLM providers charge based on tokens processed, attackers can cause significant financial damage by driving massive usage. CompTIA SecAI+ Study Guide addresses financial abuse vectors in AI systems.
Why E is Correct: API rate controls limit the number of requests a user or application can make within a defined time period. By capping request frequency, rate controls directly prevent attackers from generating the massive API call volume needed to execute a denial-of-wallet attack.
Why F is Correct: Output token controls cap the maximum number of tokens the model can generate per response. Since billing is based on tokens consumed including outputs, limiting output tokens directly caps the cost per request, preventing attackers from triggering extremely long, expensive responses.
Why A is Wrong: Endpoint access controls manage device or network access. They do not directly limit token consumption or API call volume that drives denial-of-wallet costs.
Why B is Wrong: A CDN distributes content geographically to improve performance and absorb traffic. It does not control LLM API billing or token consumption.
Why C is Wrong: Model fine-tuning adjusts model parameters for improved performance on specific tasks. It is a training process that does not address active cost-exhaustion attacks.
Why D is Wrong: Modality controls restrict which input types such as text, images, or audio a model accepts. While useful for reducing attack surface, they do not directly address the rate or volume of API calls in a DoW attack.