0
0
Snowflakecloud~5 mins

Role hierarchy in Snowflake - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a role hierarchy in Snowflake?
A role hierarchy in Snowflake is a way to organize roles so that higher roles inherit the permissions of roles below them, making permission management easier.
Click to reveal answer
beginner
How does inheritance work in Snowflake role hierarchy?
When a role is granted to another role, the higher role inherits all the privileges of the lower role automatically.
Click to reveal answer
beginner
Why use role hierarchy instead of assigning permissions directly to users?
Role hierarchy simplifies permission management by grouping permissions into roles and assigning roles to users, reducing errors and making updates easier.
Click to reveal answer
intermediate
What is the top role in Snowflake's default role hierarchy?
The top role is ACCOUNTADMIN, which has all privileges and can grant roles to others.
Click to reveal answer
intermediate
How can you view the role hierarchy in Snowflake?
You can query the SNOWFLAKE.ACCOUNT_USAGE.GRANTS_TO_ROLES view or use SHOW GRANTS commands to see role grants and hierarchy.
Click to reveal answer
What happens when Role A is granted to Role B in Snowflake?
ARole A inherits all privileges of Role B
BBoth roles lose their privileges
CRole B inherits all privileges of Role A
DNo privileges are shared
Which role is at the top of Snowflake's default role hierarchy?
AACCOUNTADMIN
BPUBLIC
CSYSADMIN
DSECURITYADMIN
Why is using role hierarchy recommended over assigning permissions directly to users?
AIt duplicates permissions unnecessarily
BIt removes all permissions automatically
CIt disables user access
DIt makes permission management simpler and less error-prone
How can you check which roles have been granted to a specific role?
AUse ALTER USER command
BUse SHOW GRANTS TO ROLE command
CUse DROP ROLE command
DUse CREATE ROLE command
If a user has a role that inherits from another role, what permissions does the user have?
APermissions of the assigned role and all roles it inherits from
BOnly the permissions of the assigned role
CNo permissions at all
DPermissions only from the lowest role
Explain how role hierarchy helps manage permissions in Snowflake.
Think about how grouping permissions into roles helps control access.
You got /4 concepts.
    Describe how to find out which roles a specific role inherits from in Snowflake.
    Use Snowflake commands or views that show role grants.
    You got /3 concepts.