QuestionQ135

VerifiedDebugging and Deploying

To prevent accidental commits to production data, a senior data engineer has established a policy requiring all development work to reference clones of Delta Lake tables. After testing both DEEP CLONE and SHALLOW CLONE, development tables are created with SHALLOW CLONE.

A few weeks after the initial table creation, cloned versions of several tables implemented as Type 1 Slowly Changing Dimensions (SCDs) stop functioning. The source-table transaction logs show that VACUUM ran the previous day.

Which statement explains why the cloned tables no longer work?

Explanation

A shallow clone stores copied metadata while referencing the source table’s data files rather than copying them. Type 1 SCD updates can replace older files, and VACUUM permanently removes unreferenced files after the applicable retention period. The clone consequently retains metadata references to source data files that have been purged, causing reads to fail.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!