To retrieve total compute credits used by warehouses over a given period, which ACCOUNT_USAGE table should you query?

Master Snowflake Data Engineer Exam. Study with flashcards and multiple choice questions, each question includes hints and explanations. Prepare for your success!

Multiple Choice

To retrieve total compute credits used by warehouses over a given period, which ACCOUNT_USAGE table should you query?

Explanation:
To get the total compute credits used by warehouses over a period, you need the data that records actual credit consumption over time. The Warehouse Metering History view in ACCOUNT_USAGE provides per-warehouse credits consumed across time intervals, exactly the kind of metered usage data you aggregate to get a period total. By filtering to your start and end times and summing the credits field (across all warehouses), you obtain the total credits used in that window. Other views in ACCOUNT_USAGE cover different aspects, such as runtime metrics or billed/allocated credits, which don’t reliably reflect actual consumption over a specific period. Therefore they aren’t the right source for calculating total compute credits used.

To get the total compute credits used by warehouses over a period, you need the data that records actual credit consumption over time. The Warehouse Metering History view in ACCOUNT_USAGE provides per-warehouse credits consumed across time intervals, exactly the kind of metered usage data you aggregate to get a period total. By filtering to your start and end times and summing the credits field (across all warehouses), you obtain the total credits used in that window.

Other views in ACCOUNT_USAGE cover different aspects, such as runtime metrics or billed/allocated credits, which don’t reliably reflect actual consumption over a specific period. Therefore they aren’t the right source for calculating total compute credits used.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy