CompTIA Security+ Exam · 18 min read 2026 Blueprint Verified

Free COMPTIASECURITY Threats, Vulnerabilities, and Mitigations Practice Questions (2026)

Rob Pfleghardt

10-year Price Waterhouse alumnus · Founder of VoraPrep · Former CPA (1987–2024) · with the VoraPrep Editorial Team

Free COMPTIASECURITY Threats, Vulnerabilities, and Mitigations Practice Questions (2026)

Key Takeaways

  • Success in Domain 2 requires connecting a threat actor's goal with the most specific technical mitigation available.
  • The exam requires you to differentiate between closely related attacks like spear phishing, whaling, and standard phishing.
  • You must analyze a scenario and recommend a control, not just define what the control does in isolation.
  • Focus your study on the impact of a vulnerability, as this often dictates the priority of the mitigation strategy.
  • Simply memorizing the OWASP Top 10 is insufficient; you must understand how to detect and prevent those vulnerabilities.
  • Many questions are judgment-based, asking for the best or most appropriate action from a list of technically correct options.

Domain 2 is a test of choosing the most specific control, not just a correct one. Candidates fail when they see an email impersonating a CEO and pick "phishing," when the examiner was testing the more precise "whaling"—a distinction that separates a pass from a fail.

Quick answer

This page provides 10 free practice questions for the CompTIA Security+ (SY0-701) "Threats, Vulnerabilities, and Mitigations" domain (Domain 2), updated for 2026. Each question includes a detailed explanation of the correct answer and why the distractors are wrong, training you to spot these critical distinctions.

Key facts

  • Exam Domain: Threats, Vulnerabilities, and Mitigations (Domain 2)
  • Domain Weighting: 24% of the SY0-701 exam
  • Official Blueprint Objectives: 2.1, 2.2, 2.3, 2.4
  • Key Topics: Social engineering, malware, network attacks, application vulnerabilities, mitigation techniques
  • Passing Score: 750 on a scale of 100-900
  • Official Body: CompTIA

The U.S. Bureau of Labor Statistics projects that jobs for information security analysts will grow 32% from 2022 to 2032, much faster than the average for all occupations (BLS).

How These Practice Questions Test Your Judgment

These questions are not a simple knowledge check. They are built to simulate the cognitive load of the real CompTIA Security+ exam, forcing you to make judgment calls under pressure. Each question is aligned with the official SY0-701 exam objectives for Domain 2 and is designed to test your analytical skills.

Free 5-Min Diagnostic

Studying for CompTIA Security+? Benchmark your score in 5 minutes.

Get an instant weak-spot assessment and a custom 12-week study plan PDF generated for your exam window.

This sampler is a small part of VoraPrep's complete 6-pillar course, which includes over 1,500 adaptive practice questions, textbook-grade lessons, exam simulators, and instant help from Vory, your 24/7 personal tutor. Use these questions to find your baseline. Be honest about not just what you got wrong, but why you got it wrong. Try VoraPrep's free CompTIA Security+ practice questions to see the full platform.

Distinguishing Common Social Engineering Attacks

One of the most common traps in Domain 2 is choosing a general answer when a more specific one is available. Social engineering questions are a prime example. You must know the precise vector and target.

Attack TypeVectorTargetKey Differentiator
PhishingEmailBroad/Non-specificA generic, mass-email campaign.
Spear PhishingEmailSpecific individual or groupHighly personalized email with details about the target.
WhalingEmailHigh-profile executiveA spear phishing attack aimed at a "big fish" (e.g., CEO, CFO).
VishingVoice CallAnyUses the phone (Voice phishing) to create urgency.
SmishingSMS TextAnyUses text messages (SMS phishing) to deliver malicious links.

Threats, Vulnerabilities, and Mitigations Practice Questions

Read each question carefully. Choose the single best answer. The detailed explanations that follow are the most important part of this exercise.


Question 1

A security analyst is reviewing network traffic logs after a suspected data breach. The logs show that an external IP address connected to the company's file server via TCP port 445, downloaded several large files, and then the connection terminated. The activity was isolated to this single server. Which of the following types of malware is MOST likely responsible for this activity?

A. Ransomware
B. Worm
C. Trojan
D. Spyware
Answer and Explanation
Correct Answer: B. Worm

A worm is malware that replicates itself to spread to other computers, often by exploiting a specific network service vulnerability without user interaction. The key indicators here are the use of a common network service port (TCP 445 for SMB) and the lack of any user action. The WannaCry ransomware famously propagated using an SMB vulnerability, demonstrating how worm-like capabilities can spread other malware payloads.

Why the other answers are wrong:
  • A (Ransomware): The primary goal of ransomware is to encrypt files and demand payment. The scenario describes data exfiltration (downloading files), not encryption.
  • C (Trojan): A Trojan disguises itself as legitimate software to trick a user into executing it. The attack described is network-based and automated, which is the classic signature of a worm, not a user-tricking Trojan.
  • D (Spyware): Spyware focuses on covertly gathering information from a user's device (keystrokes, browsing habits). It is typically less focused on bulk file exfiltration from a server.

Question 2

An employee receives an email that appears to be from the company's CEO. The email instructs the employee to immediately wire $25,000 to a new vendor for a time-sensitive project. The email uses an urgent tone and directs the employee to bypass the normal payment authorization process. This is an example of which type of attack?

A. Phishing
B. Vishing
C. Pharming
D. Whaling
Answer and Explanation
Correct Answer: D. Whaling

Whaling is a specific type of spear phishing attack that targets high-profile individuals within an organization, such as C-level executives (the "big fish" or "whales"). In this scenario, the attacker is impersonating the CEO to trick an employee into performing a high-value action. The specificity of the target (CEO) and the high-value request are the defining characteristics of whaling.

Exam trap: Many candidates will choose A (Phishing). While whaling is a form of phishing, it's a more specific and accurate description of the attack. The CompTIA exam requires you to choose the MOST precise answer. Because the target is explicitly a high-value executive, "whaling" is the better choice. Why the other answers are wrong:
  • B (Vishing): This is voice phishing, which occurs over the phone, not via email.
  • C (Pharming): This attack redirects users from a legitimate website to a fraudulent one by compromising DNS records or host files. It does not involve email impersonation.

Question 3

A web developer is performing a security audit on a new e-commerce application. They discover that by manipulating a URL parameter, they can view the order history of other customers. For example, changing https://shop.example.com/orders?id=101 to https://shop.example.com/orders?id=102 displays another user's data. Which vulnerability is present?

A. Cross-Site Scripting (XSS)
B. SQL Injection (SQLi)
C. Insecure Direct Object Reference (IDOR)
D. Cross-Site Request Forgery (CSRF)
Answer and Explanation
Correct Answer: C. Insecure Direct Object Reference (IDOR)

IDOR is an access control vulnerability that occurs when an application provides direct access to objects (like database records) based on user-supplied input. Here, the application uses the id parameter directly to fetch an order without verifying that the logged-in user is authorized to view that specific order. The attacker simply iterates through the ID numbers to access unauthorized data.

Why the other answers are wrong:
  • A (XSS): XSS involves injecting malicious scripts into a web page that are then executed in other users' browsers. This scenario describes unauthorized data access, not script injection.
  • B (SQLi): SQL injection involves inserting malicious SQL code into an input field to manipulate the backend database. While the data comes from a database, the attack described is manipulating an object reference (id=101), not injecting SQL commands.
  • D (CSRF): CSRF tricks a victim's browser into making an unintended request to a web application where they are already authenticated. This scenario involves an attacker actively requesting data, not tricking another user into performing an action.

Question 4

A security team wants to implement a solution to detect and prevent malicious traffic from entering their network in real-time. The solution should be able to analyze traffic patterns against a known set of signatures and block any matching packets before they reach their destination. Which of the following would be the BEST choice?

A. Network Intrusion Detection System (NIDS)
B. Host-based Intrusion Prevention System (HIPS)
C. Network Intrusion Prevention System (NIPS)
D. Security Information and Event Management (SIEM)
Answer and Explanation
Correct Answer: C. Network Intrusion Prevention System (NIPS)

The key requirements are "prevent" and "in real-time" on the "network". A NIPS is an inline device that actively monitors network traffic and can block, drop, or redirect malicious packets based on a signature database or behavioral analysis. It meets all the requirements of the scenario.

Tip: Use a simple decision tree for IDS/IPS questions:
  1. Goal: Detect or Prevent? The scenario says "prevent". This eliminates detection-only systems (NIDS).
  2. Location: Network or Host? The scenario says "network traffic". This eliminates host-based systems (HIPS).
  3. Conclusion: The only remaining option is a Network Intrusion Prevention System (NIPS).
Why the other answers are wrong:
  • A (NIDS): A NIDS is a passive system. It can detect malicious traffic and generate an alert, but it cannot block the traffic itself. The scenario specifically requires prevention.
  • B (HIPS): A HIPS runs on an individual endpoint (like a server or workstation) and can prevent malicious activity on that specific host, but it does not monitor the entire network.
  • D (SIEM): A SIEM is a logging and correlation tool. It aggregates logs from many different sources for analysis and alerting. It does not actively block traffic on the network.

Question 5

A penetration tester successfully gains access to a company's internal network. To avoid detection while moving to other systems, the tester modifies operating system log files to erase any record of their commands and network connections. This technique is known as:

A. Privilege escalation
B. Persistence
C. Covering tracks
D. Pivoting
Answer and Explanation
Correct Answer: C. Covering tracks

Covering tracks is a phase in the cyber kill chain or MITRE ATT&CK framework where an attacker attempts to remove evidence of their presence and activities. Modifying or deleting log files, clearing command histories, and using file-wiping utilities are all examples of covering tracks. The goal is to hinder or prevent a forensic investigation.

Why the other answers are wrong:
  • A (Privilege escalation): This involves gaining higher-level permissions than initially obtained (e.g., moving from a standard user to an administrator). The scenario describes hiding activity, not elevating permissions.
  • B (Persistence): This is the technique of maintaining access to a compromised system across reboots or credential changes, often by creating scheduled tasks, services, or registry keys.
  • D (Pivoting): This is the technique of using a compromised system to attack other systems on the same internal network that are not directly accessible from the outside.

Question 6 A company has a policy that all sensitive data must be encrypted. A security auditor discovers that while the data is encrypted when stored on the company's servers and when transmitted over the network, it is processed in plaintext in the server's RAM. What is the BEST control to mitigate this vulnerability?
A. Full Disk Encryption (FDE)
B. Transport Layer Security (TLS)
C. Homomorphic Encryption
D. Data Loss Prevention (DLP)
Answer and Explanation
Correct Answer: C. Homomorphic Encryption

This question tests your knowledge of advanced cryptographic concepts. Homomorphic encryption is a specialized form of encryption that allows computations to be performed on ciphertext, generating an encrypted result which, when decrypted, matches the result of the operations as if they had been performed on the plaintext. It is the specific solution for protecting data while it is in use (i.e., being processed in memory).

Exam trap: The scenario explicitly states that data-at-rest (on disk) and data-in-transit (on network) are already encrypted. This immediately disqualifies A (FDE) and B (TLS), which are the solutions for those respective states. Candidates who are just matching keywords will fall for these. Why the other answers are wrong:
  • A (FDE): Full Disk Encryption protects data-at-rest. The vulnerability described is for data-in-use.
  • B (TLS): Transport Layer Security protects data-in-transit. The vulnerability is for data-in-use.
  • D (DLP): Data Loss Prevention is a set of tools and processes used to ensure that sensitive data is not lost, misused, or accessed by unauthorized users. It is a policy enforcement tool, not a specific cryptographic method for protecting data in RAM.

Question 7

During a code review, a security analyst finds the following line of pseudocode in a web application's search function: query = "SELECT * FROM products WHERE name = '" + user_input + "';" execute_sql(query)

✨ Free Interactive Calculator

Calculate Your CompTIA Security+ Score & Study Hours by Domain

Adjust your practice scores across official CompTIA Security+ blueprint domains to predict your pass probability and generate a domain-weighted study schedule.

Open CompTIA Security+ Score Calculator →

Which of the following vulnerabilities is present in this code?

A. Buffer overflow
B. SQL injection
C. Directory traversal
D. Command injection
Answer and Explanation
Correct Answer: B. SQL injection

The code is dynamically building a SQL query by directly concatenating raw user input (user_input) into the query string. This is the classic recipe for a SQL injection vulnerability. An attacker could provide malicious input, such as ' OR '1'='1, to alter the query's logic and bypass authentication or dump the entire products table.

Worked example: If a user enters Laptop as user_input, the query becomes: SELECT * FROM products WHERE name = 'Laptop'; (This is fine)

But if an attacker enters ' OR '1'='1' -- as user_input, the query becomes: SELECT * FROM products WHERE name = '' OR '1'='1' --'; The OR '1'='1' clause is always true, and the -- comments out the rest of the line, causing the database to return all products.

Why the other answers are wrong:
  • A (Buffer overflow): This occurs when a program writes data beyond the boundary of a fixed-length buffer in memory. The code snippet deals with database query construction, not memory management.
  • C (Directory traversal): This attack involves using ../ sequences to access files and directories stored outside the web root folder. It targets the file system, not the database.
  • D (Command injection): This involves tricking an application into executing arbitrary commands on the host operating system. The vulnerability here is specific to SQL, not general OS commands.

Question 8 Which of the following is a type of malware that is delivered with a software application and installs itself without the user's full knowledge, but is not typically malicious in nature and is used to collect user data for marketing purposes?
A. Adware
B. Rootkit
C. Logic bomb
D. Keylogger
Answer and Explanation
Correct Answer: A. Adware

Adware is software that displays unwanted advertisements, often in the form of pop-ups. While it can be intrusive and sometimes bundled with spyware, its primary purpose is advertising and data collection for marketing, which fits the description of "not typically malicious in nature." It is often installed with legitimate software as part of the terms and conditions.

Why the other answers are wrong:
  • B (Rootkit): A rootkit is explicitly malicious. Its purpose is to gain administrative-level control over a system while hiding its presence from the user and operating system.
  • C (Logic bomb): This is a piece of malicious code that is programmed to execute when a certain condition is met (e.g., a specific date or an employee's termination). It is designed to cause harm.
  • D (Keylogger): A keylogger records a user's keystrokes. This is a form of spyware and is malicious, as it is used to steal credentials, financial information, and other sensitive data.

Question 9 A company wants to assess its web application's vulnerability to the most common web-based attacks. Which of the following resources provides the MOST recognized and standard awareness document for this purpose?
A. MITRE ATT&CK Framework
B. NIST Cybersecurity Framework (CSF)
C. OWASP Top 10
D. ISO/IEC 27001
Answer and Explanation
Correct Answer: C. OWASP Top 10

The Open Web Application Security Project (OWASP) Top 10 is a standard awareness document for developers and web application security professionals. It represents a broad consensus about the most critical security risks to web applications. When a question specifically mentions "web application" vulnerabilities and a "standard awareness document," OWASP Top 10 is almost always the answer.

Why the other answers are wrong:
  • A (MITRE ATT&CK Framework): This is a globally-accessible knowledge base of adversary tactics and techniques based on real-world observations. It is much broader than just web applications and focuses on post-exploit adversary behavior.
  • B (NIST CSF): This is a high-level, strategic framework for organizations to manage and reduce cybersecurity risk. It is not a technical list of specific web application vulnerabilities.
  • D (ISO/IEC 27001): This is a formal standard for an Information Security Management System (ISMS). It specifies the requirements for establishing, implementing, maintaining, and continually improving an ISMS, but it does not list specific technical vulnerabilities.

Question 10 A security analyst uses a tool to send a large number of TCP SYN packets to a server from a spoofed IP address. The server responds with SYN-ACK packets to the spoofed address and waits for ACK packets that never arrive. This eventually exhausts the server's resources, making it unavailable to legitimate users. What type of attack has the analyst simulated?
A. Smurf attack
B. SYN flood
C. Teardrop attack
D. Ping of death
Answer and Explanation
Correct Answer: B. SYN flood

This is the classic definition of a SYN flood attack, a type of Denial-of-Service (DoS) attack. It exploits the three-way TCP handshake. By sending a flood of SYN requests and never completing the handshake with the final ACK, the attacker forces the server to keep connections in a half-open state, consuming resources until it can no longer accept new, legitimate connections.

Why the other answers are wrong:
  • A (Smurf attack): This is a DDoS attack that uses spoofed ICMP echo requests (pings) sent to a network's broadcast address, causing all hosts on that network to reply to the victim's IP address. It uses ICMP, not TCP SYN packets.
  • C (Teardrop attack): This involves sending fragmented IP packets that are designed to overlap, causing the target system to crash when it attempts to reassemble them.
  • D (Ping of death): This is an older attack that involved sending a malformed or oversized ICMP packet to a target system, causing it to crash. Modern systems are patched against this.

How to Analyze Your Score (And What to Do Next)

Count your correct answers. This isn't about a number; it's about identifying patterns in your thinking.

  • If you scored 0-4: Your focus should be on foundational definitions. You might be confusing a worm with a trojan, or a NIDS with a NIPS. Your first step is to solidify these core concepts. Don't just read definitions; write down the single key differentiator for each term. VoraPrep's FSRS spaced-repetition flashcards are built specifically for this kind of efficient memorization.
  • If you scored 5-7: You likely know the definitions but are falling for the classic CompTIA traps. You might have picked "Phishing" over the more specific "Whaling." Your challenge is judgment, not knowledge. For every question you missed, ask: "What specific word in the question made the correct answer better than mine?" This is where an adaptive question bank is critical, as it forces you to practice these judgment calls repeatedly.
  • If you scored 8-10: Excellent. You have a strong grasp of the concepts and can apply them. Your next step is to build speed and prepare for Performance-Based Questions (PBQs). PBQs require you to perform tasks in a simulated environment, like analyzing a log file. You can hone these skills in VoraPrep's 1:1 exam simulators, which replicate the real testing interface.

No matter your score, the path forward is consistent, targeted practice. Merely re-reading a textbook won't build the judgment skills needed to pass. For more, check out our full-length practice test covering all five domains.

The Complete System for Passing the SY0-701

If you found yourself hesitating or getting tricked by the distractors, that's a sign that you need more than just passive learning. VoraPrep is a complete, 6-pillar exam prep course designed to build expert-level judgment, contrasting sharply with overpriced, passive video-lecture bundles.

Our platform includes:

  1. Textbook-Grade Lessons: Clear, concise study guides that get straight to the point.
  2. Adaptive Practice Banks: A bank of over 1,500 questions that intelligently targets your weak areas.
  3. 1:1 Exam Simulators: Full-length, timed mock exams that replicate the real testing environment, including PBQs.
  4. Spaced-Repetition Flashcards: An FSRS system to help you memorize key terms, ports, and concepts efficiently.
  5. Personalized Study Plan: A dynamic calendar that tells you exactly what to study each day.
  6. Vory, Your 24/7 Tutor: Stuck on a question? Ask Vory for a step-by-step explanation without leaving the platform.

You can explore all our exam details and format breakdown on the official VoraPrep CompTIA Security+ page.

Frequently asked questions

What are the hardest topics in CompTIA Security+ Threats, Vulnerabilities, and Mitigations?

Candidates often struggle with differentiating between similar attack types (e.g., whaling vs. spear phishing) and identifying the specific use cases for advanced cryptographic controls. Analyzing code or log snippets to identify the exact vulnerability under time pressure is also a common challenge.

How do I pass comptiasecurity sec2?

To pass Domain 2, focus on application over memorization. Use decision trees to work through scenarios: identify the asset, threat, vulnerability, and then select the most specific control. Consistent practice with high-quality comptiasecurity sec2 practice questions that have detailed explanations is essential.

Are these comptiasecurity sec2 2026 questions up to date?

Yes, all questions in this article and on the VoraPrep platform are fully updated for the latest CompTIA Security+ SY0-701 exam objectives, which are current for 2026 and beyond until CompTIA releases a new version.

Where can I find more comptiasecurity sec2 practice questions?

VoraPrep offers a 14-day free trial that gives you access to a large portion of our 1,500+ question bank. You can also find additional free samplers on our blog, such as our guide to General Security Concepts (Domain 1).
⚡ Instant Knowledge Check · 1-Click Test Drive
CompTIA Security+ (SY0-701) Domain 1: General Security Concepts (Cryptography)

A security engineer wants to ensure that even if an attacker compromises a web server's long-term RSA private key in the future, previously captured encrypted TLS sessions cannot be decrypted retroactively. Which cryptographic property is required?

Official resources and references


Ready to Pass Your CompTIA Exam?

Don't leave your score to chance. VoraPrep's adaptive learning platform, 1,500+ practice questions, and 24/7 Vory tutor are designed to get you exam-ready faster than any other method. We teach you how to think like the examiner so you can pass with confidence.

Visit voraprep.com to get started.

Start Your Free 14-Day Trial at voraprep.com →
RP

About the Author: Rob Pfleghardt

Rob Pfleghardt is the founder of VoraPrep, a comprehensive exam prep platform across 30 professional licensure and certification exams in Accounting & Tax (CPA, EA, CMA, CFE, CPP, CGFM), Securities & Wealth (CFP, SIE, FINRA Series, CFA, FRM), Audit & Cyber (CISA, CIA, CRISC, CISM, CISSP, CCSP, Security+, CIPP/US), HR Leadership (SHRM-CP, PHR), and Federal Regulatory (CBLE). A Virginia Tech graduate in Accounting and Finance, Rob began his career at Price Waterhouse, spending a decade in audit and IT consulting. After holding a CPA license for 37 years (1987–2024) and scaling his own enterprise IT consultancy serving commercial and federal clients, Rob launched VoraPrep to build adaptive training technology and blueprint-aligned curriculum for working professionals.

Free Diagnostic Assessment

Find your exact CompTIA Security+ weak spots in 10 minutes.

Most candidates fail because they study blindly. Take our free 10-question diagnostic to identify your weakest blueprint topics and receive a custom 12-week study plan PDF generated instantly.

Keep reading

Free 5-min CompTIA Security+ diagnostic + 12-week plan PDF

Start →
COMPTIASECURITY 1:1 Prometric Simulator

9,500+ practice questions with instant Socratic feedback