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?
✗ Incorrect
The correct syntax to create a role is CREATE ROLE followed by the role name.
How do you assign a custom role to a user?
✗ Incorrect
The correct command to assign a role to a user is GRANT ROLE <role> TO USER <user>.
What is the main purpose of creating custom roles?
✗ Incorrect
Custom roles are created to control what users can access and do in Snowflake.
Which privilege can be granted to a role?
✗ Incorrect
Privileges like SELECT on tables can be granted to roles to control data access.
What is a recommended security practice for custom roles?
✗ Incorrect
Using the least privilege principle means giving only the permissions necessary, improving security.
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.