All CompTIA exams

Free CS0-004 practice test: 30 questions with answers

30 original questions for CompTIA CySA+ (V4), drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.

Free questions
30
Full bank
100 questions
Real exam
Maximum of 85 questions, 165 min
Passing score
750 (scale 100-900)

CS0-004 exam guide: topics, cost and format

All 30 CS0-004 questions with answers

The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.

Security Operations (8 questions)

  1. Question 1

    A SOC analyst notices repeated failed logons for many accounts from a single source IP, followed by one successful logon. Which detection approach best matches this pattern?

    1. AChecking the certificate expiry dates of internet-facing web servers in the DMZ
    2. BCorrelating authentication logs over time to find brute force followed by a successful login
    3. CScanning the host for open TCP ports and service banners to map running software
    4. DReviewing the printer spooler logs on the floor network for recurring paper jams
    Show answer and explanation
    Correct answer: B

    Correlating failed and successful authentication events over time reveals password spraying or brute force that ends in a compromise. A port scan or unrelated logs do not show the authentication sequence, and certificate dates are not relevant.

  2. Question 2

    Which SIEM capability reduces alert fatigue by grouping related events into a single incident for analysts?

    1. ACorrelation rules with aggregation and deduplication
    2. BIncreasing the log retention period on SIEM indexes for audits
    3. CDisabling low-severity alerts without triage
    4. DForwarding raw events to a shared spreadsheet
    Show answer and explanation
    Correct answer: A

    Correlation and aggregation combine related events into one alert or case, which lowers the volume analysts must triage. Longer retention does not reduce noise, disabling alerts without review hides real activity, and spreadsheets do not scale.

  3. Question 3

    An analyst must determine whether a suspicious PowerShell command ran on a workstation. Which data source provides the most direct evidence of process execution with command-line arguments?

    1. AFirewall allow lists that record permitted connections to external hosts and ports
    2. BEndpoint detection and response process telemetry with command-line logging
    3. CBadge access logs recording building entry and exit times for staff and visitors
    4. DPrinter spooler queue holding pending print jobs and driver status for office devices
    Show answer and explanation
    Correct answer: B

    EDR process telemetry and command-line logging record the process tree and arguments used to launch PowerShell. Firewall lists and badge logs do not show process activity, and printer queues are unrelated.

  4. Question 4

    A threat hunter wants to find systems that beacon regularly to an external host, which is typical of command-and-control traffic. Which analysis technique is most useful?

    1. AAnalyzing network flow timing for periodic connection intervals
    2. BChecking the configured time zone of the user accounts on each workstation
    3. CReviewing the wallpaper settings and screensaver timeouts on each host
    4. DCounting the number of installed fonts and font file sizes on each endpoint
    Show answer and explanation
    Correct answer: A

    Beaconing shows up as connections at regular intervals with similar sizes, which flow timing analysis can reveal. Wallpapers, fonts and time zones are not indicators of command-and-control communication.

  5. Question 5

    Which two data sources help a team confirm lateral movement between Windows hosts? (Choose two.)

    1. AAuthentication and session logs from domain controllers
    2. BPrinter toner level reports
    3. COffice document revision history
    4. DMonitor brightness settings from endpoint management
    5. EWindows Security event logs showing network logons and remote service creation
    Show answer and explanation
    Correct answer: A, E

    Windows Security logs record logon types and service installations used during lateral movement, and domain controller logs show authentication across systems. Toner levels, document revisions and display settings do not track remote access between hosts.

  6. Question 6

    A SOC wants to use threat intelligence to prioritize detections. Which practice gives the most actionable result?

    1. ABlocking the full range of public IPv4 addresses at the perimeter firewall regardless of their reputation or observed network activity
    2. BSubscribing to as many feeds as possible and importing raw indicators without reviewing them
    3. CMapping intelligence indicators and tactics to detection rules and checking whether the organization has been affected
    4. DReading vendor newsletters and industry news articles once a year during annual planning reviews without linking the content to rules
    Show answer and explanation
    Correct answer: C

    Mapping indicators and tactics to detections and hunting for them turns intelligence into operational value. Collecting feeds without review creates noise, blocking every address is impractical, and infrequent reading does not inform detection.

  7. Question 7

    Which two practices are most effective for reducing attacker dwell time? (Choose two.)

    1. AContinuous monitoring of endpoint and identity logs with tuned alerts
    2. BAutomating containment for high-confidence detections
    3. CReviewing logs manually once per quarter
    4. DDisabling host firewalls to simplify investigation
    5. ELeaving alerts in a backlog for a month before triage
    Show answer and explanation
    Correct answer: A, B

    Continuous monitoring with tuned alerts shortens detection, and automated containment for high-confidence detections shortens the time an attacker can act. Quarterly reviews, disabled firewalls and long alert backlogs all lengthen dwell time.

  8. Question 8

    A SOC team is evaluating an AI-assisted triage feature that summarizes alerts. Which safeguard is most important before analysts rely on its summaries?

    1. AAllowing the feature to close low-severity alerts automatically in the SIEM queue without analyst review of the source events
    2. BFeeding it raw customer records and payment fields without role-based access controls in place
    3. CValidating summaries against the underlying raw logs and tracking accuracy over a sample of alerts
    4. DTrusting the summary because its wording is fluent and confident enough to skip source checks
    Show answer and explanation
    Correct answer: C

    AI summaries can omit or invent details, so analysts should verify them against source logs and measure accuracy. Automatic closure, uncontrolled data exposure and trust based on fluency all introduce risk.

Vulnerability Management (8 questions)

  1. Question 9

    A vulnerability scanner reports a critical finding on a server that is not reachable from the internet. Which factor should most influence the prioritization decision?

    1. AThe vendor logo and color scheme shown in the scanner dashboard header on login
    2. BThe date the scan was run and how long ago the previous scan completed for this host
    3. CExploitability in the environment, asset value, and whether compensating controls reduce exposure
    4. DThe character length of the vulnerability title and how many words it contains in the scanner report table
    Show answer and explanation
    Correct answer: C

    Risk-based prioritization weighs exploitability, business impact and existing controls, and an unreachable asset may be lower risk than its raw severity suggests. Logos, name lengths and scan dates do not measure risk.

  2. Question 10

    Authenticated vulnerability scans are generally more accurate than unauthenticated scans. What is the main reason?

    1. AThey remove false positives from the scan results by cross-checking each reported finding against vendor-signed package manifests
    2. BThey do not require network access to the target, since the scanning engine can be installed locally and run offline
    3. CThey run faster because they skip the plugin checks that test for configuration weaknesses
    4. DThey can inspect installed software versions and configuration settings that are not visible from the network
    Show answer and explanation
    Correct answer: D

    Credentialed scans read installed package versions and local configuration, which reduces guessing from banners and lowers false positives. Speed, automatic elimination of all false positives and network independence are not the reasons.

  3. Question 11

    A scan reports a vulnerability in a library that is present on a server but never loaded by the application. What is the most appropriate next step?

    1. AApply a patch to an unrelated operating system component on the database tier and reboot the host without a formal change request approval
    2. BIgnore the finding permanently and close the ticket without documentation or a rationale on file
    3. CVerify whether the vulnerable code path is reachable and document the result as a false positive or lower-priority risk
    4. DTake the application offline immediately and shut down the affected web tier without reviewing logs, scope, or the vulnerable library code path
    Show answer and explanation
    Correct answer: C

    Confirming whether the vulnerable code is reachable distinguishes true risk from a false positive, and documenting the reasoning supports audits. Immediate shutdown is disproportionate, permanent silent dismissal hides risk, and an unrelated patch misses the issue.

  4. Question 12

    Which control type is a compensating control for a vulnerable legacy system that cannot be patched immediately?

    1. AAdding a visible warning sign to the server room door and a sign-in log for visitors and staff
    2. BNetwork segmentation that limits access to the system to authorized sources
    3. CRenaming the legacy host to a less obvious hostname and changing its DNS alias on the resolver
    4. DIncreasing the legacy system's CPU clock speed through overclocking
    Show answer and explanation
    Correct answer: B

    Segmentation and access restriction reduce the exposure of a system that cannot be patched, which is the purpose of a compensating control. A sign, a renamed host and faster CPU do not reduce exploitability.

  5. Question 13

    An organization runs a scan that uses a version-based check for a web server. The scan reports the server as vulnerable, but the vendor backported the fix without changing the version string. Which term describes this result?

    1. AFalse negative
    2. BFalse positive
    3. CRemediation gap
    4. DTrue negative
    Show answer and explanation
    Correct answer: B

    A false positive occurs when the scanner reports a finding that is not actually present, which happens when backported patches keep a version string unchanged. A false negative is a missed real issue, and the other terms do not describe this case.

  6. Question 14

    A security analyst must schedule scans for a production database without disrupting its performance. Which approach is most appropriate?

    1. ADisable authentication on the database and turn off credential checks to speed up the scan because plugin runs finish faster
    2. BScan the production database at one-minute intervals to keep asset inventory and findings current throughout the day
    3. CUse a credentialed, non-intrusive scan profile during a maintenance window and test on a staging copy first
    4. DRun an aggressive denial-of-service style scan with high concurrency during business hours on the production database server
    Show answer and explanation
    Correct answer: C

    A non-intrusive profile during a planned window, tested first on a staging copy, limits the risk of disruption. Aggressive or frequent scans and disabling authentication can impair service or produce misleading results.

  7. Question 15

    Which metric describes how quickly the organization fixes critical vulnerabilities after they are discovered?

    1. ACount of unique browsers on the network
    2. BAverage number of printers per floor
    3. CMean time to remediate
    4. DMean time between failures of the firewall
    Show answer and explanation
    Correct answer: C

    Mean time to remediate measures the elapsed time from discovery to fix, which reports remediation performance. The other metrics do not describe vulnerability management outcomes.

  8. Question 16

    Which two factors are commonly used to prioritize vulnerabilities in a risk-based program? (Choose two.)

    1. AThe length of the vulnerability title
    2. BThe name of the scanning vendor
    3. CEvidence of exploitation in the wild and exploit availability
    4. DAsset criticality to business operations
    5. EThe color scheme of the vulnerability report
    Show answer and explanation
    Correct answer: C, D

    Exploit activity shows how likely a flaw is to be used, and asset criticality shows how much harm exploitation would cause. Report colors, title lengths and vendor names do not measure risk.

Incident Response and Management (7 questions)

  1. Question 17

    During an incident, an analyst must preserve evidence on a compromised laptop before it is reimaged. Which action should come first?

    1. ACreate a forensic image or memory capture with chain-of-custody documentation before changing the system
    2. BReimage the laptop immediately to restore service for the user, then return it to the general asset pool with a clean golden image
    3. CDelete the suspicious files from the temp and startup folders, clear the event logs, and reboot the laptop to remove the threat
    4. DPost the laptop's hostname and a description of the incident on public social media
    Show answer and explanation
    Correct answer: A

    Capturing memory and a disk image before changes preserves volatile and persistent evidence, and chain-of-custody records keep it admissible. Reimaging or deleting files destroys evidence, and public posting is inappropriate.

  2. Question 18

    Which phase of the incident response lifecycle focuses on removing the attacker's access and persistence from the environment?

    1. APreparation
    2. BLessons learned
    3. CDetection and analysis
    4. DEradication
    Show answer and explanation
    Correct answer: D

    Eradication removes malware, accounts and persistence mechanisms the attacker used. Preparation happens before incidents, detection identifies them, and lessons learned follows recovery.

  3. Question 19

    Which framework maps adversary tactics and techniques observed in real attacks to a matrix that analysts can use for detection and reporting?

    1. AMITRE ATT&CK
    2. BPCI DSS scoping guidance
    3. CNIST SP 800-88 media sanitization
    4. DISO 9001 quality management
    Show answer and explanation
    Correct answer: A

    MITRE ATT&CK catalogs adversary tactics and techniques, which supports detection engineering, threat modeling and reporting. The other standards cover quality, media sanitization and payment scoping.

  4. Question 20

    In the Cyber Kill Chain model, which stage describes the attacker delivering a weaponized payload to the victim?

    1. ACommand and control
    2. BActions on objectives
    3. CReconnaissance
    4. DDelivery
    Show answer and explanation
    Correct answer: D

    Delivery is the stage where the weaponized payload reaches the target, such as by email or a malicious download. Reconnaissance gathers information, actions on objectives is the final goal, and command and control maintains access afterward.

  5. Question 21

    After a ransomware incident is contained, the team wants to find the initial access vector so the same entry point cannot be used again. Which activity supports this goal?

    1. AInstalling new wallpapers and screensaver policies on each workstation across the domain
    2. BBlaming the most recently hired contractor in the finance department without supporting evidence from the SIEM or logs
    3. CRestoring the affected file shares from backup and closing the ticket without investigation or root cause review
    4. DRoot cause analysis using logs, email and remote access records to trace the earliest malicious activity
    Show answer and explanation
    Correct answer: D

    Root cause analysis traces the earliest evidence of compromise across logs and records, which reveals the entry point to close. Unsupported blame, closing without investigation and cosmetic changes do not prevent recurrence.

  6. Question 22

    An incident involves a credential leak in a public code repository. Which immediate response best limits the impact?

    1. ALeaving the repository public so the team can monitor visitor activity and collect attacker IP addresses
    2. BRevoking and rotating the exposed credentials and reviewing their use in logs since the exposure
    3. CWaiting for the next scheduled quarterly access review to rotate the exposed passwords and service accounts
    4. DAdding a comment to the configuration file marking the embedded API secret as confidential for code reviewers
    Show answer and explanation
    Correct answer: B

    Rotating exposed credentials and reviewing their use in logs stops misuse and reveals whether they were already abused. Leaving the leak public, comments and delayed rotation all leave the exposure active.

  7. Question 23

    Which two actions belong to the containment phase of incident response? (Choose two.)

    1. ABlocking known malicious domains at the proxy
    2. BReviewing the final incident report with management
    3. CScheduling the next penetration test
    4. DUpdating security awareness slides
    5. EIsolating an affected host from the network
    Show answer and explanation
    Correct answer: A, E

    Isolating hosts and blocking malicious destinations limit the spread and further activity of an incident. Final reporting, future testing and training updates belong to later phases.

Reporting and Communication (7 questions)

  1. Question 24

    Executives want a monthly summary of security operations that shows whether the team is improving. Which metric best demonstrates trend in detection performance?

    1. AThe count of unused software licenses assigned to employees who have left the company
    2. BThe number of pages in the policy document and its revision history
    3. CThe number of coffee cups consumed by the team during each weekly stand-up meeting
    4. DMean time to detect, trended over several months with context on attack volume
    Show answer and explanation
    Correct answer: D

    Mean time to detect trended over time, with volume context, shows whether detection is getting faster. Coffee counts, license tallies and policy page counts say nothing about detection performance.

  2. Question 25

    When reporting a critical vulnerability to a system owner, which information is most important to include?

    1. AAffected assets, exploitability, business impact, and a clear remediation or compensating control
    2. BA list of open ports on each network segment without business context or asset owners
    3. CThe scanner's internal plugin ID and raw XML export pasted into the ticket with no summary of the impact for review
    4. DThe name of the analyst's favorite vulnerability scanner and the color theme of their terminal window
    Show answer and explanation
    Correct answer: A

    System owners need to know what is affected, how serious it is for the business, and what action to take. Plugin IDs alone and unexplained port lists do not enable decisions, and tool preferences are irrelevant.

  3. Question 26

    Which measure best reflects the effectiveness of remediation after a vulnerability management program change?

    1. APercentage of critical findings remediated within the agreed service level, compared with the previous period
    2. BNumber of vulnerability scans executed each month regardless of their results, reported as raw scan volume for the team dashboard
    3. CNumber of new vulnerability management tools and licenses purchased this quarter for the scanning platform across business units
    4. DTotal number of hosts scanned during the quarter, even if they were already clean and tagged as compliant in the inventory
    Show answer and explanation
    Correct answer: A

    The percentage of critical findings fixed within the service level, compared over time, directly reflects remediation effectiveness. Scan counts, purchases and host totals do not show whether risk was reduced.

  4. Question 27

    Which reporting practice best supports audit requirements for a vulnerability management program?

    1. ADeleting old scan reports after each run to keep the reporting database small
    2. BMaintaining a record of scan dates, findings, owners, risk acceptances and remediation evidence
    3. CKeeping findings in personal notebooks and local spreadsheets kept on laptops
    4. DEmailing findings to a shared distribution group with no tracking or retention controls
    Show answer and explanation
    Correct answer: B

    A traceable record of findings, owners, risk acceptances and evidence of remediation satisfies audit expectations. Personal notes, untracked email and deleting history do not provide evidence.

  5. Question 28

    A risk acceptance is requested for a vulnerability that cannot be fixed this quarter. What should the report include?

    1. AThe risk description, compensating controls, the accountable owner, and an expiry date for the exception
    2. BThe vulnerability's name and CVE identifier as the sole entry in the risk record, nothing more
    3. CA statement that the risk is acceptable because the team is busy with higher-priority projects and the patch backlog
    4. DNo information on the risk, owner or compensating controls, so that the exception form stays short and the approver can sign
    Show answer and explanation
    Correct answer: A

    Risk acceptances need a defined risk, compensating controls, a named owner and an expiry so they are reviewed. A name alone or vague justifications do not support a governed decision.

  6. Question 29

    Which communication is most appropriate for a non-technical executive after a security incident?

    1. AA complete packet capture with raw hexadecimal values and full payload dumps from each host in the segment
    2. BA short summary of business impact, containment status, decisions needed, and the next update time
    3. CA description of each command typed during the investigation and the shell history file
    4. DA list of every log line from the last month across the SIEM and endpoint sources collected
    Show answer and explanation
    Correct answer: B

    Executives need business impact, status, decisions and the timing of the next update. Raw packets, unfiltered logs and command transcripts are too detailed for decision-making.

  7. Question 30

    Which metric best shows whether the security operations team is catching threats before they cause significant damage?

    1. AThe number of alerts closed without review by a tier-one analyst to reduce the queue
    2. BThe number of meetings held each month with the CISO, the infrastructure leads and the help desk to discuss priorities
    3. CThe total number of status emails sent by the team to executives each reporting week
    4. DMean time to detect, combined with the share of incidents detected before data loss or service impact
    Show answer and explanation
    Correct answer: D

    Detection timing relative to impact shows whether the team acts early enough to prevent damage. Unreviewed closures, email counts and meeting counts do not measure effectiveness.