
Explanation:
The fundamental difference lies in data independence. A Shallow Clone (also known as a pointer clone) creates a new table entry that points to the source table's existing data files, making it fast and cost-effective for short-term testing. A Deep Clone creates a complete, separate copy of the data and metadata, meaning any changes or deletions in the source table do not affect the deep clone.
Ultimate access to all questions.
In Databricks Delta Lake, what is the primary distinction between a Shallow Clone and a Deep Clone?
A
Shallow clones are read-only versions of a table used for reporting, whereas deep clones are fully mutable copies.
B
Shallow clones copy only the table metadata and reference the existing data files, while deep clones copy both the metadata and the underlying data files to create a fully independent table.
C
Shallow clones only replicate the schema definition, while deep clones replicate the schema and the metadata but omit the data files.
D
Shallow clones utilize the transaction log for faster processing, whereas deep clones bypass the log to copy physical files directly to avoid overhead.
No comments yet.