Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a virtual warehouse in Snowflake.
Snowflake
CREATE WAREHOUSE [1] WITH WAREHOUSE_SIZE = 'SMALL';
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using storage or database names instead of warehouse name.
✗ Incorrect
The warehouse name identifies the compute resource in Snowflake.
2fill in blank
mediumComplete the code to create a database in Snowflake.
Snowflake
CREATE DATABASE [1]; Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using compute or role names instead of database name.
✗ Incorrect
The database stores data separately from compute in Snowflake.
3fill in blank
hardFix the error in the command to start a warehouse.
Snowflake
ALTER WAREHOUSE [1] RESUME; Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Trying to resume a database or storage instead of warehouse.
✗ Incorrect
Only a warehouse (compute) can be resumed, not a database or storage.
4fill in blank
hardFill both blanks to create a warehouse with auto suspend and resume enabled.
Snowflake
CREATE WAREHOUSE my_warehouse WITH AUTO_SUSPEND = [1] AUTO_RESUME = [2];
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using FALSE for auto resume disables it.
Using 0 disables auto suspend.
✗ Incorrect
Auto suspend time is in seconds (300 = 5 minutes), and auto resume is enabled with TRUE.
5fill in blank
hardFill all three blanks to query data using a warehouse and database.
Snowflake
USE WAREHOUSE [1]; USE DATABASE [2]; SELECT * FROM [3].customers LIMIT 5;
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using role instead of schema.
Mixing warehouse and database names.
✗ Incorrect
You select the warehouse (compute), then the database (storage), then the schema (public) to query data.