Bird
0
0

In PostgreSQL, what does the command CREATE ROLE manager; do by default?

easy📝 Conceptual Q1 of 15
PostgreSQL - Roles and Security
In PostgreSQL, what does the command CREATE ROLE manager; do by default?
ACreates a role without login permission
BCreates a role with login permission
CCreates a user with a password
DCreates a database named 'manager'
Step-by-Step Solution
Solution:
  1. Step 1: Understand default behavior of CREATE ROLE

    By default, roles created with CREATE ROLE do not have login permission unless specified.
  2. Step 2: Analyze the command given

    The command CREATE ROLE manager; creates a role named 'manager' without login permission.
  3. Final Answer:

    Creates a role without login permission -> Option A
  4. Quick Check:

    Default CREATE ROLE = no login permission [OK]
Quick Trick: Roles need LOGIN explicitly to allow user access [OK]
Common Mistakes:
  • Assuming roles have login by default
  • Confusing roles with users
  • Thinking CREATE ROLE creates a database

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes