How do role hierarchy, privilege inheritance, future grants and object ownership work in Snowflake RBAC?

Quick Overview

Explain how roles, role hierarchies and privilege inheritance work in Snowflake access control, what object ownership means, and how future grants apply to tables created later. The question tests practical warehouse security setup, including the grants a read-only reporting role needs.

How do role hierarchy, privilege inheritance, future grants and object ownership work in Snowflake RBAC?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

How do role hierarchy and privilege inheritance work in Snowflake's role-based access control (RBAC), and what are future grants and object ownership? For a concrete picture, think of an analytics schema where pipelines create new tables every day and a reporting team needs read access to all of them. ```hint Direction of inheritance When you grant role A to role B, work out which of the two ends up with more privileges, and where the built-in admin roles should sit relative to your custom roles. ``` ```hint Tables that do not exist yet A grant on every table in a schema covers the tables that exist today. Ask what happens to a table a pipeline creates tomorrow, and which role owns it. ``` ### What a Strong Answer Covers - How privileges, roles and users relate, and which way inheritance flows when one role is granted to another. - How a session's effective privileges are worked out from the active role, the roles beneath it, and any secondary roles. - What ownership gives a role, which role becomes the owner of a new object, and how ownership is transferred. - What future grants do, how they differ from grants on existing objects, and how schema-level and database-level future grants interact. - A sensible layout for the reporting case: custom roles rolled up to SYSADMIN and the supporting USAGE grants a reader needs. ### Follow-up Questions - A new table shows up in the schema and the reporting role still cannot query it, even though a future grant exists. What do you check? - What changes in a managed access schema, and why would a security team ask for one? - How do database roles differ from account roles, and when would you use them? - What happens to the existing grants on a table when you transfer its ownership to another role?

Overview: Explain how roles, role hierarchies and privilege inheritance work in Snowflake access control, what object ownership means, and how future grants apply to tables created later. The question tests practical warehouse security setup, including the grants a read-only reporting role needs.

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

How do role hierarchy and privilege inheritance work in Snowflake's role-based access control (RBAC), and what are future grants and object ownership?

For a concrete picture, think of an analytics schema where pipelines create new tables every day and a reporting team needs read access to all of them.

What a Strong Answer Covers Guidance

  • How privileges, roles and users relate, and which way inheritance flows when one role is granted to another.
  • How a session's effective privileges are worked out from the active role, the roles beneath it, and any secondary roles.
  • What ownership gives a role, which role becomes the owner of a new object, and how ownership is transferred.
  • What future grants do, how they differ from grants on existing objects, and how schema-level and database-level future grants interact.
  • A sensible layout for the reporting case: custom roles rolled up to SYSADMIN and the supporting USAGE grants a reader needs.

Follow-up Questions Guidance

  • A new table shows up in the schema and the reporting role still cannot query it, even though a future grant exists. What do you check?
  • What changes in a managed access schema, and why would a security team ask for one?
  • How do database roles differ from account roles, and when would you use them?
  • What happens to the existing grants on a table when you transfer its ownership to another role?