Complete the code to create a multi-cluster warehouse with auto-scaling enabled.
CREATE WAREHOUSE my_wh WITH WAREHOUSE_SIZE = 'XSMALL' [1];
The MAX_CLUSTER_COUNT parameter enables multi-cluster warehouses by setting the maximum number of clusters.
Complete the code to set the minimum number of clusters for a multi-cluster warehouse.
ALTER WAREHOUSE my_wh SET [1] = 2;
The MIN_CLUSTER_COUNT parameter sets the minimum number of clusters that remain active.
Fix the error in the code to enable auto-suspend for a multi-cluster warehouse.
ALTER WAREHOUSE my_wh SET AUTO_SUSPEND = [1];The AUTO_SUSPEND parameter expects a number representing seconds before suspension, not a boolean.
Fill both blanks to create a multi-cluster warehouse with minimum 2 and maximum 5 clusters.
CREATE WAREHOUSE multi_wh WITH WAREHOUSE_SIZE = 'MEDIUM' [1] [2];
Setting MIN_CLUSTER_COUNT and MAX_CLUSTER_COUNT defines the cluster range for the warehouse.
Fill all three blanks to alter a warehouse to enable auto-resume, set auto-suspend to 120 seconds, and max clusters to 4.
ALTER WAREHOUSE my_wh SET [1] = TRUE, [2] = [3], MAX_CLUSTER_COUNT = 4;
AUTO_RESUME enables the warehouse to start automatically, AUTO_SUSPEND sets the idle time before suspension, and 120 is the time in seconds.