Study FAQ
What should I check before using a Snowflake clone as a test environment?
Also asked as 2
- Which grants and dependencies should I validate after cloning Snowflake objects?
- Does cloning a Snowflake database preserve all permissions and operational dependencies?
Answer
Check the cloned container, its child grants and ownership, and any dependencies that can still point outside the clone. A database or schema clone generally copies grants on cloned child objects but leaves the new container's grants to be set separately. An individual table clone can copy explicit privileges with COPY GRANTS, which excludes OWNERSHIP.
- Verify
SHOW GRANTSon the new container and representative child objects. Confirm the role running tests can use the clone and that sensitive child objects aren't exposed through inherited grants. Check type-specific behavior for objects such as pipes and database roles. - Inspect references in views, sequences and policies, along with stages, pipes and integrations where used. For example, an external stage clone still points to cloud storage, and a table cloned independently can still refer to the source sequence.
- Check streams and tasks before using the clone in a pipeline. Cloned tasks are suspended by default. When cloning a database or schema with its stream source tables, unconsumed source stream records are inaccessible in the clone.
- For a historical clone, verify that relevant child tables retain the intended time point. A child table's shorter retention can obstruct a database or schema clone. If supported and explicitly requested, skipping insufficient-retention tables can leave the clone incomplete.
Record the intended clone owner and use test roles to run a representative query or controlled pipeline check before handing over the environment.
Full explanation
Data Protection with Time Travel, Fail-safe, and Zero-copy Cloning
Study guide · COF-C03
Read the full explanation