ADA-C01 practice question 7 of 10

A team is provisioning new lower environments from the production database using cloning. All production objects and references reside in the database, and do not have external references. What set of object references needs to be re-pointed before granting access for usage?

Full set: 75 questions

Domain Account Management and Data Protection

Answer options
A: Sequences, views, and secure views
B: Sequences, views, secure views, and materialized views Correct answer
C: Sequences, storage integrations, views, secure views, and materialized views
D: There are no object references that need to be re-pointed
Correct Answer:
B. Sequences, views, secure views, and materialized views
Explanation

When a Snowflake database is cloned, the Data Definition Language (DDL) for all its objects is replicated in the new database. If object definitions use fully qualified names (e.g., productiondb.schema.table), these references are not automatically updated to point to the new cloned database. Consequently, objects in the cloned environment, such as views, secure views, and materialized views, will still point to the original production tables. Similarly, if a table's default value references a sequence using its fully qualified name, the cloned table will incorrectly reference the production sequence. These references must be manually updated to ensure the new environment is isolated.

Why Incorrect

A. This option is incomplete. It correctly identifies sequences and views but omits materialized views, which are also defined by queries and are subject to the same referencing issues.
C. This option is incorrect because the scenario explicitly states the database has no external references. Storage integrations are used for external stages, making them irrelevant here.
D. This is incorrect. Cloning copies object metadata exactly. Any hardcoded, fully qualified names within object definitions will persist and point to the source, requiring manual updates.

References

1. Snowflake Documentation: Object Cloning

Section: Introduction to Cloning

Content: "A clone is a writable

independent object that shares the underlying storage with the source object. Changes made to either the source object or the clone are not reflected in the other object." This principle confirms that the cloned object's definition is a copy of the source's definition at the time of cloning. If the source definition contains fully qualified names

the clone will inherit them.

URL: https://docs.snowflake.com/en/user-guide/object-cloning

2. Snowflake Documentation: CREATE ... CLONE

Section: General Usage Notes

Content: The documentation for cloning various objects (databases

schemas

tables) implies that the metadata is copied. For objects defined by SQL queries like views

this means the query text is copied verbatim. If the query text contains proddb.prodschema.table1

the cloned view will also contain proddb.prodschema.table1.

URL: https://docs.snowflake.com/en/sql-reference/sql/create-clone

3. Snowflake Documentation: CREATE VIEW

Section: Usage Notes

Content: "The view definition is not dynamic. A view is not updated if the underlying sources are modified..." This highlights that a view's definition is fixed upon creation. When cloned

this fixed definition is copied

including any fully qualified names. The same logic applies to Materialized Views.

URL: https://docs.snowflake.com/en/sql-reference/sql/create-view

Scroll to Top