Asset management, vulnerability management, and monitoring and alerting

10 free practice questions for the CompTIA® Security+® (SY0-801) exam, from the operations domain. Pick an answer, then open the explanation to check it.

Every question is original and written for Gapwise with AI. Two separate AI reviewers answered each one without seeing the answer key and checked it against the cited public sources. These are not real exam questions.

Question 1

At a retail company, the firewall, virtual private network (VPN) gateway, and domain controllers each keep their logs only on the device. An attacker signed in through the VPN and then added a user to a privileged group. Each device logged its own step, but no analyst linked the two entries. Which change would BEST close this gap?
  1. A. Raise the maximum local log size on the firewall, VPN gateway, and domain controllers
  2. B. Rotate each device's logs every day and compress the rotated files to save space
  3. C. Collect the logs centrally in a security information and event management (SIEM) tool
  4. D. Schedule a weekly vulnerability scan of the firewall, VPN gateway, and domain controllers
Show the answer and explanation

Answer: C. Collect the logs centrally in a security information and event management (SIEM) tool

Log aggregation gathers records from many sources in one place, and a SIEM adds analysis on top. NIST SP 800-92 describes a SIEM server that analyzes data from all log sources, correlates events among the entries, and prioritizes significant events. Larger or rotated local logs, and vulnerability scans, still leave the evidence split across devices. Memory hook: aggregate, then correlate.

Why each option is right or wrong

  • A. Incorrect. Larger logs keep more history, but the entries still sit on separate devices. Nobody would see the VPN sign-in next to the group change.
  • B. Incorrect. Rotation and compression manage file size and storage. They don't bring entries from different devices together or analyze them.
  • C. Correct. A SIEM analyzes data from all log sources, correlates events among the entries, and prioritizes significant events. Linking the VPN sign-in to the group change is exactly the cross-source correlation that per-device logs lack.
  • D. Incorrect. A scan looks for weaknesses on the devices. It doesn't analyze the activity recorded in their logs, so it can't link the sign-in to the privilege change.

References

Question 2 Multiple answers

A team is writing logging requirements for a custom web application. The goal is to detect brute-force password guessing and users who gain rights they were never granted. Which two kinds of application log entries MOST directly support this goal? (Select two.)
  1. A. Application startup and shutdown times
  2. B. Successful and failed authentication attempts
  3. C. Transaction sizes, such as the sizes of uploaded files
  4. D. Page response times for each request
  5. E. Account privilege assignments and use of privileges
Show the answer and explanation

Answers: B. Successful and failed authentication attempts; E. Account privilege assignments and use of privileges

Application monitoring depends on what the application logs. NIST SP 800-92 groups authentication attempts, account changes, and use of privileges as account information. It notes that this data can identify brute-force password guessing and escalation of privileges. Operational actions, usage data, and performance metrics serve other monitoring goals.

Why each option is right or wrong

  • A. Incorrect. Startup and shutdown are significant operational actions. They help spot failures or compromises but don't reveal password guessing or privilege changes.
  • B. Correct. Many failed attempts, often followed by a success, are the classic sign of password guessing. NIST SP 800-92 lists authentication attempts as account information that applications commonly log.
  • C. Incorrect. Transaction sizes are usage information, useful for spotting unusual data transfers. They don't show authentication or privilege changes.
  • D. Incorrect. Response times are performance data. They help with capacity and availability, not with these two attack types.
  • E. Correct. Records of privilege assignment and use show when an account gains or exercises rights. They are how escalation of privileges is spotted.

Reference

Question 3

The chief information security officer (CISO) asks for a quarterly report showing whether the organization's vulnerability exposure is improving or getting worse. The team runs vulnerability scans every month. What should the report be built on?
  1. A. The critical findings from the latest monthly scan only
  2. B. The unedited raw output from every scan in the quarter
  3. C. A single penetration test at the end of the quarter
  4. D. A comparison of findings across the monthly scans
Show the answer and explanation

Answer: D. A comparison of findings across the monthly scans

Reporting turns monitoring data into decisions, so its form should fit the question being asked. A question about direction needs a comparison across many scans, not one snapshot. NIST SP 800-53 RA-5(6) notes that analyzing multiple vulnerability scans over time can help determine trends in system vulnerabilities and identify patterns of attack. Memory hook: snapshots show state; trends show direction.

Why each option is right or wrong

  • A. Incorrect. One scan is a snapshot. It can't show whether exposure is rising or falling.
  • B. Incorrect. Raw output buries the answer in detail. Results must be analyzed and summarized for the audience.
  • C. Incorrect. A penetration test shows exploitable paths at one point in time. It doesn't measure change across the quarter.
  • D. Correct. Comparing results across multiple scans reveals trends, which answers the improving-or-worsening question directly. NIST SP 800-53 RA-5(6) calls for comparing the results of multiple scans with automated mechanisms.

Reference

Question 4

A former contractor wrote the payment-reconciliation module of an in-house web application. Managers fear the contractor planted logic that will grant an unlisted account administrator rights, but only after a date several months away. Which identification method is MOST likely to find this before it activates?
  1. A. A credentialed vulnerability scan of the application servers
  2. B. A black-box penetration test of the running application
  3. C. A manual security review of the application's source code
  4. D. A review of the web server's access logs for odd logins
Show the answer and explanation

Answer: C. A manual security review of the application's source code

A time bomb or hidden backdoor sits in the source long before it runs, so reading the code is the most reliable way to catch it early. The OWASP Web Security Testing Guide lists backdoors, time bombs, and logic bombs among the issues particularly suited to source code review. Scanners look for known flaws, and black-box testing and log review only see behavior. Memory hook: dormant logic shows up in the code, not in the traffic.

Why each option is right or wrong

  • A. Incorrect. Scanners match hosts and software against known vulnerabilities and misconfigurations. Custom malicious logic written for one application has no signature for a scanner to find.
  • B. Incorrect. Black-box testers see only behavior, and this logic behaves normally until its trigger date. Testing the running application now won't expose it.
  • C. Correct. A reviewer reading the code can spot a hidden account and a date check before they ever run. OWASP lists backdoors, time bombs, and logic bombs among the issues suited to source code review.
  • D. Incorrect. Logs record activity, and the hidden account hasn't been used yet. Log review could detect the backdoor after it activates, not before.

Reference

Question 5

A company's weekly vulnerability scan logs in to each server with an administrative account. This morning's scan ran normally and listed dozens of known findings. It did not report a critical library flaw published two days ago, though every server runs an affected version. What is the MOST likely reason?
  1. A. Scans that log in check only configuration settings, not missing patches
  2. B. The scanner's vulnerability database had no check yet for the new flaw
  3. C. A shared-library flaw is a surface vulnerability, which scanners can't detect
  4. D. Scanners test only active systems, and the library wasn't loaded in memory
Show the answer and explanation

Answer: B. The scanner's vulnerability database had no check yet for the new flaw

Vulnerability scanners compare what they find against a database of known-vulnerability signatures, so they can't report a flaw they have no check for. NIST advises installing the latest database updates before running a scan. SP 800-53 RA-5(2) calls for updating the vulnerabilities to be scanned when new ones are reported. The credentials and the hosts were not the problem.

Why each option is right or wrong

  • A. Incorrect. Logging in gives the scanner more detail, not less. It can read installed software versions and patch levels directly from each host.
  • B. Correct. Scanners match hosts against a repository of known-vulnerability signatures. Until that repository gains a check for a new flaw, the scanner can't report it.
  • C. Incorrect. NIST describes scanners as a fast, easy way to measure exposure to surface vulnerabilities. Those are exactly what they detect.
  • D. Incorrect. An active system means a host that is up on the network. A scan that logs in reads installed versions whether or not a library is loaded.

References

Question 6

A water utility needs a replacement interface card for an older router on its control network. The manufacturer no longer makes the card, and none of its authorized distributors or resellers has one. A secondary-market broker that the utility has never used can ship one tomorrow. According to NIST SP 800-161r1, what should the utility do before it buys from this broker?
  1. A. Assess the risk first, including the broker's history of counterfeits
  2. B. Confirm that the card's part number and label match the manufacturer's catalog
  3. C. Obtain the broker's signed statement that the card is new and has never been used
  4. D. Plan to record the card's serial number in the asset inventory once it arrives
Show the answer and explanation

Answer: A. Assess the risk first, including the broker's history of counterfeits

Supply chain guidance ranks sources: the original manufacturer first, then authorized distributors, then authorized resellers. When only a non-authorized or secondary-market source remains, NIST SP 800-161r1 says to perform a risk assessment first, revisiting criticality and threats and checking the source for a history of counterfeits. Labels and seller promises are easy to fake, and an inventory record doesn't make a part genuine. A card for a router on a control network raises the stakes of getting this wrong.

Why each option is right or wrong

  • A. Correct. SP 800-161r1 says that if the only alternative is a non-authorized distributor or the secondary market, a risk assessment should be performed. Its example is checking the supply source for a history of counterfeits, inappropriate practices, or a criminal record.
  • B. Incorrect. Counterfeit and tampered parts are commonly sold with copied markings and part numbers, so a match proves little. It also skips the assessment of the source and of the component's criticality that the guidance calls for.
  • C. Incorrect. An attestation from an unvetted seller is only as trustworthy as that seller. It says nothing about the broker's track record, which is what the risk assessment is meant to examine.
  • D. Incorrect. Recording the card supports accountability after receipt, but it does nothing to reduce the chance of buying a counterfeit or tampered component. The risk decision has to come before the purchase.

Reference

Question 7

Before a release, an in-house team manually reviews a web application's source code in its repository and closes every security finding. A month later, a tester bypasses a role check on a production page. The repository version of that page enforces the check, but production runs a build that an engineer compiled from an unreviewed local branch. What should the team change to prevent a repeat?
  1. A. Control deployments so that only builds made from reviewed code can reach production
  2. B. Repeat the manual review of the repository every week instead of before each release
  3. C. Add a static analysis tool that scans the repository on every commit
  4. D. Have the next review focus mainly on access control code in the repository
Show the answer and explanation

Answer: A. Control deployments so that only builds made from reviewed code can reach production

A source code review's results apply only to the code that was reviewed. The OWASP Web Security Testing Guide lists 'the source code actually deployed might differ from the one being analyzed' as a disadvantage of source code review and says operational procedures need review as well. Here the review was sound, but an unreviewed build reached production. Controlling which builds can be deployed links the review to what runs; more reviews or tools aimed at the repository would never see the local branch.

Why each option is right or wrong

  • A. Correct. The OWASP testing guide warns that the source code being deployed might not be the same as the code analyzed, so operational procedures need review as well. Tying deployment to reviewed builds makes the review's results apply to what actually runs.
  • B. Incorrect. More frequent reviews still examine the repository, not the local branch that went live. The gap was between reviewed and deployed code, and review frequency doesn't close it.
  • C. Incorrect. A tool triggered by commits sees only code that reaches the repository. A build compiled from a local branch bypasses it just as it bypassed the manual review.
  • D. Incorrect. The reviewed page already enforced the role check correctly. Access control problems are among the issues source code review finds well, so the failure came from deploying different code, not from a weak review.

Reference

Question 8 Multiple answers

A utility must keep its firewall logs for 12 years. Today it writes them, in the firewall vendor's proprietary binary format, to tape cartridges rated to last seven years. Which two actions would BEST ensure the archived logs can still be read when the retention period ends? (Select two.)
  1. A. Keep a second copy of the logs in a standard, documented format
  2. B. Calculate and securely store a message digest for each archived log file
  3. C. Encrypt each tape with a key that the security team holds
  4. D. Plan to copy the archives to newer media before the tapes are expected to fail
  5. E. Compress the logs into a space-saving archive format before writing them to tape
Show the answer and explanation

Answers: A. Keep a second copy of the logs in a standard, documented format; D. Plan to copy the archives to newer media before the tapes are expected to fail

Long-term archives face two readability risks: the format and the media. NIST SP 800-92 notes that proprietary logs can be hard to read years later, and that data on media with a shorter life than the retention period should be moved to new media. NIST SP 800-53 AU-11(1) lists converting records to newer formats and keeping equipment that can read them. Integrity and confidentiality controls matter, but they don't keep a log readable.

Why each option is right or wrong

  • A. Correct. A proprietary log may be unreadable years later if the software that made it is gone or no longer supports the format. A standard-format copy keeps the data usable, and keeping both preserves any extra detail.
  • B. Incorrect. A digest shows whether a file has changed. It doesn't help anyone read a file whose format or media can no longer be used.
  • C. Incorrect. Encryption protects confidentiality. It adds a key that must also survive 12 years and does nothing about format or media life.
  • D. Correct. Media rated for seven years can't be trusted to hold data for twelve. Transferring the data to new media before then keeps it retrievable.
  • E. Incorrect. Compression saves space but wraps the same proprietary data in another format that must also stay readable. It does nothing about media life.

References

Question 9

An intruder with administrator rights on a Windows file server cleared its Security event log with a built-in command before leaving. The server sends its events to the central log collector once a night in a single batch, so that night's batch held almost nothing. Which change would BEST preserve this kind of evidence next time?
  1. A. Increase the maximum size of the server's local Security event log
  2. B. Tighten the file permissions on the server's local event log files
  3. C. Encrypt the local event log files with a key stored on the server
  4. D. Stream events to the central collector as they are generated
Show the answer and explanation

Answer: D. Stream events to the central collector as they are generated

Attackers with administrator rights often clear Windows event logs to hide their activity. MITRE ATT&CK recommends automatically forwarding events to a log server or repository and minimizing the delay, so evidence doesn't sit on the local system. Guidance from the Australian Signals Directorate's Australian Cyber Security Centre (ASD's ACSC) likewise says central logs matter when attackers modify or delete event logs. Local hardening slows weaker attackers, but only off-host copies survive an administrator.

Why each option is right or wrong

  • A. Incorrect. A larger log holds more events but is cleared just as easily. Size matters only when old entries are being overwritten.
  • B. Incorrect. Strict permissions stop unprivileged users. An administrator can change them or clear the log through normal tools.
  • C. Incorrect. Clearing a log needs no key, and an administrator can reach a key stored on the same server. Encryption hides content; it doesn't preserve it.
  • D. Correct. Events that leave the host as they happen are out of reach before the intruder clears the local log. Shorter delays shrink the window in which local copies can be destroyed.

References

Question 10

A retailer's public bug bounty policy lists two in-scope targets: its storefront and its mobile API. A participant also probed the retailer's supplier portal and reported a flaw there. The participant says the security.txt file on the retailer's website made any of its systems fair game for testing. Which statement is accurate under RFC 9116?
  1. A. Publishing the file authorizes good-faith testing of every host under the domain where it appears
  2. B. The file grants no testing permission; the bounty policy defines which systems participants may test
  3. C. The file grants no testing permission, and a published policy can't either; only a signed contract can
  4. D. The file authorizes testing until the date in its Expires field, after which the bounty policy applies
Show the answer and explanation

Answer: B. The file grants no testing permission; the bounty policy defines which systems participants may test

RFC 9116 warns that the presence or absence of security.txt doesn't grant or deny permission for security testing. Any such permission comes from the organization's vulnerability disclosure policy, which the file's Policy field can link to. In a bounty program, that published policy sets the scope and the rules of engagement, as NIST SP 800-216 describes. A target the policy doesn't list is out of scope, whatever the security.txt file contains.

Why each option is right or wrong

  • A. Incorrect. RFC 9116 Sec. 5.5 says researchers shouldn't assume that the presence or absence of a security.txt file grants or denies permission for security testing.
  • B. Correct. RFC 9116 says any permission to test may be indicated in the organization's vulnerability disclosure policy. Here that policy names only the storefront and the mobile API, so the supplier portal was out of scope.
  • C. Incorrect. RFC 9116 says permission may be indicated in the disclosure policy, and NIST SP 800-216 says the public policy describes rules of engagement for probing systems. A published policy can authorize testing.
  • D. Incorrect. Expires marks when the file's contents become stale and shouldn't be used. It says nothing about permission to test.

References