Virtual Warehouses, Sizes, and Credits
SnowPro Core · Lesson 5 of 27 · 25:26
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the SnowPro Core Certification exam (COF-C03). In this lesson: what a virtual warehouse is, sizes and credits, auto-suspend and auto-resume, and the warehouse types. Follows Foxglove Apparel, a fictional online clothing retailer. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Compute you pay for
Last month, a Foxglove warehouse stayed on all weekend with nothing to do, and the bill showed it. Meanwhile, the data science team's training job kept running out of memory. Both are warehouse choices, and this lesson covers them.
What a warehouse is
A virtual warehouse is a cluster of compute resources that runs your queries, your D M L statements, and your data loading. A session needs a current warehouse to run a query, and the warehouse must be running. You can start, stop, or resize a warehouse at any time, even while it runs. A resize does not touch the queries that are already running: the new resources serve queued and new queries.
Sizes and credits
Warehouse sizes go from X-Small to 6X-Large, and each step up doubles the compute and the credits per hour: for a first generation warehouse, one credit an hour for X-Small, two for Small, and four for Medium. Billing is per second, with a sixty second minimum each time the warehouse starts or resumes. A suspended warehouse uses no credits at all. And larger is not always faster: small, simple queries gain little from a bigger warehouse.
Auto-suspend and auto-resume
Auto-suspend stops a warehouse after a period with no activity, and the default is six hundred seconds, which is ten minutes. Auto-resume starts it again as soon as a query arrives, so users never start it by hand. But suspending drops the warehouse cache, so match the setting to the gaps between queries. And INITIALLY_SUSPENDED creates a warehouse without starting it, so creation costs nothing.
Warehouse types
Standard warehouses come in two generations, Gen1 and Gen2, and Gen2 runs on faster hardware, so most queries finish faster. When you create a standard warehouse without naming a generation, Snowflake uses Gen2 wherever it is available, though not for the two largest sizes. Snowpark-optimized warehouses give each node sixteen times the memory of a standard warehouse, for memory-heavy Snowpark work such as machine learning training. And the RESOURCE_CONSTRAINT property sets the memory and the CPU architecture of a Snowpark-optimized warehouse.
Creating a warehouse
Here is a warehouse for loading files. CREATE WAREHOUSE sets the size, an auto-suspend of sixty seconds, and auto-resume. INITIALLY_SUSPENDED keeps it off until the first query arrives. And later, ALTER WAREHOUSE can change the size, which takes effect for new queries.
Foxglove's warehouses
Foxglove now runs three warehouses. The loading warehouse suspends after sixty seconds, since loads come in bursts. The dashboard warehouse suspends after ten minutes, because queries arrive every few minutes and reuse its cache. And the data science team gets a Snowpark-optimized warehouse for training.
Recap
Let's recap. A virtual warehouse runs queries, D M L, and loading, and it can be resized while it runs. Each size step doubles the compute and the credits per hour. Billing is per second, with a sixty second minimum at each start, and a suspended warehouse costs nothing. Auto-suspend saves credits but drops the cache, so match it to the gaps between queries. And standard warehouses come in Gen1 and Gen2, while Snowpark-optimized warehouses add memory.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
A suspended X-Small warehouse resumes for one query that takes ten seconds, and an engineer suspends it right after. How much running time is charged?
- Ten seconds
- A full hour
- Sixty seconds
- None, cloud services ran it
Show the answer
Sixty seconds
Each start or resume is charged for at least sixty seconds, then per second after that. “Ten seconds” ignores the one minute minimum. “A full hour” is wrong, since billing is per second, not per hour. And “None, cloud services ran it” is wrong, because the query ran on the warehouse, which bills its own credits.
Foxglove’s Snowpark training job fails with out-of-memory errors on a Medium standard warehouse. Which change fits best?
- A Snowpark-optimized warehouse
- More clusters on the same warehouse
- A shorter auto-suspend
- A Gen1 standard warehouse
Show the answer
A Snowpark-optimized warehouse
A Snowpark-optimized warehouse gives each node much more memory, for exactly this kind of job. “More clusters on the same warehouse” adds clusters for more concurrent queries, but each cluster has the same memory. “A shorter auto-suspend” only changes when the warehouse stops. And “A Gen1 standard warehouse” moves to older hardware of the same size, with no extra memory.
A dashboard warehouse gets a query every two minutes, all day, and its auto-suspend is sixty seconds. Each query starts cold and runs slowly. What change helps?
- Resize it to 6X-Large
- Set auto-suspend longer than the gap
- Turn off auto-resume
- Switch to a Snowpark-optimized warehouse
Show the answer
Set auto-suspend longer than the gap
An auto-suspend longer than the gap keeps the warehouse running, so its cache stays warm and it stops paying a new minimum at each resume. “Resize it to 6X-Large” buys far more compute than these small queries need. “Turn off auto-resume” would leave the warehouse stopped, so queries would fail instead of waiting. And “Switch to a Snowpark-optimized warehouse” adds memory for Snowpark work, which does not solve a cold cache.