Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 234 discussion

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

Which Snowflake SQL statement would be used to determine which users and roles have access to a role called MY_ROLE?

  • A. SHOW GRANTS OF ROLE MY_ROLE
  • B. SHOW GRANTS TO ROLE MY_ROLE
  • C. SHOW GRANTS FOR ROLE MY_ROLE
  • D. SHOW GRANTS ON ROLE MY_ROLE
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
miadiesel
Highly Voted 1 year, 11 months ago
Selected Answer: A
A: SHOW GRANTS OF ROLE shows who as been granted (Correct) B: SHOW GRANTS TO ROLE show privileges granted https://docs.snowflake.com/en/sql-reference/sql/show-grants.html
upvoted 10 times
...
[Removed]
Most Recent 2 months, 3 weeks ago
Selected Answer: A
A: SHOW GRANTS OF ROLE this option shows which users and roles have access to a role, while, B: SHOW GRANTS TO ROLE this option only shows which roles have access to a role, is doesn't specify the user.
upvoted 1 times
...
Avi0407
1 year ago
Selected Answer: A
A is the answer.. List all roles and users who have been granted the analyst role: SHOW GRANTS OF ROLE analyst; List all privileges granted to the analyst role: SHOW GRANTS TO ROLE analyst;
upvoted 2 times
...
Avi0407
1 year ago
Selected Answer: B
List all privileges granted to the ROLE role: https://docs.snowflake.com/en/sql-reference/sql/show-grants SHOW GRANTS TO ROLE analyst; +---------------------------------+------------------+------------+------------+------------+--------------+------------+ | created_on | privilege | granted_on | name | granted_to | grant_option | granted_by | |---------------------------------+------------------+------------+------------+------------+--------------+------------+ | Wed, 17 Dec 2014 18:19:37 -0800 | CREATE WAREHOUSE | ACCOUNT | DEMOENV | ANALYST | false | SYSADMIN | +---------------------------------+------------------+------------+------------+------------+--------------+------------+
upvoted 3 times
...
Afzy
1 year ago
Answer is B SHOW GRANTS TO ROLE <role_name>;
upvoted 1 times
...
Rajivnb
1 year, 1 month ago
Selected Answer: A
OF is correct.
upvoted 1 times
...
Marge23
1 year, 2 months ago
Selected Answer: A
correct
upvoted 1 times
...
timcooks
1 year, 2 months ago
Selected Answer: B
SHOW GRANTS TO ROLE //Is the correct one else One can check on worksheet.
upvoted 1 times
...
PawPetrol
1 year, 3 months ago
Selected Answer: A
Ans is A
upvoted 1 times
...
OscarWest2023
1 year, 5 months ago
Selected Answer: A
https://docs.snowflake.com/en/sql-reference/sql/show-grants#examples
upvoted 2 times
...
okurok
1 year, 7 months ago
Selected Answer: A
https://docs.snowflake.com/en/sql-reference/sql/show-grants#:~:text=to%20the%20share.-,SHOW%20GRANTS%20OF,-...
upvoted 1 times
...
SexyPotato
1 year, 8 months ago
Selected Answer: A
A is correct.
upvoted 1 times
...
Andywu213
1 year, 10 months ago
Answer is A SHOW GRANTS OF... ROLE role_name Lists all users and roles to which the role has been granted.
upvoted 2 times
...
SV1122
1 year, 10 months ago
Selected Answer: A
MY_ROLE doesn't have access to users and roles. It is the other way round - Users and roles were given access to MY_ROLE so SHOW GRANTS OF ROLE MY_ROLE.
upvoted 3 times
...
db1290
1 year, 11 months ago
Answer is A. SHOW OF ROLE and SHOW TO ROLE has different outputs.
upvoted 2 times
...
stornati
1 year, 11 months ago
It could A or B Syntax SHOW GRANTS SHOW GRANTS ON ACCOUNT SHOW GRANTS ON <object_type> <object_name> SHOW GRANTS TO { ROLE <role_name> | USER <user_name> | SHARE <share_name> } SHOW GRANTS OF ROLE <role_name> SHOW GRANTS OF SHARE <share_name> SHOW FUTURE GRANTS IN SCHEMA { <schema_name> } SHOW FUTURE GRANTS IN DATABASE { <database_name> } SHOW FUTURE GRANTS TO ROLE <role_name> https://docs.snowflake.com/en/sql-reference/sql/show-grants.html
upvoted 1 times
...
tejarun
1 year, 11 months ago
Selected Answer: A
https://docs.snowflake.com/en/sql-reference/sql/show-grants.html
upvoted 2 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 ...