CompTIA Security+ SY0-801 sample
Twenty-five original questions. They are not items from the live exam. Try them, then use the answer key.
Questions
-
General Security Concepts
1. A technician must stop coworkers from editing firewall rules outside an approved change window. Which control fits that goal?
- AA preventive control that blocks those edits until the window is open
- BA detective control that raises an alert after an unapproved edit is already live
- CA corrective control that restores the previous rules once someone notices the edit
- DA compensating control that copies each rule change to a second log host
-
General Security Concepts
2. Finance can open a shared ledger, and the file server never went down, but several totals changed overnight with no ticket. Which part of the CIA triad failed?
- AConfidentiality, because the finance team was still able to open the shared ledger file
- BAvailability, because the file server kept answering requests through the whole night
- CIntegrity, because the ledger changed without an authorized update
- DNon-repudiation, because the ledger file name was still visible in the shared folder
-
General Security Concepts
3. A help-desk account can reset passwords and can also export every row in the customer database. Which principle is being missed?
- ADefense in depth, because one product is expected to guard the entire customer export
- BLeast privilege, because the account can do more than the password-reset job needs
- CZero trust, because the help-desk PCs sit on the internal office network
- DNon-repudiation, because each password reset is not tied to a signed change ticket
-
General Security Concepts
4. A site must store passwords so a breach does not reveal the original strings, and the application never needs to decrypt them. Which design fits?
- ASymmetric encryption, with the secret key stored on the same server as the password file
- BAsymmetric encryption, with the public key written in the same folder as the stored passwords
- CTransport encryption, which protects a password only while it is crossing the network
- DA slow salted hash, so the stored value cannot be turned back into the password
-
General Security Concepts
5. A vendor publishes a software build plus a small value created with the vendor's private key. What does a successful check of that value tell you?
- AThe build matches what the private-key holder signed, and it was not altered afterward
- BThe build is free of malware, because the private key scanned every byte of the file
- CThe build is encrypted, and only the matching public key is able to execute the file
- DThe build will still install cleanly offline even after the vendor certificate has fully expired
-
Threats, Vulnerabilities, and Attacks
6. A feed reports a 9.8 severity score for a library that one internal tool uses. How should the team treat that number?
- AAs proof that an attacker is already exploiting the flaw on this specific network
- BAs a severity hint that still needs local exposure and asset context
- CAs a promise that the vendor will publish a patch within the next twenty-four hours
- DAs a reason to wait for the next quarterly meeting before anyone opens the ticket
-
Threats, Vulnerabilities, and Attacks
7. Logs show a former contractor trying the company VPN with the password that was disabled on their last day. Which reading best fits that evidence?
- AA nation-state campaign, chosen because the target happens to be a private retail business
- BAn outside theft ring that has never had any account or remote path here before
- CA harmless typo, because a disabled password fails the same way a mistyped one does
- DSomeone who already knew this remote path and tried a former credential after leaving
-
Threats, Vulnerabilities, and Attacks
8. Employees get text messages saying the payroll password expired, plus a link whose domain is one letter off the real site. Which attack is this?
- AVishing, because the message asks each person to read a password out loud on a call
- BTailgating, because the lure depends on following a coworker through a badge door
- CSmishing, because a text message is carrying a look-alike link to payroll
- DDumpster diving, because the lure depends on papers that were pulled from the trash
-
Threats, Vulnerabilities, and Attacks
9. An order-id field starts returning database errors when the input contains a single quote. Which weakness does that behavior suggest?
- AThe query is being built from raw input instead of a bound parameter
- BThe site certificate is self-signed, so browsers cannot chain it to a trusted root
- CThe session cookie is missing the Secure attribute on the checkout pages
- DThe load balancer keeps each shopper pinned to the same server for the whole visit
-
Threats, Vulnerabilities, and Attacks
10. A support chatbot is told, inside a customer message, to ignore its rules and print the hidden system prompt. Which issue is this?
- AModel collapse caused by training the bot only on the company's old manuals
- BData poisoning caused by a mislabeled batch that is still sitting in an offline training set
- COverfitting caused by a test set that was reused as the model's training set
- DPrompt injection caused by untrusted text that tries to override the instructions
-
Security Architecture
11. Store registers share one flat network with office laptops and a file server. Which change best shrinks the blast radius?
- APut the registers on their own segment, with only the paths they actually need
- BGive every laptop a local administrator account so urgent patches can be rushed
- CTurn off register logging so the store uplink stays free for payment traffic
- DPublish the register subnet in public DNS so outside vendors can reach it easily
-
Security Architecture
12. A team moves a database to a managed cloud service. Who remains responsible for deciding which people can read the data?
- AThe cloud provider, because a managed database includes every identity decision
- BThe external auditor, because access reviews move into the provider's annual report
- CThe customer, because granting access to the data stays with the tenant
- DThe disk vendor, because the physical drives still sit in the provider's data-center racks
-
Security Architecture
13. Engineers want firewall and server builds reviewed the same way application code is reviewed. Which approach matches that goal?
- AConsole clicks recorded afterward in a shared spreadsheet the team updates on Fridays
- BInfrastructure defined in files that go through the same review as application code
- CA yearly diagram refresh performed after the production change is already live
- DScreenshot folders stored on a laptop that only one engineer is able to unlock
-
Security Architecture
14. A lab holds untrusted samples and must not route to the office network or the internet. Which design matches that requirement?
- AA VPN from the lab into the office, limited to logins during business hours
- BA jump box on the office LAN that opens a tunnel back into the lab network
- CA guest wireless SSID that shares the lab firewall's path out to the internet
- DNo routed path to other networks, with updates carried in by hand
-
Security Architecture
15. A browser warns that the name on the certificate does not match the site in the address bar. What is the main failure?
- AThe client cannot tie the presented key to the hostname it meant to reach
- BThe symmetric session key is too short for the cipher suite the server selected
- CThe server is using a hash function as if it were a reversible encryption key
- DUsers on the local subnet no longer need DNS in order to find the application
-
Security Operations
16. The on-call engineer needs one place to search failed logins from many servers. Which capability provides that?
- AA notepad file left open on the local console of each individual server
- BA single packet capture taken once during the yearly disaster-recovery drill
- CA central log pipeline that collects those events and makes them searchable
- DA warning banner displayed to each user before a password is typed
-
Security Operations
17. Leadership wants a scheduled check that lists missing patches on laptops and does not exploit those missing patches. Which activity is this?
- AA red-team exercise that spends a week trying to take over the mail system
- BA tabletop where managers talk through a fictional note from a ransomware crew
- CA penetration test that uses the missing patches in order to reach the payroll database
- DA vulnerability scan that reports the weaknesses and stops short of exploiting them
-
Security Operations
18. A laptop is encrypting file shares that the signed-in user can reach. What should happen first?
- AIsolate that laptop so the encryption job cannot reach any further shares
- BRebuild the laptop from an image before anyone maps how far the job has spread
- CPost the ransom note on the intranet so staff can look up the strain by name
- DTurn off logging on the file servers so the disks do not fill with new events
-
Security Operations
19. Nightly database backups are written onto the same volume as the live database files. Which gap matters most?
- AThe backup files use a different folder name than the folder that holds the live data
- BThe backup job runs under a service account instead of a named personal login
- COne disk failure, or one encryption event, can destroy the live data and the copy
- DThe backup window is written on the operations calendar so the on-call team can see it
-
Security Operations
20. A deployment script contains a domain-administrator password in plain text. Which replacement is sound?
- AMove that same password into a comment at the top of the script so it is easier to find
- BGive the job its own limited account, and store the secret in a vault
- CEmail the password to the whole team each Monday so that everyone has a current copy
- DDisable logging on the job so the password has fewer chances to show up in a log file
-
Security Program Management and Oversight
21. A flaw is real, a quick fix would break a legacy register, and the owner signs a note to live with the flaw until the register is replaced. What is that decision?
- ARisk acceptance by the owner, who stays accountable for the risk that remains
- BRisk avoidance, because the register is still powered on and serving sales today
- CRisk transfer, because a signed note moves the risk onto the external audit firm
- DRisk mitigation, because the signature itself removes the underlying technical flaw
-
Security Program Management and Oversight
22. New staff need the exact clicks to join a laptop to the company. Which document is that?
- AA policy stating that unmanaged laptops must not be used for company work
- BA standard that names the single approved image for every company laptop
- CA guideline that suggests one browser and does not require the user to adopt it
- DA procedure that lists the steps an operator is expected to follow
-
Security Program Management and Oversight
23. A contract says a logging service will be reachable 99.9 percent of each calendar month. Which document usually holds that promise?
- AAn acceptable-use policy written only for the company's own employees and contractors
- BA service agreement that states the uptime target and what happens if it is missed
- CA clean-desk standard that tells staff to lock printed customer lists in a drawer
- DAn incident ticket opened the last time that same logging service was unreachable
-
Security Program Management and Oversight
24. Short phishing drills, plus a reminder just before tax season, are mainly which program activity?
- AA penetration test of the mail gateway and of the spam scores it assigns
- BA business-impact analysis that ranks each system by how much downtime would cost
- CAwareness work that helps people recognize common lures and report them
- DA disaster-recovery test that fails the mail service over to a spare site
-
Security Program Management and Oversight
25. An auditor wants proof that access reviews actually happened last quarter. Which artifact answers that request?
- AA slide deck that explains, in general terms, why access reviews are a good idea
- BSigned review records showing who was checked and which access was changed
- CThe vendor's marketing page for the identity product the company currently uses
- DA dashboard screenshot captured the morning of the audit kickoff meeting
Answer key
-
General Security Concepts
1. A technician must stop coworkers from editing firewall rules outside an approved change window. Which control fits that goal?
- AA preventive control that blocks those edits until the window is open
- BA detective control that raises an alert after an unapproved edit is already live
- CA corrective control that restores the previous rules once someone notices the edit
- DA compensating control that copies each rule change to a second log host
Answer: A. A preventive control stops the unwanted edit before it happens. Alerts, a restore, and an extra log all happen after the change, or beside it, and do not block it.
-
General Security Concepts
2. Finance can open a shared ledger, and the file server never went down, but several totals changed overnight with no ticket. Which part of the CIA triad failed?
- AConfidentiality, because the finance team was still able to open the shared ledger file
- BAvailability, because the file server kept answering requests through the whole night
- CIntegrity, because the ledger changed without an authorized update
- DNon-repudiation, because the ledger file name was still visible in the shared folder
Answer: C. Integrity means the data stays accurate and unaltered unless an authorized change is made. The file was still available and still readable, so this is not a confidentiality or availability failure.
-
General Security Concepts
3. A help-desk account can reset passwords and can also export every row in the customer database. Which principle is being missed?
- ADefense in depth, because one product is expected to guard the entire customer export
- BLeast privilege, because the account can do more than the password-reset job needs
- CZero trust, because the help-desk PCs sit on the internal office network
- DNon-repudiation, because each password reset is not tied to a signed change ticket
Answer: B. Least privilege means the account holds only the rights the job needs. Exporting every customer row is far more access than a password reset requires.
-
General Security Concepts
4. A site must store passwords so a breach does not reveal the original strings, and the application never needs to decrypt them. Which design fits?
- ASymmetric encryption, with the secret key stored on the same server as the password file
- BAsymmetric encryption, with the public key written in the same folder as the stored passwords
- CTransport encryption, which protects a password only while it is crossing the network
- DA slow salted hash, so the stored value cannot be turned back into the password
Answer: D. If you never need the original password back, store a slow salted hash. Encryption is reversible if the key leaks, and transport encryption stops protecting the value once it is stored.
-
General Security Concepts
5. A vendor publishes a software build plus a small value created with the vendor's private key. What does a successful check of that value tell you?
- AThe build matches what the private-key holder signed, and it was not altered afterward
- BThe build is free of malware, because the private key scanned every byte of the file
- CThe build is encrypted, and only the matching public key is able to execute the file
- DThe build will still install cleanly offline even after the vendor certificate has fully expired
Answer: A. Checking a signature with the public key supports authenticity and integrity. A signature does not scan for malware, and it does not encrypt the file.
-
Threats, Vulnerabilities, and Attacks
6. A feed reports a 9.8 severity score for a library that one internal tool uses. How should the team treat that number?
- AAs proof that an attacker is already exploiting the flaw on this specific network
- BAs a severity hint that still needs local exposure and asset context
- CAs a promise that the vendor will publish a patch within the next twenty-four hours
- DAs a reason to wait for the next quarterly meeting before anyone opens the ticket
Answer: B. A generic severity score is a starting point, not a decision. Priority still depends on whether the flaw is reachable in this environment and how important the asset is.
-
Threats, Vulnerabilities, and Attacks
7. Logs show a former contractor trying the company VPN with the password that was disabled on their last day. Which reading best fits that evidence?
- AA nation-state campaign, chosen because the target happens to be a private retail business
- BAn outside theft ring that has never had any account or remote path here before
- CA harmless typo, because a disabled password fails the same way a mistyped one does
- DSomeone who already knew this remote path and tried a former credential after leaving
Answer: D. The attempts use this VPN and a credential issued to a person who just left. That fits a former insider much better than a stranger with no history on the path.
-
Threats, Vulnerabilities, and Attacks
8. Employees get text messages saying the payroll password expired, plus a link whose domain is one letter off the real site. Which attack is this?
- AVishing, because the message asks each person to read a password out loud on a call
- BTailgating, because the lure depends on following a coworker through a badge door
- CSmishing, because a text message is carrying a look-alike link to payroll
- DDumpster diving, because the lure depends on papers that were pulled from the trash
Answer: C. Smishing is phishing delivered by SMS. Vishing uses a voice call, tailgating is physical follow-through, and dumpster diving uses discarded documents.
-
Threats, Vulnerabilities, and Attacks
9. An order-id field starts returning database errors when the input contains a single quote. Which weakness does that behavior suggest?
- AThe query is being built from raw input instead of a bound parameter
- BThe site certificate is self-signed, so browsers cannot chain it to a trusted root
- CThe session cookie is missing the Secure attribute on the checkout pages
- DThe load balancer keeps each shopper pinned to the same server for the whole visit
Answer: A. A quote that changes how a query runs is a sign of injection: the input is being treated as part of the command. The other faults are real in other cases, but they do not produce this symptom.
-
Threats, Vulnerabilities, and Attacks
10. A support chatbot is told, inside a customer message, to ignore its rules and print the hidden system prompt. Which issue is this?
- AModel collapse caused by training the bot only on the company's old manuals
- BData poisoning caused by a mislabeled batch that is still sitting in an offline training set
- COverfitting caused by a test set that was reused as the model's training set
- DPrompt injection caused by untrusted text that tries to override the instructions
Answer: D. Prompt injection hides instructions inside content the model is asked to read. Poisoning and overfitting are training-time problems, and they do not arrive as one live customer message.
-
Security Architecture
11. Store registers share one flat network with office laptops and a file server. Which change best shrinks the blast radius?
- APut the registers on their own segment, with only the paths they actually need
- BGive every laptop a local administrator account so urgent patches can be rushed
- CTurn off register logging so the store uplink stays free for payment traffic
- DPublish the register subnet in public DNS so outside vendors can reach it easily
Answer: A. Segmentation limits how far one compromised laptop can reach. Extra admin rights, less logging, and a public DNS record make the blast radius larger, not smaller.
-
Security Architecture
12. A team moves a database to a managed cloud service. Who remains responsible for deciding which people can read the data?
- AThe cloud provider, because a managed database includes every identity decision
- BThe external auditor, because access reviews move into the provider's annual report
- CThe customer, because granting access to the data stays with the tenant
- DThe disk vendor, because the physical drives still sit in the provider's data-center racks
Answer: C. In the shared-responsibility model, the provider runs the managed service. The customer still decides who may access the data and still reviews that access.
-
Security Architecture
13. Engineers want firewall and server builds reviewed the same way application code is reviewed. Which approach matches that goal?
- AConsole clicks recorded afterward in a shared spreadsheet the team updates on Fridays
- BInfrastructure defined in files that go through the same review as application code
- CA yearly diagram refresh performed after the production change is already live
- DScreenshot folders stored on a laptop that only one engineer is able to unlock
Answer: B. Infrastructure as code puts the build in files that can be reviewed before they ship. A later spreadsheet, a stale diagram, or a private screenshot is not that review.
-
Security Architecture
14. A lab holds untrusted samples and must not route to the office network or the internet. Which design matches that requirement?
- AA VPN from the lab into the office, limited to logins during business hours
- BA jump box on the office LAN that opens a tunnel back into the lab network
- CA guest wireless SSID that shares the lab firewall's path out to the internet
- DNo routed path to other networks, with updates carried in by hand
Answer: D. An air-gapped network has no routed path to other networks. A VPN, a jump box, or a shared upstream path would connect the lab to something it must not reach.
-
Security Architecture
15. A browser warns that the name on the certificate does not match the site in the address bar. What is the main failure?
- AThe client cannot tie the presented key to the hostname it meant to reach
- BThe symmetric session key is too short for the cipher suite the server selected
- CThe server is using a hash function as if it were a reversible encryption key
- DUsers on the local subnet no longer need DNS in order to find the application
Answer: A. The name on the certificate is how a client binds a key to a hostname. A mismatch means that binding failed, even if the rest of the handshake looks strong.
-
Security Operations
16. The on-call engineer needs one place to search failed logins from many servers. Which capability provides that?
- AA notepad file left open on the local console of each individual server
- BA single packet capture taken once during the yearly disaster-recovery drill
- CA central log pipeline that collects those events and makes them searchable
- DA warning banner displayed to each user before a password is typed
Answer: C. Central logging brings events from many hosts into one searchable place. Local notes, a one-time capture, and a login banner do not give you that search.
-
Security Operations
17. Leadership wants a scheduled check that lists missing patches on laptops and does not exploit those missing patches. Which activity is this?
- AA red-team exercise that spends a week trying to take over the mail system
- BA tabletop where managers talk through a fictional note from a ransomware crew
- CA penetration test that uses the missing patches in order to reach the payroll database
- DA vulnerability scan that reports the weaknesses and stops short of exploiting them
Answer: D. A vulnerability scan identifies and reports weaknesses. A penetration test or red-team exercise tries to exploit them. A tabletop is a discussion, not a patch inventory.
-
Security Operations
18. A laptop is encrypting file shares that the signed-in user can reach. What should happen first?
- AIsolate that laptop so the encryption job cannot reach any further shares
- BRebuild the laptop from an image before anyone maps how far the job has spread
- CPost the ransom note on the intranet so staff can look up the strain by name
- DTurn off logging on the file servers so the disks do not fill with new events
Answer: A. Contain the host first so the damage stops spreading. Rebuilding too early, publishing the note, or disabling logs makes the rest of the response harder.
-
Security Operations
19. Nightly database backups are written onto the same volume as the live database files. Which gap matters most?
- AThe backup files use a different folder name than the folder that holds the live data
- BThe backup job runs under a service account instead of a named personal login
- COne disk failure, or one encryption event, can destroy the live data and the copy
- DThe backup window is written on the operations calendar so the on-call team can see it
Answer: C. Copies on the same volume fail together if that disk dies or if ransomware encrypts it. A useful backup is a separate copy, and someone still has to test a restore.
-
Security Operations
20. A deployment script contains a domain-administrator password in plain text. Which replacement is sound?
- AMove that same password into a comment at the top of the script so it is easier to find
- BGive the job its own limited account, and store the secret in a vault
- CEmail the password to the whole team each Monday so that everyone has a current copy
- DDisable logging on the job so the password has fewer chances to show up in a log file
Answer: B. The job should run as its own low-privilege account, and the secret should live in a vault rather than in the script. A comment, a group email, or quieter logs leave the password exposed.
-
Security Program Management and Oversight
21. A flaw is real, a quick fix would break a legacy register, and the owner signs a note to live with the flaw until the register is replaced. What is that decision?
- ARisk acceptance by the owner, who stays accountable for the risk that remains
- BRisk avoidance, because the register is still powered on and serving sales today
- CRisk transfer, because a signed note moves the risk onto the external audit firm
- DRisk mitigation, because the signature itself removes the underlying technical flaw
Answer: A. Acceptance means an accountable owner knowingly keeps a risk for a stated reason and a stated time. The note does not remove the flaw, stop the activity, or hand the risk to the auditor.
-
Security Program Management and Oversight
22. New staff need the exact clicks to join a laptop to the company. Which document is that?
- AA policy stating that unmanaged laptops must not be used for company work
- BA standard that names the single approved image for every company laptop
- CA guideline that suggests one browser and does not require the user to adopt it
- DA procedure that lists the steps an operator is expected to follow
Answer: D. A procedure is the step-by-step. A policy sets the rule, a standard sets the required build, and a guideline is advice the reader may skip.
-
Security Program Management and Oversight
23. A contract says a logging service will be reachable 99.9 percent of each calendar month. Which document usually holds that promise?
- AAn acceptable-use policy written only for the company's own employees and contractors
- BA service agreement that states the uptime target and what happens if it is missed
- CA clean-desk standard that tells staff to lock printed customer lists in a drawer
- DAn incident ticket opened the last time that same logging service was unreachable
Answer: B. An uptime commitment belongs in a service agreement. Internal policies and standards direct your own people, and a ticket records one outage rather than the ongoing promise.
-
Security Program Management and Oversight
24. Short phishing drills, plus a reminder just before tax season, are mainly which program activity?
- AA penetration test of the mail gateway and of the spam scores it assigns
- BA business-impact analysis that ranks each system by how much downtime would cost
- CAwareness work that helps people recognize common lures and report them
- DA disaster-recovery test that fails the mail service over to a spare site
Answer: C. Drills and short reminders are awareness work. They are not a technical test of the mail gateway, a downtime-cost ranking, or a failover exercise.
-
Security Program Management and Oversight
25. An auditor wants proof that access reviews actually happened last quarter. Which artifact answers that request?
- AA slide deck that explains, in general terms, why access reviews are a good idea
- BSigned review records showing who was checked and which access was changed
- CThe vendor's marketing page for the identity product the company currently uses
- DA dashboard screenshot captured the morning of the audit kickoff meeting
Answer: B. The review record is evidence that the control ran and what the outcome was. Slides, a marketing page, and a same-morning screenshot do not show last quarter's review.
Independent practice material. Not affiliated with or endorsed by CompTIA.