PostgreSQL - Roles and SecurityWhich password authentication method in PostgreSQL is considered more secure and recommended for use?Ascram-sha-256Bmd5CpasswordDtrustCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand common PostgreSQL password methodsPostgreSQL supports several password authentication methods including md5 and scram-sha-256.Step 2: Compare security levelsSCRAM-SHA-256 is a newer, more secure method than MD5, which is older and less secure.Final Answer:scram-sha-256 -> Option AQuick Check:More secure method = scram-sha-256 [OK]Quick Trick: SCRAM is newer and stronger than MD5 for passwords [OK]Common Mistakes:Confusing md5 as more secure than scram-sha-256Choosing 'password' which sends plain textSelecting 'trust' which requires no password
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