ExamGecko
Question list
Search
Search

Question 447 - COF-C02 discussion

Report
Export

Which SQL command can be used to verify the privileges that are granted to a role?

A.
SHOW GRANTS ON ROLE <Role Name>
Answers
A.
SHOW GRANTS ON ROLE <Role Name>
B.
SHOW ROLES <Role Name>
Answers
B.
SHOW ROLES <Role Name>
C.
SHOW GRANTS TO ROLE <Role Name>
Answers
C.
SHOW GRANTS TO ROLE <Role Name>
D.
SHOW GRANTS FOR ROLE <Role Name>
Answers
D.
SHOW GRANTS FOR ROLE <Role Name>
Suggested answer: C

Explanation:

To verify the privileges that have been granted to a specific role in Snowflake, the correct SQL command is SHOW GRANTS TO ROLE <Role Name>. This command lists all the privileges granted to the specified role, including access to schemas, tables, and other database objects. This is a useful command for administrators and users with sufficient privileges to audit and manage role permissions within the Snowflake environment.

References:

Snowflake Documentation: SHOW GRANTS

asked 23/09/2024
Katherine Messick
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first