A virtual warehouse report_wh is configured with AUTO_RESUME=TRUE and AUTO_SUSPEND=300. A user has been granted the accountant role.
An application using the accountant role must use this warehouse to run financial reports and track the compute credits consumed by the warehouse. What minimum warehouse privileges should be granted to the role to satisfy these requirements?
Choose two
Snowflake separates warehouse execution, monitoring, and administration through distinct privileges. The accountant role requires USAGE to execute financial-reporting queries and MONITOR to inspect warehouse activity and consumption statistics.
The USAGE privilege authorizes a role to submit queries to the specified virtual warehouse. Because report_wh has AUTO_RESUME=TRUE, Snowflake automatically resumes the suspended warehouse when a query is submitted. Consequently, the accountant role does not require OPERATE merely to execute reports.
The MONITOR privilege enables inspection of current and historical warehouse queries and usage statistics. This provides the necessary visibility into warehouse activity and compute consumption without allowing modification of warehouse configuration.
AUTO_SUSPEND=300 directs Snowflake to suspend the warehouse following approximately five minutes of inactivity, reducing unnecessary compute consumption.
Option A grants additional authority to suspend and resume the warehouse manually. Option B permits administrative configuration changes, including resizing. Option E grants full ownership-level control and violates the principle of least privilege.
Therefore, granting MONITOR and USAGE satisfies the specified operational requirements without introducing unnecessary administrative permissions.
For account-wide billing and consumption analysis, administrators should distinguish warehouse-level MONITOR from the separate global MONITOR USAGE privilege.
Official Snowflake references: Access Control Privileges: Virtual Warehouse Privileges; Configuring Access Control; Virtual Warehouse Credit Usage.
Currently there are no comments in this discussion, be the first to comment!