PRACTICE ENGINE · SECURITY+

Security+ Practice Exam.
Free practice test — 33 verified questions, instant feedback.

Progress saves on this device — no signup
Difficulty
QUESTION 1 / 33General Security ConceptsEasy
A security team wants to ensure that a message received from a partner organization can be proven to have come from that partner and not been altered in transit, in a way the partner cannot later deny sending. Which security concept best describes this combined guarantee?
0/0session

Know the exam before you sit it

the facts most prep sites bury
90
Scored questions
1h 30m time limit
750 (on a scale of 100-900)
Passing score
Set by the governing body
Study by section weight
The cheat sheet is built like the exam blueprint →

Every free resource for this exam

family overview →

Get a free Security+ study plan

A week-by-week plan plus new practice questions, straight to your inbox.

Frequently asked questions

How many questions are on the CompTIA Security+ (SY0-701) exam, and how long do I have?

The SY0-701 exam contains a maximum of 90 questions, and you'll have a length of test of 90 minutes to complete them. That works out to roughly one minute per question, so pacing matters — the performance-based questions (PBQs) tend to be more time-consuming than the multiple-choice items, so many candidates answer the multiple-choice questions first and return to the PBQs afterward. Questions come in two formats: multiple-choice and performance-based.

What score do I need to pass, and how are the exam domains weighted?

You need a passing score of 750 on a scale of 100 to 900. The exam measures five content domains, and they are not weighted equally: 1.0 General Security Concepts is 12%, 2.0 Threats, Vulnerabilities, and Mitigations is 22%, 3.0 Security Architecture is 18%, 4.0 Security Operations is 28%, and 5.0 Security Program Management and Oversight is 20%. Because Security Operations (28%) and Threats, Vulnerabilities, and Mitigations (22%) together make up half the exam, prioritizing your study time toward those two domains gives you the most leverage.

What experience do I need before taking Security+, and how do I schedule the exam?

CompTIA recommends a minimum of 2 years of experience in IT administration with a focus on security, and specifically suggests holding CompTIA Network+ plus two years in a security/systems administrator job role before sitting for the exam. These are recommendations, not hard prerequisites — there is nothing stopping you from registering without them, but candidates without hands-on experience typically need more study time, especially for the performance-based questions. CompTIA exams are delivered through Pearson VUE, and you can test either in person at a Pearson VUE test center or online through the OnVUE remote proctoring platform, which is available 24/7.

When does the SY0-701 exam expire, and how do I keep my certification current?

The SY0-701 version launched in November 2023, and CompTIA usually retires an exam version three years after launch — so plan to certify while this version is still active. Once you pass, the certification itself is kept current through Continuing Education: renewing CompTIA Security+ requires earning 50 Continuing Education Units (CEUs), which you can accumulate through training, higher education, industry activities, and completing additional certifications — meaning you can renew without retaking the exam. One thing to note when comparing prep resources: CompTIA does not publish exam pass rates, so any specific pass-rate percentage you see quoted online is not an official figure.

Browse all questions & answers
  1. 1. A security team wants to ensure that a message received from a partner organization can be proven to have come from that partner and not been altered in transit, in a way the partner cannot later deny sending. Which security concept best describes this combined guarantee?

    • A. Confidentiality
    • B. Non-repudiation
    • C. Availability
    • D. Obfuscation
    Show answer & explanation

    Answer: B
    Non-repudiation combines integrity and authentication (typically via digital signatures) so the sender cannot deny having sent the message. Confidentiality only protects against disclosure, availability ensures access to systems/data, and obfuscation merely hides data's meaning without providing proof of origin or authorship.

  2. 2. An organization designs its network so that a compromised web server cannot directly reach the internal database tier without passing through additional inspection points, even if perimeter defenses fail. This design philosophy is best described as which of the following?

    • A. Security through obscurity
    • B. Defense in depth
    • C. Least functionality
    • D. Fail-open design
    Show answer & explanation

    Answer: B
    Defense in depth layers multiple independent controls so that failure of one does not expose the whole environment. Security through obscurity relies on secrecy rather than layered controls, least functionality is about disabling unneeded services/ports, and fail-open design intentionally permits access on failure, which is the opposite of this scenario.

  3. 3. A company implements a policy requiring that no single employee can both create a vendor in the accounting system and approve payments to that vendor. Which control concept does this best illustrate?

    • A. Separation of duties
    • B. Job rotation
    • C. Mandatory vacation
    • D. Least privilege
    Show answer & explanation

    Answer: A
    Separation of duties splits critical tasks between multiple people to prevent a single person from committing fraud unilaterally. Job rotation and mandatory vacation are detective controls that expose fraud over time by moving people between roles or forcing absence, and least privilege limits the access a single account has rather than dividing a process across roles.

  4. 4. A user reports that after clicking a link in an email from what appeared to be their bank, they were prompted to enter credentials on a page that looked identical to the real banking site. Which type of attack does this describe?

    • A. Phishing
    • B. Pretexting
    • C. Tailgating
    • D. Watering hole attack
    Show answer & explanation

    Answer: A
    Phishing uses a fraudulent message, typically email, that impersonates a trusted entity to trick the victim into entering credentials on a fake site. Pretexting involves a fabricated scenario used in a direct social engineering conversation rather than a spoofed website, tailgating is physically following someone through a secured door, and a watering hole attack compromises a legitimate site the victim is expected to visit rather than sending a direct impersonation email.

  5. 5. During a code review, a developer finds that a web application builds SQL queries by directly concatenating user-supplied form input into the query string. Which vulnerability class does this represent?

    • A. Cross-site scripting
    • B. SQL injection
    • C. Buffer overflow
    • D. Race condition
    Show answer & explanation

    Answer: B
    Concatenating unvalidated user input directly into a SQL statement lets an attacker alter the query's logic, which is the definition of SQL injection; the fix is parameterized queries or prepared statements. Cross-site scripting injects script into pages viewed by other users, buffer overflow involves writing past allocated memory bounds, and a race condition exploits timing between concurrent operations, none of which describes unsafely built SQL strings.

  6. 6. An analyst notices a single internal workstation making thousands of DNS requests per minute to random-looking subdomains of an unfamiliar domain, spread evenly throughout the day. This pattern is most consistent with which of the following?

    • A. A misconfigured DHCP lease renewal
    • B. Command-and-control traffic using DNS tunneling from malware on the host
    • C. A normal software update check
    • D. A legitimate content delivery network lookup
    Show answer & explanation

    Answer: B
    High-volume queries to random-looking subdomains are a classic indicator of DNS tunneling used by malware to exfiltrate data or receive commands from a command-and-control server, since DNS is often allowed outbound even when other channels are restricted. DHCP renewal, software updates, and CDN lookups do not generate high-volume randomized subdomain queries to a single unfamiliar domain.

  7. 7. A threat actor gains initial access to a low-privilege account, then exploits a misconfigured service to gain administrator rights on the same host. Which term describes this second stage of the attack?

    • A. Privilege escalation
    • B. Lateral movement
    • C. Pivoting
    • D. Footprinting
    Show answer & explanation

    Answer: A
    Privilege escalation is gaining higher-level permissions than originally granted, exactly as described. Lateral movement and pivoting involve moving to other hosts or network segments rather than escalating rights on the same machine, and footprinting is early reconnaissance performed before any access is gained.

  8. 8. A ransomware variant encrypts victim files and also exfiltrates a copy of sensitive data before demanding payment, threatening to publish the data if the ransom is not paid. This dual-pressure tactic is best described as which of the following?

    • A. Double extortion
    • B. Typosquatting
    • C. Credential stuffing
    • D. Business email compromise
    Show answer & explanation

    Answer: A
    Double extortion combines encryption with data theft and the threat of public leak, adding a second layer of pressure beyond just withholding decryption. Typosquatting involves registering misspelled domain names, credential stuffing reuses breached credentials at scale, and business email compromise is a targeted social-engineering fraud scheme, none of which match the encrypt-plus-leak-threat pattern described.

  9. 9. A security researcher discovers a flaw in a widely used library for which no patch currently exists and no public exploit has been observed in the wild. How should this vulnerability be classified?

    • A. A zero-day vulnerability
    • B. A known-exploited vulnerability
    • C. A false positive
    • D. A compensating control
    Show answer & explanation

    Answer: A
    A zero-day is a vulnerability that is unknown to the vendor or unpatched, meaning defenders have had zero days to prepare a fix. It is not a known-exploited vulnerability unless active exploitation is confirmed, it is not a false positive since the flaw is real, and a compensating control is a mitigation technique, not a category of vulnerability.

  10. 10. An attacker sets up a rogue wireless access point with the same SSID as a coffee shop's legitimate network, hoping nearby devices will auto-connect to it instead. What is this technique called?

    • A. Evil twin attack
    • B. Bluejacking
    • C. ARP poisoning
    • D. Deauthentication flood only
    Show answer & explanation

    Answer: A
    An evil twin is a rogue access point impersonating a legitimate SSID to lure victims into connecting so traffic can be intercepted. Bluejacking targets Bluetooth devices with unsolicited messages, ARP poisoning manipulates layer-2 address tables on an existing network rather than impersonating an SSID, and a deauthentication flood alone only disconnects clients without impersonating the network.

  11. 11. A penetration tester is hired under a signed agreement that defines scope, timing, and systems that are off-limits, and the tester operates entirely within that agreement. Which term describes this type of testing engagement?

    • A. Authorized (white-box or black-box) penetration testing
    • B. An advanced persistent threat campaign
    • C. Hacktivism
    • D. Insider threat activity
    Show answer & explanation

    Answer: A
    A signed rules-of-engagement agreement defining scope and boundaries is the hallmark of authorized penetration testing, regardless of whether the tester has prior system knowledge (white-box) or not (black-box). An advanced persistent threat is an unauthorized, often nation-state-affiliated long-term intrusion; hacktivism is unauthorized activity motivated by ideology; and insider threat activity originates from a trusted person acting outside authorized bounds.

  12. 12. An organization wants to reduce the attack surface of its servers by removing unused services, closing unnecessary ports, and disabling default accounts. This overall practice is best described as which of the following?

    • A. Hardening
    • B. Fuzzing
    • C. Threat hunting
    • D. Steganography
    Show answer & explanation

    Answer: A
    Hardening is the process of reducing a system's attack surface by disabling unnecessary services, closing unused ports, and removing default accounts. Fuzzing is a testing technique that feeds malformed input to find bugs, threat hunting is proactively searching for signs of compromise, and steganography hides data within other files, none of which describe reducing exposed attack surface.

  13. 13. A company wants to segment its industrial control systems from the corporate IT network so that a breach on one side cannot easily reach the other, while still allowing limited, tightly controlled data flow between them. Which architecture concept addresses this need?

    • A. Network segmentation with a controlled boundary (e.g., a demilitarized zone or jump host)
    • B. Flat network architecture
    • C. Full-mesh VPN between all hosts
    • D. Disabling all firewalls between zones for performance
    Show answer & explanation

    Answer: A
    Segmentation with a controlled boundary isolates sensitive OT/ICS systems from the general corporate network while permitting tightly controlled, monitored data flow across a well-defined chokepoint. A flat network provides no isolation, a full mesh VPN would multiply direct paths between all systems rather than restrict them, and removing firewalls between zones eliminates the very boundary the scenario requires.

  14. 14. A cloud architecture team wants to ensure that even if an attacker compromises one microservice's credentials, they cannot query the internal database directly, because all data access must first traverse an API gateway that enforces authentication and authorization on every request. This design principle is best known as which of the following?

    • A. Zero trust architecture
    • B. Implicit trust model
    • C. Perimeter-only security
    • D. Air-gapped network
    Show answer & explanation

    Answer: A
    Zero trust assumes no implicit trust for any user, device, or service regardless of network location, requiring continuous verification of every request, which matches the gateway enforcing authentication/authorization on every call. An implicit trust model is the opposite, assuming internal traffic is safe; perimeter-only security relies solely on a network edge boundary; and an air-gapped network is physically isolated with no connectivity at all, which does not match a cloud API gateway design.

  15. 15. A payments company needs a way to accept credit card numbers for recurring billing without storing the actual card number in its database, replacing it with a non-sensitive placeholder value that maps back to the real number only within a secure vault. Which technique does this describe?

    • A. Tokenization
    • B. Hashing with no salt
    • C. Data masking on display only
    • D. Symmetric encryption of the entire database
    Show answer & explanation

    Answer: A
    Tokenization substitutes sensitive data with a non-sensitive token that has no exploitable value outside the secure vault that maps it back to the original, which is exactly the recurring-billing scenario described. Unsalted hashing is not reversible so it cannot be mapped back for legitimate reuse, display-only masking still leaves the real number stored elsewhere, and encrypting the whole database still stores the actual card number, just protected differently, rather than replacing it with a token.

  16. 16. A hospital is designing redundancy for its patient records system and wants to ensure that if the primary data center becomes unavailable, a secondary site can take over with minimal data loss and downtime. Which concept category does this planning fall under?

    • A. Resilience and recovery (e.g., high availability, failover, backups)
    • B. Data classification
    • C. Least privilege enforcement
    • D. Vulnerability scanning
    Show answer & explanation

    Answer: A
    Planning for failover to a secondary site with minimal data loss and downtime is core to resilience and recovery architecture, encompassing high availability, replication, and disaster recovery. Data classification concerns labeling data sensitivity, least privilege concerns access rights scoping, and vulnerability scanning identifies weaknesses rather than ensuring continued operation after an outage.

  17. 17. An organization stores encryption keys used to protect its database in a dedicated hardware appliance specifically designed to generate, store, and manage cryptographic keys with tamper-resistant protections. What is this appliance called?

    • A. Hardware security module (HSM)
    • B. Load balancer
    • C. Jump server
    • D. Proxy server
    Show answer & explanation

    Answer: A
    An HSM is a dedicated, tamper-resistant hardware device built to generate, store, and manage cryptographic keys securely, isolating key material from general-purpose servers. A load balancer distributes traffic across servers, a jump server is a hardened intermediary for administrative access, and a proxy server relays and can filter client requests, none of which are purpose-built for cryptographic key custody.

  18. 18. A SOC analyst is reviewing an alert and needs to determine whether the flagged behavior is actually malicious or simply an unusual but legitimate administrative action. Which step in the incident response process does this triage activity belong to?

    • A. Detection and analysis
    • B. Eradication
    • C. Lessons learned
    • D. Containment
    Show answer & explanation

    Answer: A
    Determining whether an alert represents a true positive versus benign activity is part of the detection and analysis phase, which occurs before any response action is taken. Eradication removes confirmed malicious artifacts after an incident is validated, lessons learned occurs after the incident closes, and containment limits spread only after malicious activity has been confirmed, all of which come after the triage step described.

  19. 19. During an active incident, the response team isolates an infected workstation from the network by disabling its switch port, preventing the malware from spreading further while preserving the machine for forensic review. Which incident response phase does this action represent?

    • A. Containment
    • B. Preparation
    • C. Post-incident reporting
    • D. Identification only, with no action taken
    Show answer & explanation

    Answer: A
    Isolating an infected host to stop lateral spread while preserving evidence is the definition of containment. Preparation happens before an incident occurs and involves building capability and plans, post-incident reporting occurs after the incident is resolved, and identification is simply recognizing that an incident occurred, which is distinct from actively isolating the host.

  20. 20. An investigator collecting evidence from a compromised server must capture data in order of how quickly it would be lost if the system were powered off, starting with the most volatile. Which of the following correctly reflects that order of volatility?

    • A. CPU registers and cache, then RAM, then disk, then backups
    • B. Backups, then disk, then RAM, then CPU registers
    • C. Disk, then backups, then RAM, then CPU registers
    • D. RAM, then backups, then disk, then CPU registers
    Show answer & explanation

    Answer: A
    The order of volatility for digital forensics begins with the most transient data (CPU registers/cache), followed by RAM, then local disk storage, and finally offline backups or archival media, which persist the longest. The other options reverse or scramble this sequence, which would risk losing the most fragile evidence before it is captured, violating proper forensic procedure.

  21. 21. A security team wants a documented, unbroken record of who handled a piece of digital evidence, when, and for what purpose, from collection through court presentation. Which forensic concept requires this documentation?

    • A. Chain of custody
    • B. Data minimization
    • C. Legal hold
    • D. Non-repudiation
    Show answer & explanation

    Answer: A
    Chain of custody is the chronological documentation showing who collected, handled, and analyzed evidence, ensuring its integrity and admissibility. Data minimization limits the amount of personal data collected/retained, a legal hold suspends normal data destruction when litigation is anticipated, and non-repudiation proves the origin of a message rather than tracking evidence handling.

  22. 22. A SIEM correlates login attempts across multiple systems and flags an account that authenticated from two geographically distant countries within a ten-minute window. Which detection capability does this best illustrate?

    • A. Impossible travel detection via log correlation
    • B. Data loss prevention content inspection
    • C. Static application security testing
    • D. Vulnerability scanning
    Show answer & explanation

    Answer: A
    Correlating login timestamps and geolocation across systems to flag physically implausible travel between logins is a classic SIEM use case for impossible travel detection, useful for spotting compromised credentials. DLP inspects data content for policy violations, static application security testing analyzes source code for flaws before runtime, and vulnerability scanning identifies unpatched weaknesses, none of which involve correlating authentication geolocation and timing.

  23. 23. A security engineer configures a tool that intercepts and can automatically block network traffic matching known attack signatures, rather than only alerting on it. Which type of tool is being described?

    • A. Intrusion prevention system (IPS)
    • B. Intrusion detection system (IDS) operating passively
    • C. Vulnerability scanner
    • D. Packet sniffer with no blocking capability
    Show answer & explanation

    Answer: A
    An IPS sits inline with traffic and can actively block or drop packets matching malicious signatures or behavior, unlike a passive IDS which only alerts without intervening. A vulnerability scanner assesses systems for weaknesses rather than inspecting live traffic, and a plain packet sniffer captures traffic for analysis but has no enforcement capability.

  24. 24. An organization wants to reduce the risk that a compromised employee laptop can be used to move malware into the on-premises data center by requiring the device to prove it has current patches and an active antivirus agent before it is granted network access. Which technology enforces this kind of check?

    • A. Network access control (NAC) with posture assessment
    • B. A stateless packet filter with no inspection
    • C. A simple content delivery network
    • D. An email gateway spam filter
    Show answer & explanation

    Answer: A
    NAC solutions perform posture assessment, checking device compliance such as patch level and antivirus status, before granting or restricting network access, exactly matching the scenario. A stateless packet filter only inspects header fields without evaluating device health, a CDN caches and distributes content rather than gating network admission, and a spam filter screens email content and is unrelated to device posture checks.

  25. 25. A company's vulnerability management program prioritizes patching a finding not just by its raw severity score but also by whether it is being actively exploited in the wild and whether the affected system is internet-facing. This prioritization approach is best described as which of the following?

    • A. Risk-based vulnerability prioritization
    • B. Patching purely alphabetically by system name
    • C. Ignoring all vulnerabilities below CVSS 9.0
    • D. Patching only after an audit finding forces it
    Show answer & explanation

    Answer: A
    Risk-based prioritization weighs exploitability, exposure (e.g., internet-facing), and business context alongside a base severity score to decide what to remediate first, rather than relying on severity alone. Alphabetical patching ignores risk entirely, ignoring anything below a fixed CVSS threshold discards context like active exploitation, and waiting for an audit finding is reactive rather than a structured prioritization method.

  26. 26. A retail company wants to detect after the fact whether an employee accessed customer records they had no legitimate business reason to view. Which control provides this capability?

    • A. Audit logging with regular log review
    • B. Full-disk encryption
    • C. Rate limiting on the login API
    • D. Network time synchronization alone
    Show answer & explanation

    Answer: A
    Audit logs capture who accessed which records and when, and periodic review of those logs allows detection of unauthorized or unnecessary access after the fact. Full-disk encryption protects data at rest from offline theft but doesn't record who viewed live records, rate limiting only throttles authentication attempts, and time synchronization ensures accurate timestamps but by itself does not detect inappropriate access.

  27. 27. A new regulation requires a company to formally document acceptable levels of risk that leadership is willing to accept without further mitigation. Which governance artifact captures this?

    • A. Risk appetite/tolerance statement
    • B. Incident response playbook
    • C. Network diagram
    • D. Change management ticket
    Show answer & explanation

    Answer: A
    A risk appetite or tolerance statement formally documents the level of risk an organization's leadership is willing to accept, guiding decisions about which risks require further mitigation. An incident response playbook details technical response steps, a network diagram documents topology, and a change management ticket records a specific proposed change, none of which capture organizational risk tolerance.

  28. 28. A company evaluating a new cloud vendor requires the vendor to complete a detailed questionnaire and provide an independent audit report before signing a contract. This activity is best categorized under which of the following?

    • A. Third-party/vendor risk management
    • B. Business continuity planning
    • C. Change management
    • D. Asset inventory management
    Show answer & explanation

    Answer: A
    Requiring questionnaires and independent audit evidence (such as a SOC 2 report) before onboarding a vendor is core to third-party/vendor risk management, assessing supply chain risk before granting access or trust. Business continuity planning addresses maintaining operations during disruptions, change management governs internal system modifications, and asset inventory management tracks organizational assets, none of which describe vetting an external vendor's security posture.

  29. 29. An organization's security policy requires every proposed infrastructure change to be documented, reviewed by a designated approval body, tested where feasible, and have a rollback plan before implementation. This process is known as which of the following?

    • A. Change management
    • B. Data classification
    • C. Penetration testing
    • D. Onboarding process
    Show answer & explanation

    Answer: A
    Change management formalizes the review, approval, testing, and rollback planning required before implementing changes to reduce the risk of unintended outages or security gaps. Data classification labels information by sensitivity, penetration testing simulates attacks to find weaknesses, and onboarding covers bringing new employees or systems into the organization, none of which describe the structured change-approval workflow described.

  30. 30. A compliance officer must determine which specific regional data protection law applies to a company's processing of customer data collected from European Union residents. Which concept describes identifying and applying the correct set of legal requirements based on where data subjects reside?

    • A. Regulatory/jurisdictional requirements (e.g., data protection regulations like GDPR)
    • B. Business impact analysis
    • C. Vulnerability scanning cadence
    • D. Security awareness training frequency
    Show answer & explanation

    Answer: A
    Identifying which regional or national laws (such as GDPR for EU residents) govern data handling based on data subject location is a matter of regulatory and jurisdictional compliance. A business impact analysis assesses the operational effect of disruptions, vulnerability scanning cadence concerns technical testing frequency, and awareness training frequency concerns employee education scheduling, none of which relate to determining applicable data protection law.

  31. 31. An organization's leadership must decide how much time systems can be down after a disruption before the business is severely impacted, a figure that then drives investment in redundant infrastructure. Which metric are they defining?

    • A. Recovery time objective (RTO)
    • B. Mean time between failures (MTBF)
    • C. Annualized loss expectancy (ALE)
    • D. Single loss expectancy (SLE)
    Show answer & explanation

    Answer: A
    RTO defines the maximum acceptable duration of downtime after a disruption before unacceptable business impact occurs, directly informing decisions about redundancy and failover investment. MTBF measures average time between failures of a component, ALE estimates yearly expected monetary loss from a risk, and SLE estimates the monetary loss from a single occurrence of a risk event, none of which define an acceptable downtime duration.

  32. 32. A company's data governance policy assigns each dataset an owner responsible for approving access requests, a custodian responsible for day-to-day technical protection, and a classification label determining handling rules. Which security domain does establishing these roles and labels fall under?

    • A. Security program management and oversight (data governance)
    • B. Cryptographic key exchange
    • C. Wireless network configuration
    • D. Malware analysis
    Show answer & explanation

    Answer: A
    Defining data owners, custodians, and classification labels as part of formal policy is data governance, a component of security program management and oversight. Cryptographic key exchange concerns securely establishing shared keys between parties, wireless network configuration concerns radio-based network setup, and malware analysis examines malicious code behavior, none of which involve assigning organizational data roles and classification policy.

  33. 33. A multinational company must reconcile conflicting encryption export restrictions between two countries where it operates before deploying a new encrypted messaging feature. This consideration falls primarily under which concept?

    • A. Legal and regulatory compliance considerations that vary by jurisdiction
    • B. Physical security control selection
    • C. Endpoint detection and response tuning
    • D. Password complexity policy
    Show answer & explanation

    Answer: A
    Reconciling differing national encryption export laws before deploying a feature across jurisdictions is a legal and regulatory compliance consideration tied to where the company operates. Physical security controls address facility protections, endpoint detection and response concerns host-based threat monitoring, and password complexity policy governs authentication requirements, none of which relate to cross-border legal restrictions on cryptography.