CompTIA SecAI+ (CY0-001) Practice Questions with Explanations
Free CompTIA SecAI+ practice questions for the CY0-001 exam. 34 of them, each with the correct answer, a full explanation, and the reason every other option is wrong. The first certification purpose-built for AI security, launched February 2026. It validates securing AI systems, defending against AI-driven threats, and applying AI governance and compliance frameworks.
About the CY0-001 exam
- Basic AI concepts related to cybersecurity: 17%
- Securing AI systems: 28%
- AI-assisted cybersecurity: 30%
- AI governance, risk and compliance: 25%
60 questions, 60 minutes, passing score 600/900, US$359 per attempt.
Get the full CY0-001 question bank (126 questions) →
CY0-001 practice questions
Question 1
A security administrator must provide access controls for AI systems to list tables. Which of the following should the administrator implement?
- A. Agentic AI access
- B. Network access control list (NACL)
- C. Model access
- D. Data access
Show answer and explanation ▾
Correct answer: D
Data access controls regulate which AI systems and users can access specific tables and datasets, directly addressing the security requirement to control AI system permissions. Network access control lists operate at the network layer for traffic filtering, agentic AI access relates to autonomous agent capabilities, and model access is less specific than data access controls which are needed to restrict table visibility.
Why the other options are wrong:
- A. Agentic AI access controls autonomous agent capabilities, not database table access.
- B. Network ACLs filter network traffic, not database or table-level access permissions.
- C. Model access is too broad; data access controls specifically govern table and dataset permissions.
Question 2
Which of the following should an auditor reference when reviewing a company's human resources AI systems for legal non-compliance?
- A. Organization for Economic Cooperation and Development (OECD) standard
- B. National Institute of Standards and Technology (NIST) AI Risk Management Framework 9RMF)
- C. European Union (EU) AI Act
- D. International Organization for Standardization (ISO)
Show answer and explanation ▾
Correct answer: C
The European Union AI Act is the most directly applicable legal framework for reviewing HR AI systems for compliance. This regulation specifically addresses AI systems used in employment and hiring decisions, establishing legal requirements for high-risk AI applications in human resources. It provides the binding legal standards that auditors must reference for legal compliance in this context.
Why the other options are wrong:
- A. OECD standards provide guidance and principles but are not binding legal requirements like the EU AI Act.
- B. NIST RMF is a risk management framework for the US and provides best practices but is not the legal standard for EU HR AI systems.
- D. ISO standards provide general quality and management frameworks but do not specifically address the legal requirements for AI systems in HR.
Question 3
A financial organization implements a new AI-based fraud detection system to flag suspicious transactions. A security analyst discovers that it occasionally blocks legitimate transactions. Which of the following is the best recommendation?
- A. Retaining the model with more data and recent transaction patterns
- B. Implementing AI token usage and rate limits
- C. Encrypting all the data processed by AI and applying further access controls
- D. Rolling back the model and using a traditional fraud detection system
Show answer and explanation ▾
Correct answer: A
When an AI fraud detection system produces false positives (blocking legitimate transactions), the issue stems from model accuracy and the patterns it learned. Retraining with more data and recent transaction patterns addresses the root cause by improving the model's ability to distinguish between legitimate and fraudulent transactions, which is the best long-term solution.
Why the other options are wrong:
- B. Token usage and rate limits address resource management, not the accuracy problem causing false positives.
- C. Encryption and access controls protect data security but don't fix the underlying model accuracy issue.
- D. Rolling back to a traditional system abandons the AI solution rather than fixing the identified problem through improved training.
Question 4
A security consultant must summarize the impact of posture management on a machine learning (ML) use case. Which of the following is the most appropriate reference for this purpose?
- A. Organization for Economic Co-operation and Development (OECD) standards
- B. National Institute of Standards and Technology (NIST) AI Risk Management Framework (RMF)
- C. European Union AI Act
- D. Generative adversarial network (GAN)
Show answer and explanation ▾
Correct answer: B
The NIST AI Risk Management Framework is the most appropriate reference for assessing posture management and organizational practices around machine learning use cases. It provides comprehensive guidance on managing AI risks across development, deployment, and operational phases.
Why the other options are wrong:
- A. OECD standards address economic and organizational cooperation topics but are not specific to AI risk management.
- C. The EU AI Act is a regulatory requirement focused on compliance classification, not a framework for summarizing ML risk posture.
- D. A GAN is a machine learning architecture, not a reference framework for assessing organizational ML posture or risk management.
Question 5
A security team is using an AI-based tool to try to bypass organizational boundaries. The team uses AI to look at the current state and suggest different attack vectors based on the outcome of the previous ones. Which of the following techniques is the team most likely using?
- A. Manual signature matching
- B. Code quality testing
- C. Fraud detection
- D. Automated penetration testing
Show answer and explanation ▾
Correct answer: D
Automated penetration testing uses AI to systematically identify vulnerabilities by testing different attack vectors and adapting based on outcomes. The description of using AI to suggest different attack vectors based on previous results, while trying to bypass organizational boundaries, directly matches the methodology of AI-driven penetration testing.
Why the other options are wrong:
- A. Manual signature matching is a passive detection technique that does not involve suggesting and executing attack vectors.
- B. Code quality testing focuses on code defects and standards compliance, not active attack vector exploration.
- C. Fraud detection identifies suspicious transactions or behaviors, not attack methodology for security testing.
Question 6
A line of business wants to onboard an application that uses a custom AI model for employee assessments. The Chief Information Officer (CIO) agrees to allow the engagement to proceed but first wants a threat model. Which of the following is the most appropriate to use for an AI threat model?
- A. Responsible AI
- B. Adversarial Threat Landscape for AI Systems (ATLAS)
- C. Organization for Economic Co-operation and Development (OECD)
- D. International Organization for Standardization (ISO)
Show answer and explanation ▾
Correct answer: B
The Adversarial Threat Landscape for AI Systems (ATLAS) is specifically designed as a threat model framework for AI systems. It provides a structured approach to identifying, categorizing, and understanding threats specific to AI/ML systems, making it the most appropriate choice for threat modeling an AI-based application.
Why the other options are wrong:
- A. Responsible AI focuses on ethical principles and governance rather than threat modeling and security vulnerabilities.
- C. OECD provides AI principles and governance guidelines but is not a formal threat modeling framework.
- D. ISO standards like ISO 27001 address information security generally but ATLAS is specifically tailored for AI threat modeling.
Question 7
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?
- A. Long short-term memory
- B. Convolutional neural network
- C. Decision tree
- D. Logistic regression
Show answer and explanation ▾
Correct answer: B
Convolutional neural networks excel at pattern recognition in unstructured data, particularly images, text, and complex signal data. CNNs use convolutional layers to automatically detect spatial patterns and features, making them ideal for extracting meaningful patterns from unstructured datasets.
Why the other options are wrong:
- A. Long short-term memory networks are specialized for sequential data with temporal dependencies, not general unstructured pattern recognition.
- C. Decision trees work best with structured, tabular data with clear feature boundaries, not unstructured data.
- D. Logistic regression is a linear classifier requiring structured numerical features and is not designed for unstructured data analysis.
Question 8
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?
- A. Fraud detection
- B. Large language model (LLM)-as-a-judge
- C. Pattern recognition
- D. Prompt filter
Show answer and explanation ▾
Correct answer: D
A prompt filter examines incoming text for obfuscation techniques (hidden characters, emojis masking content, Unicode tricks) and can detect and block attempts to bypass context window limits with encoded payloads. This directly addresses the attack vector described. Fraud detection targets financial anomalies, LLM-as-a-judge evaluates output quality, and pattern recognition is too generic-only prompt filters specifically validate and sanitize input before it reaches the model's context window.
Why the other options are wrong:
- A. Fraud detection identifies financial anomalies, not obfuscation or context window exhaustion attacks.
- B. LLM-as-a-judge evaluates generated output correctness, not input validation or DoS prevention.
- C. Pattern recognition is too broad and doesn't specifically prevent obfuscated prompt injection at the input layer.
Question 9
Which of the following is the most impactful security risk associated with the use of a generative AI chatbot?
- A. Overly permissive access
- B. Data leakage
- C. Weak encryption
- D. Model validation
Show answer and explanation ▾
Correct answer: B
Data leakage is the most impactful security risk for generative AI chatbots because these systems often retain, memorize, or inadvertently reproduce training data or user inputs in their responses. Sensitive information, personal data, or proprietary information can be exposed through model outputs, affecting confidentiality at scale. This risk has broad impact across users and data. Overly permissive access, weak encryption, and model validation are concerns but are narrower in scope compared to widespread data exposure.
Why the other options are wrong:
- A. Overly permissive access is an access control issue that can be mitigated through proper IAM policies.
- C. Weak encryption is a specific technical control that can be addressed; it is narrower than data leakage risk.
- D. Model validation is important but addresses model accuracy rather than the broad data exposure risk chatbots pose.
Question 10
Which of the following would most likely be used to prove that an image is AI generated?
- A. Human validation
- B. Guardrails
- C. Diffusion
- D. Watermarking
Show answer and explanation ▾
Correct answer: D
Watermarking is a proactive technical mechanism that embeds identifying markers into AI- generated images during creation, enabling reliable detection later. This is a direct, verifiable method designed specifically for this purpose. Human validation is subjective and unreliable. Guardrails are preventative controls, not detection methods. Diffusion is a generative technique used to create images, not to prove their origin.
Why the other options are wrong:
- A. Human validation is subjective and unreliable for detecting sophisticated AI- generated images.
- B. Guardrails are safety constraints applied during generation, not detection mechanisms for identifying AI-created content.
- C. Diffusion is the generative technique used to create AI images, not a method to prove they were AI-generated.
Question 11
A machine learning (ML) engineer is working with a security engineer to identify the best practices for securing a system with various AI models. Which of the following actions should the engineers suggest?
- A. Conducting guardrail testing and security validation
- B. Following a secure model development life cycle (MDLC)
- C. Implementing comprehensive security architecture
- D. Using a secure software development life cycle (SDLC)
Show answer and explanation ▾
Correct answer: B
Following a secure model development life cycle (MDLC) is the foundational best practice that encompasses all security activities for AI systems, including threat modeling, secure training, validation, and deployment phases specific to machine learning. A secure MDLC is purpose-built for AI security unlike a generic SDLC, and it encompasses guardrail testing and security architecture as components within a comprehensive framework.
Why the other options are wrong:
- A. Guardrail testing is important but represents only one component of comprehensive AI security.
- C. Security architecture is necessary but incomplete without the systematic MDLC framework.
- D. Generic SDLC lacks AI-specific security practices needed for ML model security.
Question 12
A social media company with more than a million lines of code wants to reduce the mean time to fix bugs and issues. Which of the following is the most balanced AI strategy to automate the vulnerability management flow?
- A. Using AI to triage discovered issues and create tickets, but having a software engineer merge software
- B. Having security analysts triage discovered issues and create tickets, but using AI to merge software
- C. Having security analysts triage discovered issues and create tickets, but having a software engineer merge software
- D. Using AI to triage discovered issues, create tickets, and merge software fixes
Show answer and explanation ▾
Correct answer: A
Option A provides the most balanced approach by leveraging AI for automated triage and ticket creation while maintaining human oversight for the critical merge decision. This strategy maximizes efficiency gains from AI while preserving human judgment for high-risk code changes. Option B has AI handling merges, which is risky for code quality. Option C lacks AI automation entirely. Option D removes all human oversight from merging, which is inappropriate for critical production changes.
Why the other options are wrong:
- B. Allowing AI to merge software fixes without human review introduces unacceptable risk to code integrity and security.
- C. Failing to use AI for triage eliminates efficiency gains and doesn't address the goal of reducing mean time to fix.
- D. Removing human oversight from the merge process bypasses critical quality and security controls for production code.
Question 13
An organization is developing and implementing AI features into a customer service application. Which of the following practices should the organization put the place before releasing the application for customer trials?
- A. Data masking and sanitization
- B. External compliance audits
- C. Approved AI vendor lists
- D. Third-party risk management
Show answer and explanation ▾
Correct answer: A
Before customer trials of an AI-powered application, data masking and sanitization must be implemented to prevent exposure of sensitive customer information (payment details, personal identifiers, etc.) in both training data and system outputs. This protects customer privacy and prevents compliance violations. External audits occur after implementation, vendor lists are for procurement decisions, and third-party risk management applies to external dependencies-but none are prerequisites for safe trial release like data protection controls.
Why the other options are wrong:
- B. External compliance audits are post-implementation validation, not a prerequisite before customer trials begin.
- C. Approved vendor lists address supply chain management, not data protection during customer trials.
- D. Third-party risk management is relevant for external partnerships but doesn't directly protect customer data in the application itself.
Question 14
An AI architect reviews AI utilization and wants to improve the user experience. Which of the following should the architect review within the logs?
- A. Rate monitoring
- B. Model accuracy
- C. Access controls
- D. Data storage
Show answer and explanation ▾
Correct answer: B
Model accuracy metrics in logs directly reflect whether the AI system is delivering correct predictions and reliable outputs-critical to user experience. Poor accuracy directly degrades the user experience. Rate monitoring tracks API usage patterns, access controls verify authorization, and data storage addresses infrastructure-but model accuracy directly measures the quality and correctness of AI outputs that users experience.
Why the other options are wrong:
- A. Rate monitoring tracks usage volume and API call frequency, not the quality of AI outputs affecting user experience.
- C. Access controls ensure authorized users can reach the system, but don't measure whether outputs are correct or useful.
- D. Data storage addresses infrastructure capacity and organization, not the performance or accuracy of model predictions.
Question 15
A healthcare organization plans to deploy a chatbot for appointment scheduling and patient records. Which of the following is the first step a security administrator should take?
- A. Implement prompt firewalls.
- B. Enable role-based access management
- C. Conduct a risk assessment.
- D. Use a secure data communication channel for chat.
Show answer and explanation ▾
Correct answer: C
A risk assessment is the foundational first step before deploying any system handling sensitive data like healthcare records. It identifies potential threats, vulnerabilities, and impacts specific to the chatbot's use case, which informs all subsequent security decisions including access controls, data channels, and prompt firewalls.
Why the other options are wrong:
- A. Prompt firewalls are a tactical security control that should be implemented after understanding risks through assessment.
- B. Role-based access management is a necessary control but should be configured based on risks identified in the assessment.
- D. Secure communication channels are important but implementing them without first understanding risks may not address all vulnerabilities.
Question 16
Which of the following requires developers to harden infrastructure to protect AI systems?
- A. Intake processes
- B. Acceptable use policies
- C. Development guidelines
- D. Configuration standards
Show answer and explanation ▾
Correct answer: D
Configuration standards establish baseline security requirements, secure defaults, and hardening procedures that developers must implement to protect AI systems from attack, unauthorized access, and data breaches. Intake processes handle onboarding, acceptable use policies define user behavior rules, and development guidelines provide coding best practices-but only configuration standards directly mandate the technical hardening of infrastructure.
Why the other options are wrong:
- A. Intake processes manage initial requirements gathering, not infrastructure hardening.
- B. Acceptable use policies define user conduct, not infrastructure security controls.
- C. Development guidelines cover coding practices but configuration standards specifically mandate hardening deployment and infrastructure setup.
Question 17
An employee wants a consulting company to procure a data set that contains age, ethnicity, and diabetes status. During development, the employer wants to ensure the integrity of the data. Which of the following is the best strategy to accomplish this task?
- A. Implementing checksums
- B. Conducting human evaluation
- C. Querying the model
- D. Enabling log monitoring
Show answer and explanation ▾
Correct answer: A
Implementing checksums is the best technical strategy to ensure data integrity. Checksums generate hash values from data that can be verified to detect any unauthorized or accidental modifications during storage, transmission, or processing. This is a direct, cryptographic approach to integrity assurance.
Why the other options are wrong:
- B. Human evaluation is subjective and does not provide automated, reproducible data integrity verification.
- C. Querying the model tests model functionality and outputs, not the integrity of the source dataset itself.
- D. Log monitoring tracks system events and access but does not verify the integrity of data content.
Question 18
A security operations center (SOC) analyst needs to automate multiple security tasks by breaking them down into smaller parts. Which of the following AI tools is the best for this task?
- A. Agentic AI
- B. Retrieval-augmented generation (RAG) AI
- C. Generative AI
- D. Chatbot
Show answer and explanation ▾
Correct answer: A
Agentic AI refers to autonomous AI agents that can break down complex tasks into smaller subtasks, plan sequences of actions, execute them independently, and adapt based on results. This is ideal for automating multiple security tasks by decomposing them into manageable steps and executing them with minimal human intervention. RAG AI is for information retrieval, generative AI is for content creation, and chatbots are for user interaction-none are designed for autonomous multi-step task automation.
Why the other options are wrong:
- B. RAG AI is designed for retrieving and augmenting information, not for breaking down and automating multiple security tasks.
- C. Generative AI creates content but is not specifically designed for autonomous task decomposition and multi-step automation.
- D. Chatbots are conversational interfaces and are not designed to autonomously break down and execute complex multi-step security tasks.
Question 19
Which of the following is the most concerning risk for a company that allows corporate end users to use public-facing large language models (LLMs)?
- A. Inaccuracies due to hallucinations
- B. Out-of-date acceptable use policies
- C. Data security regulatory violations
- D. Malicious code generation
Show answer and explanation ▾
Correct answer: C
When corporate end users input data into public-facing LLMs, that data may be retained, used for model training, or accessed by third parties, creating exposure of confidential business information and personal data. This violates data protection regulations like GDPR, CCPA, and HIPAA. While hallucinations and malicious code are real concerns, they affect output quality rather than regulatory compliance. Outdated acceptable use policies are a governance issue but less immediately threatening than direct data exposure.
Why the other options are wrong:
- A. Hallucinations reduce output quality but don't create regulatory or compliance violations.
- B. Outdated policies are a governance problem, not the most acute risk compared to data exposure.
- D. Malicious code generation is a capability concern, not the primary risk from data submission to public services.
Question 20
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?
- A. Generate code and execute in production to help save time.
- B. Enable a personal assistant that can act in the global SOC with no human intervention.
- C. Use open-source models in production to help the efficiency of threat detection and threat analysis.
- D. Summarize alerts to easily gain insights on the environment.
Show answer and explanation ▾
Correct answer: D
Summarizing alerts and extracting insights from environment data leverages AI for threat analysis and situational awareness while maintaining human oversight and decision- making. This enhances SOC efficiency without dangerous automation. Generating code and executing in production without human review creates operational risk; enabling fully autonomous agents removes critical human oversight; and open-source models in production introduce unvetted security and supply chain risks.
Why the other options are wrong:
- A. Automated code generation and production execution without human validation introduces severe operational and security risks.
- B. Autonomous agents with no human intervention violate security best practices requiring human oversight in critical operations.
- C. Unvetted open-source models lack security hardening, support, and compliance guarantees required for production threat detection.
Question 21
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?
- A. Application server hijacking
- B. Session hijacking
- C. Domain hijacking
- D. Model hijacking
Show answer and explanation ▾
Correct answer: B
Session hijacking is an on-path attack where an attacker intercepts and takes control of an active user session with the application. This allows the attacker to manipulate requests to the AI system, injecting malicious prompts or modifying the data flow, resulting in unrelated outputs and offensive content. The attack occurs between the user and application server rather than targeting the model, infrastructure, or domain directly.
Why the other options are wrong:
- A. Application server hijacking would compromise the entire server, not just session- level interactions.
- C. Domain hijacking affects DNS and domain ownership, not the session interaction with the AI application.
- D. Model hijacking refers to compromising the model itself, not intercepting user sessions on-path.
Question 22
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)?
- A. Guardrails
- B. Antivirus
- C. Web application firewall (WAF)
- D. Role-based access control
Show answer and explanation ▾
Correct answer: A
Guardrails are input validation and content filtering rules that prevent malicious instructions or sensitive data (like credit card numbers) from being processed by the model. They can detect and block attempts to inject prompts that manipulate model behavior or expose system vulnerabilities. Antivirus targets malware at the host level, WAF protects web applications from HTTP-layer attacks, and RBAC controls user access-but only guardrails specifically prevent prompt injection by filtering and validating LLM input.
Why the other options are wrong:
- B. Antivirus addresses malware on endpoints and networks, not prompt injection attacks targeting language models.
- C. WAF protects web application HTTP requests but cannot filter malicious prompts within LLM interaction layers.
- D. RBAC controls who can access systems, not what malicious instructions are submitted within prompts to the model.
Question 23
Which of the following attacks would be the best to automate with AI during dynamic application software testing (DAST)?
- A. Distributed denial-of-service (DDoS)
- B. Data poisoning
- C. Payload creation
- D. Threat modeling
Show answer and explanation ▾
Correct answer: C
Payload creation is best automated with AI during DAST because AI can generate diverse, context-aware attack payloads at scale, test them against applications, and iterate based on responses. This directly supports dynamic testing by automatically crafting and delivering varied malicious inputs without manual effort.
Why the other options are wrong:
- A. DDoS attacks involve coordinated network traffic and are not a primary focus of application-level DAST.
- B. Data poisoning involves corrupting training data and is not applicable to dynamic application software testing.
- D. Threat modeling is a planning and analysis activity, not an automated attack technique executed during DAST execution.
Question 24
During the selection of a machine learning (ML)-based threat classification model, a cybersecurity administrator verifies that label distribution is highly unbalanced. Which of the following processing techniques should the engineer use to balance the model?
- A. Data lineage
- B. Data augmentation
- C. Data provenance
- D. Data verification
Show answer and explanation ▾
Correct answer: B
Data augmentation is the technique used to address imbalanced label distribution in machine learning models. It involves creating synthetic examples of underrepresented classes through transformations, replication, or generative methods to balance the training dataset and improve model performance across all classes.
Why the other options are wrong:
- A. Data lineage tracks the origin and flow of data but doesn't address class imbalance.
- C. Data provenance documents data source and history but doesn't resolve imbalance issues.
- D. Data verification checks data quality and correctness but doesn't balance class distributions.
Question 25
An organization is concerned with the exposure of sensitive data. Which of the following is the most relevant security concern?
- A. Overfitting
- B. Model inversion
- C. Data normalization
- D. Hyperparameter tuning
Show answer and explanation ▾
Correct answer: B
Model inversion is a security attack where an adversary reconstructs sensitive training data (including personal medical records) from a trained model, making it the most relevant security concern for sensitive data exposure. Overfitting is a performance issue, data normalization is a preprocessing technique, and hyperparameter tuning is a modeling optimization task-none specifically address sensitive data exposure risks.
Why the other options are wrong:
- A. Overfitting is a model performance issue, not a mechanism for sensitive data exposure.
- C. Data normalization is a preprocessing technique unrelated to data security or exposure.
- D. Hyperparameter tuning is a model optimization process, not a security vulnerability.
Question 26
A security engineer needs to monitor an AI-based system for runtime operations. The engineer is mostly concerned about the visibility of internal activity. Which of the following is the most appropriate monitoring solution?
- A. Deploying a security information and event management (SIEM) tool
- B. Implementing a web application firewall (WAF) with header logging
- C. Relying on vendor model controls and monitoring prompt inputs
- D. Enabling stack call and debugging level traces at the function level
Show answer and explanation ▾
Correct answer: D
Enabling stack call and debugging level traces at the function level provides the deepest visibility into internal activity and execution flow of an AI system. This approach captures detailed function-level execution information, variable states, and control flow, which is essential for understanding internal behavior during runtime operations.
Why the other options are wrong:
- A. SIEM tools are designed for security event management across infrastructure but may not provide sufficient granularity into AI model internal operations.
- B. WAF with header logging focuses on web layer attacks and request/response headers, not internal AI system activity.
- C. Relying solely on vendor controls and prompt input monitoring does not provide visibility into the internal computational processes and function-level execution of the AI system.
Question 27
A human resources officer is using AI to evaluate resumes and help select candidates that meet minimum criteria. To improve the results, the human resources officer adjusts the query parameters and includes an example resume that matches a successful candidate. Which if the following best describes this query?
- A. Distillation
- B. Prompt template
- C. One-shot prompting
- D. System role
Show answer and explanation ▾
Correct answer: C
One-shot prompting involves providing a single example of the desired behavior to guide the AI model's output. The HR officer is including an example resume of a successful candidate to demonstrate what kind of results they want, which is the defining characteristic of one-shot prompting. This technique helps the model understand the pattern by showing one concrete example.
Why the other options are wrong:
- A. Distillation is a model compression technique where a larger model's knowledge is transferred to a smaller model, not a prompting strategy.
- B. A prompt template is a reusable structure with placeholders, not specifically about providing example outputs to demonstrate desired behavior.
- D. System role defines the AI's persona or function but doesn't involve providing examples of successful outputs.
Question 28
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?
- A. Tokenization
- B. Model guardrails
- C. Rate limiting
- D. Prompt firewall
Show answer and explanation ▾
Correct answer: C
Rate limiting is the primary control that prevents denial-of-service attacks by restricting the number of requests an API endpoint can receive within a time period. A brute force DoS attack succeeds by overwhelming the API with excessive requests, and rate limiting directly blocks this attack vector by rejecting requests that exceed configured thresholds.
Why the other options are wrong:
- A. Tokenization protects data confidentiality through encoding, not API availability against DoS attacks.
- B. Model guardrails constrain model behavior and outputs, not API request volume or availability.
- D. A prompt firewall filters malicious prompts but does not address excessive request volume that characterizes brute force DoS attacks.
Question 29
Which of the following improves the observability and auditing of an AI system?
- A. Redeploying the model
- B. Using manual detection
- C. Implementing machine learning operations (MLOps)
- D. Using anomaly detections
Show answer and explanation ▾
Correct answer: C
MLOps (Machine Learning Operations) encompasses practices and tools for monitoring, logging, versioning, and auditing AI systems throughout their lifecycle. It provides comprehensive observability through model tracking, performance monitoring, data validation, and audit trails that enable systematic oversight and accountability. Redeploying doesn't improve observability, manual detection doesn't scale, and anomaly detection is a component within MLOps rather than a comprehensive solution.
Why the other options are wrong:
- A. Redeploying a model alone does not improve observability or auditing capabilities without supporting infrastructure.
- B. Manual detection is not scalable or systematic for comprehensive observability of AI systems.
- D. Anomaly detection is a technique used within observability frameworks but is not comprehensive enough to address all auditing requirements.
Question 30
A security architect performs threat modeling of an AI system. The architect needs to determine which attacks can be performed against the system. Which of the following actions should the architect take next?
- A. Leverage a large language model (LLM) to map likely attack paths based on the code base.
- B. Quantify the risk of known vulnerabilities identified in the AI system.
- C. Identify trust boundaries and perform threat modeling with Open Worldwide Application Security Project (OWASP) Top 10.
- D. Analyze MITRE Adversarial Threat Landscape for AI Systems (ATLAS) for tactics, techniques, and procedures (TTPs).
Show answer and explanation ▾
Correct answer: D
MITRE ATLAS (Adversarial Threat Landscape for AI Systems) is specifically designed for threat modeling of AI systems and provides a comprehensive knowledge base of tactics, techniques, and procedures used by adversaries against AI/ML systems. It is the most appropriate framework for an architect performing threat modeling to systematically identify which attacks can be performed against the AI system. While OWASP Top 10 is useful for application security, ATLAS is the specialized framework for AI threat modeling.
Why the other options are wrong:
- A. Using an LLM to map attack paths is not a systematic threat modeling approach and lacks the rigor of established frameworks.
- B. Quantifying risk of known vulnerabilities comes after identifying potential threats and attack paths.
- C. While trust boundaries and OWASP Top 10 are useful, they are application-focused, not specifically designed for AI system threats like ATLAS.
Question 31
A disgruntled employee changed the company policies that a chatbot references in order to create confusion and disrupt the business. Which of the following AI-generated vulnerabilities is the employee exploiting?
- A. Data reduction
- B. Data masking
- C. Data poisoning
- D. Data leaking
Show answer and explanation ▾
Correct answer: C
Data poisoning is the deliberate corruption or manipulation of training or reference data to degrade AI model performance or cause incorrect outputs. The employee directly modified the company policies that the chatbot references, poisoning the data source the model relies on, causing the chatbot to provide incorrect information based on corrupted input data.
Why the other options are wrong:
- A. Data reduction involves decreasing dataset size or dimensionality for processing, not intentional corruption.
- B. Data masking obscures sensitive data for privacy, not corruption of data sources.
- D. Data leaking refers to unintended exposure of data, not deliberate modification of data to disrupt operations.
Question 32
Which of the following helps in managing potential security issues related to model training?
- A. National Institute of Standards and Technology (NIST) AI Risk Management Framework (RMF)
- B. International Organization for Standardization (ISO) 27001
- C. Organization for Economic Co-operation and Development (OECD)
- D. General Data Protection Regulation (GDPR)
Show answer and explanation ▾
Correct answer: A
The NIST AI Risk Management Framework (RMF) is specifically designed to address risks associated with AI systems throughout their lifecycle, including model training. It provides structured guidance on identifying, measuring, and managing AI-specific security and safety risks during development and deployment.
Why the other options are wrong:
- B. ISO 27001 addresses general information security management but is not specifically tailored for AI model training risks.
- C. OECD provides principles for AI governance and responsible development but is not a dedicated framework for managing training-specific security issues.
- D. GDPR focuses on data privacy and personal data protection rights rather than the security of model training processes themselves.
Question 33
A security alert triggers an agentic system. An analyst notices the following payload in the logs" The alert includes multiple shell commands that are not typically run as part of any hardening. Which of the following is the most effective control to implement?
- A. Adding logic that includes approved strings before running the shell commands
- B. Deprecating model usage and retaining the model with safer parameters
- C. Modifying the application to ignore the SECURITY_UPDATE tag
- D. Using only approved libraries when interacting with agentic systems
Show answer and explanation ▾
Correct answer: A
The payload shows a suspicious SECURITY_UPDATE tag containing a shell script URL that is not part of legitimate hardening procedures. This is a prompt injection/command injection attack attempting to manipulate the agentic system into executing arbitrary commands. The most effective control is to add logic that validates inputs against an approved whitelist of legitimate security commands and tags before execution. This prevents the system from running unauthorized commands even if they appear in seemingly authoritative messages, directly addressing the root cause of the attack vector.
Why the other options are wrong:
- B. Deprecating and retraining the model is a long-term solution that doesn't address the immediate vulnerability in the current system and doesn't prevent similar attacks from other vectors.
- C. Ignoring the SECURITY_UPDATE tag entirely removes a legitimate mechanism for actual security updates and doesn't solve the underlying input validation problem.
- D. Using only approved libraries is a general best practice but doesn't specifically prevent malicious command injection through deceptive payloads like this SECURITY_UPDATE tag.
Question 34
Which of the following is used to train an AI model with unstructured data?
- A. Statistical learning
- B. Fine-tuning
- C. Supervised learning
- D. Reinforcement training
Show answer and explanation ▾
Correct answer: B
Fine-tuning is the process of taking a pre-trained model and adapting it with additional training on new, unstructured data (text, images, audio, etc.). This approach is specifically designed to leverage unstructured data by building on existing model knowledge. Statistical learning requires structured numerical data, supervised learning requires labeled data, and reinforcement training focuses on reward-based learning rather than learning from unstructured data directly.
Why the other options are wrong:
- A. Statistical learning typically requires structured, numerical data rather than unstructured data.
- C. Supervised learning requires labeled training data with explicit input-output pairs, not raw unstructured data.
- D. Reinforcement training uses reward signals and agent interactions, not unstructured raw data as its primary training mechanism.
Get the complete CY0-001 bank
These 34 questions are about 30% of what is on the exam. The full pack has 126 real CY0-001 questions, every MCQ and PBQ, each with the same depth of explanation, plus a questions-only PDF for timed practice and free updates forever.
View the full CompTIA SecAI+ question bank →