A warehouse in Snowflake is a cluster of compute resources used to perform data processing tasks like queries and loading data.
Click to reveal answer
beginner
Why choose a larger warehouse size in Snowflake?
A larger warehouse size provides more compute power, which can speed up query processing but costs more credits.
Click to reveal answer
intermediate
What is the benefit of using multi-cluster warehouses?
Multi-cluster warehouses automatically add or remove clusters to handle varying workloads, improving concurrency without manual intervention.
Click to reveal answer
beginner
How does auto-suspend help in warehouse selection?
Auto-suspend pauses the warehouse after inactivity, saving costs by not running compute resources when not needed.
Click to reveal answer
intermediate
What factors influence the choice of warehouse for a query?
Factors include query complexity, concurrency needs, cost considerations, and workload patterns.
Click to reveal answer
What does a larger Snowflake warehouse size provide?
AMore compute power
BMore storage space
CLonger query times
DLower cost
✗ Incorrect
A larger warehouse size means more compute resources, which speeds up queries.
What is the main advantage of multi-cluster warehouses?
ASlower query processing
BReduced storage costs
CManual cluster management
DAutomatic scaling for concurrency
✗ Incorrect
Multi-cluster warehouses add or remove clusters automatically to handle many users.
What does auto-suspend do in Snowflake warehouses?
AIncreases warehouse size
BDeletes warehouse data
CPauses warehouse after inactivity
DStarts warehouse automatically
✗ Incorrect
Auto-suspend saves cost by pausing compute when not in use.
Which factor is NOT important when selecting a warehouse?
AColor of the warehouse icon
BConcurrency needs
CCost considerations
DQuery complexity
✗ Incorrect
The icon color has no impact on warehouse performance or cost.
What happens if you choose a warehouse too small for your workload?
ACosts will be higher
BQueries may run slower
CWarehouse will auto-scale to larger size
DData will be lost
✗ Incorrect
A small warehouse may not have enough compute power, causing slower queries.
Explain how Snowflake warehouse size and multi-cluster options affect query performance and cost.
Think about how compute resources and concurrency affect query speed and billing.
You got /3 concepts.
Describe the role of auto-suspend and auto-resume in warehouse cost management.
Consider how pausing and starting compute resources affects billing.
You got /3 concepts.
Practice
(1/5)
1. What does the USE WAREHOUSE command do in Snowflake?
easy
A. It lists all available warehouses.
B. It switches the current warehouse to run queries.
C. It deletes an existing warehouse.
D. It creates a new warehouse.
Solution
Step 1: Understand the purpose of USE WAREHOUSE
This command changes which warehouse is active for running queries.
Step 2: Compare with other commands
Creating, deleting, or listing warehouses use different commands, not USE WAREHOUSE.
Final Answer:
It switches the current warehouse to run queries. -> Option B
Quick Check:
USE WAREHOUSE changes active warehouse [OK]
Hint: Remember: USE means switch active warehouse [OK]
Common Mistakes:
Confusing USE with CREATE or DROP commands
Thinking it lists warehouses
Assuming it modifies warehouse size
2. Which of the following is the correct syntax to switch to a warehouse named COMPUTE_WH?
easy
A. USE WAREHOUSE COMPUTE_WH;
B. SWITCH WAREHOUSE COMPUTE_WH;
C. SELECT WAREHOUSE COMPUTE_WH;
D. CHANGE WAREHOUSE TO COMPUTE_WH;
Solution
Step 1: Recall the correct command syntax
The command to switch warehouses is USE WAREHOUSE <name>;.
Step 2: Check each option
Only USE WAREHOUSE COMPUTE_WH; matches the correct syntax exactly.
Final Answer:
USE WAREHOUSE COMPUTE_WH; -> Option A
Quick Check:
Correct syntax = USE WAREHOUSE [name]; [OK]
Hint: USE WAREHOUSE plus name switches warehouse [OK]
Common Mistakes:
Using SWITCH or CHANGE instead of USE
Adding extra keywords like TO or SELECT
Missing semicolon at end
3. Given the following commands run in order:
USE WAREHOUSE SMALL_WH;
SELECT CURRENT_WAREHOUSE();
USE WAREHOUSE LARGE_WH;
SELECT CURRENT_WAREHOUSE();
What will be the output of the two CURRENT_WAREHOUSE() calls?
medium
A. SMALL_WH then LARGE_WH
B. LARGE_WH then SMALL_WH
C. SMALL_WH twice
D. LARGE_WH twice
Solution
Step 1: Analyze the first USE WAREHOUSE command
The first command sets the active warehouse to SMALL_WH, so the first CURRENT_WAREHOUSE() returns SMALL_WH.
Step 2: Analyze the second USE WAREHOUSE command
The second command switches the active warehouse to LARGE_WH, so the second CURRENT_WAREHOUSE() returns LARGE_WH.
Final Answer:
SMALL_WH then LARGE_WH -> Option A
Quick Check:
Warehouse switches reflect in CURRENT_WAREHOUSE() [OK]
Hint: Each USE WAREHOUSE changes current warehouse immediately [OK]
Common Mistakes:
Assuming warehouse does not change after second USE
Mixing order of outputs
Thinking CURRENT_WAREHOUSE() returns session name
4. You run the command USE WAREHOUSE BIG_WH but get an error saying the warehouse does not exist. What is the most likely cause?
medium
A. The command requires a semicolon at the end.
B. You need to restart your Snowflake session.
C. You must create a database before switching warehouses.
D. The warehouse name is misspelled or does not exist.
Solution
Step 1: Understand the error message
The error says the warehouse does not exist, so the name is likely wrong or missing.
Step 2: Evaluate other options
Restarting session or creating a database is unrelated; semicolon missing usually causes syntax error, not 'does not exist'.
Final Answer:
The warehouse name is misspelled or does not exist. -> Option D
Quick Check:
Nonexistent warehouse name causes error [OK]
Hint: Check warehouse name spelling if 'does not exist' error appears [OK]
Common Mistakes:
Restarting session unnecessarily
Confusing warehouse with database
Ignoring error message details
5. You have two warehouses: SMALL_WH with 1 cluster and LARGE_WH with 4 clusters. You want to run a heavy query quickly but also save costs on light queries. Which strategy is best?
hard
A. Always use LARGE_WH for all queries to ensure speed.
B. Use SMALL_WH only and increase its size when needed.
C. Use SMALL_WH for light queries and switch to LARGE_WH for heavy queries.
D. Create a new warehouse for each query type.
Solution
Step 1: Understand warehouse sizes and costs
SMALL_WH is cheaper and good for light work; LARGE_WH is bigger and faster but costs more.
Step 2: Choose strategy balancing speed and cost
Switching warehouses based on query load saves cost and improves performance.
Final Answer:
Use SMALL_WH for light queries and switch to LARGE_WH for heavy queries. -> Option C
Quick Check:
Match warehouse size to query load for cost and speed [OK]
Hint: Match warehouse size to query weight, switch as needed [OK]
Common Mistakes:
Using large warehouse always wastes cost
Trying to resize warehouses dynamically
Creating many warehouses unnecessarily
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.