0
0
Snowflakecloud~5 mins

Creating custom roles in Snowflake - Quick Revision & Summary

Choose your learning style9 modes available
Recall & Review
beginner
What is a custom role in Snowflake?
A custom role is a user-defined set of permissions that controls access to Snowflake resources, allowing tailored access beyond default roles.
Click to reveal answer
beginner
Which SQL command is used to create a custom role in Snowflake?
The command CREATE ROLE <role_name>; is used to create a custom role.
Click to reveal answer
intermediate
How do you grant privileges to a custom role?
Use the GRANT <privilege> ON <object> TO ROLE <role_name>; command to assign permissions to the role.
Click to reveal answer
beginner
Why assign a custom role to a user?
Assigning a custom role to a user controls what actions they can perform, ensuring they have only the permissions needed for their tasks.
Click to reveal answer
intermediate
What is the best practice when creating custom roles?
Create roles with the least privileges needed, assign roles to users carefully, and regularly review role permissions to maintain security.
Click to reveal answer
Which command creates a new custom role in Snowflake?
ANEW ROLE my_custom_role;
BCREATE ROLE my_custom_role;
CADD ROLE my_custom_role;
DMAKE ROLE my_custom_role;
How do you assign a custom role to a user?
AGRANT ROLE my_role TO USER my_user;
BASSIGN ROLE my_role TO USER my_user;
CSET ROLE my_role FOR USER my_user;
DCREATE ROLE my_role FOR USER my_user;
What is the main purpose of creating custom roles?
ATo control user access and permissions
BTo create backups of databases
CTo store data in Snowflake
DTo customize user interface themes
Which privilege can be granted to a role?
ACreate new Snowflake accounts
BChange user passwords
CModify Snowflake UI layout
DSELECT on a table
What is a recommended security practice for custom roles?
AGrant all privileges to every role
BAssign roles randomly
CUse least privilege principle
DAvoid using roles
Explain the steps to create and assign a custom role in Snowflake.
Think about creating, granting permissions, then assigning.
You got /3 concepts.
    Why is it important to follow the least privilege principle when creating custom roles?
    Consider security and control benefits.
    You got /3 concepts.