Complete the code to create a virtual warehouse with a specific size.
CREATE WAREHOUSE my_warehouse WITH WAREHOUSE_SIZE = '[1]';
The warehouse size controls the compute resources allocated. SMALL is a valid size.
Complete the code to set the warehouse to auto-suspend after inactivity.
ALTER WAREHOUSE my_warehouse SET AUTO_SUSPEND = [1];Setting AUTO_SUSPEND to 300 means the warehouse suspends after 300 seconds of inactivity.
Fix the error in the code to resume the warehouse.
RESUME WAREHOUSE [1];Warehouse names cannot have spaces or dashes; underscores are valid.
Fill both blanks to create a warehouse that auto-resumes and has a specific size.
CREATE WAREHOUSE my_warehouse WITH AUTO_RESUME = [1] WAREHOUSE_SIZE = '[2]';
AUTO_RESUME should be TRUE to enable automatic resume. MEDIUM is a valid warehouse size.
Fill all three blanks to alter a warehouse to suspend after 600 seconds, set size to LARGE, and enable auto-resume.
ALTER WAREHOUSE my_warehouse SET AUTO_SUSPEND = [1], WAREHOUSE_SIZE = '[2]', AUTO_RESUME = [3];
Setting AUTO_SUSPEND to 600 seconds, size to LARGE, and AUTO_RESUME to TRUE configures the warehouse properly.