Question 1 · Set up and configure an Azure Databricks environment
A Unity Catalog administrator runs the following DDL:
DROP TABLE corp_prod.finance.ledger;
The ledger table was created as a managed table. What happens to the underlying data files in cloud storage after this statement executes successfully?
Show answer & explanation
Correct answer: A
- A. The table metadata is removed from Unity Catalog and the underlying data files are permanently deleted from the managed storage location.
In Unity Catalog, dropping a managed table removes both the table metadata from the metastore and permanently deletes the underlying data files from the managed storage location. This is the defining characteristic of managed tables — Unity Catalog owns the data lifecycle, so dropping the table also drops the data. — Unity Catalog does not automatically retain managed table data files for 30 days after a DROP TABLE; the deletion is immediate. (Note: Delta table time travel and the underlying Delta log may retain data briefly depending on VACUUM settings, but the table registration and managed ownership are removed.) — There is no restriction preventing managed tables from being dropped; any user with the DROP TABLE privilege can drop a managed table. — While Databricks has introduced some protections for accidental deletion in certain contexts, a standard DROP TABLE on a managed table does not move files to a recoverable trash location with a guaranteed UNDROP window in the general Unity Catalog model.