Recall & Review
beginner
What is credit usage in Snowflake?
Credit usage in Snowflake measures the amount of compute resources consumed. Credits are used when warehouses run queries or perform tasks.
Click to reveal answer
beginner
How can you check credit usage for your Snowflake account?
You can query the ACCOUNT_USAGE schema, especially the WAREHOUSE_METERING_HISTORY view, to see credit usage details over time.
Click to reveal answer
intermediate
What SQL command shows credit usage for warehouses in the last 7 days?
SELECT WAREHOUSE_NAME, SUM(CREDITS_USED) AS TOTAL_CREDITS FROM SNOWFLAKE.ACCOUNT_USAGE.WAREHOUSE_METERING_HISTORY WHERE START_TIME >= DATEADD(day, -7, CURRENT_TIMESTAMP()) GROUP BY WAREHOUSE_NAME;
Click to reveal answer
beginner
Why is monitoring credit usage important in Snowflake?
Monitoring credit usage helps control costs, optimize warehouse sizes, and avoid unexpected charges by understanding resource consumption.
Click to reveal answer
intermediate
What is a practical way to automate credit usage alerts in Snowflake?
You can create scheduled tasks that query credit usage and send notifications (e.g., email) when usage exceeds thresholds.
Click to reveal answer
Which Snowflake view provides detailed credit usage per warehouse?
✗ Incorrect
The WAREHOUSE_METERING_HISTORY view shows credit usage details for warehouses.
What does one Snowflake credit represent?
✗ Incorrect
One credit equals one hour of compute on a 1-credit warehouse.
Which SQL function helps calculate credit usage over the last 30 days?
✗ Incorrect
DATEADD is used to subtract days from the current date to filter recent usage.
Why should you monitor credit usage regularly?
✗ Incorrect
Regular monitoring helps control costs and optimize warehouse performance.
What Snowflake feature can automate credit usage checks?
✗ Incorrect
Scheduled Tasks can run queries periodically to monitor credit usage.
Explain how to monitor credit usage in Snowflake using SQL queries.
Think about querying usage history and grouping data.
You got /4 concepts.
Describe why monitoring credit usage is important and how automation can help.
Consider cost management and proactive notifications.
You got /4 concepts.