Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a share in Snowflake.
Snowflake
CREATE SHARE [1]; Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using keywords like DATABASE instead of a share name.
✗ Incorrect
The CREATE SHARE command creates a new share object in Snowflake.
2fill in blank
mediumComplete the code to add a database to the share.
Snowflake
ALTER SHARE my_share ADD DATABASE [1]; Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Adding a schema or table instead of a database.
✗ Incorrect
The ADD DATABASE clause adds a database to the share.
3fill in blank
hardFix the error in the code to grant usage on the share to a consumer account.
Snowflake
GRANT USAGE ON SHARE my_share TO ACCOUNT [1]; Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using numbers or share/database names instead of account name.
✗ Incorrect
You must specify the consumer account name to grant usage on the share.
4fill in blank
hardFill both blanks to create a database from a share for the consumer.
Snowflake
CREATE DATABASE [1] FROM SHARE [2];
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the share and database names.
✗ Incorrect
The consumer creates a database named consumer_db from the provider's share my_share.
5fill in blank
hardFill all three blanks to explain why data sharing eliminates data copies.
Snowflake
Data sharing in Snowflake works by [1] data access, not by [2] data. This means the consumer accesses the provider's data [3] without creating copies.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'duplicating' instead of 'copying' or mixing access and copy concepts.
✗ Incorrect
Snowflake data sharing allows direct access to data without copying it, so consumers access data remotely.