A data engineering team is migrating a legacy Hive metastore data warehouse to Unity Catalog. They have two types of data assets:
- **Dataset A**: Internal Silver-layer Delta tables produced entirely by Databricks pipelines. No external tool reads these tables directly from cloud storage.
- **Dataset B**: Raw CSV and Parquet landing files produced by an upstream on-premises ETL system that writes directly to an S3 bucket. Databricks only reads this data.
A data engineer proposes registering Dataset B as a managed table in Unity Catalog by running CREATE TABLE ... AS SELECT ... to import the data. A colleague argues this would be the wrong table type for Dataset B and instead recommends an external table.
Which statement BEST explains the colleague's reasoning, and what is the KEY behavioral difference between a managed and external table in Unity Catalog when a DROP TABLE command is executed?
Show answer & explanation
Correct answer: A
WHY A: This is the definitive distinction between managed and external tables. Unity Catalog managed tables use Delta format and UC owns the full data lifecycle—DROP TABLE deletes both metadata AND physical files (the files after a recovery period, 7 days by default, during which UNDROP TABLE can restore the table). For Dataset B (upstream system writes raw files to S3), an external table is correct: DROP TABLE only de-registers the metadata, leaving the physical files safe for the upstream system's continued use. WHY NOT B: Unity Catalog does not 'lock' a managed table's storage path to prevent external writes—it simply doesn't govern those external writes. Concurrent external writes to a managed table's storage location are possible but bypass UC governance, which is why they're discouraged. WHY NOT C: Managed tables MUST use Delta (or Apache Iceberg in Public Preview) format. External tables support Delta, CSV, JSON, Avro, Parquet, ORC, and Text. DROP TABLE behavior is fundamentally different: managed deletes data files, external preserves them. WHY NOT D: Performance advantages of managed tables are real, but the DROP TABLE behavior claim at the end is entirely fabricated—there is no such 30-day read-based data protection policy in Unity Catalog.