Complete the code to enable auto-suspend for a warehouse.
ALTER WAREHOUSE my_warehouse SET AUTO_SUSPEND = [1];The AUTO_SUSPEND parameter expects a number representing seconds of inactivity before suspending the warehouse. 60 seconds is a common setting.
Complete the code to enable auto-resume for a warehouse.
ALTER WAREHOUSE my_warehouse SET AUTO_RESUME = [1];AUTO_RESUME should be set to TRUE to allow the warehouse to automatically resume when a query is submitted.
Fix the error in the code to correctly set auto-suspend to 5 minutes.
ALTER WAREHOUSE my_warehouse SET AUTO_SUSPEND = [1];AUTO_SUSPEND expects seconds, so 5 minutes is 300 seconds.
Fill both blanks to set auto-suspend to 2 minutes and enable auto-resume.
ALTER WAREHOUSE my_warehouse SET AUTO_SUSPEND = [1], AUTO_RESUME = [2];
120 seconds equals 2 minutes for AUTO_SUSPEND, and AUTO_RESUME should be TRUE to enable auto-resume.
Fill all three blanks to create a warehouse with auto-suspend 90 seconds, auto-resume enabled, and size set to XSMALL.
CREATE WAREHOUSE my_warehouse WITH WAREHOUSE_SIZE = [1] AUTO_SUSPEND = [2] AUTO_RESUME = [3];
WAREHOUSE_SIZE is set to XSMALL, AUTO_SUSPEND to 90 seconds, and AUTO_RESUME enabled with TRUE.