Free practice test

Free CompTIA CySA+ (CS0-004) Practice Test

25 original practice questions with answers and explanations, including 3 performance-based style items. Work through each one, then open the answer to check your reasoning. No signup needed.

Written for exam objectives version 2.0 · Last reviewed

How the real CS0-004 exam is built

Maximum of 85 in 165 minutes; passing score 750 (on a scale of 100–900). Domains and weights: Security Operations (34%), Vulnerability Management (26%), Incident Response and Management (24%), Reporting and Communication (16%). Confirm current details on comptia.org.

  1. Question 1 of 25Multiple choiceDomain 1: Security Operations

    An analyst is building an attack timeline from firewall, domain controller and web server logs collected in the SIEM. The same events appear several minutes apart on different devices, so the order of events cannot be trusted. Which change best fixes this for future investigations?

    • A.Increase the SIEM log retention period
    • B.Configure every device to synchronize time with a common NTP source
    • C.Enable verbose debug logging on each device
    • D.Forward all logs to the SIEM over syslog with TLS
    Show answer and explanation

    Correct answer: B

    Correlating events across sources only works when their clocks agree, so all devices should sync to the same authoritative NTP source (and ideally log in UTC). Longer retention keeps more data but does not correct timestamps. Verbose logging adds volume, not accuracy. Syslog over TLS protects logs in transit but forwards the same drifting timestamps.

    Objective 1.1 · CompTIA CySA+ CS0-004 exam objectives

  2. Question 2 of 25Multiple choiceDomain 1: Security Operations

    A company with a mostly remote workforce wants secure web gateway, CASB, zero trust network access and firewall-as-a-service delivered as one cloud service, with policy enforced close to each user instead of backhauling traffic to headquarters. Which architecture fits best?

    • A.A larger VPN concentrator at headquarters
    • B.Network access control (NAC) on the office switches
    • C.SD-WAN between branch offices
    • D.Secure access service edge (SASE)
    Show answer and explanation

    Correct answer: D

    SASE converges networking and security functions such as SWG, CASB, ZTNA and FWaaS into a cloud-delivered service enforced at the edge near the user. A bigger VPN concentrator still backhauls traffic to headquarters. NAC controls devices joining the office LAN, which remote users rarely touch. SD-WAN optimizes connectivity between sites but does not by itself provide those security services.

    Objective 1.1 · CompTIA CySA+ CS0-004 exam objectives

  3. Question 3 of 25Multiple choiceDomain 1: Security Operations

    Proxy logs show a workstation sending an HTTPS request to a newly registered domain every 60 seconds, around the clock, including nights when nobody is logged on. Each request and response is small and almost the same size. What does this pattern most likely indicate?

    • A.Command-and-control beaconing
    • B.Bulk data exfiltration
    • C.A horizontal port scan
    • D.Normal operating system update checks
    Show answer and explanation

    Correct answer: A

    Regular, fixed-interval connections of small, uniform size to an unfamiliar domain, continuing with no user present, are the classic signature of malware beaconing to its C2 server. Bulk exfiltration would show large outbound transfers, not tiny uniform requests. A port scan touches many hosts or ports, not one domain. Legitimate update checks go to well-known vendor domains, not a newly registered one, and rarely run every minute.

    Objective 1.2 · CompTIA CySA+ CS0-004 exam objectives

  4. Question 4 of 25Multiple choiceDomain 1: Security Operations

    Domain controller logs show a single internal host trying the same two passwords against 400 different user accounts, with no more than two attempts per account in any hour. Which attack is this?

    • A.Brute-force attack
    • B.Credential stuffing
    • C.Password spraying
    • D.Pass-the-hash
    Show answer and explanation

    Correct answer: C

    Password spraying tries a few common passwords across many accounts, keeping the attempts per account low to stay under lockout thresholds. A brute-force attack tries many passwords against one account. Credential stuffing replays username and password pairs leaked from other breaches, so each account gets its own password. Pass-the-hash reuses a captured NTLM hash rather than guessing passwords.

    Objective 1.2 · CompTIA CySA+ CS0-004 exam objectives

  5. Question 5 of 25Multiple choiceDomain 1: Security Operations

    An analyst has a suspicious attachment whose hash is not known to any reputation service. They need to see what it actually does when run: files written, registry changes and network connections. What is the best next step?

    • A.Run strings against the file and close the ticket if no URLs appear
    • B.Open it on the analyst’s own workstation with antivirus enabled
    • C.Scan the mail server with a vulnerability scanner
    • D.Detonate it in an isolated sandbox and review the behavior report
    Show answer and explanation

    Correct answer: D

    Dynamic analysis in an isolated sandbox runs the sample safely and records its process, file, registry and network activity. Strings is static analysis; packed or obfuscated malware often hides its indicators, so finding nothing proves nothing. Running it on a production workstation risks infection. A vulnerability scan of the mail server says nothing about the attachment.

    Objective 1.3 · CompTIA CySA+ CS0-004 exam objectives

  6. Question 6 of 25Select 2Domain 1: Security Operations

    A network sensor saved a packet capture (.pcap) from the time of a suspected intrusion. Which TWO tools can the analyst use to read and filter the packets in that capture file?

    • A.Nessus
    • B.Wireshark
    • C.tcpdump
    • D.John the Ripper
    • E.Nikto
    Show answer and explanation

    Correct answers: B, C

    Wireshark opens pcap files with a graphical protocol decoder and display filters. tcpdump reads a saved capture with -r and applies filter expressions from the command line. Nessus is a vulnerability scanner, John the Ripper is a password cracker, and Nikto scans web servers; none of them analyze packet captures.

    Objective 1.3 · CompTIA CySA+ CS0-004 exam objectives

  7. Question 7 of 25Multiple choiceDomain 1: Security Operations

    After reading an intelligence report, a team suspects that an adversary is using scheduled tasks for persistence in their environment. With no alert having fired, they search EDR telemetry for scheduled tasks created by unusual parent processes. What activity is this?

    • A.Hypothesis-driven threat hunting
    • B.Signature-based intrusion detection
    • C.Credentialed vulnerability scanning
    • D.Penetration testing
    Show answer and explanation

    Correct answer: A

    Threat hunting is proactive: analysts form a hypothesis, often from threat intelligence, and search their data for evidence of it before any alert exists. Signature-based detection reacts automatically to known patterns. A vulnerability scan looks for weaknesses, not attacker activity. A penetration test simulates an attack rather than searching for a real one.

    Objective 1.4 · CompTIA CySA+ CS0-004 exam objectives

  8. Question 8 of 25Multiple choiceDomain 1: Security Operations

    SOC analysts spend about 20 minutes on each reported phishing email: pulling out URLs and attachments, checking them against reputation sources, and blocking the sender. Alert volume is rising. What most improves efficiency without lowering detection coverage?

    • A.Raise the SIEM alert threshold so fewer phishing reports are created
    • B.Disable the user-reported phishing button
    • C.Build a SOAR playbook that automates enrichment and the blocking steps
    • D.Deploy a second SIEM to split the alert load
    Show answer and explanation

    Correct answer: C

    The work is repetitive and rule-based, which suits SOAR automation: a playbook can extract indicators, query reputation sources and block the sender, leaving analysts to review the result. Raising thresholds or removing the report button cuts workload by hiding real threats. A second SIEM adds cost and complexity without removing any manual steps.

    Objective 1.5 · CompTIA CySA+ CS0-004 exam objectives

  9. Question 9 of 25Multiple choiceDomain 1: Security Operations

    A SOC uses a large language model assistant to summarize alerts. In one summary it states that an IP address belongs to a named APT group, but no threat intelligence source or log contains that link. Which AI risk does this show?

    • A.Prompt injection
    • B.Hallucination
    • C.Model inversion
    • D.Training data poisoning
    Show answer and explanation

    Correct answer: B

    A hallucination is a confident, plausible statement the model produced with no grounding in its inputs, which is why AI output needs human validation before anyone acts on it. Prompt injection requires instructions hidden in the input that hijack the model. Model inversion queries a model to reconstruct sensitive information from its training data. Poisoning corrupts training data; nothing in the scenario points to tampered training data.

    Objective 1.6 · CompTIA CySA+ CS0-004 exam objectives

  10. Question 10 of 25Multiple choiceDomain 2: Vulnerability Management

    A network-based vulnerability scan of Windows servers reports only a few findings, all on listening services. The team knows several OS patches are missing that the scan did not report. Which change gives the most accurate view of missing patches and local configuration?

    • A.Run a credentialed scan using a dedicated scan account
    • B.Scan the servers from the internet instead of the internal network
    • C.Switch to a passive scan of network traffic
    • D.Scan all 65,535 TCP ports instead of the default list
    Show answer and explanation

    Correct answer: A

    A credentialed scan logs on to each host and reads installed software, patch levels, registry settings and local configuration, finding what an unauthenticated scan cannot see. An external scan sees even less. Passive scanning only infers versions from observed traffic. Scanning more ports finds more listening services but still cannot read the patch state inside the OS.

    Objective 2.1 · CompTIA CySA+ CS0-004 exam objectives

  11. Question 11 of 25Multiple choiceDomain 2: Vulnerability Management

    A scanner flags a critical OpenSSH CVE on an enterprise Linux server because the service banner shows an old version number. The distribution vendor backports security fixes without changing the version string, and the package changelog confirms this CVE is fixed in the installed package. How should the finding be classified?

    • A.True positive
    • B.False positive
    • C.False negative
    • D.True negative
    Show answer and explanation

    Correct answer: B

    The scanner reported a vulnerability that is not actually present, which is a false positive. Banner-based detection often misses vendor backports. A true positive would mean the flaw really exists. A false negative is a real vulnerability the scanner missed, and a true negative is a correct "not vulnerable" result. Record the evidence when suppressing the finding so the decision can be audited.

    Objective 2.2 · CompTIA CySA+ CS0-004 exam objectives

  12. Question 12 of 25Multiple choiceDomain 2: Vulnerability Management

    Which vulnerability should be remediated first? (1) CVSS 9.8 on a lab server with no network connection. (2) CVSS 8.1 on an internal file server that needs local access to exploit. (3) CVSS 6.5 on a printer VLAN with no sensitive data. (4) CVSS 7.5 on the internet-facing VPN appliance, listed in CISA’s Known Exploited Vulnerabilities catalog.

    • A.The 9.8 on the disconnected lab server, because it has the highest base score
    • B.The 8.1 on the internal file server
    • C.The 6.5 on the printer VLAN
    • D.The 7.5 on the internet-facing VPN appliance
    Show answer and explanation

    Correct answer: D

    Prioritization weighs the base score against exposure, exploitability and asset value. A KEV listing means attackers are exploiting the flaw in the wild, and the VPN appliance is reachable from the internet, so it carries the most real risk. The 9.8 has the highest base score, but with no network connection it is hard to reach. The 8.1 needs local access, and the 6.5 sits on a low-value segment.

    Objective 2.3 · CISA Known Exploited Vulnerabilities Catalog

  13. Question 13 of 25Multiple choiceDomain 2: Vulnerability Management

    A hospital imaging device runs an unsupported operating system with known vulnerabilities. The manufacturer will not patch it, and it must stay in clinical use for two more years. What is the best mitigation?

    • A.Install an unofficial third-party patch for the operating system
    • B.Remove the device from the vulnerability scan scope so it stops raising findings
    • C.Isolate it on a segmented network with strict ACLs allowing only required traffic
    • D.Leave it on the main clinical network and rely on its built-in antivirus
    Show answer and explanation

    Correct answer: C

    When a vulnerability cannot be patched, a compensating control such as network segmentation reduces the attack surface by limiting who can reach the device. Unofficial patches can break a regulated medical device and void vendor support. Excluding it from scanning hides the risk instead of reducing it. Antivirus on an unsupported OS on a flat network leaves the exposure largely unchanged.

    Objective 2.3 · NIST SP 800-40 Rev. 4 Guide to Enterprise Patch Management Planning

  14. Question 14 of 25Performance-based: matchDomain 2: Vulnerability Management

    Match each action to the risk response it represents. Each choice may be used once, more than once, or not at all.

    Choices (each may be used once, more than once, or not at all)

    • Accept
    • Avoid
    • Mitigate
    • Transfer

    Match these

    • 1.Buy cyber insurance to cover losses from a breach of the customer portal
    • 2.Uninstall a legacy file-transfer service that nobody uses any more
    • 3.Put a vulnerable web app behind a WAF and restrict access to it with network segmentation
    • 4.The risk owner decides existing controls are enough for a low-impact finding and signs off on taking no further action
    Show answer and explanation
    • 1. Buy cyber insurance to cover losses from a breach of the customer portal → Transfer
    • 2. Uninstall a legacy file-transfer service that nobody uses any more → Avoid
    • 3. Put a vulnerable web app behind a WAF and restrict access to it with network segmentation → Mitigate
    • 4. The risk owner decides existing controls are enough for a low-impact finding and signs off on taking no further action → Accept

    Transferring shares the consequences with another party, as insurance does. Avoiding removes the risk entirely by removing the vulnerable software or activity. Mitigating reduces likelihood or impact with additional controls such as a WAF and segmentation. Accepting is a documented decision by the risk owner to tolerate the risk as it is.

    Objective 2.4 · NIST SP 800-40 Rev. 4 Guide to Enterprise Patch Management Planning

  15. Question 15 of 25Multiple choiceDomain 2: Vulnerability Management

    Policy requires critical vulnerabilities to be fixed within 15 days. A critical flaw affects a revenue-critical application, and the vendor fix needs an upgrade that cannot be completed for 60 days. What is the correct process?

    • A.Raise a formal exception approved by the risk owner, with compensating controls and an expiration date
    • B.Mark the finding as a false positive until the upgrade is done
    • C.Remove the application server from the scan schedule for 60 days
    • D.Quietly extend the deadline in the ticketing system without approval
    Show answer and explanation

    Correct answer: A

    When a remediation SLA cannot be met, a documented exception lets the accountable risk owner accept the residual risk for a defined period, with compensating controls in place and a date to revisit it. Calling a real flaw a false positive is inaccurate and misleads reporting. Removing the host from scans or extending the deadline without approval hides the risk and bypasses governance.

    Objective 2.4 · CompTIA CySA+ CS0-004 exam objectives

  16. Question 16 of 25Performance-based: matchDomain 3: Incident Response and Management

    Match each attacker action to its phase in the Lockheed Martin Cyber Kill Chain. Each choice may be used once, more than once, or not at all.

    Choices (each may be used once, more than once, or not at all)

    • Reconnaissance
    • Weaponization
    • Delivery
    • Exploitation
    • Installation
    • Command and control
    • Actions on objectives

    Match these

    • 1.Collects employee names and email formats from the company website and social media
    • 2.Embeds a malicious macro and payload in an invoice document
    • 3.Emails the invoice to the accounts-payable team
    • 4.Plants a backdoor that runs every time the workstation boots
    • 5.Copies the finance database to an attacker-controlled cloud storage account
    Show answer and explanation
    • 1. Collects employee names and email formats from the company website and social media → Reconnaissance
    • 2. Embeds a malicious macro and payload in an invoice document → Weaponization
    • 3. Emails the invoice to the accounts-payable team → Delivery
    • 4. Plants a backdoor that runs every time the workstation boots → Installation
    • 5. Copies the finance database to an attacker-controlled cloud storage account → Actions on objectives

    Reconnaissance gathers target information. Weaponization pairs an exploit or payload with a delivery vehicle, and delivery sends it to the target. Exploitation triggers the code, installation establishes persistence such as a startup backdoor, command and control opens a remote channel, and actions on objectives is the attacker’s goal, here data theft. Exploitation and command and control were not described.

    Objective 3.1 · CompTIA CySA+ CS0-004 exam objectives

  17. Question 17 of 25Multiple choiceDomain 3: Incident Response and Management

    Using the Diamond Model of Intrusion Analysis, an analyst records the domains, IP addresses and hosting provider an attacker used to deliver malware and receive stolen data. Which vertex do these details describe?

    • A.Adversary
    • B.Capability
    • C.Infrastructure
    • D.Victim
    Show answer and explanation

    Correct answer: C

    Infrastructure is the physical and logical communication structures the adversary uses to deliver capabilities and keep control, such as domains, IP addresses and servers. Adversary is the actor behind the intrusion, capability is the tools and techniques (the malware itself), and victim is the targeted organization or asset.

    Objective 3.1 · CompTIA CySA+ CS0-004 exam objectives

  18. Question 18 of 25Performance-based: orderDomain 3: Incident Response and Management

    A responder is collecting evidence from a live, compromised server. Put the evidence in the order it should be collected, from most volatile to least volatile.

    • Archival media such as backups
    • CPU registers and cache
    • Disk
    • Remote logging and monitoring data
    • Routing table, ARP cache, process table and system memory
    • Temporary file systems
    Show answer and explanation
    1. CPU registers and cache
    2. Routing table, ARP cache, process table and system memory
    3. Temporary file systems
    4. Disk
    5. Remote logging and monitoring data
    6. Archival media such as backups

    Evidence should be collected in order of volatility, capturing what disappears soonest first. Registers and cache change constantly. Network tables, the process list and RAM are lost at shutdown. Temporary file systems are cleared quickly, disk data persists but can be overwritten, remote logs are held elsewhere for longer, and archival backups are the most stable.

    Objective 3.3 · IETF RFC 3227 Guidelines for Evidence Collection and Archiving

  19. Question 19 of 25Multiple choiceDomain 3: Incident Response and Management

    During a malware outbreak, the incident response team shuts down the switch ports of infected hosts and blocks the command-and-control domain on the DNS resolvers. The malware has not been removed yet. Which phase of the incident response process is this?

    • A.Detection and analysis
    • B.Containment
    • C.Eradication
    • D.Recovery
    Show answer and explanation

    Correct answer: B

    Containment limits the spread and impact of an incident, for example by isolating hosts and cutting C2 channels, while preserving evidence. Detection and analysis came before, when the outbreak was confirmed and scoped. Eradication removes the malware and its persistence, which the scenario says has not happened yet. Recovery restores systems to normal operation afterwards.

    Objective 3.2 · CompTIA CySA+ CS0-004 exam objectives

  20. Question 20 of 25Multiple choiceDomain 3: Incident Response and Management

    An organization wants to check that its ransomware playbook, escalation contacts and decision-making work, using only a facilitated discussion of a scenario with the key stakeholders and no impact on production systems. Which activity should it run?

    • A.A full-interruption test
    • B.An external penetration test
    • C.A root cause analysis
    • D.A tabletop exercise
    Show answer and explanation

    Correct answer: D

    A tabletop exercise is a discussion-based session in which participants walk through a scenario to test plans, roles and communication without touching live systems. A full-interruption test shuts down production operations, which the scenario forbids. A penetration test probes technical defenses rather than the response process, and root cause analysis happens after a real incident.

    Objective 3.2 · NIST SP 800-84 Guide to Test, Training, and Exercise Programs

  21. Question 21 of 25Multiple choiceDomain 3: Incident Response and Management

    A forensic analyst connects a suspect drive through a hardware write blocker, creates a bit-for-bit image, and computes SHA-256 hashes of both the original drive and the image. The hashes match. What does this demonstrate?

    • A.The image is an exact copy and the evidence was not altered during acquisition
    • B.The drive contains no malware
    • C.The chain of custody is complete
    • D.The data on the drive is encrypted
    Show answer and explanation

    Correct answer: A

    Matching cryptographic hashes prove the image is identical to the source, and the write blocker ensures the original was not modified, which together support evidence integrity. A hash says nothing about whether malware is present or whether data is encrypted. Chain of custody is the documented record of who handled the evidence and when, which a hash alone cannot provide.

    Objective 3.3 · NIST SP 800-86 Guide to Integrating Forensic Techniques into Incident Response

  22. Question 22 of 25Multiple choiceDomain 4: Reporting and Communication

    The CISO asks for a monthly vulnerability management report to present to the board of directors. What should the report mainly contain?

    • A.The full scanner export listing every CVE on every host
    • B.Per-host remediation commands for the system administrators
    • C.Risk trends, remediation SLA compliance and the top business risks with planned actions
    • D.The raw scanner plugin IDs and their configuration settings
    Show answer and explanation

    Correct answer: C

    Reports should be tailored to the audience. Executives and boards need summarized risk posture, trends over time, compliance with remediation targets and the few issues that matter most to the business. Full CVE exports, remediation commands and plugin details are useful for technical teams but bury the decisions a board has to make.

    Objective 4.1 · CompTIA CySA+ CS0-004 exam objectives

  23. Question 23 of 25Select 2Domain 4: Reporting and Communication

    A vulnerability report explains why some critical findings are still open past their deadlines. Which TWO of the following are common inhibitors to remediation?

    • A.The required patch needs downtime that would interrupt a critical business process
    • B.A legacy system that the vendor no longer supports or patches
    • C.Credentialed scanning of the affected hosts
    • D.An accurate, up-to-date asset inventory
    • E.Automated patch deployment tools
    Show answer and explanation

    Correct answers: A, B

    Inhibitors are the reasons a known vulnerability cannot simply be fixed: business process interruption from required downtime and legacy systems with no available patches are both common. Credentialed scanning, an accurate asset inventory and automated patching all help remediation rather than block it.

    Objective 4.1 · CompTIA CySA+ CS0-004 exam objectives

  24. Question 24 of 25Multiple choiceDomain 4: Reporting and Communication

    An incident has exposed customer personal data across several jurisdictions. Which stakeholder is primarily responsible for deciding which breach notification laws apply and what the notification deadlines are?

    • A.Public relations
    • B.Legal counsel
    • C.The system administrators
    • D.The SOC tier 1 analysts
    Show answer and explanation

    Correct answer: B

    Legal counsel interprets regulatory and contractual obligations and decides when and to whom the organization must report. Public relations shapes the public message once those obligations are known. System administrators and SOC analysts supply technical facts about what was exposed but do not decide legal obligations.

    Objective 4.2 · CompTIA CySA+ CS0-004 exam objectives

  25. Question 25 of 25Multiple choiceDomain 4: Reporting and Communication

    A SOC manager wants a metric that shows how long attackers typically go unnoticed: the average time from the start of malicious activity until the SOC identifies it. Which metric is this?

    • A.Mean time to respond
    • B.Mean time to remediate
    • C.Alert volume per analyst
    • D.Mean time to detect
    Show answer and explanation

    Correct answer: D

    Mean time to detect (MTTD) measures the average gap between when malicious activity begins and when it is identified. Mean time to respond measures how quickly the team acts after detection, and mean time to remediate measures how long fixes take. Alert volume per analyst measures workload, not dwell time.

    Objective 4.2 · CompTIA CySA+ CS0-004 exam objectives

CS0-004 study guides

More free practice tests

CompCertQuiz is an independent practice-exam site and is not affiliated with, endorsed by, or sponsored by CompTIA. These questions are original material written for exam preparation and are not real exam questions. CompTIA and its certification names are trademarks of CompTIA, Inc.