Exam SnowPro Core All QuestionsBrowse all questions from this exam
Question 367

What SQL command would be used to view all roles that were granted to USER1?

    Correct Answer: A

    The SQL command to view all roles that were granted to a specific user, such as USER1, is 'show grants to user USER1;'. This command lists all grants of roles to that particular user.

Discussion
halolOption: A

A https://docs.snowflake.com/en/sql-reference/sql/show-grants.html#variants

SnowProCertDec22Option: A

https://docs.snowflake.com/en/sql-reference/sql/show-grants.html#variants SHOW GRANTS TO ROLE role_name Lists all privileges and roles granted to the role.

fahfouhi94Option: A

A is correct I just tested in my account , command result with TO give info about all role granted to user

BigDataBBOption: D

SHOW GRANTS ON ... ACCOUNT Lists all the account-level (i.e. global) privileges that have been granted to roles. object_type object_name Lists all privileges that have been granted on the object. ------------------------------------------------------------------ SHOW GRANTS TO ... ROLE role_name Lists all privileges and roles granted to the role. USER user_name Lists all the roles granted to the user. Note that the PUBLIC role, which is automatically available to every user, is not listed.

MultiCloudIronMan

With your definition it should be A

_yyuktaOption: A

A. show grants to user USER1;

KeshavaMugulurOption: D

D is right