Free practice test

Free CompTIA Security+ Practice Test (SY0-701)

45 original questions, 45 minutes, weighted like the real exam, with performance-based-style items up front. Every answer comes with an explanation of why it’s right and why the tempting choice is wrong.

1practice test45scored questions45 min total1section
On this page

What this practice test covers

This is a half-length SY0-701 exam at the real pace. The actual exam gives you 90 minutes for up to 90 questions, and this one gives you 45 minutes for 45. Questions follow CompTIA's official domain weights:

DomainOfficial weightQuestions here
General Security Concepts12%5
Threats, Vulnerabilities, and Mitigations22%10
Security Architecture18%8
Security Operations28%13
Security Program Management and Oversight20%9

The first four items are performance-based-style: an attack-to-mitigation matrix, a firewall rule table with drop-downs, a log-analysis question and a multi-select grid. Real PBQs are interactive simulations, so these are close approximations. The rest is four-option multiple choice, with a few “choose two” items.

Exam mode vs. practice mode

  • Exam mode: timed at 45 minutes, and answers are revealed at the end. Use it for a baseline and for your final dress rehearsals. Flag hard items and use the review screen before you submit, just like on test day.
  • Practice mode: untimed by default, and you can check each answer as you go. Use it to learn, and read every explanation, including on questions you got right.
  • Quick drill: 10 random questions in practice mode, good for a daily warm-up.

Take it once in exam mode before you study. The domain breakdown on your results page is a free diagnostic.

How the real exam is scored

CompTIA scores Security+ on a 100–900 scale, and 750 passes. CompTIA doesn't publish a raw-to-scaled conversion, so this test reports your percent correct overall and by domain and doesn't make up a scaled score. Multi-part items (matrix, rule table, choose-two) are scored all-or-nothing here, and the review screen shows how many parts you got right.

What to do after you finish

  1. Sort your misses by domain. Your weakest domain with the biggest weight is priority one.
  2. Read every explanation. Most wrong answers on Security+ come from picking a related term, like SAN vs. wildcard, RPO vs. RTO or fail-open vs. fail-closed. Learn the distinction, not just the right answer.
  3. Go back to the objectives. Find each missed concept in the official SY0-701 objectives and study the whole bullet it belongs to.
  4. Retake later, cold. Wait a week or two so you're testing knowledge, not memory of these questions.

Need a structured study source? See our best Security+ prep books, or start with the full Security+ guide.

Free official resources

Sample questions

5 questions from this practice test, with answers and explanations. Take the full test above for timing, scoring and your weakest domains.

Sample question 1Threats, Vulnerabilities, and MitigationsMedium

Performance-based. Match each attack to the control that most directly mitigates it. Each control is used exactly once.

StatementDynamic ARP inspectionApplication allow listParameterized queriesDNSSEC validationMultifactor authentication
SQL injection against a customer search form○○○○○
Credential stuffing with passwords leaked from another company's breach○○○○○
ARP poisoning on an access-layer switch to intercept traffic○○○○○
Cache poisoning of the company's recursive DNS resolver○○○○○
Unapproved executables launched from USB drives on factory-floor kiosks○○○○○
Show answerHide answer
Correct answerSQL injection against a customer search form → Parameterized queries
Credential stuffing with passwords leaked from another… → Multifactor authentication
ARP poisoning on an access-layer switch to intercept traffic → Dynamic ARP inspection
Cache poisoning of the company’s recursive DNS resolver → DNSSEC validation
Unapproved executables launched from USB drives on… → Application allow list

SQL injection → parameterized queries. Bound parameters keep user input from ever being interpreted as SQL.

Credential stuffing → MFA. The attacker has a valid username and password pair; a second factor is what stops the reused password from being enough. Account lockout helps less, because stuffing tries each pair only once.

ARP poisoning → dynamic ARP inspection. DAI checks ARP replies against the DHCP snooping table and drops forged ones at the switch.

DNS cache poisoning → DNSSEC validation. The resolver rejects answers whose signatures don't validate, so forged records never get cached.

Unapproved executables → application allow list. Only pre-approved binaries can run, so whatever is on the USB stick simply won't launch. Antivirus would only catch known-bad files; an allow list blocks anything unknown.

Sample question 2Threats, Vulnerabilities, and MitigationsMedium

Cloud mail sign-in log (excerpt, UTC)

TimeSource IPUserEvent
02:14:07203.0.113.77akhanSign-in failed: bad password
02:14:39203.0.113.77bmorrisSign-in failed: bad password
02:15:12203.0.113.77cdiazSign-in failed: bad password
02:15:44203.0.113.77dpatelSign-in failed: bad password
02:16:18203.0.113.77ejonesSign-in failed: bad password
02:16:51203.0.113.77fnguyenSign-in succeeded
02:19:02203.0.113.77fnguyenInbox rule created: forward all mail to fn.backup@freemail.example
02:19:40203.0.113.77gsmithSign-in failed: bad password

Performance-based. Review the log. Which TWO conclusions does it best support?

  1. A. A brute-force attack hammered one account until it locked out
  2. B. A password-spraying attack ran from a single source address
  3. C. The attempts came from a distributed botnet
  4. D. The fnguyen account is likely compromised and being used to siphon email
  5. E. An attacker replayed a captured session token to skip authentication

Select 2.

Show answerHide answer
Correct answersB, D

Password spraying: one source IP tries many different accounts, one attempt each, spaced about 30 seconds apart. That's the signature of spraying a few common passwords across lots of users while staying under per-account lockout thresholds.

fnguyen is compromised: a successful sign-in from the attacking IP, followed minutes later by an auto-forward rule to an outside free-mail address, is classic mailbox takeover and exfiltration.

Why the others are wrong: brute force would show many attempts against one account, and nothing here locks out. Every attempt comes from one IP, so it isn't distributed. The log records password sign-ins, not token reuse, so there's no evidence of replay.

Sample question 3Security OperationsHard

Laptops with self-encrypting SSDs are being sold to a refurbisher. The data must be unrecoverable, but the drives have to stay usable. Which method is most appropriate?

  1. A. Degauss the drives
  2. B. Run a single-pass zero overwrite of the entire drive with a file-shredding tool
  3. C. Use the drive's cryptographic erase (secure erase) function and record it on a certificate of sanitization
  4. D. Physically shred the drives and keep the destruction certificate
Show answerHide answer
Correct answerC. Use the drive’s cryptographic erase (secure erase) function and record it on a certificate of sanitization

Cryptographic erase destroys the drive's media encryption key, so everything stored on it becomes unreadable ciphertext, and the drive stays reusable. The certificate documents the sanitization for your records. The overwrite is the tempting wrong answer. On SSDs, wear leveling and over-provisioned blocks mean a software overwrite can miss data. Degaussing works on magnetic media and does nothing to flash. Shredding works, but it breaks the “usable” requirement.

Sample question 4Security Program Management and OversightHard

A warehouse server is valued at $200,000. A flood would destroy 25% of its value, and floods are expected about once every five years. What is the annualized loss expectancy (ALE)?

  1. A. $10,000
  2. B. $40,000
  3. C. $50,000
  4. D. $250,000
Show answerHide answer
Correct answerA. $10,000

SLE = asset value × exposure factor = $200,000 × 0.25 = $50,000. ARO = 1 event ÷ 5 years = 0.2. ALE = SLE × ARO = $50,000 × 0.2 = $10,000. Here's where each trap comes from: $50,000 stops at the SLE. $40,000 skips the exposure factor ($200,000 × 0.2). $250,000 multiplies by 5 years instead of by the 0.2 annual rate.

Sample question 5Threats, Vulnerabilities, and MitigationsHard

A privileged program checks that the user has write permission to /tmp/report.txt, then opens the file a few milliseconds later. In that gap, an attacker replaces the file with a symbolic link to /etc/shadow, and the program writes to it. Which vulnerability was exploited?

  1. A. Buffer overflow
  2. B. Memory injection
  3. C. Time-of-check to time-of-use (TOCTOU) race condition
  4. D. Directory traversal
Show answerHide answer
Correct answerC. Time-of-check to time-of-use (TOCTOU) race condition

The program checked a condition and then acted on it later, and the attacker changed reality in between. That's a TOCTOU race condition. The fix is to make check-and-use atomic, for example by opening the file first and then checking the open handle, or by refusing to follow symlinks. Directory traversal is tempting because a sensitive path gets reached, but traversal abuses ../ sequences in user input. There's no path manipulation here, just a timing gap. No memory is overrun or injected, either.

More Security+ guides

Frequently asked questions

Is this Security+ practice test updated for SY0-701?

Yes. It's built on the five SY0-701 domains and their official weights. When V8 (SY0-801) launches, its objectives will differ, so check which exam you're booking.

Are these real Security+ exam questions?

No. They're original questions written to mirror the style, difficulty and format of SY0-701. Real exam content is confidential, and “dumps” that claim otherwise violate CompTIA's candidate agreement.

What percentage do I need on practice tests to pass?

There's no official number, because CompTIA uses a scaled score (750/900). A sensible bar is consistently strong scores in every domain on fresh questions, not one lucky run.

Why are the PBQs first?

Many candidates describe seeing performance-based questions at the start of the real exam. Practicing that way teaches you to flag a slow PBQ and keep moving.

Sources & official links