0
0
PostgreSQLquery~5 mins

Password authentication methods in PostgreSQL - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of password authentication methods in PostgreSQL?
Password authentication methods in PostgreSQL control how users prove their identity when connecting to the database, ensuring only authorized users can access it.
Click to reveal answer
intermediate
Explain the difference between md5 and scram-sha-256 authentication methods.
md5 hashes passwords using MD5 algorithm but is less secure. scram-sha-256 uses a stronger SHA-256 hashing with salting and is recommended for better security.
Click to reveal answer
beginner
What is the role of the pg_hba.conf file in password authentication?
The pg_hba.conf file defines which authentication methods PostgreSQL uses for different users, databases, and connection types.
Click to reveal answer
intermediate
How does password authentication differ from md5 in PostgreSQL?
password sends the password in clear text (not recommended), while md5 sends a hashed password, providing better security over the network.
Click to reveal answer
advanced
Why is scram-sha-256 considered more secure than md5 for password authentication?
scram-sha-256 uses salted hashing and multiple iterations making it resistant to dictionary and replay attacks, unlike md5 which is vulnerable to these attacks.
Click to reveal answer
Which PostgreSQL password authentication method uses SHA-256 hashing?
Ascram-sha-256
Bmd5
Cpassword
Dtrust
Where do you configure the password authentication methods in PostgreSQL?
Apg_password.conf
Bpostgresql.conf
Cpg_ident.conf
Dpg_hba.conf
What does the password authentication method do in PostgreSQL?
ASends hashed password with MD5
BSends password in clear text
CUses SCRAM with SHA-256
DAllows connection without password
Which authentication method is recommended for better security in PostgreSQL?
Aident
Btrust
Cscram-sha-256
Dpassword
What is a key benefit of using scram-sha-256 over md5?
AResistance to replay attacks
BSends password in plain text
CNo password required
DUses MD5 hashing
Describe how PostgreSQL uses password authentication methods to secure database connections.
Think about how PostgreSQL checks user identity and protects passwords.
You got /4 concepts.
    Explain why scram-sha-256 is preferred over md5 for password authentication in PostgreSQL.
    Focus on the security improvements in the hashing method.
    You got /4 concepts.