Module 02 · Lesson 9 of 9Detailed study · about 25 min

Credits, compute billing, storage and cloud services

Estimate compute in credits and storage using its applicable measured volume and rate.

Understand the idea

A credit is a unit used to measure supported Snowflake compute consumption. Turning credits into currency requires the applicable account pricing or contract. Storage and data transfer have their own charging measures.

Key ideas in simple English
ConceptWhat it means
CreditsCompute consumption units; currency depends on account pricing.
Warehouse computePer-second billing with a 60-second startup minimum for standard warehouses.
Multi-clusterSum each active cluster’s billed running interval.
StorageCompressed stored data and applicable retained history/staged files contribute.
Cloud servicesBillable daily excess over 10% of warehouse compute credits, calculated by UTC day. Serverless usage does not increase this allowance.

A concrete example

At an assumed 2 credits/hour, 30 continuous minutes uses 1 credit. With 20 warehouse credits and 3 cloud-services credits in a day, billable cloud services is 1 credit.

Remember: Rates are hypothetical. Reconcile actual usage by category, including applicable transfer charges.

Explain it step by step · full theory

Credits measure compute consumption

A credit is a unit used to measure supported Snowflake compute consumption. Turning credits into currency requires the applicable account pricing or contract. Storage and data transfer have their own charging measures.

For learning arithmetic, assume a hypothetical warehouse rate of 2 credits per hour. If that warehouse runs continuously for 30 minutes, the simple consumption is 2 × 0.5 = 1 credit. This assumed rate is an input to the exercise, not a quotation for every warehouse of a particular size.

Understand running time and the startup minimum

Standard virtual warehouse billing uses per-second measurement with a 60-second minimum each time the warehouse starts. At our assumed rate, one 30-second run is billed for at least 60 seconds, giving 2 × 60 / 3600 = 0.03333 credits.

Two separate 30-second starts each incur their own minimum, totaling approximately 0.06667 credits. A continuous 120-second run at the same rate also gives 0.06667 credits. Actual totals depend on running intervals, changes in capacity and the applicable resource configuration.

For multi-cluster usage, sum the active cluster intervals. If one hypothetical 2-credit-per-hour cluster runs for an hour and a second identical cluster runs for fifteen minutes, the total is 2 + 0.5 = 2.5 credits. Include idle running time and additional applicable services when reconciling an actual bill.

Storage billing follows stored data and retention

Storage charges depend on the applicable storage rate and measured stored volume over time. Snowflake-managed compressed storage is different from the original source-file size. Historical versions, Fail-safe where applicable, and retained staged files can also contribute to storage.

As a simplified monthly example, 1 TB stored for half the month and 3 TB for the other half averages 2 TB. Multiply the appropriate measured monthly storage quantity by the applicable rate. The account’s reported usage is the authority for actual billing.

Deleting current rows or suspending a warehouse does not imply that retained historical storage immediately disappears. Table type, retention rules and data changes influence the storage retained for recovery. Later protection and cloning levels develop those mechanisms.

Cloud services have measured usage and a daily adjustment

Cloud services perform coordination work such as metadata and query planning. Under the documented adjustment, daily cloud-services charges apply to consumption above 10% of virtual warehouse compute usage for that UTC day. Serverless consumption does not enlarge that warehouse-based allowance.

For a teaching day with 20 warehouse credits and 3 cloud-services credits, the allowance is 2 and the billable cloud-services amount is 1. For a day with 20 warehouse credits and 1 cloud-services credit, the billable cloud-services amount is zero.

Apply the calculation to each UTC day before summing the month. A high-warehouse-use day does not provide a general allowance that can be moved to another day. When reviewing usage, distinguish measured service consumption from the adjusted billed amount.

Reconcile all parts of the shop workload

For our fictional workload, write separate rows for warehouse compute, serverless features, storage and transfer where applicable. Add the cloud-services amount after its relevant adjustment. Avoid interpreting one warehouse chart as the complete account bill.

Use billing and metering views with the appropriate role and account context. Read their latency and aggregation notes before comparing them to a query that just completed. The later FinOps curriculum covers attribution and budgets in depth.

Words used in this lesson
Credit
A unit of compute consumption.
Metering
Measurement of resource usage.
Billable usage
Consumption after the applicable billing rules and adjustments.

See how it works

Choose a step to explore the idea at your own pace.

Open the interactive explanation
Interactive explainer1 / 4

Credits, compute billing, storage and cloud services

Credits/hour
Startup minimum
Active clusters

Measure compute

Multiply applicable rates by billed running intervals.

Automatic playback is off for reduced motion. Select any step or use Previous and Next. Illustrations explain behavior; they are not live measurements.

Read the complete diagram explanation
  1. Measure compute

    Multiply applicable rates by billed running intervals.

  2. Measure storage

    Account for stored volume and retention.

  3. Adjust services

    Calculate the applicable daily cloud-services adjustment.

  4. Reconcile

    Keep the categories visible in the overall account picture.

Try the SQL or command

Read → predict → run in your learning environment → compare. You can also learn by reading without an account.

New to SQL? Where to run it and how to read it

A query is a question written in SQL. Snowflake runs it and returns a result table. This website shows examples; it does not connect to your account.

  1. No account yet? Read and predict the output first. Follow the account and Snowsight lesson when you are ready.
  2. For SQL practice, use a learning account in Snowsight and select an authorized role and warehouse. A role determines permissions; a warehouse supplies processing power. Follow the example’s database/schema setup when it refers to stored objects.
  3. Read the entire example, including comments beginning with --. Run the selected statement or labeled block in the stated order. Examples labeled Python, shell or HTTP belong in that client, not in a SQL editor.
  4. Compare values and row counts with the explained result. If an example deliberately causes an error, follow its rollback and cleanup steps before continuing.
SELECT / FROM
Choose the values to return / identify their input.
VALUES / COLUMN1
VALUES supplies tiny example rows. COLUMN1 means their first column, COLUMN2 their second.
AS / WITH
AS gives a result a readable name. WITH names a temporary query step within one statement.
NULL / ::
NULL means missing or unknown. The :: notation converts a value to a named data type.
Session
One connection and its settings. Keep related transaction steps in the same session.
Database.schema.table
A full address for stored data. It is separate from the warehouse that processes queries.
Help with common practice errors
  • No active warehouse: select a warehouse your role can use. Do not assume you need to create a new one.
  • Object missing or not authorized: check the full name, required setup and active role. Ask the account owner for access if needed.
  • Object already exists: setup may already have run. Read the current state or choose a fresh lab name consistently; do not add OR REPLACE blindly.
  • Different result: check whether an earlier INSERT or UPDATE changed the data. VALUES examples provide their own fresh input for each statement.

Work through arithmetic without an account bill

SQL · example
SELECT 2.0 * 30 / 60 AS continuous_half_hour_credits,
       2.0 * 60 / 3600 AS one_start_minimum_credits,
       2.0 * 1 + 2.0 * 0.25 AS cluster_interval_credits,
       GREATEST(3.0 - 0.10 * 20.0, 0) AS cloud_services_billable;

What to expect and why

The rate of 2 credits/hour and usage amounts are hypothetical teaching inputs. The first result is 1, the second is approximately 0.03333, the third is 2.5 and the fourth is 1. SQL display precision may vary.

Check your understanding

Choose an answer, then check your reasoning. This is practice, not a scored test.

With 20 warehouse credits and 3 cloud-services credits in one UTC day, what is the illustrative billable cloud-services amount?

Try it yourself

Calculate the hypothetical compute for one hour on one 2-credit/hour cluster plus fifteen minutes on a second, and explain what else the account bill may contain.

Compare your reasoning

The compute total is 2.5 credits. Reconcile any other service compute, the daily cloud-services adjustment, retained storage and applicable transfer charges separately using actual rates and usage.

Official sources and curriculum

Module 02 · See module scope