CS0-004

CompTIA CySA+ CS0-004 practice exams

416 questions in 5 timed practice tests. Each test has about 85 questions and a 165-minute limit. The pass mark is 83%. Results are split across the 4 exam domains.

Exam at a glance

CS0-004 practice exam settings
Practice tests 5
Questions in total 416
Questions per test About 85
Time limit per test 165 minutes
Pass mark 83%
Question types Single answer and multiple answer (42 multiple-answer questions)
Level Professional
Category Security

These are the settings of our practice tests. Check the official CompTIA exam page for the current exam format before you book.

Domains and weights

CS0-004 exam domains, weights and question counts
Domain Weight Weight bar Questions in our bank
Security Operations 34% 142
Vulnerability Management 26% 108
Incident Response and Management 24% 100
Reporting and Communication 16% 66

Sample questions

Question 1 of 3

An analyst sees DNS queries from a server such as 4a6f686e2d7061.exfil-cdn.net, 73737764206c69.exfil-cdn.net, and hundreds more with long hexadecimal subdomains, each queried only once. What is the MOST likely explanation and the BEST detection approach?

  1. A Domain generation algorithm for C2; block only the specific queried hostnames
  2. B Content delivery network cache busting; allowlist the parent domain in the internal DNS resolver
  3. C DNS amplification attack; rate-limit recursive responses on the resolver
  4. D DNS tunneling for exfiltration; alert on unique, high-entropy subdomains of one domain (correct answer)
Why: Encoded data packed into many unique, high-entropy subdomains of a single parent domain is characteristic of DNS tunneling used for exfiltration, so detection should focus on entropy, query volume, and uniqueness per parent domain. CDN cache busting does not encode hex data this way. DNS amplification abuses responses to flood victims, and DGA malware rotates parent domains rather than encoding data under one; blocking individual hostnames would also fail because each is used once.

Question 2 of 3

Authentication logs show 400 different user accounts each failing to log on exactly once within ten minutes, all from the same external IP address and all against the VPN portal. Which attack does this MOST likely represent?

  1. A Pass-the-hash lateral movement
  2. B Brute-force guessing against one account
  3. C Password spraying (correct answer)
  4. D Credential stuffing with breached username-password pairs
Why: Trying one or two common passwords across many accounts, with very few attempts per account to avoid lockout, is the signature of password spraying. Credential stuffing replays breached username-password pairs and typically produces a mix of successes and per-account retries. Brute force tries many passwords against a single account, and pass-the-hash reuses an NTLM hash for lateral movement rather than generating failed logons at a portal.

Question 3 of 3

An organization is concerned that attackers could tamper with the training data used by its in-house machine learning model that scores login risk, causing it to treat attacker logins as normal. Which risk is this, and which control BEST mitigates it?

  1. A Model inversion; add more GPUs so the model can be trained much faster on fresh data
  2. B Data poisoning; validate the provenance of training data and monitor model drift (correct answer)
  3. C Prompt injection; require all users to type their passwords twice at each login attempt to the portal
  4. D Hallucination; switch the model to produce free-text explanations instead of risk scores
Why: Manipulating training data to skew a model's behavior is data poisoning, mitigated by controlling data sources, validating data integrity, and monitoring for unexpected drift in model outputs. Model inversion extracts training data from a model, hallucination concerns generative output, and prompt injection targets instruction-following models; none of their stated mitigations addresses tampered training data.

What your score report looks like

Example attempt, CS0-004 practice test 3

79%

Not passed
Pass mark 83%

Score by exam domain
DomainWeightYour score%
Security Operations 34%
88
Vulnerability Management 26%
81
Incident Response and Management 24%
76
Reporting and Communication 16%
58

Study next: Reporting and Communication. It is below the pass mark and carries 16% of the exam.

Domains and pass mark from our CS0-004 practice tests. Scores are an example attempt.

Study plans

Two weeks

  1. Day 1: take practice test 1 in exam mode to get a baseline.
  2. Days 2 to 5: domain mode on Security Operations and Vulnerability Management, the two most heavily weighted domains.
  3. Day 6: practice test 2 in exam mode, then the mistakes quiz.
  4. Days 7 to 12: practice tests 3 to 5, one every other day, each followed by its mistakes quiz.
  5. Days 13 and 14: final mode. Book the exam when your readiness stays above the pass mark.

Four weeks

  1. Week 1: one practice test in practice mode, reading every explanation. Note your two lowest domains.
  2. Week 2: domain mode on those two domains, then a second practice test in exam mode.
  3. Week 3: practice tests 3 and 4 in exam mode, with the mistakes and flagged quizzes after each.
  4. Week 4: practice test 5 and final mode until your readiness holds above the pass mark.

Questions about the CS0-004 practice exams

Are these real CS0-004 exam questions?
No. We write every question ourselves and map it to the published CS0-004 exam objectives. We do not use leaked or recalled questions.
Do the time limit and pass mark match the official exam?
They match the settings of our practice tests. Exam providers change their format from time to time, so check the official exam page before you book.
Can I try it before I pay?
Yes. The free mini exam has 15 questions with full explanations and needs no account.
How long do I keep access?
A single-exam purchase gives you 12 months of access. All-Access includes this exam for as long as your subscription runs.
What happens after I finish a test?
You get a score, a pass or fail against the pass mark, a score per domain and every answer with its explanation.

Last updated November 2026. Written and reviewed by the DevOpsCode Lab team.

DevOpsCode Lab is not affiliated with CompTIA. CS0-004 and related names are trademarks of their owners.

Related exams
Exam Vendor Level Questions Minutes Price
CAS-005CompTIA SecurityX CAS-005 CompTIA Expert 450 165 $14.99
CNX-001CompTIA CloudNetX CNX-001 CompTIA Expert 450 165 $14.99
DY0-001CompTIA DataAI DY0-001 CompTIA Expert 450 165 $14.99
220-1201CompTIA A+ Core 1 220-1201 CompTIA Foundational 450 90 $9.99
220-1202CompTIA A+ Core 2 220-1202 CompTIA Foundational 450 90 $9.99
100-160Cisco CCST Cybersecurity 100-160 Cisco Foundational 251 50 $9.99