ExamGecko
Question list
Search
Search

List of questions

Search

Question 133 - ARA-C01 discussion

Report
Export

A new user user_01 is created within Snowflake. The following two commands are executed:

Command 1-> show grants to user user_01;

Command 2 ~> show grants on user user 01;

What inferences can be made about these commands?

A.
Command 1 defines which user owns user_01 Command 2 defines all the grants which have been given to user_01
Answers
A.
Command 1 defines which user owns user_01 Command 2 defines all the grants which have been given to user_01
B.
Command 1 defines all the grants which are given to user_01 Command 2 defines which user owns user_01
Answers
B.
Command 1 defines all the grants which are given to user_01 Command 2 defines which user owns user_01
C.
Command 1 defines which role owns user_01 Command 2 defines all the grants which have been given to user_01
Answers
C.
Command 1 defines which role owns user_01 Command 2 defines all the grants which have been given to user_01
D.
Command 1 defines all the grants which are given to user_01 Command 2 defines which role owns user 01
Answers
D.
Command 1 defines all the grants which are given to user_01 Command 2 defines which role owns user 01
Suggested answer: D

Explanation:

The SHOW GRANTS command in Snowflake can be used to list all the access control privileges that have been explicitly granted to roles, users, and shares.The syntax and the output of the command vary depending on the object type and the grantee type specified in the command1. In this question, the two commands have the following meanings:

Command 1: show grants to user user_01; This command lists all the roles granted to the user user_01. The output includes the role name, the grantee name, and the granted by role name for each grant.This command is equivalent to show grants to user current_user if user_01 is the current user1.

Command 2: show grants on user user_01; This command lists all the privileges that have been granted on the user object user_01. The output includes the privilege name, the grantee name, and the granted by role name for each grant.This command shows which role owns the user object user_01, as the owner role has the privilege to modify or drop the user object2.

Therefore, the correct inference is that command 1 defines all the grants which are given to user_01, and command 2 defines which role owns user_01.

SHOW GRANTS

Understanding Access Control in Snowflake

asked 23/09/2024
ABDUL AZEEZ
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first