0
0
Snowflakecloud~5 mins

Creating and managing shares in Snowflake - Quick Revision & Summary

Choose your learning style9 modes available
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?
ACREATE SHARE my_share;
BCREATE DATABASE my_share;
CCREATE TABLE my_share;
DCREATE SCHEMA my_share;
How do you add a table named 'sales' in schema 'public' of database 'db1' to a share called 'share1'?
ACREATE SHARE share1 ADD TABLE sales;
BALTER DATABASE db1 ADD TABLE sales TO share1;
CALTER SHARE share1 ADD TABLE db1.public.sales;
DGRANT SELECT ON TABLE sales TO share1;
What happens when you DROP a share in Snowflake?
AThe share is paused but data remains accessible.
BThe share is removed and all consumers lose access.
CThe data in the share is deleted.
DThe share is converted to a clone.
Which of the following is NOT a valid object to add to a share?
AStored procedure
BTable
CFile format
DView
What is the main benefit of using shares in Snowflake?
AEncrypting data automatically
BCreating backups of data
CImproving query speed
DSharing data without copying it
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.