CompTIA SecAI+ (CY0-001) Exam-style mock test
CompTIA SecAI+ Practice Exams|Practice test
Full explanations
Exam format
Pass line 75%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · AI Security Fundamentals & Threats
A B2B SaaS company deploys a customer-churn prediction model that accepts feature data submitted through a partner-facing API. A security analyst notices that one partner is sending carefully crafted input records that cause the model to misclassify churning accounts as healthy. Which AI-specific threat BEST describes this activity?
✓An adversarial evasion attack, where crafted inputs manipulate a deployed model into producing an attacker-chosen classification
Correct. Evasion attacks craft inputs at inference time to force a deployed model to output a wrong, attacker-chosen label, which matches the API misclassification described.
・A data poisoning attack that alters the labeled records used during the model's offline training phase
Incorrect. Data poisoning corrupts the training data before deployment, but here the model is already serving predictions on live API input.
・A model inversion attack that reconstructs private training records from observed model outputs
Incorrect. Model inversion aims to reconstruct sensitive training data from outputs, not to force a specific misclassification.
・A supply-chain compromise of the pretrained base weights distributed to the SaaS platform
Incorrect. A supply-chain compromise targets the integrity of distributed model artifacts, not runtime inputs crafted by a partner.
Explanation
Manipulating a live model with crafted inference-time inputs to force a chosen output is the defining characteristic of an adversarial evasion attack.
Example2 · Securing AI Models & Data
A B2B SaaS company trains a churn-prediction model on customer billing records that include personally identifiable information. The security team wants engineers to develop and evaluate the model without ever handling raw PII, while preserving the statistical relationships needed for accurate training. Which approach best meets this requirement?
・Apply format-preserving tokenization to the PII fields and keep the token vault inside the restricted analytics environment
Incorrect. Tokenization hides raw values but retains a reversible mapping in the vault, so engineers in the analytics environment can still re-identify records and PII exposure is not eliminated.
・Grant the data science team time-limited read access to the production billing database during each training run
Incorrect. Granting read access to live billing data directly exposes raw PII to engineers, which is exactly the handling the requirement is meant to prevent.
・Encrypt the billing records at rest and decrypt the full dataset into memory on the training host before each run
Incorrect. Decrypting the complete dataset into memory on the training host places raw PII in front of the model developers, defeating the goal of never handling it.
✓Replace the sensitive fields with synthetic values generated to match the original distribution and correlations
Correct. Synthetic data reproduces the distributions and correlations needed for training while containing no real customer PII, so engineers can build and evaluate the model without touching sensitive records.
Explanation
Synthetic data generation preserves statistical utility for model training while removing real PII, unlike tokenization, live access, or in-memory decryption which all retain or expose the original sensitive values.
Example3 · AI in Security Operations
A B2B SaaS provider feeds authentication logs into an unsupervised anomaly-detection model that flags a finance manager logging in from a new country at 03:00. The analyst needs the most appropriate next step before raising a confirmed incident. Which action should the SOC analyst take first?
・Disable the finance manager's account company-wide and force every employee in the finance department to reset their passwords right away
Incorrect. Disabling the account and forcing a department-wide reset is a disruptive overreaction taken before the anomaly is even validated as malicious.
✓Correlate the flagged login with travel records, VPN exit nodes, and recent activity to decide whether the anomaly is a true positive
Correct. Enriching and correlating the flagged event with context (travel, VPN, recent behavior) is the right triage step to confirm whether the anomaly is a real threat.
・Immediately classify the alert as a false positive because the model is statistical and not designed to confirm security incidents
Incorrect. Dismissing the alert outright ignores the model's signal and risks missing a genuine account-takeover attempt.
・Retrain the anomaly model on the new login pattern so that future logins from that country are treated as normal baseline
Incorrect. Retraining on an unvalidated event could normalize malicious activity and poison the baseline before any investigation occurs.
Explanation
AI anomaly detectors surface candidates, not verdicts; the analyst must correlate and enrich the signal with context to confirm a true positive before acting.
Example4 · AI Governance, Risk & Compliance
A healthcare services firm is onboarding a new AI model that triages patient symptom reports and suggests urgency levels to nurses. The governance team must decide how to manage the risk before the model is approved for clinical workflows. Which approach best reflects a structured AI risk management framework applied to this system?
✓Classify the model as high-impact because incorrect triage could delay care, then require mitigations and human review proportional to that assessed risk tier
Correct. A risk framework classifies the system by potential impact (patient harm from mistriage), then scales controls and human oversight to the assessed tier before approval.
・Approve the model once it passes functional accuracy testing on the vendor's benchmark, since benchmark accuracy already proves the model is safe for patients
Incorrect. Vendor benchmark accuracy is one input but does not address context-specific clinical risk, bias, or oversight, so it cannot alone prove the system is safe.
・Defer any risk classification until the model has run in production for a quarter so that real incident data can drive the governance decision later
Incorrect. Deferring classification until after production exposes patients to unmanaged risk; risk assessment must precede deployment, not follow incidents.
・Treat the model as low-impact since nurses make the final call, so standard software change controls alone are sufficient to govern its use
Incorrect. Downstream human review reduces but does not eliminate risk, and a safety-relevant clinical model needs AI-specific governance beyond generic change control.
Explanation
Structured AI risk management assesses impact first, then applies proportionate controls and oversight before deployment, rather than relying on benchmark accuracy, post-hoc data, or generic change control.
Example5 · Secure AI Development & Deployment
A healthcare services firm builds a sepsis-prediction model using several open-source Python libraries pulled from a public package index. Security wants to prevent a malicious or tampered dependency from entering the build. Which control best addresses this supply-chain risk before the model is deployed?
・Encrypt the trained model artifact at rest in the registry and restrict download access to the clinical data science team only
Incorrect. Encryption at rest protects a stored artifact from disclosure but does nothing to detect a tampered or malicious third-party dependency entering the build pipeline.
✓Generate a software bill of materials and verify each dependency's signature and hash against a trusted internal mirror
Correct. An SBOM plus signature and hash verification against a trusted mirror detects tampered or substituted packages, directly mitigating supply-chain compromise before deployment.
・Require two data scientists to approve every pull request that modifies the model's hyperparameter configuration files
Incorrect. Peer approval of hyperparameter changes is good hygiene but does not validate the integrity or provenance of externally sourced software dependencies.
・Run the model behind an API gateway that enforces rate limiting and authentication for every inference request made
Incorrect. Gateway rate limiting and authentication protect the runtime inference endpoint, not the integrity of packages consumed during the build.
Explanation
Supply-chain security for AI requires knowing and verifying every dependency; an SBOM with signature/hash verification is the control that detects tampered or substituted components prior to deployment.
Example6 · AI Security Fundamentals & Threats
A healthcare services firm retrains its patient-triage model weekly using feedback that clinicians submit through an open web form. A security analyst notices that a small cluster of submissions consistently mislabels severe chest-pain cases as low priority, and model accuracy on that category is slowly declining. Which AI-specific threat best describes what is occurring?
✓Data poisoning, where crafted training inputs gradually corrupt the model's learned behavior
Correct. Feeding deliberately mislabeled samples into the retraining loop corrupts the model's learned decision boundary, which is the defining mechanism of a data poisoning attack.
・Model inversion, where an attacker reconstructs the firm's private training records from outputs
Incorrect. Model inversion extracts information about training data from model outputs; it does not alter labels or degrade accuracy through crafted training inputs.
・A denial-of-service flood that exhausts the triage model's inference compute capacity
Incorrect. A denial-of-service attack targets availability by exhausting compute, not the model's learned accuracy on a specific class.
・Prompt injection that overrides the triage model's original system instructions at runtime
Incorrect. Prompt injection manipulates runtime instructions of a generative model; it does not progressively shift a classifier's accuracy through training feedback.
Explanation
Malicious labeled submissions entering the retraining pipeline degrade a specific class over time, which is the hallmark of data poisoning rather than inversion, DoS, or prompt injection.
Example7 · AI Security Fundamentals & Threats
UrbanThread, an online apparel retailer, deploys an image classifier that automatically tags uploaded product photos by garment category. A competitor submits photos with imperceptible pixel-level perturbations that cause the model to confidently mislabel jackets as swimwear. Which attack best describes this activity against the deployed model?
・A data poisoning attack that corrupts the labeled training set before the classifier is ever built
Incorrect. Poisoning manipulates training data; here the attacker only submits inputs to the already-trained production model, leaving the training set untouched.
✓An evasion attack that crafts perturbed inputs to force the trained model into wrong predictions
Correct. Evasion attacks craft adversarial inputs at inference time so the deployed model produces incorrect outputs, matching the perturbed photos forcing misclassification.
・A model inversion attack that reconstructs private training images from the model's output scores
Incorrect. Model inversion aims to recover sensitive training data from outputs, not to cause a specific misclassification of attacker-supplied images.
・A supply chain attack that swaps the model binary for a backdoored version during deployment
Incorrect. A supply chain attack replaces or tampers with the model artifact or dependencies, whereas this attack simply feeds manipulated images to the running classifier.
Explanation
Perturbing inference-time inputs to force wrong predictions from an already-trained model is the defining characteristic of an evasion (adversarial example) attack.
Example8 · AI Security Fundamentals & Threats
ValeMart, a grocery retailer, retrains its product-review sentiment model weekly using scraped public reviews. Attackers flood the source sites with planted reviews that pair a rare phrase with falsely positive sentiment so future complaints containing that phrase score as satisfied. What type of threat has the attacker introduced?
・A prompt injection attack that overrides the model's system instructions at inference time
Incorrect. Prompt injection manipulates instructions given to a generative model at runtime, not the labeled data a classifier is trained on.
・A membership inference attack revealing whether a review was part of the training data
Incorrect. Membership inference tries to learn whether specific records were used in training, not to alter how the retrained model behaves.
✓A training-data poisoning attack that corrupts the dataset to bias future model behavior
Correct. Injecting crafted records into the ingested training data to skew the resulting model's behavior is a classic data poisoning attack.
・A denial-of-service attack that exhausts the retraining pipeline's compute resources
Incorrect. A denial-of-service attack targets availability by overwhelming resources, whereas this attack quietly corrupts data integrity to bias predictions.
Explanation
Planting malicious samples into the data pipeline to bias the retrained model is data poisoning, an integrity attack on the training lifecycle.
Example9 · AI Security Fundamentals & Threats
GlowCart, a cosmetics retailer, exposes a public API that returns confidence scores for its loyalty-churn model. A security analyst worries an outsider could repeatedly query the API and train a near-identical copy of the proprietary model. Which threat is the analyst describing?
✓Model extraction, where many queries are used to replicate a confidential model's functionality
Correct. Model extraction (stealing) uses repeated queries and returned scores to reconstruct a functionally equivalent copy of the confidential model.
・Label flipping, where an insider swaps class labels to degrade the model's training accuracy
Incorrect. Label flipping is a poisoning technique performed on training labels, not an external query-based replication of a deployed model.
・Backdoor insertion, where a hidden trigger is embedded so the model misbehaves on command
Incorrect. Backdoor insertion plants a hidden trigger during training; it does not describe copying a model through its query interface.
・Adversarial evasion, where perturbed inputs are crafted to bypass the model's predictions
Incorrect. Adversarial evasion forces individual wrong predictions with perturbed inputs rather than stealing the overall model behavior.
Explanation
Querying an exposed model repeatedly to rebuild an equivalent copy is model extraction, a confidentiality threat to proprietary models.
Example10 · AI Security Fundamentals & Threats
A financial services firm deploys a credit-scoring model that attackers probe by submitting many crafted loan applications to learn which input combinations flip a denial into an approval. Which AI-specific threat best describes this activity?
・A model inversion attack that reconstructs private training records belonging to prior loan applicants from the firm's dataset
Incorrect. Model inversion reconstructs training data from outputs, not crafting inputs to flip a live decision.
✓An evasion attack that perturbs input features so the deployed model misclassifies a case at inference time
Correct. Probing crafted inputs to force a wrong classification at inference time is the defining pattern of an evasion attack.
・A data poisoning attack that corrupts the labeled training data before the scoring model is retrained
Incorrect. Poisoning targets the training phase by corrupting data, not runtime inputs to an already-trained model.
・A supply-chain attack that swaps the model artifact stored in the firm's registry
Incorrect. A supply-chain attack substitutes artifacts in the pipeline, which is not what submitting crafted applications does.
Explanation
Submitting many crafted inputs to a live model to force misclassification is an evasion (adversarial example) attack occurring at inference time.
Example11 · AI Security Fundamentals & Threats
An analyst at a bank discovers that fraudulent transaction labels were silently altered in the dataset six months before the fraud-detection model's last retraining. The altered labels caused the model to treat a specific transaction pattern as legitimate. How should this incident be classified?
✓A data poisoning attack that compromised the integrity of training data prior to model retraining
Correct. Altering training labels before retraining to bias model behavior is the hallmark of a data poisoning attack.
・A prompt injection attack that manipulated the model's instructions during live scoring of transactions
Incorrect. Prompt injection targets instruction-following models at runtime, not stored training labels.
・A membership inference attack that revealed whether certain transactions were in the training set
Incorrect. Membership inference determines dataset inclusion and does not alter labels or model behavior.
・An adversarial evasion attack that perturbed transactions at inference to avoid fraud detection
Incorrect. Evasion perturbs inputs at inference; here the training data itself was corrupted beforehand.
Explanation
Corrupting labels in the training set to shape future predictions is data poisoning, a training-phase integrity attack.
Example12 · AI Security Fundamentals & Threats
A manufacturing distributor deploys an ML model that classifies incoming supplier invoices as legitimate or fraudulent. A security analyst wants to characterize a threat that does not exist in the company's traditional rule-based software. Which threat is UNIQUE to the ML-based system?
✓An attacker submits crafted invoice images with imperceptible pixel changes that cause the model to misclassify fraudulent invoices as legitimate
Correct. Adversarial examples with imperceptible perturbations that flip a model's output are a threat intrinsic to ML systems and have no equivalent in deterministic rule-based software.
・An attacker exploits a buffer overflow in the invoice upload service to execute arbitrary code on the host
Incorrect. Buffer overflows are a classic memory-safety flaw in traditional software and are not unique to ML systems.
・An attacker reuses stolen credentials to log into the finance portal and approve their own invoices
Incorrect. Credential reuse is a conventional identity attack that applies to any authenticated application, not specifically ML.
・An attacker intercepts invoice traffic over an unencrypted channel to read confidential pricing details
Incorrect. Intercepting unencrypted traffic is a traditional confidentiality failure unrelated to the learning component.
Explanation
Adversarial perturbation attacks exploit the statistical decision boundary of a model and are unique to ML; the other options are traditional software or network threats.
Example13 · AI Security Fundamentals & Threats
At a manufacturing distributor, an attacker gains write access to the labeled dataset used to retrain a demand-forecasting model, silently altering labels so the model systematically under-predicts stock for a competitor's product line. Which element of the CIA triad is MOST directly compromised by this action?
・Confidentiality, because the attacker was able to read the proprietary labeled training records before changing them
Incorrect. Reading the records is incidental; the described harm is the unauthorized modification of labels, not disclosure.
✓Integrity, because the trustworthiness of the training data and the resulting model outputs has been corrupted
Correct. Altering training labels corrupts the trustworthiness of data and model outputs, which is squarely an integrity violation.
・Availability, because the forecasting service will be taken offline once the altered labels are detected by staff
Incorrect. The service remains running; there is no described loss of availability from the label tampering itself.
・Non-repudiation, because the attacker can later deny having modified any of the stored label values
Incorrect. Non-repudiation concerns proving who did an action and is not a member of the core CIA triad being asked about.
Explanation
Tampering with training labels undermines data and output trustworthiness, the defining property of integrity.
Example14 · AI Security Fundamentals & Threats
A telecom operator runs a machine-learning model that classifies network traffic to flag fraudulent SIM-swap attempts. Attackers submit crafted call records with tiny perturbations that the model misclassifies as legitimate activity. Which category of AI threat does this scenario describe?
・A data poisoning attack that corrupts the labeled training records before the fraud model is retrained each night
Incorrect. Data poisoning alters training data, but here the attacker manipulates live inputs to an already-trained model rather than corrupting the training set.
✓An evasion attack using adversarial input perturbations crafted to fool the deployed model
Correct. Perturbing inputs at inference time to cause misclassification by a deployed model is the definition of an evasion attack.
・A model inversion attack that reconstructs private subscriber attributes from the model outputs
Incorrect. Model inversion aims to recover sensitive training data from outputs, not to force a misclassification of fraudulent traffic.
・A supply-chain attack that tampers with the model-serving container during the build pipeline
Incorrect. Supply-chain tampering compromises build or serving components, which is unrelated to crafting adversarial records at inference.
Explanation
Evasion attacks target the inference stage by perturbing inputs so a trained model produces an incorrect result, matching the SIM-swap misclassification described.
Example15 · AI Security Fundamentals & Threats
A telecom operator's recommendation model that upsells data plans is flooded with automated requests, exhausting GPU inference capacity so legitimate customers cannot receive recommendations. Which pillar of the CIA triad is primarily affected?
・Confidentiality, because the attacker may be extracting the proprietary recommendation weights during the flood of requests
Incorrect. Confidentiality concerns exposure of data or weights, but flooding to exhaust capacity does not inherently disclose the model parameters.
・Integrity, because the flood of requests silently alters the recommendation outputs returned to paying subscribers
Incorrect. Integrity concerns unauthorized modification of outputs, whereas here responses are blocked rather than altered.
✓Availability, because the resource exhaustion prevents legitimate users from obtaining model responses
Correct. Resource exhaustion that denies legitimate users access to the model is an availability impact.
・Non-repudiation, because the operator can no longer prove which subscriber submitted each recommendation request
Incorrect. Non-repudiation addresses proof of action origin and is not the primary concern when inference capacity is exhausted.
Explanation
A denial-of-service style flood that exhausts inference resources degrades availability, the CIA pillar ensuring authorized users can access the service.
▶ Try 10 free questions (graded)