PostgreSQL - Roles and SecurityWhich PostgreSQL password authentication method stores passwords in a hashed format using SHA-256?ApasswordBscram-sha-256Cmd5DtrustCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand password storage methods in PostgreSQLPostgreSQL supports several password authentication methods, including plain text, MD5, and SCRAM-SHA-256.Step 2: Identify which method uses SHA-256 hashingSCRAM-SHA-256 uses SHA-256 hashing for storing passwords securely, unlike MD5 which uses MD5 hashing.Final Answer:scram-sha-256 -> Option BQuick 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-256Thinking 'password' stores hashed passwordsAssuming 'trust' is a password method
Master "Roles and Security" in PostgreSQL9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More PostgreSQL Quizzes Advanced Features - Logical replication basics - Quiz 10hard Advanced PL/pgSQL - Performing operations on cursors - Quiz 12easy Advanced PL/pgSQL - Dynamic SQL with EXECUTE - Quiz 8hard Indexing Strategies - BRIN index for large sequential data - Quiz 7medium Indexing Strategies - Covering indexes with INCLUDE - Quiz 11easy PL/pgSQL Fundamentals - IF-ELSIF-ELSE control flow - Quiz 13medium Performance Tuning - Sequential scan vs index scan - Quiz 9hard Roles and Security - Schema-level access control - Quiz 6medium Transactions and Concurrency - Deadlock detection and prevention - Quiz 12easy Triggers in PostgreSQL - Trigger for data validation - Quiz 13medium