CompTIA Security+ practice test: 60 questions
60 questions in 1 h. Target: 45 correct, a guide since CompTIA scores are scaled.
- Questions
- 60
- Time
- 1 h
- To pass
- 45 (75%)
- Mode
- Timed or untimed
- Access
- Free
The practice test needs JavaScript. These are its questions:
Sign-in log excerpt
A company's identity provider exported these sign-in events for review. All times are UTC on the same day. From 02:10 to 02:58, source address 198.51.100.23 (geolocated to the Netherlands) made 412 failed sign-in attempts, each against a different user name (ahmed.k at 02:10:05, b.lopez at 02:10:09, c.nguyen at 02:10:14, and so on), with one attempt per account and no account locked out. The lockout policy locks an account after 5 failed attempts in 15 minutes. At 02:58:41 the account r.osei signed in successfully from 198.51.100.23 (Netherlands). At 03:20:12 the same account signed in successfully from 203.0.113.77 (geolocated to Singapore). The previous sign-in for r.osei, at 17:45 the day before, came from the head office in Toronto.
Perimeter firewall rule set
A company's perimeter firewall checks inbound rules from the top down. The first rule that matches a packet decides what happens to it, and later rules are not checked. A packet that matches no rule is denied. The web server is 192.0.2.10 and the mail relay is 192.0.2.25, both in the screened subnet. The rules, in order, are: Rule 1: ALLOW TCP from any source to 192.0.2.10 port 443. Rule 2: DENY all traffic from 203.0.113.0/24 to any destination. Rule 3: ALLOW TCP from any source to 192.0.2.25 port 25. Rule 4: ALLOW TCP from 198.51.100.40 to 192.0.2.10 port 22. Rule 5: DENY all traffic from any source to any destination.
Flood risk in a branch data room
A risk analyst is reviewing a branch office data room that sits below street level. The equipment and the room fit-out are valued at $250,000. The facilities team estimates that a serious flood would destroy 40% of that value each time it happens, and local records suggest a serious flood about once every 5 years. A vendor offers flood barriers and raised equipment racks for an annualized cost of $12,000. With them installed, the analyst expects serious flooding of the room only once every 20 years, with the same 40% loss when it does happen.
Before resetting any password, help desk staff must follow a written script that confirms the caller's identity by calling back the phone number on file. People carry out the check, not software. Which control category is this?
A payment kiosk runs a vendor-locked operating system that cannot install the company's standard endpoint protection agent. Until the vendor adds support, the security team puts the kiosk on an isolated network segment and enables strict application allow listing to give comparable protection. What type of control are these measures?
A purchasing manager approves contracts by signing them with a private key stored on her smart card. Later she claims she never approved one of them. Which security property lets the company prove the approval came from her?
In the NIST SP 800-207 zero trust architecture, which component makes, and logs, the final decision to grant, deny or revoke a subject's access to a resource, using enterprise policy and inputs such as threat intelligence?
Before an approved firewall firmware upgrade in tonight's maintenance window, the change board asks for the documented steps to return the firewall to its previous working configuration if the upgrade fails. What is this part of the change request called?
A developer stores passwords with PBKDF2, using a unique random salt for each user and an iteration count in the hundreds of thousands. What does the high iteration count add that the salt alone does not?
A browser needs to learn whether one specific server certificate has been revoked, without downloading the certificate authority's whole list of revoked certificates. Which mechanism does this?
A group defaces a chemical company's website with protest messages about the company's environmental record. Nothing is stolen and no ransom is demanded. Which threat actor type fits best?
Investigators find that an intruder kept quiet access to a defense contractor's network for over a year, used custom malware, adapted each time defenders removed it, and slowly copied design documents. Which actor and motivation fit best?
Several employees get a text message that claims to come from the company's payroll provider and asks them to tap a link to confirm their bank details. Which attack vector is this?
An attacker takes over the email account of a supplier's sales manager and, replying inside an existing invoice thread, asks the customer's accounts team to send this month's payment to a new bank account. What is this attack called?
A login form builds its database query by pasting the user's input straight into the SQL text. Entering the user name admin'-- logs a tester in without a password. Which fix addresses the root cause?
An attacker posts a product review that contains a script. The site saves the review in its database, and the script runs in the browser of every customer who later opens that product page. What vulnerability is this?
A hospital wants its nurses' station PCs to run only the approved clinical applications, so that malware or unapproved programs cannot start even if a user downloads them. Which mitigation does this most directly?
A new network camera arrives with an admin password printed in the public manual, and with Telnet and FTP turned on. Which hardening steps should be taken before it goes on the network?
Which attack do the failed sign-ins between 02:10 and 02:58 show?
What does the pair of successful r.osei sign-ins at 02:58 and 03:20 indicate?
The team confirms that r.osei's account is compromised. What should the incident response team do next?
A company runs its web application on virtual machines it rents from an infrastructure as a service (IaaS) provider. A critical vulnerability is announced in the guest operating system. Who is responsible for patching it?
A research lab keeps the computers that control a particle accelerator on a network with no physical connection to any other network. Data moves to and from them only on media that staff carry by hand. What is this design called?
A firewall protecting a payment network must be set up so that, if its inspection engine crashes, the network stays protected even though traffic stops. Which failure mode is required?
A security team wants a network sensor that can drop malicious packets before they reach the servers, instead of only reporting them. How must the sensor be deployed?
An online store replaces each customer's card number with a random surrogate value for use in its order systems. Only a separate, tightly protected service can map a surrogate back to the real number. Which data protection method is this?
A company based in the European Union plans to move its customer database, which holds personal data, to a cloud region in a country outside the EU. Which consideration does this raise most directly?
A bank needs an alternate site that already has the system hardware, supporting infrastructure and staff in place, so that it can take over critical systems within hours of a disaster. Which site type fits?
A data center's UPS units can carry the servers for about 15 minutes. Management wants the site to keep running through a power cut that could last two days. What should be added?
The incident response team meets in a conference room. A facilitator presents a ransomware scenario, and members talk through what each of them would do, without touching any systems. What kind of test is this?
A small office still uses WPA2-Personal with a shared passphrase. Which benefit does moving to WPA3-Personal give against an attacker who records the Wi-Fi handshake?
A web application sets its session cookie. Testers find that a script injected into the page can read the cookie, and that the browser also sends the cookie over plain HTTP. Which cookie attributes fix both problems?
An analyst wants to open a suspicious email attachment in a restricted environment where it cannot reach the real file system or the corporate network, so its behavior can be watched safely. What is this technique?
Old SSDs will be sold to a recycler for reuse. Under NIST SP 800-88, the data on them must be unrecoverable even with state-of-the-art laboratory techniques, but the drives must still work afterward. Which sanitization method is required?
A vulnerability scan reports a flaw with a CVSS base score of 7.5. On FIRST's qualitative severity rating scale, how is it rated?
A scanner flags a server as vulnerable to an Apache web server flaw, but the server runs no Apache software at all. What has the scanner produced?
The server team reports that a critical patch has been installed on all 300 affected servers. What should the security team do to validate the remediation?
An analyst needs to see which internal hosts talked to an external IP address last week, on which ports, and how many bytes moved, but the network keeps no full packet captures. Which data source fits?
While correlating events in the SIEM, analysts see a firewall entry that appears to come after the server event it caused, because one device's clock is several minutes off. What should be fixed?
A company has published SPF and DKIM records, but spoofed messages that use its domain in the visible From address still reach customers' inboxes. Which DNS record lets the company tell receiving servers to reject messages that fail these aligned checks, and to send it reports?
A host at 203.0.113.50 sends HTTPS (TCP 443) to the web server at 192.0.2.10. What happens to the traffic?
The team wants to block everything from the hostile range 203.0.113.0/24, including HTTPS to the web server, without affecting anyone else. What is the simplest change?
Which of these sign-in methods is true multifactor authentication?
A user wants a third-party scheduling app to read her calendar on a cloud service. The app should get limited, revocable access through a token and must never see her password. Which standard is designed for this delegated authorization?
A hospital lets staff open a patient record only when the user's department matches the patient's ward, the request comes from a managed device, and it falls within the user's shift. Which access control model is this?
HR terminations are often processed days before IT removes the person's access. Which automation use case best closes this gap?
A responder is collecting evidence from a running, compromised server. Following the order of volatility, which should be collected first?
A forensic analyst hands a seized laptop to a colleague for imaging. What should be recorded to keep the chain of custody intact?
An analyst needs to know which process launched powershell.exe on a Windows workstation at 09:14, and with which command-line arguments. Command-line auditing is enabled. Which data source should she check?
Before new employees get network access, they must read and sign a document that says what they may and may not do with company computers, email and internet access. What is this document?
A retailer decides why and how its customers' personal data is used, and hires an email marketing vendor that sends newsletters using that data only on the retailer's instructions. Under the GDPR, what is the vendor?
A company document states: 'All company laptops must use the approved full-disk encryption product configured for AES-256.' It is compulsory and names a specific technology. What type of governance document is it?
What is the single loss expectancy (SLE) for a serious flood?
What is the annualized loss expectancy (ALE) before the countermeasure?
What is the annual value of the flood countermeasure, and is it worth buying on cost grounds alone?
A bank is negotiating a contract with a cloud payment processor. It wants the contractual ability to review the processor's controls, receive its independent audit reports, and require fixes when problems are found. Which clause provides this?
Before an outside firm starts a penetration test, both parties sign a document that sets the scope, testing hours, allowed techniques and emergency contacts, and gives the testers authority to carry out those activities. What is this document?
A contract with a hosting provider guarantees 99.95% monthly uptime and a one-hour response to severity 1 tickets, with service credits if these targets are missed. What type of agreement sets these terms?
A customer in the EU closes her account and asks the company to delete all of her personal data, which it no longer needs for the purpose it was collected for. Which GDPR right is she using?
A client gives penetration testers a list of its public IP ranges and one standard user account, but no network diagrams or source code. Which test environment is this?
During an approved assessment, a tester connects a laptop to a span port and records which hosts talk to each other, which ports they use and which operating systems appear, without sending a single packet. What is this?
After a simulated phishing campaign, which result best shows that the awareness training is changing behavior?
An employee finds a USB drive labeled 'Salary review 2027' in the office parking lot. What should security awareness training tell her to do?
What this set covers
- 1.1 Security controls2 questions
- 1.2 Security concepts2 questions
- 1.3 Change management1 questions
- 1.4 Cryptographic solutions2 questions
- 2.1 Threat actors2 questions
- 2.2 Threat vectors2 questions
- 2.3 Vulnerabilities2 questions
- 2.5 Mitigation techniques2 questions
- 2.4 Indicators of malicious activity2 questions
- 4.8 Incident response3 questions
- 3.1 Architecture models2 questions
- 3.2 Secure infrastructure2 questions
- 3.3 Data protection2 questions
- 3.4 Resilience and recovery3 questions
- 4.1 Securing computing resources3 questions
- 4.2 Asset management1 questions
- 4.3 Vulnerability management3 questions
- 4.4 Alerting and monitoring2 questions
- 4.5 Enterprise security capabilities3 questions
- 4.6 Identity and access management3 questions
- 4.7 Automation and orchestration1 questions
- 4.9 Investigation data sources1 questions
- 5.1 Security governance3 questions
- 5.2 Risk management3 questions
- 5.3 Third-party risk2 questions
- 5.4 Security compliance2 questions
- 5.5 Audits and assessments2 questions
- 5.6 Security awareness2 questions
More practice for this exam
Independent practice. The Work Gym isn't affiliated with CompTIA, and these aren't official CompTIA questions. CompTIA Security+® is a registered trademark of CompTIA, Inc.