

































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


































This comprehensive practice assessment contains 100 scenario-based, long-form questions focused exclusively on Domain 2.0 – Threats, Vulnerabilities, and Mitigations , one of the core domains of the CompTIA Security+ certification. The assessment is designed to: Reflect realistic CompTIA-style exam questions , emphasizing critical thinking and scenario analysis. Test knowledge of threat types, attack vectors, vulnerabilities, and mitigation strategies , including social engineering, malware, attacks on web and network infrastructure, and IoT/endpoint risks. Provide detailed answers and rationales for each question to enhance understanding and reinforce learning. Serve as a self-study tool or pre-certification practice exam for individuals preparing for the Security+ certification (SY0-601 or CertMaster CE updates). Structure of the Assessment: Total Questions: 100 Format: scenario-based multiple-choice Answer Format: Each question includes: o o Correct answer Detailed rationale explaining why it is correct Coverage: Includes but is not limited to: o o o o o o Malware types and mitigation Social engineering attacks (phishing, vishing, whaling) Vulnerabilities (SQL injection, XSS, RCE, directory traversal, IDOR) Network and endpoint security considerations IoT and cloud-specific security issues Attack detection, response, and preventive controls
Section 1: Threat Types and Malware Question 1: A medium-sized company recently experienced an attack where several employees reported that their workstations were behaving strangely. Files on the network appeared encrypted, and a message demanded payment in cryptocurrency to restore access. The IT team noted that the malware spread quickly to multiple systems, and some employees had downloaded suspicious email attachments in the days prior. Which type of malware is most likely responsible for this incident, and what is the best immediate mitigation step to protect unaffected systems? A) Worm; immediately disconnect affected systems from the network B) Trojan; update antivirus software on all systems C) Ransomware; restore from verified backups and isolate infected machines D) Rootkit; reinstall operating systems on all machines Answer: C) Ransomware; restore from verified backups and isolate infected machines Rationale: *****:** ******* The scenario describes ransomware , as files are encrypted and a ransom demand appears. The immediate mitigation is to isolate infected systems to prevent spread and restore critical files from trusted backups , avoiding payment. Question 2: A new phishing campaign targets a company’s finance department. The emails appear to come from the CFO, requesting urgent wire transfers. Several employees opened the email, and a few clicked the link, entering their credentials. IT notices multiple failed logins across the company and a sudden spike in network traffic to unknown external IPs. Which combination of attack types is most likely occurring, and what preventive controls could reduce the risk in the future? A) Spear phishing and credential harvesting; implement employee security awareness training and MFA B) Whaling and malware injection; deploy antivirus only C) Spam and adware; block email attachments D) Trojan and rootkit; disconnect all computers from the network
Answer: A) Software vulnerability; apply security patches and updates Rationale: *****:** Outdated applications with known vulnerabilities are common attack vectors. The mitigation is timely patching, updating software, and applying secure configurations. Question 5: A small office network experiences intermittent Denial-of-Service (DoS) attacks. IT notices that multiple external IP addresses are sending large amounts of traffic to the web server, causing it to slow down and become unresponsive. The company has firewalls, but they are not configured to limit traffic rates. Which attack is occurring, and what mitigation strategies should be implemented? A) Distributed Denial-of-Service (DDoS); deploy rate-limiting, traffic filtering, and cloud- based mitigation services B) Virus; update antivirus C) Trojan; disconnect all computers D) Rootkit; reinstall OS Answer: A) Distributed Denial-of-Service (DDoS); deploy rate-limiting, traffic filtering, and cloud-based mitigation services Rationale: *****:** Multiple IPs flooding a network indicate a DDoS attack. Mitigation involves network controls, filtering, and cloud services designed for DDoS protection. Question 6: Employees report receiving pop-up ads promoting fake antivirus software. After clicking “Install,” their computers slow down, and some software stops working correctly. IT discovers the system has installed multiple unwanted applications that monitor activity and redirect web traffic. What is the most likely type of malware, and which long-term mitigation strategy should the company implement? A) Adware; enforce endpoint protection policies and employee security awareness B) Spyware; reinstall OS on all computers C) Trojan; block all downloads D) Worm; apply patches
Answer: A) Adware; enforce endpoint protection policies and employee security awareness Rationale: *****:** Adware delivers unwanted ads and may collect data. Mitigation involves endpoint protection, application control, and user training. Question 7: During a network scan, a cybersecurity analyst finds several default accounts and weak passwords on IoT devices connected to the office network. Some devices are accessible from the internet, and logs show multiple failed login attempts from external IPs. Which type of threat does this represent, and what is the recommended mitigation? A) Exploitable default credentials; change default passwords, disable unnecessary accounts, and enforce strong authentication B) Rootkit; reinstall OS C) Adware; run antivirus D) Ransomware; maintain backups Answer: A) Exploitable default credentials; change default passwords, disable unnecessary accounts, and enforce strong authentication Rationale: *****:** Default or weak credentials expose systems to unauthorized access , especially IoT devices. Mitigation includes password hardening and account management. Question 8: A company’s web application is vulnerable to SQL injection. An attacker sends specially crafted input through a login form, bypassing authentication and accessing the backend database. No firewall rules currently block suspicious input. What type of vulnerability is being exploited, and what mitigation technique is most appropriate? A) SQL injection; implement input validation and parameterized queries B) XSS; use web filters C) Buffer overflow; update software D) Misconfiguration; change passwords
Question 11: A network administrator observes that one of the servers is communicating with multiple external IPs that are known to host command-and-control servers. Logs show irregular spikes in outbound traffic, indicating that the server may be part of a botnet. What is the immediate response the administrator should take, and what long-term mitigation can reduce future risk? A) Disconnect the server from the network immediately; apply patching, endpoint protection, and monitoring B) Ignore the activity; install antivirus later C) Delete system logs; run backups D) Reinstall OS only Answer: A) Disconnect the server from the network immediately; apply patching, endpoint protection, and monitoring Rationale: *****: Botnet participation** is dangerous; isolating the server prevents further damage , and long-term controls include patch management and monitoring. Question 12: An organization discovers that its database server is vulnerable to a buffer overflow attack. Attackers could exploit this to execute arbitrary code and potentially gain administrative access. The server runs legacy software that is no longer supported. Which mitigation approach is most appropriate? A) Upgrade or patch the software, implement input validation, and consider intrusion detection systems B) Change user passwords C) Disconnect all clients D) Install adware detection Answer: A) Upgrade or patch the software, implement input validation, and consider intrusion detection systems Rationale: *****:** Buffer overflows exploit software flaws. Mitigation includes patching, validating inputs, and monitoring for attacks.
Question 13: During a phishing simulation, employees are sent fake emails mimicking a vendor requesting login credentials. Some employees enter their information on a cloned portal. The company wants to prevent actual phishing attacks from succeeding in the future. Which controls are most effective? A) Employee security awareness training, multi-factor authentication (MFA), and email filtering B) Install antivirus only C) Block all email attachments D) Require employees to change passwords daily Answer: A) Employee security awareness training, multi-factor authentication (MFA), and email filtering Rationale: *****: Defense-in-depth** protects against social engineering by combining training, technical controls, and authentication. Question 14: A web application allows users to submit comments that are displayed to all visitors. Security testing reveals that malicious scripts can be injected into comment fields, which execute in other users’ browsers, stealing cookies and session tokens. Which type of attack is this, and what is the best mitigation? A) Cross-site scripting (XSS); implement input sanitization and output encoding B) SQL injection; parameterize queries C) CSRF; enforce tokens D) Buffer overflow; update software Answer: A) Cross-site scripting (XSS); implement input sanitization and output encoding Rationale: *****:** XSS attacks inject scripts into web pages. Preventive measures include sanitizing user input and encoding output. Question 15: During an audit, a company finds several web servers running outdated software with unpatched known vulnerabilities. A vulnerability scan shows that multiple high-risk exploits are available publicly.
that overwrites memory buffers, allowing arbitrary code execution. The web server crashes occasionally, and logs show unusual activity. Which type of vulnerability is being exploited, and what is the primary mitigation? A) Buffer overflow; apply software patches and implement input validation B) SQL injection; parameterize queries C) Cross-site scripting; sanitize input D) Directory traversal; restrict file permissions Answer: A) Buffer overflow; apply software patches and implement input validation Rationale: *****:** Buffer overflow vulnerabilities occur when input exceeds memory allocation. Mitigation includes patching and input validation. Question 18: A company issues USB drives to employees. Recently, several systems were infected after employees used personal USB drives on workstations. IT finds malware that executes automatically when the drives are connected. What mitigation strategy reduces this type of risk? A) Implement endpoint device control, disable autorun, and scan removable media B) Train employees on phishing awareness C) Install adware D) Block all internet access Answer: A) Implement endpoint device control, disable autorun, and scan removable media Rationale: *****:** Unauthorized USB devices can introduce malware. Disabling autorun and scanning drives helps prevent infections. Question 19: A web application processes user input for account login but does not properly sanitize it. An attacker submits malicious SQL commands in the username field, bypassing authentication and accessing all user accounts. Which vulnerability is being exploited, and what mitigation is recommended? A) SQL injection; use parameterized queries and input validation B) Cross-site scripting; sanitize output
C) Directory traversal; enforce access controls D) Phishing; educate users Answer: A) SQL injection; use parameterized queries and input validation Rationale: *****:** SQL injection exploits improperly validated inputs. Using parameterized queries prevents SQL code from being executed. Question 20: Employees at a financial firm report receiving phone calls from individuals claiming to be IT support, asking for their login credentials to resolve “critical issues.” Several employees complied, and suspicious logins were observed from external IP addresses. Which social engineering attack is described, and what preventive measure should the company implement? A) Vishing; implement security awareness training and MFA B) Phishing; block email attachments C) Tailgating; restrict physical access D) Whaling; train executives Answer: A) Vishing; implement security awareness training and MFA Rationale: *****:** Vishing uses voice calls to trick users into revealing credentials. Training and MFA reduce success rates. Question 21: A system administrator notices repeated login failures across multiple accounts. Investigation reveals that attackers are attempting to guess passwords systematically using automated tools. What type of attack is this, and what mitigation strategies can be used? A) Brute force; enforce strong password policies, account lockout, and MFA B) Phishing; train users C) Trojan; reinstall OS D) Malware; scan endpoints
attacker can upload executable files and run scripts on the server, gaining full control over the system. What type of attack is this, and what mitigation should the company implement? A) Unrestricted file upload; validate file types, implement sandboxing, and restrict execution permissions B) SQL injection; parameterize queries C) Cross-site scripting; sanitize output D) Buffer overflow; patch software Answer: A) Unrestricted file upload; validate file types, implement sandboxing, and restrict execution permissions Rationale: *****:** Allowing execution of uploaded files creates a critical security risk. Mitigation includes input validation and sandboxing. Question 25: A cybersecurity analyst discovers that an attacker is intercepting communication between a client and server, capturing sensitive login credentials. Traffic analysis shows the connection is unencrypted. Which attack is this, and what mitigation strategies should be implemented? A) Man-in-the-middle; enforce TLS/SSL encryption and certificate validation B) SQL injection; sanitize input C) Phishing; train users D) Buffer overflow; patch servers Answer: A) Man-in-the-middle; enforce TLS/SSL encryption and certificate validation Rationale: *****:** Intercepted, unencrypted traffic allows attackers to steal credentials. Using TLS/SSL and proper certificates mitigates this risk. Question 26: A company network is targeted by an attacker who floods a public-facing web server with a massive number of requests, causing legitimate users to experience delays and service outages. Which type of attack is this, and what mitigation strategies should be used?
A) Denial-of-Service (DoS); implement rate limiting, DDoS protection, and traffic filtering B) SQL injection; parameterize queries C) Man-in-the-middle; deploy VPN D) Phishing; educate employees Answer: A) Denial-of-Service (DoS); implement rate limiting, DDoS protection, and traffic filtering Rationale: *****:** Flooding the server causes a Denial-of-Service. Mitigation involves traffic control and network defenses. Question 27: An organization’s web application allows users to view files from a shared directory. Testing reveals that users can modify URL parameters to access restricted system files outside the intended directory. Which vulnerability is present, and what mitigation should be applied? A) Directory traversal; implement input validation and proper access controls B) SQL injection; parameterize queries C) Cross-site scripting; sanitize output D) Buffer overflow; patch software Answer: A) Directory traversal; implement input validation and proper access controls Rationale: *****:** Directory traversal occurs when attackers access files outside allowed directories. Mitigation includes input validation and permissions. Question 28: An organization discovers a phishing attack in which an email is sent to executives requesting urgent wire transfers. The attackers spoofed the CEO’s email address, and one employee initiated a payment. Which type of attack is this, and what defensive controls should be implemented? A) Whaling; implement verification procedures, MFA, and employee training B) Spear phishing; install antivirus C) Social engineering; block email attachments D) Vishing; train employees
Question 41: During a routine audit, IT discovers several accounts on the network that have not been used for months. These accounts are still active and have administrative privileges. A penetration test shows that these accounts could be exploited by attackers to gain elevated access without detection. What vulnerability exists here, and what is the best mitigation strategy? A) Orphaned accounts; disable or remove unused accounts and enforce least privilege principles B) Weak passwords; implement password policies C) Malware; deploy antivirus D) Phishing; train employees Answer: A) Orphaned accounts; disable or remove unused accounts and enforce least privilege principles Rationale: *****:** Orphaned accounts present a security risk because attackers can exploit them. Mitigation involves account management and access reviews. Question 42: A cloud-based file storage system allows employees to share files externally. Security testing reveals that some files are inadvertently accessible to anyone with a link, and sensitive data could be leaked. Which type of risk is present, and what mitigation is appropriate? A) Misconfigured permissions; implement access controls, auditing, and data classification B) SQL injection; parameterize queries C) Malware; deploy endpoint protection D) Phishing; train employees Answer: A) Misconfigured permissions; implement access controls, auditing, and data classification Rationale: *****:** Improper configuration can expose data. Access control policies and auditing reduce this risk.
Question 43: A company’s internal application logs show repeated login attempts from external IPs trying various username and password combinations. There are no MFA controls in place. Which type of attack is occurring, and what defense should be implemented? A) Brute force; implement account lockout policies and MFA B) SQL injection; parameterize queries C) Social engineering; train employees D) Malware; deploy antivirus Answer: A) Brute force; implement account lockout policies and MFA Rationale: *****:** Brute force attacks attempt multiple login combinations. MFA and lockouts reduce successful compromise. Question 44: An organization detects unauthorized access to internal web servers. Investigation reveals that the attacker used an exposed service with default credentials to gain access. Which vulnerability type was exploited, and what mitigation is recommended? A) Misconfiguration; change default credentials and disable unnecessary services B) SQL injection; parameterize queries C) Cross-site scripting; sanitize input D) Phishing; train users Answer: A) Misconfiguration; change default credentials and disable unnecessary services Rationale: *****:** Default credentials are a common attack vector. Proper configuration reduces exposure. Question 45: Employees report receiving urgent emails claiming to be from the IT department, instructing them to click a link and reset their passwords immediately. Several employees provided credentials, and unauthorized logins are observed shortly after. Which type of social engineering attack is this, and what controls should be implemented? A) Phishing; security awareness training, email filtering, and MFA B) Vishing; restrict phone access
Answer: A) Excessive permissions; enforce least privilege and role-based access controls Rationale: *****:** Excessive privileges increase risk of data compromise. Role-based access reduces exposure. Question 48: A website allows users to submit profile information. Security testing reveals that attackers can submit JavaScript code that executes in other users’ browsers, stealing cookies and session tokens. Which vulnerability is present, and how can it be mitigated? A) Cross-site scripting (XSS); sanitize input and encode output B) SQL injection; parameterize queries C) Directory traversal; enforce file access restrictions D) Phishing; train users Answer: A) Cross-site scripting (XSS); sanitize input and encode output Rationale: *****:** XSS allows attackers to execute scripts in other users’ browsers. Input validation and output encoding prevent this. Question 49: A company receives reports of fake antivirus alerts appearing on employee workstations. Users are tricked into installing malicious software that attempts to steal credentials and encrypt files. What type of attack is this, and what mitigation strategies should be implemented? A) Rogue software; deploy endpoint protection, user training, and restrict installation rights B) Phishing; train users C) SQL injection; parameterize queries D) Buffer overflow; patch systems Answer: A) Rogue software; deploy endpoint protection, user training, and restrict installation rights Rationale: *****:** Fake antivirus software is rogue software. Restricting software installs and endpoint protection prevents compromise.
Question 50: A company notices unusual traffic patterns and confirms that multiple systems are part of a botnet , sending spam and launching DDoS attacks externally. What is the best immediate response and long-term mitigation? A) Isolate affected systems immediately; implement endpoint monitoring, patch management, and malware detection B) Ignore the activity; reinstall OS later C) Disconnect the internet permanently D) Remove logs; deploy backups Answer: A) Isolate affected systems immediately; implement endpoint monitoring, patch management, and malware detection Rationale: *****:** Botnets can cause outbound and inbound security issues. Isolation prevents spread, and monitoring prevents future compromise. Question 51: A web application allows users to download files. An attacker uploads a malicious executable disguised as a PDF file. The application lacks checks for file type or content. Which vulnerability is present, and what mitigation should be applied? A) Unrestricted file upload; validate file types, implement sandboxing, and restrict execution B) SQL injection; parameterize queries C) Cross-site scripting; sanitize output D) Directory traversal; enforce file permissions Answer: A) Unrestricted file upload; validate file types, implement sandboxing, and restrict execution Rationale: *****:** Allowing executable files to run poses critical security risks. Mitigation includes validation, sandboxing, and access controls. Question 52: During a penetration test, an administrator notices that an internal network device responds to pings and TCP connection attempts with verbose error messages, revealing software versions and operating system details. Which vulnerability type is this, and what mitigation should be implemented?