AP® Cybersecurity Multiple Choice Questions
Work through AP Cybersecurity multiple-choice questions unit by unit, then check each answer against a worked solution.
Free · no sign-up Open questions need no account. Sign up or log in to open the rest.
Question 92
Question 93
A hospital implements a system that automatically computes cryptographic hashes for every patient record and alerts administrators if a record's stored hash no longer matches the record's current contents. This control PRIMARILY addresses which element of the CIA triad?
Main Solution
Answer
Detecting unauthorized modification of data is the core of integrity protection. Hash-based tamper detection is a textbook integrity control.
Answer: Correct: B
Answer images
Question 94
Which of the following is NOT a property of a cryptographic hash function like SHA-256?
Main Solution
Answer
Hash functions are one-way — there is no decryption key. Reversibility is the defining property of encryption, not hashing.
Answer: Correct: C
Answer images
Question 95
An adversary obtains a database of unsalted SHA-256 password hashes and possesses a large rainbow table for SHA-256. Against which password configuration would the rainbow table attack be MOST likely to succeed?
Main Solution
Answer
Rainbow tables are precomputed for short, common passwords (especially those in widely-used lists). Long, random passwords are computationally infeasible to include.
Answer: Correct: B
Answer images
Question 96
Alice wants to send Bob a confidential file. They have never communicated before. Bob publishes his public key on his website. Alice encrypts the file with Bob's public key and sends it. The PRIMARY security property this achieves is:
Main Solution
Answer
Encrypting with the recipient's public key protects confidentiality — only the matching private key (held by Bob) can decrypt. It does not prove sender identity or message integrity.
Answer: Correct: A
Answer images
Question 97
A user downloads an open-source operating system ISO from a third-party mirror website. The official project posts SHA-256 hashes of legitimate ISOs on its main site. To verify the downloaded ISO has not been tampered with, the user should:
Main Solution
Answer
Hashing is deterministic. If the computed SHA-256 matches the official hash, the file is unmodified. This is the standard integrity-verification workflow.
Answer: Correct: B
Answer images
Question 98
A web application has a user profile page that displays the user's chosen display name embedded in HTML. An adversary sets their display name to a string containing </code> tags with malicious code. When other users view the adversary's profile, the script runs in their browsers and steals session cookies. Which TWO practices would MOST effectively prevent this vulnerability?</p><ul><li>I. Output encoding/escaping of HTML special characters when rendering user-supplied data</li><li>II. Encrypting the entire user database with AES-256</li><li>III. Implementing a Content Security Policy (CSP) restricting script execution</li><li>IV. Requiring MFA for all user accounts</li></ul>
Main Solution
Answer
This is cross-site scripting (XSS). Output encoding prevents user input from being interpreted as HTML/JavaScript; CSP restricts which scripts the browser will execute. Database encryption and MFA do not stop XSS.
Answer: Correct: B
Answer images
Question 99
Two business partners need to exchange a 5 GB encrypted database file over a public network. They want both efficiency and the ability to establish a shared secret without any prior in-person contact. Which approach BEST meets both needs?
Main Solution
Answer
Hybrid encryption is the standard solution — asymmetric encryption solves key distribution for the small session key; symmetric encryption efficiently protects the bulk data.
Answer: Correct: B
Answer images
Question 100
When a user's browser connects to an online banking website over HTTPS, the bank's web server presents a digital certificate signed by a trusted Certificate Authority. The browser uses this certificate primarily to:
Main Solution
Answer
A digital certificate binds the verified identity of the server to its public key. The browser uses this to authenticate the server and bootstrap the encrypted session.
Answer: Correct: B
Answer images
AP® and Advanced Placement® are registered trademarks of the College Board, which is not affiliated with, and does not endorse, Verityprep. Names are used for identification purposes only.

