Recall & Review
beginner
What is a share in Snowflake?
A share in Snowflake is a way to securely share database objects like tables and views with other Snowflake accounts without copying data.
Click to reveal answer
beginner
How do you create a share in Snowflake?
Use the SQL command:
CREATE SHARE share_name; This creates an empty share to which you can add database objects.Click to reveal answer
intermediate
How do you add a table to a share?
Use
ALTER SHARE share_name ADD TABLE database_name.schema_name.table_name; to add a table to the share.Click to reveal answer
intermediate
What is the difference between a share and a database clone in Snowflake?
A share allows data access without copying data, while a clone creates a full copy of the database or table.
Click to reveal answer
beginner
How do you revoke access to a share?
Use
DROP SHARE share_name; to remove the share and revoke access from all consumers.Click to reveal answer
Which command creates a new share in Snowflake?
✗ Incorrect
The correct command to create a share is CREATE SHARE followed by the share name.
How do you add a table named 'sales' in schema 'public' of database 'db1' to a share called 'share1'?
✗ Incorrect
You add a table to a share using ALTER SHARE with ADD TABLE and the full table path.
What happens when you DROP a share in Snowflake?
✗ Incorrect
Dropping a share removes it and revokes access for all consumers, but does not delete the underlying data.
Which of the following is NOT a valid object to add to a share?
✗ Incorrect
Stored procedures cannot be shared; only tables, views, and some other objects can be added to shares.
What is the main benefit of using shares in Snowflake?
✗ Incorrect
Shares allow secure data sharing without duplicating data, saving storage and time.
Explain the steps to create a share and add a table to it in Snowflake.
Think about first creating an empty share, then adding objects to it.
You got /3 concepts.
Describe how Snowflake shares differ from cloning databases or tables.
Focus on data duplication and access differences.
You got /4 concepts.