CertSafari
    Snowflake SnowPro Core Certification (COF-C03)· Lessons

    Domain 2 · Lesson 9/19

    Snowflake cost monitoring: warehouse credits, resource monitors and ACCOUNT_USAGE

    Explain monitoring and cost management

    19 min read
    6.67% of exam
    6 sources
    Published 20 Oct 2026
    Docs as of 18 Oct 2026

    What you will be able to do

    • Calculate the credits a warehouse consumes from its size, running time, per-second billing with the 60-second minimum, and number of running clusters
    • Explain when cloud services usage is billed under the daily 10% adjustment
    • Configure a resource monitor's quota, scope, schedule and Notify, Suspend or Suspend Immediately actions, and know what it cannot see
    • Contrast ACCOUNT_USAGE with INFORMATION_SCHEMA and grant access to it with IMPORTED PRIVILEGES or SNOWFLAKE database roles
    • Read WAREHOUSE_METERING_HISTORY to find credit use and idle cost per warehouse

    Key concept

    Warehouse credit consumption — A virtual warehouse burns credits only while it runs. The amount is its size's hourly rate multiplied by its running time, billed per second, and summed over every cluster that was running. Resource monitors cap this number, and ACCOUNT_USAGE views report it.

    1.How a warehouse turns running time into credits

    Every Snowflake bill is counted in credits. A credit is used only when something is working: a warehouse is running, the cloud services layer is doing work, or a serverless feature is active. Virtual warehouses are the part you control directly. They are billed only while running, and a suspended warehouse costs nothing. If you understand how a warehouse accumulates credits, everything else in cost monitoring makes sense, because resource monitors cap that number and the ACCOUNT_USAGE views report it.

    Size sets the hourly rate. Moving up one warehouse size roughly doubles both the compute power and the credits billed for each full hour. A Small warehouse costs 2 credits per hour and a Medium costs 4. That hourly figure is only a rate, though. Billing is per second, with a 60-second minimum each time the warehouse starts or resumes. After that first minute, every further second is billed as long as the warehouse keeps running.

    Work out credits as rate × hours actually run. A Small warehouse that runs for 10 minutes uses 2 × 10/60 ≈ 0.33 credits. If it runs for 30 seconds and suspends, it is still billed for a full minute: 2/60 ≈ 0.033 credits. Short, frequent jobs pay this minimum again and again. A dashboard refresh that wakes a warehouse for five seconds every few minutes is billed one minute per wake-up, not five seconds. Resizing also has a minimum. When a warehouse is resized up, you pay one minute, but only for the extra resources. Going from Small to Medium therefore bills one minute's worth of 2 additional credits.

    Clusters multiply the rate. A multi-cluster warehouse bills each running cluster at the size's rate for the time that cluster ran, and the warehouse total is the sum across clusters. In the case below, a Medium warehouse in Auto-scale mode starts additional clusters only when the second hour gets busy, so it uses 14 credits rather than the 24 that three clusters would use running for both hours.

    Medium (4 credits/hour) warehouse with 3 clusters in Auto-scale mode for 2 hours: cluster 3 runs only 30 minutes
    HourCluster 1Cluster 2Cluster 3Total credits
    1st Hour4004
    2nd Hour44210
    Total Credits84214

    Cloud services are billed only above 10% of the day's warehouse use. The cloud services layer (see Snowflake's three layers: storage, compute, cloud services) also consumes credits. Each day, in UTC, Snowflake subtracts an adjustment equal to 10% of that day's warehouse credits, but never more than the cloud services actually used that day. Take a day with 100 warehouse credits and 12 cloud services credits: the adjustment is 10, so 2 cloud services credits are billed. On a day with 100 warehouse credits and 4 cloud services credits, the adjustment is 4 and nothing is billed. Serverless compute does not count toward the 10% calculation.

    Checkpoint 1 of 9· Check yourself

    On one UTC day, an account's warehouses use 150 credits, its serverless features use 50 credits, and the cloud services layer uses 25 credits. How many cloud services credits are billed that day?

    Sources12

    2.What a resource monitor watches

    A resource monitor is a credit quota attached to warehouses. It is a first-class object with a credit quota for an interval. Snowflake tracks the credits used against that quota and resets the count to 0 at the start of each interval. Only ACCOUNTADMIN can create one, although an account administrator can grant other roles the privileges to view and modify monitors. Creating a monitor does nothing until it is assigned: with no scope set, it simply remains dormant.

    Scope is either the whole account or specific warehouses. An account can have only one account monitor, and it covers every warehouse in the account. An account can have many warehouse monitors, each covering one or more assigned warehouses, but each warehouse can belong to only one of them. Suppose a 1,000-credit monitor is assigned to the marketing team's Large warehouse. It counts and suspends that one warehouse and nothing else in the account.

    The two levels stack and do not override each other. If both an account monitor and a warehouse monitor are active, whichever one reaches a suspend threshold first suspends the warehouse. Take an account monitor with a 5,000-credit quota and a warehouse monitor that limits Warehouse 3 to 1,000 credits. If the account as a whole reaches 5,000 credits first, Warehouse 3 stops before it has used its 1,000.

    The quota counts warehouse compute plus the cloud services that support it. The cloud services portion counts in full, including credits that the daily adjustment means will never be billed. As a result, a monitor can fire before the invoice shows the same total. The quota does not count storage, and it does not count serverless features.

    Serverless spend is invisible to resource monitors. Snowpipe, automatic reclustering, materialized view maintenance and AI services run on Snowflake-managed compute, not on your warehouses. Even an account-level monitor does not see them. A Snowpipe-heavy pipeline can use a lot of credits every day without ever triggering a monitor. That is not because alerts are broken or switched off. Monitors simply do not observe that compute. To cap spending on serverless features, use a budget instead.

    Checkpoint 2 of 9· Check yourself

    A team has an account-level resource monitor with a Suspend action at 100% of its quota. Their monthly spend goes over that quota, mostly from Snowpipe loads and automatic reclustering, but the monitor never fires. What explains this, and what should they do?

    Checkpoint 3 of 9· Exam question

    An administrator assigns a resource monitor with a 1,000-credit monthly quota to a single Large warehouse used by the marketing team. Which statement correctly describes the scope of what this monitor tracks and controls?

    Checkpoint 4 of 9· Exam question

    A Snowpipe-heavy workload is quietly consuming a large amount of cloud services credits every day, but the account's resource monitors never trigger a notification for it. What is the most accurate explanation for this gap?

    Sources3

    3.Schedules and actions: notify, suspend, suspend immediately

    By default, a monitor resets at the start of each calendar month. It starts counting immediately, and used credits return to 0 at the start of each calendar month, which matches the billing cycle. A custom schedule sets a frequency (Daily, Weekly, Monthly, Yearly or Never) together with a start timestamp. You cannot set one without the other. Resets always happen at 12:00 AM UTC, counted from the start date. A Weekly monitor that started on a Monday resets every Monday. With Never, the count never resets, so warehouses keep using credits until the quota is reached. An optional end timestamp suspends the assigned warehouses at that time, whatever has been used.

    Actions are thresholds, given as a percentage of the quota. Each action, also called a trigger, fires when used credits reach its percentage within the current interval. Thresholds above 100 are allowed, so a monitor can notify at 80, suspend at 100 and suspend immediately at 110. A monitor can have one Suspend action, one Suspend Immediate action and up to five Notify actions. With no actions defined, nothing happens when credits reach the threshold.

    The three resource monitor actions and what each does to running work
    ActionEffect on assigned warehousesRunning statementsUse it when
    NotifyNo action; notification onlyUnaffectedYou want early warning, for example at 50% and 80%
    Notify & SuspendSuspended once current work finishesAllowed to completeA cap matters but losing in-flight work does not pay off
    Notify & Suspend ImmediatelySuspended at onceCancelledSpend must stop at the cap, even if queries are killed mid-execution

    The difference between the suspend actions is what happens to work already running. Plain Suspend lets running statements finish, so a long query can keep using credits after the threshold is crossed. Suspend Immediately cancels those statements, which makes it the only action that stops spending exactly at a hard cap. A common pattern is Suspend at 100% and Suspend Immediately at a slightly higher percentage as a backstop.

    A suspended warehouse stays down until the monitor allows it. Once a monitor has suspended a warehouse, no new queries run until the credit quota is increased or the interval resets. For a monitor with a Never frequency, there is no reset, so an administrator has to raise the quota (or change the monitor) before the warehouses can resume.

    Notifications go to administrators first. Every account administrator who has notifications enabled receives them. Non-administrator users can also get email notifications, but only from warehouse monitors, never from the account monitor.

    Checkpoint 5 of 9· Match them up

    Match each resource monitor action to what it does when used credits reach its threshold.

    Tap a term, then the definition that fits it.

    Checkpoint 6 of 9· Exam question

    A finance team wants every warehouse in the account to stop consuming credits the moment monthly spend hits a hard cap, even if that means killing queries that are mid-execution. Which resource monitor action produces this behavior?

    Sources34

    4.The ACCOUNT_USAGE schema and who can read it

    ACCOUNT_USAGE is the account's history in queryable form. It sits in the shared SNOWFLAKE database. Its views hold object metadata and usage metrics for the whole account. They mirror views and table functions in INFORMATION_SCHEMA, with the same structures and naming conventions, but they behave differently in three ways that decide which one you should query.

    ACCOUNT_USAGE versus Information Schema
    DifferenceACCOUNT_USAGEInformation Schema
    Includes dropped objectsYesNo
    Latency of dataFrom 45 minutes to 3 hours (varies by view)None
    Retention of historical data1 year (365 days)From 7 days to 6 months (varies by view/table function)

    Use ACCOUNT_USAGE for trends and INFORMATION_SCHEMA for the last few minutes. If you need six months of credit history per warehouse, only ACCOUNT_USAGE keeps it. If you are checking whether a load you started five minutes ago succeeded, ACCOUNT_USAGE may not show it yet, because most views lag by up to 2 hours and some by up to 3. These latencies are maximums, so the real delay is often shorter. Because dropped objects are kept, many views have a DELETED timestamp column and internal ID columns. These let you tell apart a dropped table and a newly created one with the same name.

    Access is granted by ACCOUNTADMIN in one of two ways. Every user can see the SNOWFLAKE database, but its schemas can be read only after a grant (see Access control: DAC, RBAC, ownership and roles). The broad option is IMPORTED PRIVILEGES on the SNOWFLAKE database, which opens every view at once:

    Granting IMPORTED PRIVILEGES on the SNOWFLAKE database to two rolessql
    USE ROLE ACCOUNTADMIN; GRANT IMPORTED PRIVILEGES ON DATABASE SNOWFLAKE TO ROLE SYSADMIN; GRANT IMPORTED PRIVILEGES ON DATABASE SNOWFLAKE TO ROLE customrole1;

    SNOWFLAKE database roles give narrower access. The other option is to grant a SNOWFLAKE database role to an account role with GRANT DATABASE ROLE. Snowflake recommends this route because it avoids accidentally exposing organization-level data. Each database role gets SELECT on a defined set of views. USAGE_VIEWER covers cost views such as WAREHOUSE_METERING_HISTORY, METERING_HISTORY and STORAGE_USAGE. GOVERNANCE_VIEWER covers QUERY_HISTORY, ACCESS_HISTORY and the policy views. OBJECT_VIEWER covers object metadata, including RESOURCE_MONITORS. SECURITY_VIEWER covers LOGIN_HISTORY, USERS and grants. A FinOps analyst who needs to read spending, but should not see logins or query text, gets USAGE_VIEWER.

    Checkpoint 7 of 9· Check yourself

    An engineer queries SNOWFLAKE.ACCOUNT_USAGE.QUERY_HISTORY to find out why a load they started five minutes ago failed. Rows from earlier in the day come back, but the load is not there. What is the most likely reason, and what should they query instead?

    Checkpoint 8 of 9· Fill the gap

    Which role must be active to run these grants that open the SNOWFLAKE database's ACCOUNT_USAGE views to other roles?

    USE ROLE  ? ; GRANT IMPORTED PRIVILEGES ON DATABASE SNOWFLAKE TO ROLE SYSADMIN; GRANT IMPORTED PRIVILEGES ON DATABASE SNOWFLAKE TO ROLE customrole1;

    Sources5

    5.Reading credit usage in WAREHOUSE_METERING_HISTORY

    WAREHOUSE_METERING_HISTORY has one row per warehouse per hour. Each row covers one hour for one warehouse within the last 365 days and splits that hour's credits into compute and cloud services. It is where the per-second, per-cluster calculation becomes visible: everything a warehouse used in that hour, across all its clusters, is added up in the row. Summing CREDITS_USED gives month-to-date spend by warehouse:

    Credits used by each warehouse, month-to-datesql
    select warehouse_name, sum(credits_used) as total_credits_used from warehouse_metering_history where start_time >= date_trunc(month, current_date) group by 1 order by 2 desc;

    CREDITS_USED is consumption, not the bill. It equals CREDITS_USED_COMPUTE plus CREDITS_USED_CLOUD_SERVICES before the 10% cloud services adjustment, so it can be higher than what is invoiced. To find the credits actually billed, query METERING_DAILY_HISTORY instead. Latency also differs by column: the view lags up to 3 hours, but CREDITS_USED_CLOUD_SERVICES can lag up to 6. If you reconcile it against the ORGANIZATION_USAGE version of the view, first set the session timezone to UTC.

    Idle time is compute that no query used. CREDITS_ATTRIBUTED_COMPUTE_QUERIES counts only credits spent executing queries. The gap between it and CREDITS_USED_COMPUTE is what a warehouse cost while running with nothing to do. A large gap points to an auto-suspend window that is longer than the workload needs:

    Cost of idle time per warehouse over the last 10 dayssql
    SELECT
      (SUM(credits_used_compute) -
        SUM(credits_attributed_compute_queries)) AS idle_cost,
      warehouse_name
    FROM SNOWFLAKE.ACCOUNT_USAGE.WAREHOUSE_METERING_HISTORY
    WHERE start_time >= DATEADD('days', -10, CURRENT_DATE())
      AND end_time < CURRENT_DATE()
    GROUP BY warehouse_name;

    For chargeback, go below warehouse level. WAREHOUSE_METERING_HISTORY tells you which warehouse spent the credits, not who caused the spending. When several teams share one warehouse, sum per-query credits by user, warehouse or tag using QUERY_HISTORY and QUERY_ATTRIBUTION_HISTORY.

    Checkpoint 9 of 9· Fill the gap

    This query is meant to return each warehouse's idle cost over the last 10 days: the compute credits it used while running with no query to execute. Which column completes it?

    SELECT
      (SUM(credits_used_compute) -
        SUM( ? )) AS idle_cost,
      warehouse_name
    FROM SNOWFLAKE.ACCOUNT_USAGE.WAREHOUSE_METERING_HISTORY
    WHERE start_time >= DATEADD('days', -10, CURRENT_DATE())
      AND end_time < CURRENT_DATE()
    GROUP BY warehouse_name;

    Sources6

    Sources

    (6)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “credits are billed per-second, with a 60-second (i.e. 1-minute) minimum”
      ↩︎ How a warehouse turns running time into credits
      “Each increase in size to the next larger warehouse approximately doubles the computing power and the number of credits billed per full hour”
      ↩︎ How a warehouse turns running time into credits
      “the number of credits billed are only for the additional compute resources that are provisioned”
      ↩︎ How a warehouse turns running time into credits
      “Usage for cloud services is charged only if the daily consumption of cloud services exceeds 10% of the daily usage of virtual warehouses.”
      ↩︎ How a warehouse turns running time into credits
      “The daily adjustment never exceeds actual cloud services usage for that day.”
      ↩︎ How a warehouse turns running time into credits
      “Serverless compute does not factor into the 10% adjustment for cloud services.”
      ↩︎ How a warehouse turns running time into credits
      “Snowflake credits are charged based on the number of virtual warehouses you use, how long they run, and their size.”
      ↩︎ Key concept
      “the 1-minute minimum starts over each time a warehouse is resumed”
      ↩︎ Prediction
    2. 2.
      “a Medium-size Standard warehouse with 3 clusters runs in Auto-scale mode for 2 hours”
      ↩︎ How a warehouse turns running time into credits
    3. 3.
      “Only users with the ACCOUNTADMIN role can create a resource monitor”
      ↩︎ What a resource monitor watches
      “An account can only have one account monitor.”
      ↩︎ What a resource monitor watches
      “each warehouse can only be assigned to one resource monitor”
      ↩︎ What a resource monitor watches
      “An account-level resource monitor does not override resource monitor assignment for individual warehouses.”
      ↩︎ What a resource monitor watches
      “does not control credit usage by the Snowflake-provided compute resources for serverless features”
      ↩︎ What a resource monitor watches
      “To monitor credit consumption by these features, use a budget instead.”
      ↩︎ What a resource monitor watches
      “resource monitors reset at 12:00 AM UTC”
      ↩︎ Schedules and actions: notify, suspend, suspend immediately
      “used credits never reset; assigned warehouses continue using credits until the credit quota is reached”
      ↩︎ Schedules and actions: notify, suspend, suspend immediately
      “Note that actions support thresholds greater than 100.”
      ↩︎ Schedules and actions: notify, suspend, suspend immediately
      “suspend all assigned standard warehouses after all statements being executed by the warehouse(s) have completed”
      ↩︎ Schedules and actions: notify, suspend, suspend immediately
      “Perform no action on warehouses, but send a notification.”
      ↩︎ Schedules and actions: notify, suspend, suspend immediately
      “A resource monitor must have at least one action defined”
      ↩︎ Schedules and actions: notify, suspend, suspend immediately
      “Non-administrator users can only receive email notifications for warehouse monitors.”
      ↩︎ Schedules and actions: notify, suspend, suspend immediately
      “Resource monitors work for warehouses only.”
      ↩︎ Exam trap 1
      “uses all credit consumption by the cloud services layer to calculate whether a limit has been reached”
      ↩︎ Exam trap 2
      “suspend all assigned standard warehouses immediately, which cancels any statements being executed by the warehouses at the time”
      ↩︎ Exam trap 3
      “Resource monitor limits do not take into account the daily 10% adjustment for cloud services.”
      ↩︎ Prediction
      “Resource monitors work for warehouses only. You can’t use a resource monitor to track spending associated with serverless features and AI services.”
      ↩︎ Checkpoint
      “suspend all assigned standard warehouses immediately, which cancels any statements being executed by the warehouses at the time.”
      ↩︎ Checkpoint
    4. 4.
      “No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased.”
      ↩︎ Schedules and actions: notify, suspend, suspend immediately
    5. 5.
      “Records for dropped objects are included in each view.”
      ↩︎ The ACCOUNT_USAGE schema and who can read it
      “The retention period for these views is 1 year (365 days).”
      ↩︎ The ACCOUNT_USAGE schema and who can read it
      “Grant a SNOWFLAKE database role to an account role.”
      ↩︎ The ACCOUNT_USAGE schema and who can read it
      “consider using SNOWFLAKE database roles to grant access to views in the ACCOUNT_USAGE schema”
      ↩︎ The ACCOUNT_USAGE schema and who can read it
      “WAREHOUSE_METERING_HISTORY view | USAGE_VIEWER”
      ↩︎ The ACCOUNT_USAGE schema and who can read it
      “For most of the views, the latency is 2 hours (120 minutes).”
      ↩︎ Exam trap 4
      “the account usage views have some natural latency”
      ↩︎ Checkpoint
    6. 6.
      “return the hourly credit usage for a single warehouse (or all the warehouses in your account) within the last 365 days”
      ↩︎ Reading credit usage in WAREHOUSE_METERING_HISTORY
      “To determine how many credits were actually billed, run queries against the METERING_DAILY_HISTORY view.”
      ↩︎ Reading credit usage in WAREHOUSE_METERING_HISTORY
      “Latency for CREDITS_USED_CLOUD_SERVICES is up to 6 hours.”
      ↩︎ Reading credit usage in WAREHOUSE_METERING_HISTORY
      “Includes only the credit usage for query execution and doesn”
      ↩︎ Reading credit usage in WAREHOUSE_METERING_HISTORY
      “This value does not take into account the adjustment for cloud services, and may therefore be greater than the credits that are billed.”
      ↩︎ Exam trap 5

    Ready to test yourself?

    Practise the 26 questions on this subdomain.

    Spotted a mistake, or was something unclear? Tell us.