Recall & Review
beginner
What is the purpose of the GRANT command in Snowflake?
The GRANT command is used to give specific privileges to roles or users, allowing them to perform certain actions on database objects.
Click to reveal answer
beginner
How do you revoke privileges in Snowflake?
You use the REVOKE command to remove previously granted privileges from roles or users, restricting their access or actions on database objects.
Click to reveal answer
intermediate
What is a role in Snowflake and how does it relate to privileges?
A role is a collection of privileges. Assigning a role to a user grants them all the privileges that role has. This simplifies managing access rights.
Click to reveal answer
intermediate
Explain the difference between granting privileges to a user directly versus granting them to a role.
Granting privileges to a role allows multiple users to share the same access rights by assigning the role to them. Granting directly to a user is less flexible and harder to manage.
Click to reveal answer
intermediate
What happens if you revoke a privilege from a role that is assigned to multiple users?
All users assigned to that role lose the revoked privilege immediately, since the privilege is tied to the role, not individual users.
Click to reveal answer
Which command is used to give a user permission to query a table in Snowflake?
✗ Incorrect
The GRANT command with SELECT privilege allows the user to query the table.
What does the REVOKE command do in Snowflake?
✗ Incorrect
REVOKE removes privileges previously granted.
If you want to manage access for many users easily, what should you use?
✗ Incorrect
Roles group privileges and can be assigned to many users for easier management.
Which privilege allows a user to create tables in a database?
✗ Incorrect
CREATE TABLE privilege allows creating tables.
What happens if you revoke a privilege from a role assigned to multiple users?
✗ Incorrect
Revoking from a role affects all users assigned to that role.
Describe how you would grant a user permission to read data from a table in Snowflake.
Think about the command syntax to allow reading data.
You got /4 concepts.
Explain why using roles to manage privileges is better than granting privileges directly to users.
Consider how managing many users is simplified.
You got /4 concepts.