Country or region and language

    Choose your country or region and your language.

    Suggested for you

      All countries and regions

        Choose your character

        It shows in the top bar and on your profile. Change it any time.

        Sign in or join
        Snowflake SQL course

        Production credit controls

        Opening Snowflake SQL
        Your turn

        Snowflake warehouse sizing with credit arithmetic

        Size a Snowflake warehouse from evidence. Run the same workload on each candidate size, with result reuse handled the same way each time, and write down the deadline the job has to meet. Then compare credits only among the runs that meet it.

        Credits per run

        Standard warehouses double their hourly credit rate at each size step, from X-Small upward. Snowflake bills a running warehouse per second, with a sixty-second minimum each time it resumes. For one isolated run, multiply the hourly rate by the billed seconds, GREATEST(seconds, 60), and divide by 3600. A larger size can finish sooner and still cost more. It can also cost less when the extra compute cuts the runtime by more than half.

        The minimum matters most for short jobs. Three separate 20-second resumes bill three minutes, not one, so apply the minimum to each resume before you add them up.

        Idle time

        AUTO_SUSPEND sets how many idle seconds pass before the warehouse stops, and AUTO_RESUME lets the next query start it again. A long idle timeout keeps the local cache warm for repeat dashboard queries, but the warehouse bills the whole time, even when nothing runs. Pick the value from the workload’s gaps, then check the setting with SHOW WAREHOUSES.

        Resource monitors

        A resource monitor tracks credits against a quota for the warehouses assigned to it. NOTIFY sends an alert. SUSPEND lets running statements finish before the warehouse stops, while SUSPEND_IMMEDIATE cancels them. Enforcement can lag, so usage can pass the threshold. Monitors do not cover serverless features such as Snowpipe; budgets track those.

        The credit controls lesson checks each calculation on a second copy of the trial data, where the durations change. The production practice set adds separate short resumes and a quota for a sandbox that may be interrupted.

        The exercises supply credit rates, not prices. Check your account’s warehouse type and contract before you estimate a bill. A practice trial also cannot stand in for a measurement in your own account, where cache state, concurrency and data volume change the runtime.

        References: Snowflake warehouse considerations, Working with resource monitors.

        Guides on this topic

        Your Work Gym account

        Save your progress and pick up on another device. Your browser's progress comes with you.

        Your account can start a 5-day free trial: every course, unit, project and exam. Card needed; cancel any time and pay nothing.

        New accounts get 6 hours of full access: every course, unit, project and exam. The clock starts when you go past the free lessons.

        Plan your practice from a job ad or syllabus

        Have a referral code?

        or

        You can keep practicing without an account.

        Change your plan

        Checking the price

        Help and feedback

        Ask a question, tell us what is not working, or share an idea. We reply by email.

        What is it about?

        We use it only to reply to you.