How does Snowflake's object hierarchy affect architectural decisions?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
How does Snowflake's object hierarchy affect architectural decisions?
Walk from the top of the hierarchy down to tables and views, and explain how each level shapes the way you isolate environments, control access, run compute, and share or copy data.
```hint Start from the levels
List the containers from the organization down to a table, then ask which features (grants, cloning, sharing, replication, parameters) attach to each level.
```
```hint Look for what sits outside the tree
Some important objects live at the account level, outside any database. Think about where compute lives and what that means for cost and access.
```
### What a Strong Answer Covers
- The containment order from organization to schema objects, and which objects sit at the account level
- How grants work across levels, including the privileges a role needs on the parent containers
- Options for separating environments (schemas, databases, accounts) and when each one fits
- Where compute sits relative to the hierarchy and how that affects workload and cost design
- How cloning, data sharing and replication boundaries follow the hierarchy
### Follow-up Questions
- When would you put production and development in separate accounts instead of separate databases?
- How do future grants and managed access schemas change permission administration at scale?
- How would you attribute compute cost by team when every team queries the same databases?
- What breaks when SQL or dbt models hardcode fully qualified database names, and how do you avoid it?
Overview: Explain how the Snowflake hierarchy of organization, account, database and schema shapes data platform design. Tests role-based grants across containers, environment isolation choices, where warehouses sit, and the levels at which cloning, sharing and replication work.