Back to practice

CompTIA Security+ SY0-801 sample

Twenty-five original questions. They are not items from the live exam. Try them, then use the answer key.

Download PDF

Questions

  1. General Security Concepts

    1. A technician must stop coworkers from editing firewall rules outside an approved change window. Which control fits that goal?

    1. AA preventive control that blocks those edits until the window is open
    2. BA detective control that raises an alert after an unapproved edit is already live
    3. CA corrective control that restores the previous rules once someone notices the edit
    4. DA compensating control that copies each rule change to a second log host
  2. 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?

    1. AConfidentiality, because the finance team was still able to open the shared ledger file
    2. BAvailability, because the file server kept answering requests through the whole night
    3. CIntegrity, because the ledger changed without an authorized update
    4. DNon-repudiation, because the ledger file name was still visible in the shared folder
  3. 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?

    1. ADefense in depth, because one product is expected to guard the entire customer export
    2. BLeast privilege, because the account can do more than the password-reset job needs
    3. CZero trust, because the help-desk PCs sit on the internal office network
    4. DNon-repudiation, because each password reset is not tied to a signed change ticket
  4. 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?

    1. ASymmetric encryption, with the secret key stored on the same server as the password file
    2. BAsymmetric encryption, with the public key written in the same folder as the stored passwords
    3. CTransport encryption, which protects a password only while it is crossing the network
    4. DA slow salted hash, so the stored value cannot be turned back into the password
  5. 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?

    1. AThe build matches what the private-key holder signed, and it was not altered afterward
    2. BThe build is free of malware, because the private key scanned every byte of the file
    3. CThe build is encrypted, and only the matching public key is able to execute the file
    4. DThe build will still install cleanly offline even after the vendor certificate has fully expired
  6. 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?

    1. AAs proof that an attacker is already exploiting the flaw on this specific network
    2. BAs a severity hint that still needs local exposure and asset context
    3. CAs a promise that the vendor will publish a patch within the next twenty-four hours
    4. DAs a reason to wait for the next quarterly meeting before anyone opens the ticket
  7. 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?

    1. AA nation-state campaign, chosen because the target happens to be a private retail business
    2. BAn outside theft ring that has never had any account or remote path here before
    3. CA harmless typo, because a disabled password fails the same way a mistyped one does
    4. DSomeone who already knew this remote path and tried a former credential after leaving
  8. 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?

    1. AVishing, because the message asks each person to read a password out loud on a call
    2. BTailgating, because the lure depends on following a coworker through a badge door
    3. CSmishing, because a text message is carrying a look-alike link to payroll
    4. DDumpster diving, because the lure depends on papers that were pulled from the trash
  9. 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?

    1. AThe query is being built from raw input instead of a bound parameter
    2. BThe site certificate is self-signed, so browsers cannot chain it to a trusted root
    3. CThe session cookie is missing the Secure attribute on the checkout pages
    4. DThe load balancer keeps each shopper pinned to the same server for the whole visit
  10. 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?

    1. AModel collapse caused by training the bot only on the company's old manuals
    2. BData poisoning caused by a mislabeled batch that is still sitting in an offline training set
    3. COverfitting caused by a test set that was reused as the model's training set
    4. DPrompt injection caused by untrusted text that tries to override the instructions
  11. Security Architecture

    11. Store registers share one flat network with office laptops and a file server. Which change best shrinks the blast radius?

    1. APut the registers on their own segment, with only the paths they actually need
    2. BGive every laptop a local administrator account so urgent patches can be rushed
    3. CTurn off register logging so the store uplink stays free for payment traffic
    4. DPublish the register subnet in public DNS so outside vendors can reach it easily
  12. Security Architecture

    12. A team moves a database to a managed cloud service. Who remains responsible for deciding which people can read the data?

    1. AThe cloud provider, because a managed database includes every identity decision
    2. BThe external auditor, because access reviews move into the provider's annual report
    3. CThe customer, because granting access to the data stays with the tenant
    4. DThe disk vendor, because the physical drives still sit in the provider's data-center racks
  13. Security Architecture

    13. Engineers want firewall and server builds reviewed the same way application code is reviewed. Which approach matches that goal?

    1. AConsole clicks recorded afterward in a shared spreadsheet the team updates on Fridays
    2. BInfrastructure defined in files that go through the same review as application code
    3. CA yearly diagram refresh performed after the production change is already live
    4. DScreenshot folders stored on a laptop that only one engineer is able to unlock
  14. Security Architecture

    14. A lab holds untrusted samples and must not route to the office network or the internet. Which design matches that requirement?

    1. AA VPN from the lab into the office, limited to logins during business hours
    2. BA jump box on the office LAN that opens a tunnel back into the lab network
    3. CA guest wireless SSID that shares the lab firewall's path out to the internet
    4. DNo routed path to other networks, with updates carried in by hand
  15. 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?

    1. AThe client cannot tie the presented key to the hostname it meant to reach
    2. BThe symmetric session key is too short for the cipher suite the server selected
    3. CThe server is using a hash function as if it were a reversible encryption key
    4. DUsers on the local subnet no longer need DNS in order to find the application
  16. Security Operations

    16. The on-call engineer needs one place to search failed logins from many servers. Which capability provides that?

    1. AA notepad file left open on the local console of each individual server
    2. BA single packet capture taken once during the yearly disaster-recovery drill
    3. CA central log pipeline that collects those events and makes them searchable
    4. DA warning banner displayed to each user before a password is typed
  17. 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?

    1. AA red-team exercise that spends a week trying to take over the mail system
    2. BA tabletop where managers talk through a fictional note from a ransomware crew
    3. CA penetration test that uses the missing patches in order to reach the payroll database
    4. DA vulnerability scan that reports the weaknesses and stops short of exploiting them
  18. Security Operations

    18. A laptop is encrypting file shares that the signed-in user can reach. What should happen first?

    1. AIsolate that laptop so the encryption job cannot reach any further shares
    2. BRebuild the laptop from an image before anyone maps how far the job has spread
    3. CPost the ransom note on the intranet so staff can look up the strain by name
    4. DTurn off logging on the file servers so the disks do not fill with new events
  19. Security Operations

    19. Nightly database backups are written onto the same volume as the live database files. Which gap matters most?

    1. AThe backup files use a different folder name than the folder that holds the live data
    2. BThe backup job runs under a service account instead of a named personal login
    3. COne disk failure, or one encryption event, can destroy the live data and the copy
    4. DThe backup window is written on the operations calendar so the on-call team can see it
  20. Security Operations

    20. A deployment script contains a domain-administrator password in plain text. Which replacement is sound?

    1. AMove that same password into a comment at the top of the script so it is easier to find
    2. BGive the job its own limited account, and store the secret in a vault
    3. CEmail the password to the whole team each Monday so that everyone has a current copy
    4. DDisable logging on the job so the password has fewer chances to show up in a log file
  21. 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?

    1. ARisk acceptance by the owner, who stays accountable for the risk that remains
    2. BRisk avoidance, because the register is still powered on and serving sales today
    3. CRisk transfer, because a signed note moves the risk onto the external audit firm
    4. DRisk mitigation, because the signature itself removes the underlying technical flaw
  22. Security Program Management and Oversight

    22. New staff need the exact clicks to join a laptop to the company. Which document is that?

    1. AA policy stating that unmanaged laptops must not be used for company work
    2. BA standard that names the single approved image for every company laptop
    3. CA guideline that suggests one browser and does not require the user to adopt it
    4. DA procedure that lists the steps an operator is expected to follow
  23. 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?

    1. AAn acceptable-use policy written only for the company's own employees and contractors
    2. BA service agreement that states the uptime target and what happens if it is missed
    3. CA clean-desk standard that tells staff to lock printed customer lists in a drawer
    4. DAn incident ticket opened the last time that same logging service was unreachable
  24. Security Program Management and Oversight

    24. Short phishing drills, plus a reminder just before tax season, are mainly which program activity?

    1. AA penetration test of the mail gateway and of the spam scores it assigns
    2. BA business-impact analysis that ranks each system by how much downtime would cost
    3. CAwareness work that helps people recognize common lures and report them
    4. DA disaster-recovery test that fails the mail service over to a spare site
  25. Security Program Management and Oversight

    25. An auditor wants proof that access reviews actually happened last quarter. Which artifact answers that request?

    1. AA slide deck that explains, in general terms, why access reviews are a good idea
    2. BSigned review records showing who was checked and which access was changed
    3. CThe vendor's marketing page for the identity product the company currently uses
    4. DA dashboard screenshot captured the morning of the audit kickoff meeting

Answer key

  1. General Security Concepts

    1. A technician must stop coworkers from editing firewall rules outside an approved change window. Which control fits that goal?

    1. AA preventive control that blocks those edits until the window is open
    2. BA detective control that raises an alert after an unapproved edit is already live
    3. CA corrective control that restores the previous rules once someone notices the edit
    4. 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.

  2. 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?

    1. AConfidentiality, because the finance team was still able to open the shared ledger file
    2. BAvailability, because the file server kept answering requests through the whole night
    3. CIntegrity, because the ledger changed without an authorized update
    4. 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.

  3. 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?

    1. ADefense in depth, because one product is expected to guard the entire customer export
    2. BLeast privilege, because the account can do more than the password-reset job needs
    3. CZero trust, because the help-desk PCs sit on the internal office network
    4. 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.

  4. 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?

    1. ASymmetric encryption, with the secret key stored on the same server as the password file
    2. BAsymmetric encryption, with the public key written in the same folder as the stored passwords
    3. CTransport encryption, which protects a password only while it is crossing the network
    4. 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.

  5. 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?

    1. AThe build matches what the private-key holder signed, and it was not altered afterward
    2. BThe build is free of malware, because the private key scanned every byte of the file
    3. CThe build is encrypted, and only the matching public key is able to execute the file
    4. 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.

  6. 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?

    1. AAs proof that an attacker is already exploiting the flaw on this specific network
    2. BAs a severity hint that still needs local exposure and asset context
    3. CAs a promise that the vendor will publish a patch within the next twenty-four hours
    4. 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.

  7. 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?

    1. AA nation-state campaign, chosen because the target happens to be a private retail business
    2. BAn outside theft ring that has never had any account or remote path here before
    3. CA harmless typo, because a disabled password fails the same way a mistyped one does
    4. 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.

  8. 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?

    1. AVishing, because the message asks each person to read a password out loud on a call
    2. BTailgating, because the lure depends on following a coworker through a badge door
    3. CSmishing, because a text message is carrying a look-alike link to payroll
    4. 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.

  9. 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?

    1. AThe query is being built from raw input instead of a bound parameter
    2. BThe site certificate is self-signed, so browsers cannot chain it to a trusted root
    3. CThe session cookie is missing the Secure attribute on the checkout pages
    4. 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.

  10. 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?

    1. AModel collapse caused by training the bot only on the company's old manuals
    2. BData poisoning caused by a mislabeled batch that is still sitting in an offline training set
    3. COverfitting caused by a test set that was reused as the model's training set
    4. 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.

  11. Security Architecture

    11. Store registers share one flat network with office laptops and a file server. Which change best shrinks the blast radius?

    1. APut the registers on their own segment, with only the paths they actually need
    2. BGive every laptop a local administrator account so urgent patches can be rushed
    3. CTurn off register logging so the store uplink stays free for payment traffic
    4. 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.

  12. Security Architecture

    12. A team moves a database to a managed cloud service. Who remains responsible for deciding which people can read the data?

    1. AThe cloud provider, because a managed database includes every identity decision
    2. BThe external auditor, because access reviews move into the provider's annual report
    3. CThe customer, because granting access to the data stays with the tenant
    4. 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.

  13. Security Architecture

    13. Engineers want firewall and server builds reviewed the same way application code is reviewed. Which approach matches that goal?

    1. AConsole clicks recorded afterward in a shared spreadsheet the team updates on Fridays
    2. BInfrastructure defined in files that go through the same review as application code
    3. CA yearly diagram refresh performed after the production change is already live
    4. 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.

  14. Security Architecture

    14. A lab holds untrusted samples and must not route to the office network or the internet. Which design matches that requirement?

    1. AA VPN from the lab into the office, limited to logins during business hours
    2. BA jump box on the office LAN that opens a tunnel back into the lab network
    3. CA guest wireless SSID that shares the lab firewall's path out to the internet
    4. 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.

  15. 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?

    1. AThe client cannot tie the presented key to the hostname it meant to reach
    2. BThe symmetric session key is too short for the cipher suite the server selected
    3. CThe server is using a hash function as if it were a reversible encryption key
    4. 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.

  16. Security Operations

    16. The on-call engineer needs one place to search failed logins from many servers. Which capability provides that?

    1. AA notepad file left open on the local console of each individual server
    2. BA single packet capture taken once during the yearly disaster-recovery drill
    3. CA central log pipeline that collects those events and makes them searchable
    4. 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.

  17. 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?

    1. AA red-team exercise that spends a week trying to take over the mail system
    2. BA tabletop where managers talk through a fictional note from a ransomware crew
    3. CA penetration test that uses the missing patches in order to reach the payroll database
    4. 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.

  18. Security Operations

    18. A laptop is encrypting file shares that the signed-in user can reach. What should happen first?

    1. AIsolate that laptop so the encryption job cannot reach any further shares
    2. BRebuild the laptop from an image before anyone maps how far the job has spread
    3. CPost the ransom note on the intranet so staff can look up the strain by name
    4. 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.

  19. Security Operations

    19. Nightly database backups are written onto the same volume as the live database files. Which gap matters most?

    1. AThe backup files use a different folder name than the folder that holds the live data
    2. BThe backup job runs under a service account instead of a named personal login
    3. COne disk failure, or one encryption event, can destroy the live data and the copy
    4. 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.

  20. Security Operations

    20. A deployment script contains a domain-administrator password in plain text. Which replacement is sound?

    1. AMove that same password into a comment at the top of the script so it is easier to find
    2. BGive the job its own limited account, and store the secret in a vault
    3. CEmail the password to the whole team each Monday so that everyone has a current copy
    4. 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.

  21. 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?

    1. ARisk acceptance by the owner, who stays accountable for the risk that remains
    2. BRisk avoidance, because the register is still powered on and serving sales today
    3. CRisk transfer, because a signed note moves the risk onto the external audit firm
    4. 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.

  22. Security Program Management and Oversight

    22. New staff need the exact clicks to join a laptop to the company. Which document is that?

    1. AA policy stating that unmanaged laptops must not be used for company work
    2. BA standard that names the single approved image for every company laptop
    3. CA guideline that suggests one browser and does not require the user to adopt it
    4. 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.

  23. 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?

    1. AAn acceptable-use policy written only for the company's own employees and contractors
    2. BA service agreement that states the uptime target and what happens if it is missed
    3. CA clean-desk standard that tells staff to lock printed customer lists in a drawer
    4. 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.

  24. Security Program Management and Oversight

    24. Short phishing drills, plus a reminder just before tax season, are mainly which program activity?

    1. AA penetration test of the mail gateway and of the spam scores it assigns
    2. BA business-impact analysis that ranks each system by how much downtime would cost
    3. CAwareness work that helps people recognize common lures and report them
    4. 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.

  25. Security Program Management and Oversight

    25. An auditor wants proof that access reviews actually happened last quarter. Which artifact answers that request?

    1. AA slide deck that explains, in general terms, why access reviews are a good idea
    2. BSigned review records showing who was checked and which access was changed
    3. CThe vendor's marketing page for the identity product the company currently uses
    4. 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.