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?
✗ Incorrect
Granting Role A to Role B means Role B inherits Role A's privileges.
Which role is at the top of Snowflake's default role hierarchy?
✗ Incorrect
ACCOUNTADMIN is the highest role with all privileges.
Why is using role hierarchy recommended over assigning permissions directly to users?
✗ Incorrect
Role hierarchy groups permissions, making management easier and safer.
How can you check which roles have been granted to a specific role?
✗ Incorrect
SHOW GRANTS TO ROLE lists roles and privileges granted to that role.
If a user has a role that inherits from another role, what permissions does the user have?
✗ Incorrect
Users get permissions from their role and all roles granted to it.
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.