Skip to main content

CISSP practice question · Software Development Security

A team is designing password storage for a new web application. Which approach BEST protects stored passwords if the…

A team is designing password storage for a new web application. Which approach BEST protects stored passwords if the database is stolen?

  • ASHA-256 of each password combined with one site-wide salt
  • BAES-256 encryption with the key kept in the application config
  • CMD5 hashing with a unique salt for each user
  • DA slow, salted password hashing function such as Argon2id or bcrypt
Show the answer and explanation

Correct answer: D) A slow, salted password hashing function such as Argon2id or bcrypt

Passwords should be stored with a slow, salted, purpose-built password hashing function such as Argon2id, scrypt or bcrypt, which makes offline guessing expensive.

Why each option is right or wrong

  • A) Incorrect. SHA-256 is fast, so attackers can test billions of guesses per second on GPUs, and a single shared salt lets them attack all hashes at once.
  • B) Incorrect. Encryption is reversible: an attacker who obtains the key, which often sits on the same server, recovers every password at once.
  • C) Incorrect. Per-user salts help, but MD5 is extremely fast and broken for collision resistance, making brute-force guessing cheap.
  • D) Correct. These algorithms are designed to be computationally expensive and use a unique salt per password, which defeats precomputed tables and greatly slows brute-force guessing. OWASP's Password Storage Cheat Sheet recommends Argon2id.
Exam domain
Software Development Security · 10% of CISSP
Question type
Multiple choice (one answer)

Practise the full CISSP exam

This question is one of a small free sample from the CertRidge CISSP bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with ISC2; never copied from the real exam.