Certification Lab Trainer

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.

Question 1 · objective 1.1

An attacker changes the amount on an invoice in transit. Which part of the CIA triad was violated?

  1. Availability
  2. Non-repudiation
  3. Confidentiality
  4. 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?

  1. Data custodian
  2. Change advisory board (CAB)
  3. Incident response team
  4. 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?

  1. Salting
  2. Key escrow
  3. OCSP
  4. 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?

  1. CVSS
  2. SCAP
  3. Common Vulnerabilities and Exposures (CVE)
  4. 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?

  1. Unskilled attacker
  2. Accidental insider
  3. State-sponsored
  4. 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?

  1. Tailgating
  2. Typosquatting
  3. Vishing
  4. 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?

  1. Public repository exposure
  2. Bluetooth pairing
  3. Race condition
  4. Hardcoded secrets
  5. 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)
  1. Brute force against one account
  2. Password spraying
  3. Replay attack
  4. 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?

  1. Bias
  2. Prompt injection (indirect)
  3. Hallucination
  4. 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?

  1. The ISP
  2. The cloud provider
  3. The customer
  4. 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?

  1. In a screened subnet (DMZ) security zone
  2. In the same subnet as the domain controllers
  3. On the internal user VLAN
  4. 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?

  1. Data in transit
  2. Data in use
  3. Data in archive
  4. 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?

  1. Deduplication
  2. Compression
  3. Immutability
  4. 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?

  1. Honeyfile
  2. DLP
  3. Sandbox
  4. 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?

  1. It's only needed for audits
  2. You can't protect, patch or monitor what you don't know you have
  3. It replaces vulnerability scanning
  4. 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?

  1. False negative
  2. True positive
  3. Zero-day
  4. 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?

  1. Tune the alert rule to exclude the known-good behavior
  2. Disable the SIEM
  3. Delete the logs
  4. 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?

  1. LDAP
  2. RADIUS
  3. OAuth
  4. 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?

  1. It replaces the SIEM
  2. It eliminates false positives
  3. Faster, consistent response that saves analyst time
  4. 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?

  1. Identification
  2. Preparation
  3. Containment
  4. 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?

  1. The rack diagram
  2. Nothing; reboot first
  3. A memory dump
  4. 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?

  1. Acceptable use policy (AUP)
  2. Runbook
  3. SLA
  4. 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?

  1. Transfer
  2. Avoid
  3. Accept
  4. 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?

  1. Request for information (RFI)
  2. Memorandum of understanding (MOU)
  3. Request for proposal (RFP)
  4. 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?

  1. Data sovereignty
  2. Opt-in
  3. Legal hold
  4. 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?

  1. Passive reconnaissance
  2. Known environment
  3. Partially known environment
  4. 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?

  1. Corrective/targeted
  2. Initial onboarding
  3. One-to-many keynote
  4. 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.

Open the trainer