CompTIA CS0-004 Practice Exam Questions & Answers
CompTIA CS0-004 Exam Details
Key details for this exam, checked against the published exam outline
- Exam Code
- CS0-004
- Full Name
- CompTIA Cybersecurity Analyst (CySA+) V4
- Issuing Body
- CompTIA
- Question Format (Our Bank)
- Multiple Choice, Hotspot
- Delivery
- Online proctored through OnVUE or at a Pearson VUE test centre
- Eligibility
- No required prerequisites. CompTIA recommends approximately 4 years of hands-on experience in a SOC analyst or vulnerability analyst role.
- Validity
- 3 years from the date of certification. Renewal requires 60 CEUs within the three-year cycle or passing a higher-level CompTIA certification.
- Full Question Set
- 98 questions Get All Questions
Free CS0-004 Practice Questions
Each question shows the correct answer and an explanation of why it is right
Question 1 Domain 3 Incident Response and Management
Which of the following is the best reason to heavily segment business-critical assets from within the network?
Legacy systems present a significant security problem because they frequently cannot support current operating systems, security agents, encryption mechanisms, authentication controls, or vendor patches. When a business-critical legacy system cannot be remediated normally, strong network segmentation becomes an important compensating control. The objective is to reduce the system's reachable attack surface and restrict which users, hosts, protocols, and applications can communicate with it.
A segmented legacy asset might be placed in a dedicated VLAN or security zone and protected through restrictive firewall access-control rules, jump hosts, allowlisting, enhanced logging, and continuous monitoring. Even though segmentation does not remove the underlying vulnerability, it decreases exposure and makes exploitation or lateral movement considerably more difficult.
Degraded functionality is generally an effect or remediation constraint rather than the strongest reason for isolation. Asset obfuscation does not provide reliable security because hidden systems can still be discovered through enumeration or traffic analysis. A proprietary server is not automatically vulnerable merely because its implementation is proprietary; it may still support modern patches and security controls.
CS0-004 specifically covers segmentation as a vulnerability-scanning consideration, compensating controls as a mitigation strategy, and legacy systems as an important inhibitor to remediation.
Study Guide Reference: Vulnerability Management Vulnerability Prioritization and Mitigation Compensating Controls Segmentation Legacy-System Constraints.
Question 2 Domain 3 Incident Response and Management
A vulnerability analyst must perform a security assessment on an edge device running various services.
The analyst runs an Nmap port scan and sees the following output:

Which of the following should the analyst do next to validate the discovered remote access service is secure?
The relevant follow-up is to assess the security configuration of the discovered VPN/IKE remote-access service, making option C the appropriate examination answer. Internet Key Exchange supports different negotiation modes, and Nmap includes specific capabilities for assessing IKE services. Nmap's ike-version script probes UDP port 500 and tests both Main and Aggressive Mode while identifying supported transforms and vendor characteristics.
Nmap's IKE library likewise explicitly supports generating either Main Mode or Aggressive Mode requests, enabling analysts to characterize the configuration of an exposed VPN endpoint. The security concern traditionally associated with this distinction is that Aggressive Mode exposes more negotiation information and has historically enabled offline attacks in some pre-shared-key configurations; Main Mode provides stronger identity protection during IKEv1 negotiation.
The other choices do not validate the security of the remote-access service. A web-server certificate is relevant to TLS-enabled HTTP services, BGP route publication relates to network routing, and ICMP ping only demonstrates basic reachability.
The analyst should therefore move from port discovery to service-specific configuration validation.
Study Guide Reference: Vulnerability Management Nmap Service Enumeration VPN/IKE UDP 500 Main Mode/Aggressive Mode Configuration Validation.
Question 3 Domain 4 Reporting and Communication
Which of the following best explains why sensitive data should be encrypted at rest on laptops?
Encryption at rest primarily protects the confidentiality of stored information when an unauthorized party obtains physical or logical access to the storage medium. This is particularly important for laptops because portable devices can be lost or stolen, giving an attacker possession of the disk outside the organization's normal network and endpoint protections.
NIST guidance on storage encryption specifically addresses laptops and other end-user devices and explains that storage encryption combines encryption and authentication to restrict unauthorized access to stored information. NIST further notes that threats involving lost or stolen end-user devices can expose information to unauthorized parties.
Encryption does not inherently prevent an authenticated and authorized user from copying information while the system is unlocked; data loss prevention controls are more directly suited to that objective. Regulatory requirements may mandate encryption in some environments, but compliance is an external requirement rather than the fundamental security reason encryption at rest exists. Option D confuses confidentiality with integrity and network protection. Encryption of data stored on a laptop is not primarily intended to validate whether network data has been modified.
The examination concept is the CIA triad: encryption primarily supports confidentiality, especially when physical possession of the storage device is lost.
Study Guide Reference: Security Operations Data Protection Encryption at Rest Full-Disk Encryption Confidentiality Lost/Stolen Endpoint Protection.
Get the complete CS0-004 question set
$20$40
Question 4 Domain 1 Security Operations
A cybersecurity analyst is reviewing static application security testing scan results and notices a finding for hard-coded credentials.
Which of the following should the analyst recommend to the application team to resolve this concern?
The correct remediation is to integrate a secrets-management solution and remove credentials from application source code. Hard-coded passwords, API keys, access tokens, certificates, and similar secrets create serious exposure because anyone who obtains the source repository, package, build artifact, backup, or configuration may recover the credential.
OWASP specifically identifies hard-coded secrets in source code and configuration files as a secrets-management problem and recommends centralized controls for securely storing, retrieving, rotating, auditing, and managing secrets throughout their lifecycle.
A secrets-management platform allows applications to retrieve sensitive values securely during execution instead of embedding them directly in code. Proper implementation also supports rotation and revocation when credentials are exposed.
PAM primarily governs privileged human or service access and is not the most direct application-code remediation. Single sign-on reduces repeated user authentication but does not remove embedded application credentials. Obfuscation is inadequate because an application that needs an API key must ultimately be capable of recovering and using it; attackers can often reverse that transformation.
The correct secure-development principle is therefore separation of secrets from application code.
Study Guide Reference: Vulnerability Management SAST Hard-Coded Credentials Secrets Management API Keys Credential Rotation Secure Software Development.
Question 5 Domain 4 Reporting and Communication
A server was recently compromised. A security analyst needs to collect artifacts for further analysis before disconnecting the server from the network.
Which of the following artifacts should the analyst collect first?
The analyst should collect the Netstat output first because current network-connection information is highly volatile and will change immediately when the server is disconnected. netstat-type evidence can identify active TCP/UDP connections, listening services, remote endpoints, and potentially the communication channels associated with an attacker or command-and-control infrastructure.
Digital-forensic acquisition follows the order of volatility: evidence most likely to disappear or change should be captured before more persistent artifacts. RFC 3227 explicitly directs investigators to proceed from volatile to less-volatile evidence and identifies information such as routing data, ARP cache, process state, memory-related information, and network state as highly time-sensitive.
The ARP table is also volatile and should be captured early, but the wording ''before disconnecting the server from the network'' makes active connection state particularly important because those sessions will terminate when network connectivity is removed. ShellBags are persistent forensic artifacts stored within Windows Registry data and can be collected later from disk. A hard-disk image is critical but comparatively nonvolatile and should follow acquisition of live state.
Therefore, live network-session information takes priority.
Study Guide Reference: Incident Response and Management Evidence Acquisition Order of Volatility Live Response netstat Network Connections Forensic Preservation.
Question 6 Domain 2 Vulnerability Management
An analyst prepares an after action report following an incident in which multiple systems were compromised over several days.
The analyst provides raw event logs from each compromised system in the report and determines that a patient-zero system cannot be found.
Which of the following should the analyst do to determine the patient-zero system?
The analyst must construct an accurate incident timeline. Patient zero is the earliest compromised system from which subsequent malicious activity originated or propagated. Determining it requires ordering events chronologically across all affected hosts and correlating authentication activity, process execution, network connections, malware creation times, lateral movement, and other evidence.
Raw logs alone do not communicate this sequence effectively. Logs from different systems must first use reliable timestamps and then be normalized and correlated. Once events are ordered, the analyst can work backward from known compromises to determine which host displayed the earliest credible signs of intrusion and whether subsequent systems were reached from that host.
Enabling additional monitoring helps detect future activity but does not reconstruct historical sequence by itself. Isolation is necessary during containment but does not establish which system was initially compromised. Shift-handoff improvements are useful organizationally but do not answer the forensic question. Malware composition analysis may identify relationships between samples, but it does not establish system-level chronology.
NIST's incident-response guidance emphasizes analysis, documentation, root-cause understanding, and after-action reporting as inputs to continuous improvement.
Study Guide Reference: Incident Response and Management Timeline Analysis Event Correlation Patient Zero Root Cause Analysis After-Action Review.
Question 7 Domain 1 Security Operations
An analyst performs Nmap scans to determine which hosts may need to be targeted to deploy a critical Windows patch. The patch for the vulnerability is to address a critical security flaw that targets open Server Message Block (SMB) ports on Windows systems only.
The analyst scans with the following command:

$sudo nmap -Pn 10.203.10.0/24
The analyst then receives the following output:
Which of the following hosts should the analyst prioritize for patching?
The analyst should prioritize 10.203.10.11 because the scan output identifies that host as presenting the Windows SMB exposure relevant to the critical vulnerability. Vulnerability prioritization requires matching the vulnerability's technical prerequisites against the characteristics discovered on each host rather than simply patching every responding system indiscriminately.
Modern SMB services commonly use TCP port 445. Microsoft documents TCP 445 as a required port for SMB-based file services, with port 139 associated with older NetBIOS-based implementations. Therefore, a Windows host exposing the affected SMB service satisfies an essential condition for applicability and should be prioritized when the vulnerability specifically targets open SMB ports.
The -Pn option is also significant operationally because it instructs Nmap to treat targets as online without relying on normal host-discovery probes. The analyst can consequently inspect reachable service ports even when systems do not respond to standard discovery methods.
The remaining hosts either do not expose the vulnerable SMB service or do not match the required Windows/service profile described by the scenario. Priority should follow confirmed applicability, exposure, severity, and exploitability.
Study Guide Reference: Vulnerability Management Nmap Port Scanning SMB TCP 445/139 Vulnerability Applicability Remediation Prioritization.
What the CompTIA CS0-004 Exam Covers
Exam domains verified against the Official CompTIA CS0-004 exam guide, last checked November 2026.
Domain 1 Security Operations
34%Explain system and network architecture concepts that support secure environments, including security architecture components, identity concepts, and logging practices. Analyze indicators of potential malicious activity across networks, endpoints, cloud, and identity systems using tools like SIEM and EDR platforms.
Domain 2 Vulnerability Management
26%Implement vulnerability scanning methods across systems, networks, and applications to identify security gaps. Prioritize and mitigate vulnerabilities using risk-based approaches, scoring systems, and business context to determine remediation order.
Sample question from this domain above Q6
Domain 3 Incident Response and Management
24%Outline the incident response process including preparation, detection, analysis, containment, eradication, and recovery phases. Implement triage, evidence handling, escalation, remediation, and root cause analysis to resolve security events.
Domain 4 Reporting and Communication
16%Produce vulnerability management reports and dashboards that communicate findings to stakeholders and support escalation during security events. Document incidents, conduct post-incident reviews, and track metrics such as detection time, response time, and remediation effectiveness.
CS0-004 Exam FAQ
Common questions about the exam itself
What background experience do I need before taking CS0-004?
How long should I study to prepare for the CySA+ CS0-004 exam?
What makes the Incident Response and Management domain harder than the others?
How many performance-based questions are on CS0-004 and what do they test?
Can I take CS0-004 in languages other than English?
What happens if I fail the exam? Can I retake it?
How long does the CySA+ certification stay valid after I pass?
Does CySA+ fit between Security+ and SecurityX in the CompTIA career path?
What job roles does CS0-004 prepare me for?
Is CS0-004 the current version, or can I still take CS0-003?
Other CompTIA Exams
Free practice questions for more CompTIA certification exams
