CompTIA Security+ SY0-801 practice questions with answers
27 sample questions, one for each official objective, with answers and explanations. Try each one before you open the answer. For all 168 questions, unlimited generated drills, timed mock exams and progress tracking, use the free trainer.
An attacker changes the amount on an invoice in transit. Which part of the CIA triad was violated?
Availability
Non-repudiation
Confidentiality
Integrity
Show answer
D: Integrity. Unauthorized modification breaks integrity. Hashes, digital signatures and access controls protect it.
Question 2 · objective 1.2
Who reviews and approves proposed changes, weighing risk, impact and timing?
Data custodian
Change advisory board (CAB)
Incident response team
External auditor
Show answer
B: Change advisory board (CAB). The CAB evaluates change requests, including impact analysis, test results and backout plans, before approval.
Question 3 · objective 1.3
Which method lets a browser check in real time whether a server's certificate has been revoked?
Salting
Key escrow
OCSP
CSR
Show answer
C: OCSP. Online Certificate Status Protocol queries the CA's responder for one certificate's status. CRLs are periodically published lists.
Question 4 · objective 2.1
Which system assigns unique identifiers like CVE-2026-12345 to publicly known vulnerabilities?
CVSS
SCAP
Common Vulnerabilities and Exposures (CVE)
STIX
Show answer
C: Common Vulnerabilities and Exposures (CVE). CVE provides identifiers. CVSS provides severity scores. NVD combines them with analysis.
Question 5 · objective 2.2
Which threat actor typically has the most resources, patience and sophistication?
Unskilled attacker
Accidental insider
State-sponsored
Hacktivist
Show answer
C: State-sponsored. Nation-state actors run long-term, well-funded campaigns (often APTs) for espionage or disruption.
Question 6 · objective 2.3
Attackers compromise a website that a target company's engineers visit often, then infect those visitors. What is this vector?
Tailgating
Typosquatting
Vishing
Watering hole
Show answer
D: Watering hole. A watering hole attack poisons a site the targets already trust and visit.
Question 7 · objective 2.4 · choose 2
A developer commits an API key directly in source code pushed to a public repository. Which TWO vulnerabilities apply?
Public repository exposure
Bluetooth pairing
Race condition
Hardcoded secrets
Obsolete hardware
Show answer
A and D: Public repository exposure; Hardcoded secrets. Secrets in code end up in repositories and history. Use secret managers and secrets scanning.
Question 8 · objective 2.5
Refer to the exhibit. Which attack is occurring?
09:14:02 Failed login user=amartin src=198.51.100.23
09:14:02 Failed login user=bchen src=198.51.100.23
09:14:03 Failed login user=cdiaz src=198.51.100.23
09:14:03 Failed login user=dpatel src=198.51.100.23
(400 different users, one attempt each, same password hash)
Brute force against one account
Password spraying
Replay attack
Pass the hash
Show answer
B: Password spraying. One common password tried once against many accounts avoids lockouts. That pattern is password spraying.
Question 9 · objective 2.6
A user hides text in a document that tells the company's AI summarizer to email the document to an outside address. What attack is this?
Bias
Prompt injection (indirect)
Hallucination
Model poisoning
Show answer
B: Prompt injection (indirect). Indirect prompt injection plants instructions in content the model processes. Limit tool permissions and treat model output as untrusted.
Question 10 · objective 3.1
In IaaS, who is responsible for patching the guest operating system?
The ISP
The cloud provider
The customer
Nobody; it's automatic
Show answer
C: The customer. Shared responsibility: in IaaS the provider secures the physical and virtualization layers; the customer secures the OS, apps and data.
Question 11 · objective 3.2
Where should a public web server be placed?
In a screened subnet (DMZ) security zone
In the same subnet as the domain controllers
On the internal user VLAN
On the management network
Show answer
A: In a screened subnet (DMZ) security zone. Security zones separate trust levels. Public services go in a screened subnet with tight rules to internal zones.
Question 12 · objective 3.3
Which data state is protected when TLS encrypts traffic between a browser and a server?
Data in transit
Data in use
Data in archive
Data at rest
Show answer
A: Data in transit. TLS protects data in motion. Disk encryption protects data at rest; secure enclaves and memory protections address data in use.
Question 13 · objective 3.4
Ransomware encrypted the production servers and tried to delete backups. Which backup property would have protected the backups?
Deduplication
Compression
Immutability
Larger retention
Show answer
C: Immutability. Immutable (write-once) backups can't be altered or deleted during the retention period, even by admins.
Question 14 · objective 4.1
A fake 'admin_passwords.xlsx' file is placed on a file share; any access triggers an alert. What is this?
Honeyfile
DLP
Sandbox
Honeynet
Show answer
A: Honeyfile. Honeyfiles (and honeytokens) are decoys that nobody legitimate should touch, so any access is suspicious.
Question 15 · objective 4.2
Why does accurate asset inventory matter for security?
It's only needed for audits
You can't protect, patch or monitor what you don't know you have
It replaces vulnerability scanning
It reduces licensing fees only
Show answer
B: You can't protect, patch or monitor what you don't know you have. Inventory underpins vulnerability management, incident response and detection of rogue devices.
Question 16 · objective 4.3
A scan reports a vulnerability that, on investigation, doesn't actually exist on the host. What is this?
False negative
True positive
Zero-day
False positive
Show answer
D: False positive. False positives waste effort; false negatives (missed real issues) are more dangerous. Tune scanners and verify findings.
Question 17 · objective 4.4
A SIEM generates hundreds of false alerts per day for a benign backup job. What should the analyst do?
Tune the alert rule to exclude the known-good behavior
Disable the SIEM
Delete the logs
Ignore all alerts from that server forever
Show answer
A: Tune the alert rule to exclude the known-good behavior. Alert tuning reduces noise so real threats aren't missed in alert fatigue.
Question 18 · objective 4.5
Which protocol lets a user grant a third-party app limited access to their account resources without sharing their password?
LDAP
RADIUS
OAuth
Kerberos
Show answer
C: OAuth. OAuth is an authorization framework issuing access tokens with limited scopes. SAML and OpenID Connect handle federated authentication.
Question 19 · objective 4.6
A SOAR playbook automatically disables an account and opens a ticket when the SIEM detects impossible travel. Which benefit is this?
It replaces the SIEM
It eliminates false positives
Faster, consistent response that saves analyst time
It removes the need for any human oversight
Show answer
C: Faster, consistent response that saves analyst time. Automation speeds response and enforces consistency, but needs guardrails and review.
Question 20 · objective 4.7
An infected workstation is moved to an isolated VLAN so it can't spread malware but can still be analyzed. Which phase is this?
Identification
Preparation
Containment
Lessons learned
Show answer
C: Containment. Containment limits damage (quarantine/isolation) before eradication and recovery.
Question 21 · objective 4.8
A server is suspected of running fileless malware. Which evidence should be captured before shutting it down?
The rack diagram
Nothing; reboot first
A memory dump
Only the hard drive
Show answer
C: A memory dump. Fileless malware lives in RAM, which is lost at power-off. Follow the order of volatility.
Question 22 · objective 5.1
Which document tells employees how they may and may not use company systems and internet access?
Acceptable use policy (AUP)
Runbook
SLA
Risk register
Show answer
A: Acceptable use policy (AUP). The AUP defines permitted use and is often acknowledged at onboarding.
Question 23 · objective 5.2
A company buys cyber insurance to cover ransomware losses. Which risk treatment is this?
Transfer
Avoid
Accept
Mitigate
Show answer
A: Transfer. Transferring shifts financial impact to another party; the risk itself still exists.
Question 24 · objective 5.3
A company asks vendors for detailed, priced solutions to a defined project. Which document is this?
Request for information (RFI)
Memorandum of understanding (MOU)
Request for proposal (RFP)
Non-disclosure agreement (NDA)
Show answer
C: Request for proposal (RFP). An RFI gathers general information; an RFQ asks for pricing on specified items; an RFP asks for full proposals.
Question 25 · objective 5.4
A customer asks a company to delete all personal data it holds about them. Which privacy right is this?
Data sovereignty
Opt-in
Legal hold
Right to be forgotten (erasure)
Show answer
D: Right to be forgotten (erasure). GDPR and similar laws give individuals the right to erasure, subject to exceptions such as legal obligations.
Question 26 · objective 5.5
Penetration testers are given network diagrams, credentials and source code. What type of test is this?
Passive reconnaissance
Known environment
Partially known environment
Unknown environment
Show answer
B: Known environment. Known (white box) tests are thorough and efficient; unknown (black box) tests simulate an outside attacker.
Question 27 · objective 5.6
An employee clicks a simulated phishing link and is automatically enrolled in a short training module. Which training type is this?
Corrective/targeted
Initial onboarding
One-to-many keynote
Annual compliance only
Show answer
A: Corrective/targeted. Corrective and targeted training address specific behaviors or high-risk groups.
Keep going
These are 27 of 168 questions. The trainer shuffles answers every time, tracks your accuracy by objective, brings missed questions back on a schedule, and builds mock exams weighted like the real SY0-801.