Verityprep
Question Bank

AP® Cybersecurity Practice Questions

Work through AP Cybersecurity practice 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.

Questions 101–110 of 127
  1. 101
  2. 102
  3. 103
  4. 104
  5. 105
  6. 106
  7. 107
  8. 108
  9. 109
  10. 110

Question 101

Multiple choice Unit 5: Securing Applications and Data

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:

Pick an answer, then check it. The solution opens in a window.

Question 102

Multiple choice Unit 5: Securing Applications and Data

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>

Pick an answer, then check it. The solution opens in a window.

Question 103

Multiple choice Unit 5: Securing Applications and Data

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?

Pick an answer, then check it. The solution opens in a window.

Question 104

Multiple choice Unit 5: Securing Applications and Data

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:

Pick an answer, then check it. The solution opens in a window.

Question 105

Multiple choice Unit 5: Securing Applications and Data

Consider the following statements about cryptography:

  1. SHA-256 is a cryptographic hash function producing a fixed 256-bit output.
  2. RSA can be used for both encryption and digital signatures.
  3. Hashing a password before storage is more secure than storing it in plaintext, even without salting (though salting is strongly preferred).

Which of the statements above are correct?

Pick an answer, then check it. The solution opens in a window.

Question 106

Multiple choice Unit 5: Securing Applications and Data
You are a security manager at an energy company, and you are reviewing an alert generated by an intrusion detection system ( IDS ), which flagged a file…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 107

Multiple choice Unit 5: Securing Applications and Data
A software developer is designing a login database. They set up the password database to store a hash of each user’s…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 108

Multiple choice Unit 5: Securing Applications and Data
You are a cybersecurity analyst at a healthcare organization, and you are reviewing the following web server logs after a security monitoring system detected…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 109

Multiple choice Unit 5: Securing Applications and Data
A hospital backup system is configured to generate a database of SHA-256 hashes for each file in the snapshot, enabling network administrators to perform…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 110

Multiple choice Unit 5: Securing Applications and Data
A system administrator for a computer running a Linux-based operating system wants to change the permissions on a file named final_script.py so that the owner…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 101 of 127
Page 11 of 13

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.