Bird
0
0

What does the GRANT command do in PostgreSQL?

easy📝 Conceptual Q11 of 15
PostgreSQL - Roles and Security
What does the GRANT command do in PostgreSQL?
AIt gives specific permissions to a user or role.
BIt deletes a user from the database.
CIt creates a new database.
DIt backs up the database.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of GRANT

    The GRANT command is used to give permissions like SELECT, INSERT, or UPDATE to users or roles.
  2. Step 2: Compare with other options

    Deleting users, creating databases, or backing up are done by other commands, not GRANT.
  3. Final Answer:

    It gives specific permissions to a user or role. -> Option A
  4. Quick Check:

    GRANT = give permissions [OK]
Quick Trick: GRANT means give rights; REVOKE means take away [OK]
Common Mistakes:
  • Confusing GRANT with user creation
  • Thinking GRANT deletes data
  • Mixing GRANT with backup commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes