Recall & Review
beginner
What does the UNDROP command do in Snowflake?
The UNDROP command recovers a dropped object, such as a table or schema, restoring it to its state before deletion.
Click to reveal answer
beginner
Which types of objects can you recover using UNDROP in Snowflake?
You can recover tables, schemas, and databases that were dropped, as long as they are within the retention period.
Click to reveal answer
intermediate
What is the retention period for dropped objects in Snowflake before they are permanently deleted?
Dropped objects are retained for a default period of 1 day (24 hours), but this can be extended up to 90 days depending on account settings.
Click to reveal answer
intermediate
How do you find the name of a dropped object to use with UNDROP?
You can use the SHOW <object_type> HISTORY command (where <object_type> is TABLES, SCHEMAS, or DATABASES) to see recently dropped objects and their names.
Click to reveal answer
beginner
What happens if you try to UNDROP an object that no longer exists in the dropped objects list?
The UNDROP command will fail because the object is permanently deleted and cannot be recovered.
Click to reveal answer
What is the main purpose of the UNDROP command in Snowflake?
✗ Incorrect
UNDROP is used to recover objects that were dropped, restoring them to their previous state.
Which of the following helps you find recently dropped objects in Snowflake?
✗ Incorrect
The SHOW TABLES HISTORY command lists objects that were recently dropped and can be recovered.
How long is the default retention period for dropped objects in Snowflake?
✗ Incorrect
By default, dropped objects are kept for 24 hours before permanent deletion, but this can be extended up to 90 days depending on account settings.
What happens if you try to UNDROP an object after the retention period has expired?
✗ Incorrect
Once the retention period expires, the object is permanently deleted and cannot be recovered.
Which of these objects can you NOT recover with UNDROP?
✗ Incorrect
UNDROP only works for Snowflake objects like tables, schemas, and databases, not external files.
Explain how to recover a dropped table in Snowflake using the UNDROP command.
Think about how to find the dropped object and the command syntax.
You got /3 concepts.
Describe the retention period concept for dropped objects in Snowflake and its importance.
Consider why Snowflake keeps dropped objects temporarily.
You got /2 concepts.