Complete the code to create a Snowflake warehouse with the correct size.
CREATE WAREHOUSE my_warehouse WITH WAREHOUSE_SIZE = '[1]';
The correct warehouse size for a balanced Snowflake warehouse is MEDIUM.
Complete the code to pause a Snowflake warehouse.
ALTER WAREHOUSE my_warehouse [1];To save costs, you pause a Snowflake warehouse using the SUSPEND command.
Fix the error in the Snowflake SQL to create a table with clustering keys.
CREATE TABLE sales_data (id INT, amount FLOAT) CLUSTER BY ([1]);Clustering keys should be columns present in the table. Here, id is valid.
Fill both blanks to create a Snowflake database and schema.
CREATE DATABASE [1]; CREATE SCHEMA IF NOT EXISTS [1].[2];
The database is named sales_db and the schema is public, which is the default schema.
Fill all three blanks to grant usage and select privileges on a schema to a role.
GRANT [1] ON SCHEMA [2] TO ROLE [3];
Granting USAGE on schema sales_schema to role analyst_role allows the role to access the schema.
