Complete the code to create a new Snowflake user with a password.
CREATE USER new_user PASSWORD = '[1]';
The password must be a string enclosed in single quotes and follow Snowflake's password policy. 'MySecurePass123!' is a valid example.
Complete the command to create a new Snowflake warehouse named 'compute_wh'.
CREATE WAREHOUSE [1] WITH WAREHOUSE_SIZE = 'SMALL' AUTO_SUSPEND = 300;
The warehouse name must match the intended name exactly. Here, 'compute_wh' is the correct warehouse name.
Fix the error in the command to create a database named 'sales_db'.
CREATE DATABASE [1];Database names should not be enclosed in quotes unless using double quotes for case sensitivity. Using sales_db without quotes is correct.
Fill both blanks to grant the role 'analyst' access to the 'sales_db' database.
GRANT [1] ON DATABASE [2] TO ROLE analyst;
To allow a role to use a database, the USAGE privilege is granted on the database name 'sales_db'.
Fill all three blanks to create a Snowflake role 'data_engineer' and grant it to user 'new_user'.
CREATE ROLE [1]; GRANT ROLE [2] TO USER [3];
The role 'data_engineer' is created and then granted to the user 'new_user'. Both blanks for the role name must match exactly.