How do roles and privileges work in Snowflake's Role-Based Access Control (RBAC) model?

Quick Overview

Explain how Snowflake's role-based access control connects securable objects, privileges, roles and users, including role hierarchies and the system-defined roles. The question tests whether you can set up least-privilege access for an analytics team and know which grants a query needs.

How do roles and privileges work in Snowflake's Role-Based Access Control (RBAC) model?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: easy

Interview Round: Other

How do roles and privileges work in Snowflake's Role-Based Access Control (RBAC) model? ```hint Follow one query Trace what has to be in place for one analyst to run a SELECT on one table: which grants exist, on which objects, and what links the analyst to them. ``` ### What a Strong Answer Covers - The pieces of the model (securable objects, privileges, roles, users) and how they connect. - Granting roles to other roles, and which direction privileges are inherited. - The system-defined roles and what each one is for. - How a session decides which role it acts with. - A least-privilege layout for a team, with the grants a reader actually needs. ### Follow-up Questions - An analyst has SELECT on a table, yet the query fails with "does not exist or not authorized". What is usually missing? - Why should custom roles roll up to SYSADMIN, and what goes wrong when one does not? - How would you make tables created next month readable by the analyst role without granting them by hand? - Why is it a bad idea to do everyday work as ACCOUNTADMIN?

Overview: Explain how Snowflake's role-based access control connects securable objects, privileges, roles and users, including role hierarchies and the system-defined roles. The question tests whether you can set up least-privilege access for an analytics team and know which grants a query needs.

Nov 25, 2026
easyData ScientistOtherData Manipulation (SQL/Python)
0
0

How do roles and privileges work in Snowflake's Role-Based Access Control (RBAC) model?

What a Strong Answer Covers Guidance

  • The pieces of the model (securable objects, privileges, roles, users) and how they connect.
  • Granting roles to other roles, and which direction privileges are inherited.
  • The system-defined roles and what each one is for.
  • How a session decides which role it acts with.
  • A least-privilege layout for a team, with the grants a reader actually needs.

Follow-up Questions Guidance

  • An analyst has SELECT on a table, yet the query fails with "does not exist or not authorized". What is usually missing?
  • Why should custom roles roll up to SYSADMIN, and what goes wrong when one does not?
  • How would you make tables created next month readable by the analyst role without granting them by hand?
  • Why is it a bad idea to do everyday work as ACCOUNTADMIN?