All CompTIA exams
Free CY0-001 practice test: 30 questions with answers
30 original questions for CompTIA SecAI+, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.
- Free questions
- 30
- Full bank
- 100 questions
- Real exam
- Maximum of 60 (multiple choice and performance-based) questions, 60 min
- Passing score
- 600 (scale 100-900)
All 30 CY0-001 questions with answers
The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.
Securing AI systems (8 questions)
Question 1
An attacker submits a crafted prompt to a customer-facing assistant that tells it to ignore its instructions and reveal the system prompt. Which attack category is this?
- ASQL injection against the vector store
- BPrompt injection
- CDenial of service via packet flooding
- DCross-site scripting in the browser only
Show answer and explanationHide answer
Correct answer: BPrompt injection manipulates the model through input text to override instructions or leak hidden context. The other attacks target databases, browsers or network capacity rather than the model's instructions.
Question 2
A retrieval system pulls internal documents into prompts. A malicious contributor plants a document that instructs the model to send confidential data to an external address. Which risk does this describe?
- ACredential stuffing against the login page with breach data
- BModel extraction through repeated API calls
- CAdversarial patch attack on image classifiers
- DIndirect prompt injection through retrieved content
Show answer and explanationHide answer
Correct answer: DIndirect prompt injection hides instructions in content the model retrieves, so the model follows them without a direct attacker prompt. Model extraction, image patches and credential stuffing are different attack types.
Question 3
A team is building a chatbot that calls internal APIs on behalf of users. The model must not be able to perform actions beyond what the signed-in user is allowed to do. Which design principle applies?
- AGiving the model a shared administrator key to simplify calls across backend services
- BRemoving authentication from the chatbot UI so the model can call internal APIs directly
- CAllowing the model to select from the internal API catalogue without policy checks
- DLeast privilege, with tool calls executed under the user's own authorization and scoped credentials
Show answer and explanationHide answer
Correct answer: DTool calls should run with the user's permissions and narrowly scoped credentials, so the model cannot exceed them even if manipulated. A shared admin key and unchecked API choice give the model excess power, and removing authentication removes the identity check.
Question 4
An attacker repeatedly queries a model's public API with many inputs and uses the answers to train a copy that imitates the original. Which attack is this?
- AEvasion of a malware classifier with one input
- BBackdoor insertion in the training data
- CSession fixation on the login page
- DModel extraction or model stealing
Show answer and explanationHide answer
Correct answer: DModel extraction uses query responses to reconstruct or imitate a model's behaviour. Backdoor insertion occurs in training, evasion uses a crafted input against a deployed classifier, and session fixation targets web sessions.
Question 5
During training, an attacker quietly adds a small number of samples with a hidden trigger that causes the model to misclassify inputs containing that trigger. What is this attack called?
- AData poisoning with a backdoor
- BDNS spoofing against resolver cache
- CClickjacking via transparent iframes
- DDenial of wallet via inflated usage
Show answer and explanationHide answer
Correct answer: APoisoned training samples that implant a hidden trigger create a backdoor in the model, which activates only when the trigger appears. Denial of wallet is cost abuse, and clickjacking and DNS spoofing are web and network attacks.
Question 6
A model endpoint returns very long, detailed answers when asked about internal configuration, which exposes details that attackers can use. Which control reduces this exposure while keeping the service useful?
- ALogging nothing about the responses, which keeps storage costs minimal
- BRaising the maximum output length so answers are complete in every session
- COutput filtering and constraints that block disclosure of system or internal details
- DTurning off input validation to speed up responses and reduce per-request latency
Show answer and explanationHide answer
Correct answer: COutput filters and response constraints prevent disclosure of sensitive internal information, which is a common AI security control. Longer outputs increase exposure, and disabling logs or validation makes detection and defence weaker.
Question 7
A third-party model provider updates its hosted model without notice, and the company's security test results change. Which governance practice addresses this risk?
- AAccept every update automatically without testing into production pipelines
- BUse the newest hosted release in production with no staging environment
- CPin model versions and re-run the security evaluation before adopting a new version
- DRemove the security tests after each update, since re-running them slows release cycles
Show answer and explanationHide answer
Correct answer: CPinning a known model version and re-testing before any upgrade keeps behaviour and security posture predictable. Accepting updates blindly, dropping tests and skipping staging all remove the control that would catch regressions.
Question 8
Which two controls reduce the risk that a generative AI application leaks secrets stored in its configuration? (Choose two.)
- AStore API keys in a secrets manager and inject them at runtime with least-privilege access
- BScan repositories and prompts for credential patterns before release
- CPlace the keys in the system prompt so the model can use them
- DCommit configuration files with keys to a public repository
- EShare one key across all tenants and environments
Show answer and explanationHide answer
Correct answer: A, BA secrets manager with runtime injection keeps keys out of code and prompts, and scanning for credential patterns catches leaks before release. Placing keys in prompts exposes them to the model's outputs, public commits leak them, and shared keys widen the blast radius.
AI-assisted security (8 questions)
Question 9
A security operations centre receives thousands of alerts a day. The team wants an AI tool to group related alerts and rank them by likelihood of being a real incident. Which capability best fits?
- ASpeech recognition of recorded phone calls for transcript indexing
- BAlert correlation and risk scoring to prioritize analyst review
- CImage classification of scanned network diagrams to label device types
- DGenerating marketing copy for the SOC's public website and customer updates
Show answer and explanationHide answer
Correct answer: BCorrelating related alerts and scoring their risk reduces noise and helps analysts focus on the likely incidents. The other capabilities are unrelated to SOC triage.
Question 10
A SOC analyst uses a large language model to summarize a long incident timeline. Which safeguard is most important before the summary is used in a regulatory report?
- AA human reviews the summary against the source logs before it is submitted
- BThe timeline is shortened to fit the model's context window before summarizing
- CThe summary is generated again with a higher temperature, then the first output is kept
- DThe model's summary is published directly to the regulator portal without review
Show answer and explanationHide answer
Correct answer: AGenerated summaries can omit or invent details, so a human should verify them against the source logs before regulatory use. Publishing without review, truncating the input and raising temperature all reduce reliability.
Question 11
A security team wants to detect a new kind of attack that does not match any known signature. Which AI approach is most suitable?
- AA keyword filter on the subject line and sender name of emails
- BA manual review of firewall rules by an analyst once a year
- CAnomaly detection that learns normal behaviour and flags deviations
- DA static list of known bad hashes refreshed from the vendor feed each month
Show answer and explanationHide answer
Correct answer: CAnomaly detection models learn a baseline of normal activity and flag unusual patterns, which can reveal unknown attacks. Signature lists, yearly reviews and subject filters only match known patterns.
Question 12
A team uses an AI model to write detection rules for a SIEM. Before the rules are deployed, what is the most reliable step to check their quality?
- ADeploy them straight to production and observe what alerts appear in the live SIEM over the week
- BCount how many words the rules contain and treat a higher count as evidence of thorough coverage
- CAsk the model whether the rules are correct and accept its confidence score as quick validation
- DTest the rules against labelled historical events, including benign traffic, and measure false positives and misses
Show answer and explanationHide answer
Correct answer: DTesting against labelled events that include benign activity measures both false positives and missed detections, which is the reliable check. Production testing risks alert floods, word counts say nothing about accuracy, and asking the model to self-assess is unreliable.
Question 13
A phishing email uses a deepfake voice message to request an urgent wire transfer. Which control best reduces the success of this type of attack?
- ADisabling email filtering to avoid delaying urgent messages from executives across the mail gateway queue
- BTrusting the voice because it sounds like the executive and the request matches the usual payment pattern of finance
- CPublishing the executive's voice samples online across the company website and social channels regularly
- DA callback verification procedure with a known number and dual approval for payment changes
Show answer and explanationHide answer
Correct answer: DOut-of-band callback verification and dual approval stop a convincing voice or email from authorizing payments on its own. Trusting voice alone, disabling filters and publishing voice samples all increase the risk.
Question 14
An organization uses AI to triage vulnerability scan results. Which metric best shows whether the triage is helping the team?
- AReduction in mean time to triage for true positives without an increase in missed critical findings
- BThe number of vulnerability scans run per day across the estate, and the count of tickets opened each morning
- CThe number of words in each AI summary generated by the model per ticket batch
- DThe total number of model parameters in the production checkpoint and its quantisation
Show answer and explanationHide answer
Correct answer: AThe useful measure is faster triage of real issues without missing critical ones. Scan counts, summary length and parameter counts do not show whether triage works.
Question 15
Which two practices make detection rules written with an AI assistant safer to deploy? (Choose two.)
- ADeploy the rules to production as soon as they are generated
- BTurn off logging so that the rules are not exposed in production
- CPeer review of the generated rules by a second analyst
- DSuppress all alerts from new rules for a month
- ETest the rules against labelled benign and malicious events first
Show answer and explanationHide answer
Correct answer: C, EA second analyst catches logic errors that the generator introduced, and testing against labelled benign and malicious events exposes false positives and misses before production. Immediate deployment, disabling logs and suppressing alerts all hide problems rather than solving them.
Question 16
A SOC wants an AI assistant to answer analyst questions using only the organization's approved playbooks. Which design best keeps answers tied to those playbooks?
- AA general model trained on the public internet with no retrieval layer or grounding
- BRetrieval over the approved playbook set with citations and a refusal when no playbook matches
- CA chatbot that writes new playbooks from scratch each time an analyst asks for one
- DAn assistant that answers from learned memory without citing sources or references
Show answer and explanationHide answer
Correct answer: BRetrieval restricted to approved playbooks, with citations and refusals when nothing matches, keeps answers grounded and auditable. General internet models and memory-only answers are not tied to approved content, and generating new playbooks on demand bypasses approval.
AI governance, risk, and compliance (7 questions)
Question 17
A company deploys an AI system that makes decisions affecting customers' access to a service. Which governance activity should happen before deployment?
- AA documented risk assessment covering impact, bias testing and human oversight
- BPublishing the model weights to attract users on a public repository before internal testing
- CSkipping review because the vendor is trusted and its SOC 2 report is on file
- DWaiting until a regulator asks for documentation, and then compiling the risk records later
Show answer and explanationHide answer
Correct answer: AA risk assessment that covers impact on customers, bias testing and human oversight is the standard pre-deployment governance step. Publishing weights, skipping review and waiting for a regulator leave the risks unmanaged.
Question 18
A healthcare provider wants to use a third-party AI service that processes patient notes. Which action is required before any data is sent?
- ASend a sample of data to test the vendor first using a de-identified batch of patient notes to check accuracy before the contract is signed
- BRely on the vendor's marketing claims about security and the security whitepaper they publish, which describes encryption and access controls
- CReview the vendor contract for data processing terms, and confirm the agreement meets the applicable privacy obligations
- DAsk the vendor to delete patient data after a breach occurs, once the retention period for backups has been reviewed by compliance staff
Show answer and explanationHide answer
Correct answer: CPatient data requires contractual and privacy controls such as a data processing agreement before it is shared with a vendor. Sending test samples, relying on marketing and deletion after a breach all skip this requirement.
Question 19
A policy requires that people be able to challenge an automated decision that affects their employment. Which AI governance principle does this represent?
- ATransparency and the right to human review of automated decisions
- BStoring decisions solely in the model's working memory
- CMaximizing automation with no human involvement for hiring
- DKeeping the model's logic secret from staff, including appeals reviewers
Show answer and explanationHide answer
Correct answer: AAllowing challenge and human review, supported by transparency about how decisions are made, is a core governance principle for automated decisions. Eliminating human involvement, keeping decisions in model memory and hiding logic all work against it.
Question 20
An organization must show regulators how it manages the risks of its AI systems over time. Which framework is commonly used to structure this, covering govern, map, measure and manage functions?
- AThe PCI DSS cardholder data standard
- BThe NIST AI Risk Management Framework
- CThe HIPAA breach notification rule alone
- DThe ISO 9001 quality standard for manufacturing
Show answer and explanationHide answer
Correct answer: BThe NIST AI RMF organizes AI risk work into govern, map, measure and manage functions. PCI DSS covers payment card data, ISO 9001 covers quality management, and HIPAA's breach rule alone does not structure AI risk management.
Question 21
A company uses AI-generated code in its products. Which governance control reduces the risk of licence and security problems in that code?
- AAccepting generated code without reading it because the model is accurate
- BCode review, software composition analysis and a policy on the use of AI-generated code
- CRemoving licence checks and vulnerability scanning from the release pipeline to move faster across teams
- DHiding the use of AI from the engineering team to avoid review scrutiny
Show answer and explanationHide answer
Correct answer: BHuman review, software composition analysis for licences and vulnerabilities, and a clear policy give the organization control over AI-generated code. Accepting code unread, dropping licence checks and hiding AI use all increase risk.
Question 22
A company's AI policy requires that employees do not paste confidential customer data into public AI tools. Which control best enforces this policy technically?
- AA policy memo sent once a year to the staff mailing list, with the handbook attached
- BData loss prevention rules that block or warn on sensitive data sent to unapproved AI services
- CBlocking internet access for each employee across the corporate network, including approved SaaS and cloud endpoints
- DAsking employees to delete the chat transcript and uploaded files after each session
Show answer and explanationHide answer
Correct answer: BData loss prevention can detect sensitive content leaving the organization and block or warn on unapproved AI destinations, which enforces the policy. A memo alone is not enforcement, blanket blocking harms productivity, and asking users to delete data after the fact does not prevent the exposure.
Question 23
A model used in lending decisions shows different error rates for different demographic groups. Which governance response is most appropriate?
- ARemove the demographic data from the report but keep the model unchanged and untested
- BIgnore the disparity because the overall accuracy is high and most users are served well
- CInvestigate the disparity, document it, and apply mitigations with human review before continued use
- DPublish the disparity in the public model card without a remediation plan or owner
Show answer and explanationHide answer
Correct answer: CA disparity in error rates is a fairness risk that requires investigation, documentation and mitigation with oversight. High overall accuracy can hide harm, and removing reports or publishing without a plan does not reduce the risk.
Basic AI concepts related to cybersecurity (7 questions)
Question 24
A security analyst is asked to explain the difference between supervised and unsupervised learning for a fraud detection project. Which statement is correct?
- ASupervised learning trains on labeled examples, while unsupervised learning finds structure in unlabeled data
- BUnsupervised learning requires analysts to hand-label each record in the training set first
- CSupervised learning cannot be applied to classification tasks, since labeled outputs are continuous values rather than classes
- DUnsupervised learning guarantees the correct fraud label for each transaction once clusters form
Show answer and explanationHide answer
Correct answer: ASupervised learning uses labeled examples such as known fraud and legitimate transactions, while unsupervised methods such as clustering look for patterns without labels. The distractor about unsupervised labeling reverses the definition, and supervised learning is widely used for classification.
Question 25
An organization uses a retrieval-augmented generation chatbot over its policy documents. Users report confident answers that cite policies that do not exist. Which mitigation most directly addresses this?
- AIncrease the model's temperature so answers are more varied, which encourages sampling of less probable wording in responses
- BRequire answers to cite retrieved source passages and refuse when retrieval returns nothing relevant
- CRemove the document index to reduce storage costs, since answers can be generated without it
- DTrain the model on the internet for a larger vocabulary, since broad web pretraining gives it more words to draw on
Show answer and explanationHide answer
Correct answer: BGrounding answers in retrieved passages with citations and refusing when no supporting source exists reduces hallucinated policies. Raising temperature increases randomness, and removing the index or broadening training does not ground the answers.
Question 26
A data scientist wants to measure how well a binary malware classifier identifies malicious files without being misled by a dataset that is 99 percent benign. Which metric is most informative?
- ARaw accuracy on the whole dataset as one overall score
- BThe number of training epochs used during fitting
- CPrecision and recall, or the F1 score that combines them
- DThe size of the model file on disk after export
Show answer and explanationHide answer
Correct answer: CWith heavy class imbalance, accuracy can look high while missing most malware, so precision, recall and F1 show detection quality for the minority class. Epoch count and file size do not measure detection performance.
Question 27
Which two statements describe the purpose of a model card for a security tool? (Choose two.)
- AIt replaces the need for testing before deployment
- BIt records performance across relevant groups and conditions
- CIt stores the model's private encryption keys
- DIt documents the intended use, training data sources and known limitations of the model
- EIt sets the firewall rules for the network
Show answer and explanationHide answer
Correct answer: B, DA model card records intended use, data sources, limitations and evaluation results, which helps reviewers judge fit for purpose. It does not replace testing, does not hold keys, and does not configure firewalls.
Question 28
A team trains a model to recognise phishing emails. Its accuracy on the training data is 99 percent, but on new emails it drops to 62 percent. Which problem is most likely?
- AUnderfitting with too few parameters
- BHardware thermal throttling
- CA missing firewall rule
- DOverfitting to the training data
Show answer and explanationHide answer
Correct answer: DA large gap between training and unseen-data performance suggests the model has memorized patterns in the training set rather than generalizing. Underfitting shows poor results on both sets, and firewall or hardware issues are unrelated to model accuracy.
Question 29
Which description best defines a vector embedding as used in security search tools?
- AA cryptographic signature attached to a log entry so that tampering can be detected later
- BA firewall rule stored as an array of source, destination and port fields checked in order
- CA list of file permissions granting read, write and execute rights to users
- DA numeric representation of text or data where similar items have nearby values
Show answer and explanationHide answer
Correct answer: DEmbeddings map content into numeric vectors so similarity search can find related items, such as similar alerts or documents. Signatures, firewall rules and permission lists are not embeddings.
Question 30
A hospital wants to share a dataset for training a model while protecting patient identities. Which technique most directly reduces the risk of re-identification?
- ADe-identification with removal or generalization of direct and quasi-identifiers
- BConverting the dataset to a larger uncompressed image format such as TIFF for archival storage
- CRenaming the file to a generic name such as data_v2.csv before it is shared with partner teams
- DAdding more copies of the dataset to other teams for faster experiments
Show answer and explanationHide answer
Correct answer: ARemoving direct identifiers and generalizing quasi-identifiers such as dates or postcodes lowers re-identification risk. Copying the dataset widens exposure, while renaming or reformatting the file changes nothing about the content.
Want more CY0-001 questions?
The full bank has 100 questions with answers and explanations, as a PDF, an online practice exam, or both.
Both formats together. The best value.
Instant access after payment, with 90 days of updates. Checkout is on our store, AIExamCerts.