Answer before reviewing
Pick the one answer that fits every condition in the scenario. Then read why each other option falls short.
No sign-up needed
20 questions, each with a clear explanation.
Question review
Try the set above first, then use this list to review. Each answer and explanation stays closed until you open it.
Correct answer: C · Apply a legal hold so the 90-day deletion skips the relevant mailboxes
Federal Rule of Civil Procedure 37(e) lets a court act when electronically stored information that should have been preserved in the anticipation or conduct of litigation is lost because a party failed to take reasonable steps to preserve it. A lawsuit is now reasonably anticipated, so the supplier messages must be kept, and the rule's 2006 committee note calls stepping into routine deletion part of a "litigation hold." Letting the retention rule run ignores that duty. Sending copies to the other side skips the legal process, which preserves first and discloses through discovery. Shortening retention would destroy more of the information the company must keep.
Look for this next time: Once litigation is reasonably anticipated, a legal hold suspends routine deletion of the relevant data.
Correct answer: A · Keep an offline, encrypted copy of critical backups and test restores
CISA's #StopRansomware Guide recommends offline, encrypted backups of critical data, tested regularly for availability and integrity, and explains that many ransomware variants try to find and delete or encrypt accessible backups. These backups failed because the attacker could reach them from the infected network, and an offline copy removes that path. More frequent backups to the same reachable server would be encrypted the same way. A second server in the same domain gives the attacker one more copy to reach. A stronger algorithm protects what the backups contain, but ransomware can still delete or re-encrypt files it can reach.
Look for this next time: Ransomware resilience needs at least one backup copy that the network cannot reach, proven by restore tests.
Correct answer: D · MITRE CAPEC, a catalog of attack patterns against known weaknesses
MITRE describes CAPEC as a publicly available catalog of common attack patterns that helps users understand how adversaries exploit weaknesses in applications and other cyber-enabled capabilities, and each pattern gives guidance on ways to mitigate the attack. That matches abuse cases for a system that exists only as a design. MITRE ATT&CK is a knowledge base of adversary tactics and techniques based on real-world observations, which suits detection work more than design. Lockheed Martin's Cyber Kill Chain describes seven steps of an intrusion. STRIDE, as Microsoft uses it, categorizes types of threats, so it organizes a threat model without cataloging attack patterns.
Look for this next time: CAPEC catalogs how attacks exploit weaknesses, which suits abuse cases at design time; ATT&CK records observed adversary behavior.
Correct answer: B · Remove its write access to bank details and require human approval of changes
The hidden text is an indirect prompt injection, an instruction that reaches the model through content it reads. OWASP's Top 10 for LLM Applications says it is unclear whether fool-proof prevention for prompt injection exists. It names excessive agency, rooted in excessive functionality, permissions, or autonomy, as what lets manipulated output cause damaging actions, and its mitigations include minimal permissions and human approval of high-impact actions. Taking away the agent's write access and adding approval stops the change even if the model is fooled. A system prompt line and a larger model both still depend on the model resisting the injection. A monthly log review finds the fraud only after money has moved.
Look for this next time: Limit what an AI agent can change and require human approval for high-impact actions, because prompts alone cannot reliably stop injected instructions.
Correct answer: D · A software bill of materials (SBOM) kept for each application
CISA describes an SBOM as a nested inventory, a list of ingredients that make up software components, and calls it a key building block in software supply chain risk management. Because the inventory is nested, it also lists libraries pulled in through other components, so the team can search its SBOMs for the affected library instead of examining 140 applications one at a time. A dynamic test probes a running application from the outside and does not produce a component list. Code signing shows who released the code and that it was not altered, not what it contains. An annual penetration test is a point-in-time assessment and cannot answer a same-day inventory question.
Look for this next time: An SBOM lists the components inside software, including nested dependencies, so a vulnerable library can be traced across applications quickly.
Correct answer: C · Attribute-based access control, with policies over user, record, and context
NIST SP 800-162, as quoted in NIST's glossary, defines attribute-based access control as a method that grants or denies requests based on attributes of the subject, attributes of the object, environment conditions, and policies written in terms of those attributes. The hospital's rule combines a user attribute (care unit), an object attribute (the restricted label), and environment conditions (device and shift), so ABAC expresses it directly. Role-based access would need a role for every unit, shift, and device combination, and roles alone do not read a record's label. Discretionary access leaves decisions to each owner. Mandatory access compares clearances with classifications and does not weigh device or time.
Look for this next time: When access depends on user, resource, and context attributes together, attribute-based access control fits better than roles.
Correct answer: A · OCSP stapling on the web servers, so status arrives in the handshake
RFC 6961 explains that the TLS certificate status extension defined in RFC 6066 is commonly called OCSP stapling: the client asks for, and the server provides, its copy of the certificate's current status during the handshake. RFC 6961 lists the benefits as fewer round trips and network delays for the client and less load on the issuer's status servers, which is this site's problem. Skipping revocation checks gives up the checking the team wants to keep. A full revocation list is the larger download that RFC 6066 says OCSP helps avoid. A wildcard certificate changes which names are covered, not how status is checked.
Look for this next time: OCSP stapling has the server deliver a current certificate status in the handshake, sparing clients a separate trip to the CA's responder.
Correct answer: B · Set per-client rate limits at the gateway and cap records per page
OWASP's API Security Top 10 calls this unrestricted resource consumption. An API is vulnerable when limits such as the number of records per page are missing, and exploitation can cause denial of service or higher operating costs. OWASP's prevention steps include limiting how often a client can interact with the API within a defined timeframe and validating on the server the parameter that controls how many records are returned. A per-client rate limit and a page-size cap do both. A higher concurrency limit lets the functions consume more and raises the bill further. TLS 1.3 protects traffic in transit but limits nothing. Weekly key rotation leaves each valid key just as unrestricted.
Look for this next time: Protect APIs from resource exhaustion with per-client rate limits and server-side caps on what one request may ask for.
Correct answer: A · The policy engine, part of the policy decision point
NIST SP 800-207 splits the policy decision point into a policy engine and a policy administrator. The policy engine is responsible for the ultimate decision to grant access, feeding enterprise policy and input from external sources such as threat intelligence into a trust algorithm that grants, denies, or revokes access. The policy enforcement point, here the gateway, enables, monitors, and terminates connections on instructions relayed by the policy administrator, so it enforces rather than decides. An identity management system supplies subject information as an input. A SIEM collects security information for later analysis and policy refinement, but it does not decide on sessions.
Look for this next time: In NIST's zero trust model, the policy engine decides, the policy administrator sets up or tears down the path, and the enforcement point carries it out.
Correct answer: C · Serve the site through a CDN or upstream DDoS mitigation
CISA's guidance on DDoS attacks, written with the FBI and MS-ISAC, explains that volume-based attacks aim to consume the target's bandwidth with a massive volume of traffic. When the link itself is full, the traffic has to be handled before it reaches the site: CISA notes that a DDoS mitigation provider can filter malicious traffic before it reaches your network, and that a CDN can absorb and distribute traffic. More IPS signatures and firewall blocks act only on traffic that has already crossed the saturated link. A larger virtual machine adds server capacity, but the bottleneck here is the link.
Look for this next time: A volumetric DDoS has to be absorbed upstream, by a CDN or mitigation service, because on-premises controls sit behind the saturated link.
Correct answer: D · Resynchronize the server's clock with the domain time source
Microsoft's documentation for the Kerberos clock tolerance policy explains that Kerberos v5 uses time stamps to prevent replay attacks, so the clocks of the client and the domain controller must stay closely in sync, and it lists 5 minutes as the default in the Default Domain Policy. An 11-minute difference is outside that tolerance, so time stamps fail until the server's clock is corrected from the domain's time source. Resetting passwords does not change a time mismatch. A longer ticket lifetime changes how long tickets last, not the allowed clock difference. The TLS certificate protects the web connection and plays no part in the Kerberos time check.
Look for this next time: Kerberos rejects time stamps outside the allowed clock difference, 5 minutes by default in Active Directory, so clock drift breaks sign-ins.
Correct answer: B · Change the DMARC policy from p=none to p=reject
RFC 7489, the DMARC specification, defines p=none as a request that receivers take no specific action and p=reject as a request that they reject email failing the DMARC check. It also defines the rua tag for aggregate reports, the evidence that now shows legitimate mail passing. Moving to p=reject turns monitoring into enforcement against messages that spoof the domain. More SPF include entries authorize more senders but do not tell receivers what to do with failures. A new DKIM key is good hygiene, yet failing mail is still delivered under p=none. S/MIME lets employees sign their own messages, but receivers still accept spoofed mail that carries no signature.
Look for this next time: DMARC p=none only monitors; once reports show legitimate mail aligns, p=reject asks receivers to block mail that fails.
Correct answer: C · Measured Boot, with remote attestation to a server
Microsoft's description of the Windows boot process says Measured Boot stores in the TPM a hash of the firmware, bootloader, boot drivers, and everything loaded before the anti-malware app. At the end of startup, a remote attestation client has the TPM sign that log and sends it to a trusted server, which can then grant access to a limited quarantine network or to the full network. Secure Boot checks the bootloader's signature and refuses untrusted code, but it does not report what loaded. TPM-protected disk encryption protects data at rest. A host firewall filters traffic and proves nothing about how the system started.
Look for this next time: Secure Boot blocks untrusted boot code; Measured Boot records what loaded so a remote server can verify it.
Correct answer: A · OVAL definitions
NIST SP 800-126 Rev. 3 describes OVAL as a language for representing system configuration information, assessing machine state, and reporting assessment results, which is what an automated check of permissions and kernel parameters does. XCCDF, which holds the benchmark, is the language for authoring checklists and reporting the results of evaluating them. OCIL represents checks that collect information from people or from existing data stores, and the stem rules out asking people. CPE is one of SCAP's identification schemes, used to name platforms. CVSS is a scoring system that rates the relative severity of a weakness.
Look for this next time: In SCAP, XCCDF holds the checklist, OVAL tests machine state, OCIL asks people, CPE names platforms, and CVSS scores severity.
Correct answer: B · Start moving key establishment to ML-KEM, NIST's FIPS 203
A quantum-readiness factsheet from CISA, NSA, and NIST warns that threat actors could target data with a long secrecy lifetime today, in a harvest now, decrypt later operation, and that products relying on public key algorithms such as RSA and ECDH will need to be updated. NIST's FIPS 203 specifies ML-KEM, which NIST calls the primary standard for general encryption, and NIST encourages administrators to begin transitioning as soon as possible. Moving key establishment to ML-KEM protects traffic recorded from then on. RSA is one of the algorithms the factsheet says needs replacing, so a larger RSA key does not help. New certificates leave the key exchange unchanged. Forward secrecy does not help when ECDH itself is the algorithm at risk.
Look for this next time: Data that must stay secret for decades needs quantum-resistant key establishment such as ML-KEM, because recorded traffic can be decrypted later.
Correct answer: D · Run a cryptographic erase of each drive's encryption keys
NIST SP 800-88 Rev. 2 describes cryptographic erase as a purge technique based on sanitizing the keys used to encrypt the data, which can be done with high assurance much faster than other techniques. For federal agencies, NIST ties that assurance to self-encrypting drives validated to the current FIPS 140 standard, which these drives are. That fits the deadline and leaves the drives reusable. Deleting files or partitions removes pointers to the data rather than the data itself, so neither purges the drives. NIST says degaussing should not be used on non-magnetic media such as SSDs, and it can make some media unusable, which the lease forbids.
Look for this next time: Cryptographic erase sanitizes self-encrypting drives by destroying their keys, which is fast and leaves the drives reusable.
Correct answer: B · Monitor each log source's status and alert when one goes quiet
NIST SP 800-92, NIST's guide to computer security log management, tells administrators to monitor the logging status of all log sources to ensure that each source is enabled, configured properly, and functioning as expected. An alert for a source that stops reporting would have exposed the silence within hours instead of 19 days. Longer retention keeps more of the logs that arrive but does nothing about logs that never arrive. More correlation rules and a lower severity threshold both act on events the SIEM receives, so a silent firewall still triggers nothing.
Look for this next time: A SIEM needs an alert for log sources that go quiet, because detection rules cannot fire on logs that never arrive.
Correct answer: D · Open the file once and check permissions on that open handle
MITRE's CWE-367 describes this time-of-check, time-of-use race: the product checks the state of a resource before using it, but the state can change between the check and the use. CWE-367 says that shrinking the time between check and use will not fix the problem, and it treats atomic operations as the real fix. Opening the file once and checking the handle that will be read ties the check to the same object, so swapping the path afterward changes nothing. A delay widens the window instead of closing it. A second check still leaves a gap before the open. Logging records misuse but does not prevent it.
Look for this next time: Fix a TOCTOU race by making the check and the use act on the same object, not by changing the timing.
Correct answer: A · A Sigma rule written in YAML
SigmaHQ's documentation describes Sigma rules as YAML files that hold the information needed to detect malicious behavior in log files, usually within a SIEM, and it shows a rule being converted into a SIEM query language with the sigma-cli tool. That fits a log-based detection shared across different SIEMs. YARA describes malware families through textual or binary patterns, so it suits files rather than process-creation logs. Snort is an intrusion prevention system whose rules analyze network traffic. STIX is a language and serialization format for exchanging threat intelligence, and a list of hashes is not a behavioral detection for logs.
Look for this next time: Sigma shares log-based detections across SIEMs; YARA matches files, and Snort inspects network traffic.
Correct answer: C · A capture of memory and running processes
RFC 3227, the IETF's guidelines for evidence collection, says to proceed from the volatile to the less volatile. Its example order starts with registers and cache, then the routing table, ARP cache, process table, kernel statistics, and memory, then temporary file systems, disk, remote logging data, and physical configuration. Memory and running processes vanish when the server is powered off, so they come before the disk image, which survives shutdown. Logs already held on a central server are not lost when this server goes down. Photographs of the physical setup capture the least volatile layer and can wait.
Look for this next time: Collect evidence from most to least volatile: memory and running state before disk, and disk before remote logs and physical setup.
Use the sample well
A short set can show you what deserves another look. A strong run shows you can read an enterprise security scenario and pick the design, control, or response a senior security engineer would defend. Twenty questions are a small sample, and CompTIA reports the real exam as pass or fail only, so this result does not predict a pass.
Pick the one answer that fits every condition in the scenario. Then read why each other option falls short.
Confirm why the best option fits, even when you were right.
Use recurring misses—not one score—to choose your next focus.
Full CompTIA SecurityX prep
Want more than 20 questions?
At launch: 1,600 exam-style CompTIA SecurityX questions and 550 flashcards, practiced one domain at a time.
Explore Full CompTIA SecurityX PrepFree CompTIA SecurityX resources
Open the exam overview, build a study plan, or browse the CompTIA SecurityX guides.
Review the exam format, official sources, and preparation options.
Open exam hub →Practical planning aidTurn the time you have into a clear study rhythm.
Build my outline →Source-backed answersGo straight to the question already on your mind.
Browse guides →