0
0
Snowflakecloud~10 mins

Clone use cases (dev, testing, backups) in Snowflake - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a clone of a database for development use.

Snowflake
CREATE DATABASE dev_clone CLONE [1];
Drag options to blanks, or click blank then click option'
Atest_db
Bproduction_db
Cbackup_db
Darchive_db
Attempts:
3 left
💡 Hint
Common Mistakes
Cloning from a test or backup database instead of production.
Using incorrect database names.
2fill in blank
medium

Complete the code to clone a schema for testing purposes.

Snowflake
CREATE SCHEMA test_schema_clone CLONE [1].sales_schema;
Drag options to blanks, or click blank then click option'
Aprod_db
Bbackup_db
Cdev_db
Darchive_db
Attempts:
3 left
💡 Hint
Common Mistakes
Cloning from development or backup databases.
Using the wrong database name.
3fill in blank
hard

Fix the error in the clone creation command for backup purposes.

Snowflake
CREATE DATABASE backup_clone [1] backup_db;
Drag options to blanks, or click blank then click option'
ADUPLICATE
BCOPY
CCLONE
DREPLICATE
Attempts:
3 left
💡 Hint
Common Mistakes
Using COPY instead of CLONE.
Using unsupported keywords like DUPLICATE or REPLICATE.
4fill in blank
hard

Fill both blanks to clone a table for testing and rename it.

Snowflake
CREATE TABLE [1] CLONE [2].orders;
Drag options to blanks, or click blank then click option'
Atest_orders
Bprod_db
Cdev_db
Dbackup_orders
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong source database.
Naming the clone with a confusing or incorrect name.
5fill in blank
hard

Fill all three blanks to clone a database for backup, set a comment, and specify a clone time.

Snowflake
CREATE DATABASE [1] CLONE [2] AT (TIMESTAMP => '[3]');
Drag options to blanks, or click blank then click option'
Abackup_db_clone
Bproduction_db
C2024-06-01 00:00:00
Dtest_db
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong database name for cloning.
Incorrect timestamp format.
Confusing test and production databases.