Bird
0
0

Which PostgreSQL password authentication method stores passwords in a hashed format using SHA-256?

easy📝 Conceptual Q1 of 15
PostgreSQL - Roles and Security
Which PostgreSQL password authentication method stores passwords in a hashed format using SHA-256?
Apassword
Bscram-sha-256
Cmd5
Dtrust
Step-by-Step Solution
Solution:
  1. Step 1: Understand password storage methods in PostgreSQL

    PostgreSQL supports several password authentication methods, including plain text, MD5, and SCRAM-SHA-256.
  2. Step 2: Identify which method uses SHA-256 hashing

    SCRAM-SHA-256 uses SHA-256 hashing for storing passwords securely, unlike MD5 which uses MD5 hashing.
  3. Final Answer:

    scram-sha-256 -> Option B
  4. Quick Check:

    Password hashing method = scram-sha-256 [OK]
Quick Trick: SCRAM uses SHA-256 hashing, more secure than MD5 [OK]
Common Mistakes:
  • Confusing md5 with scram-sha-256
  • Thinking 'password' stores hashed passwords
  • Assuming 'trust' is a password method

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes