Challenge - 5 Problems
Privilege Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ service_behavior
intermediate2:00remaining
What happens after this privilege grant?
You run the command:
What is the immediate effect of this command?
GRANT SELECT ON TABLE sales TO ROLE analyst;What is the immediate effect of this command?
Snowflake
GRANT SELECT ON TABLE sales TO ROLE analyst;
Attempts:
2 left
💡 Hint
Think about what the SELECT privilege allows.
✗ Incorrect
The SELECT privilege allows reading data from a table. It does not allow modifying, creating, or deleting tables.
❓ security
intermediate2:00remaining
Which command revokes the privilege to insert data?
You want to remove the ability of the role 'data_entry' to add new rows to the 'customers' table. Which command does this?
Attempts:
2 left
💡 Hint
Look for the command that removes the INSERT privilege.
✗ Incorrect
REVOKE INSERT removes the ability to add new rows. Other options either grant privileges or revoke different ones.
❓ Architecture
advanced2:00remaining
What is the effect of granting a privilege on a schema?
You execute:
What does this allow the 'analyst' role to do?
GRANT USAGE ON SCHEMA sales_data TO ROLE analyst;What does this allow the 'analyst' role to do?
Attempts:
2 left
💡 Hint
USAGE on a schema allows access but not data reading.
✗ Incorrect
USAGE privilege on a schema allows the role to access objects inside it but does not grant data reading rights. SELECT must be granted separately on tables.
✅ Best Practice
advanced2:00remaining
Which approach follows least privilege principle?
You want to give a user read access to only one table in a large database. Which is the best way?
Attempts:
2 left
💡 Hint
Least privilege means giving only what is needed.
✗ Incorrect
Granting SELECT on just the needed table limits access and follows security best practices. Granting more privileges exposes unnecessary data or control.
🧠 Conceptual
expert2:00remaining
What error occurs if you revoke a privilege not granted?
You run:
But the 'sales_team' role never had DELETE privilege on 'orders'. What happens?
REVOKE DELETE ON TABLE orders FROM ROLE sales_team;But the 'sales_team' role never had DELETE privilege on 'orders'. What happens?
Attempts:
2 left
💡 Hint
Think about idempotency of revoke commands.
✗ Incorrect
In Snowflake, revoking a privilege that was never granted does not cause an error. The command succeeds silently.