0
0
Snowflakecloud~5 mins

Credit usage monitoring in Snowflake - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AWAREHOUSE_METERING_HISTORY
BQUERY_HISTORY
CLOGIN_HISTORY
DDATABASE_STORAGE_USAGE_HISTORY
What does one Snowflake credit represent?
AOne user login session
BOne gigabyte of data stored
COne hour of compute usage on a single credit unit warehouse
DOne query executed
Which SQL function helps calculate credit usage over the last 30 days?
ADATEADD
BDATEDIFF
CCURRENT_DATE
DTO_TIMESTAMP
Why should you monitor credit usage regularly?
ATo create more warehouses
BTo avoid unexpected billing and optimize resource use
CTo backup data faster
DTo increase query speed automatically
What Snowflake feature can automate credit usage checks?
AStreams
BExternal Functions
CMaterialized Views
DScheduled Tasks
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.