Reconcile warehouse credits and apply usage controls
Calculate compute credits and distinguish warehouse quotas, serverless spending and reporting latency.
Reconcile warehouse credits and apply usage controls
Work through the decision
A team projects six credits from a warehouse and sees a different amount on the account bill. How should it establish what the estimate actually included?
Check your reasoning
Calculate the active time per cluster at its applicable rate, allowing for the minimum billed interval on each start. Compare the estimate with warehouse metering for the same time range. Investigate separate serverless, storage, transfer or cloud-services charges independently. Resource monitors can act on assigned warehouses.
Compare the choices
- Warehouse metering history
- Inspect compute credit usage by warehouse for a defined period and check aggregation and reporting latency.
- Resource monitor
- Track assigned warehouse credit quotas and configured notify or suspend actions at thresholds.
- Budget
- Monitor supported spend, including eligible serverless services, against a spending target and alert on forecast usage.
- Compute credit calculation
- Multiply the applicable credit rate by billable cluster-hours, accounting for separate starts and clusters.
- ACCOUNT_USAGE latency
- Account-level history views have documented refresh delays. Confirm completeness before interpreting a recent absence.
- Query attribution history
- Attribute eligible warehouse compute to query executions. Reconcile idle time and other costs separately.
Test the decision
A warehouse rated at four credits per hour runs for 30 minutes as a single cluster. Its compute estimate is two credits before other services or adjustments. Two clusters at that rate running the whole period give four credits. Use matching time zones when comparing usage windows.
Practice the guide skills
- Calculate expected credits from warehouse rate, billable runtime and active clusters. Watch 1:33:53
- Assign a resource monitor and choose notify or suspend actions appropriate to that warehouse. Watch 1:35:39
- Reconcile time-bounded ACCOUNT_USAGE records with available billing evidence and documented reporting latency. Watch 1:37:20
Official objectives for this lesson
Related lesson · Follow freshness from landing to report
Reconcile warehouse credits and apply usage controls quiz
Answer 3 questions. Check each answer for an explanation.