
Answer-first summary for fast verification
Answer: SHALLOW CLONE
Understanding the different clone types in Databricks is key here. A **deep clone** copies both the source table data and metadata to the clone target, including stream metadata, allowing a stream writing to the Delta table to be paused on the source and resumed on the clone. A **shallow clone**, however, only copies the table metadata without the data files, making it a cost-effective option. Changes to either clone type do not affect the source table. Cloned metadata includes schema, partitioning information, invariants, and nullability. For deep clones, stream and `COPY INTO` metadata are also included. Notably, table descriptions and user-defined commit metadata are not cloned. Therefore, the correct choice is **SHALLOW CLONE** for cloning just the transaction logs. Learn more: [Clone a table | Databricks](https://docs.databricks.com/delta/clone.html).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A team of data scientists has trained a machine learning model using a specific version of a Delta table named credit_scores, which contains customer credit history data. They wish to archive this table version for future testing or ad-hoc analysis purposes. Which option allows them to clone only the Delta transaction logs without copying the data files to the target clone?
A
DEEP CLONE
B
SHALLOW COPY
C
DEEP COPY
D
SHALLOW CLONE
E
None of the above
No comments yet.