0
0
Snowflakecloud~20 mins

Creating and managing shares in Snowflake - Practice Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Snowflake Share Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
1:30remaining
What happens when you create a share without adding any objects?

You create a share in Snowflake but do not add any databases or schemas to it. What will be the state of this share?

Snowflake
CREATE SHARE my_share;
AThe share automatically includes all existing databases in your account.
BThe share is created but contains no data and cannot be used to share data until objects are added.
CThe share creation fails with an error because no objects were specified.
DThe share includes only the default public schema automatically.
Attempts:
2 left
💡 Hint

Think about what a share represents and what it needs to share data.

Configuration
intermediate
1:30remaining
Which command correctly adds a database to an existing share?

You have an existing share named my_share. You want to add the database sales_db to this share. Which command is correct?

AALTER SHARE my_share INCLUDE DATABASE sales_db;
BALTER SHARE my_share ADD sales_db;
CALTER SHARE my_share ADD DATABASE sales_db;
DALTER SHARE my_share ADD DATABASE = sales_db;
Attempts:
2 left
💡 Hint

Recall the syntax for adding objects to a share in Snowflake.

security
advanced
2:00remaining
What is the effect of revoking usage on a share from a consumer account?

You revoke usage privileges on a share from a consumer account. What happens to the consumer's access to the shared data?

AThe consumer can still query the data but cannot create new shared databases from the share.
BThe consumer retains access until their current session ends.
CThe consumer immediately loses access to all shared data from that share.
DThe consumer's access is unaffected; revoking usage only affects the provider.
Attempts:
2 left
💡 Hint

Consider what revoking usage means for shared data access.

Architecture
advanced
2:00remaining
How does Snowflake handle data consistency when sharing data across accounts?

When a provider shares data with a consumer account, how does Snowflake ensure the consumer sees consistent data?

ASnowflake copies the data physically to the consumer's account to ensure consistency.
BSnowflake requires manual refreshes by the consumer to update shared data.
CSnowflake uses a zero-copy cloning mechanism to provide a consistent snapshot of the data at the time of sharing.
DThe consumer always sees the latest live data with no snapshot guarantees.
Attempts:
2 left
💡 Hint

Think about how Snowflake shares data efficiently without duplication.

Best Practice
expert
2:30remaining
What is the recommended approach to share only specific tables from a database?

You want to share only certain tables from a database with an external account. What is the best practice to achieve this in Snowflake?

AAdd only the specific schemas containing the tables to the share; tables outside those schemas are excluded.
BAdd the entire database to the share and restrict access using roles on the consumer side.
CCreate a new database containing only the desired tables and share that database.
DAdd the entire database to the share and use masking policies to hide unwanted tables.
Attempts:
2 left
💡 Hint

Consider how shares work at the database and schema level.