0
0
Snowflakecloud~10 mins

Warehouse selection strategies in Snowflake - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to select a warehouse for running a query.

Snowflake
USE WAREHOUSE [1];
Drag options to blanks, or click blank then click option'
ACOMPUTE_WH
BANALYTICS_WH
CDEFAULT_WH
DDATA_WH
Attempts:
3 left
💡 Hint
Common Mistakes
Using a warehouse name that does not exist.
Forgetting to use the USE WAREHOUSE command before running queries.
2fill in blank
medium

Complete the code to create a warehouse with a specific size.

Snowflake
CREATE WAREHOUSE my_wh WAREHOUSE_SIZE = '[1]';
Drag options to blanks, or click blank then click option'
AXSMALL
BLARGE
CMEDIUM
DXLARGE
Attempts:
3 left
💡 Hint
Common Mistakes
Using lowercase size names which are invalid.
Using sizes not supported by Snowflake.
3fill in blank
hard

Fix the error in the warehouse auto-suspend configuration.

Snowflake
ALTER WAREHOUSE my_wh SET AUTO_SUSPEND = [1];
Drag options to blanks, or click blank then click option'
A300
B'300'
C'off'
Doff
Attempts:
3 left
💡 Hint
Common Mistakes
Putting the number in quotes, making it a string.
Using the string 'off' instead of 0 to disable.
4fill in blank
hard

Fill both blanks to create a warehouse with multi-cluster enabled and set minimum clusters.

Snowflake
CREATE WAREHOUSE multi_wh [1] = TRUE MIN_CLUSTER_COUNT = [2];
Drag options to blanks, or click blank then click option'
AMULTI_CLUSTER_WAREHOUSE
BMAX_CLUSTER_COUNT
CMIN_CLUSTER_COUNT
DAUTO_SUSPEND
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing MAX_CLUSTER_COUNT with MIN_CLUSTER_COUNT.
Not enabling MULTI_CLUSTER_WAREHOUSE before setting cluster counts.
5fill in blank
hard

Fill all three blanks to alter a warehouse to set auto-resume, size, and max clusters.

Snowflake
ALTER WAREHOUSE my_wh SET AUTO_RESUME = [1], WAREHOUSE_SIZE = '[2]', MAX_CLUSTER_COUNT = [3];
Drag options to blanks, or click blank then click option'
ATRUE
BLARGE
C5
DFALSE
Attempts:
3 left
💡 Hint
Common Mistakes
Using FALSE for AUTO_RESUME when auto-resume is desired.
Not quoting the warehouse size string.
Setting MAX_CLUSTER_COUNT to a string instead of a number.