exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 367 discussion

Actual exam question from Snowflake's SnowPro Core
Question #: 367
Topic #: 1
[All SnowPro Core Questions]

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

  • A. show grants to user USER1;
  • B. show grants user USER1;
  • C. describe user USER1;
  • D. show grants on user USER1;
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
halol
Highly Voted 1 year, 11 months ago
A https://docs.snowflake.com/en/sql-reference/sql/show-grants.html#variants
upvoted 10 times
...
_yyukta
Most Recent 8 months, 2 weeks ago
Selected Answer: A
A. show grants to user USER1;
upvoted 2 times
...
fahfouhi94
1 year, 9 months ago
Selected Answer: A
A is correct I just tested in my account , command result with TO give info about all role granted to user
upvoted 4 times
...
BigDataBB
1 year, 9 months ago
Selected Answer: 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.
upvoted 3 times
MultiCloudIronMan
1 year, 3 months ago
With your definition it should be A
upvoted 6 times
...
...
SnowProCertDec22
1 year, 10 months ago
Selected Answer: 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.
upvoted 4 times
...
KeshavaMugulur
1 year, 11 months ago
D is right
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago