What are Snowflake's system-defined roles, and why avoid day-to-day work as ACCOUNTADMIN?
Quick Overview
Asks you to name Snowflake's system-defined roles, describe what each one manages, and explain why routine work should not run under ACCOUNTADMIN. Tests knowledge of the role hierarchy, least privilege and object ownership in Snowflake access control.
What are Snowflake's system-defined roles, and why avoid day-to-day work as ACCOUNTADMIN?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
What are the system-defined roles in Snowflake (`ACCOUNTADMIN`, `SECURITYADMIN`, `USERADMIN`, `SYSADMIN`, `PUBLIC`), and why is it recommended not to run day-to-day work as `ACCOUNTADMIN`?
Describe what each role is responsible for and how the roles relate to each other.
```hint Look at the hierarchy
Work out which roles inherit which. Then ask what happens to the blast radius of a mistake, and to object ownership, when everything runs under the role at the top.
```
### What a Strong Answer Covers
- The responsibility of each of the five roles and the kind of work that belongs to it
- How the roles inherit from each other and where custom roles fit
- The least-privilege argument for keeping `ACCOUNTADMIN` out of routine work
- The ownership side effect of creating objects while using `ACCOUNTADMIN`
- Practical controls on the top role: who holds it and how it is protected
### Follow-up Questions
- Why should custom roles be granted to `SYSADMIN`, and what goes wrong if they are left unattached?
- A table was created by someone using `ACCOUNTADMIN` and analysts cannot manage it. How do you fix it?
- How would you design roles for analysts, data engineers and a BI service account in one account?
- How would you check who currently holds `ACCOUNTADMIN`?
Overview: Asks you to name Snowflake's system-defined roles, describe what each one manages, and explain why routine work should not run under ACCOUNTADMIN. Tests knowledge of the role hierarchy, least privilege and object ownership in Snowflake access control.
What are the system-defined roles in Snowflake (ACCOUNTADMIN, SECURITYADMIN, USERADMIN, SYSADMIN, PUBLIC), and why is it recommended not to run day-to-day work as ACCOUNTADMIN?
Describe what each role is responsible for and how the roles relate to each other.
What a Strong Answer Covers Guidance
The responsibility of each of the five roles and the kind of work that belongs to it
How the roles inherit from each other and where custom roles fit
The least-privilege argument for keeping
ACCOUNTADMIN
out of routine work
The ownership side effect of creating objects while using
ACCOUNTADMIN
Practical controls on the top role: who holds it and how it is protected
Follow-up Questions Guidance
Why should custom roles be granted to
SYSADMIN
, and what goes wrong if they are left unattached?
A table was created by someone using
ACCOUNTADMIN
and analysts cannot manage it. How do you fix it?
How would you design roles for analysts, data engineers and a BI service account in one account?
How would you check who currently holds
ACCOUNTADMIN
?