Managed versus external tables in Unity Catalog, and converting between them
Unity Catalog supports managed and external tables, differing in who owns the underlying data lifecycle. Managed tables store data in the Unity Catalog managed storage location and are dropped along with their data, while external tables reference data at an existing cloud storage path via a location, and dropping them only removes the metadata.
1 · Learn the must-know
- Managed tables store data under the metastore/catalog/schema managed storage location; DROP TABLE deletes both metadata and underlying data files.
- External tables require an external location and storage credential registered in Unity Catalog, and DROP TABLE removes only the table metadata, leaving data files intact.
- CREATE TABLE without a LOCATION clause creates a managed table; specifying LOCATION 'path' creates an external table.
- You cannot directly convert a managed table to external (or vice versa) in place; the common approach is CREATE TABLE ... AS SELECT (CTAS) or CREATE TABLE ... LOCATION to copy/rebuild data into the desired table type.
- ALTER TABLE can rename a table or change properties/comments and column definitions, but ownership, location type, and storage credential associations are set at creation and not simply toggled via ALTER.
- Managed tables benefit fully from Unity Catalog governance features like Predictive Optimization and automatic file layout optimization, whereas external tables are typically used for data shared across platforms or requiring specific storage locations/lifecycle control outside Databricks.
2 · Check your understanding
Check this objectiveFree · always available
A data engineer runs DROP TABLE sales.transactions and the table was a managed table in Unity Catalog. What happens to the underlying data files?
Your objective map0 tried · 0 answered correctly · 33 untouched
What you have tried across Databricks DEA's objectives, not a readiness score.
Databricks Intelligence Platform6% of the exam0 of 2 tried
Data Ingestion and Loading21% of the exam0 of 7 tried
Data Transformation and Modeling22% of the exam0 of 7 tried
Working with Lakeflow Jobs16% of the exam0 of 4 tried
Implementing CI/CD10% of the exam0 of 4 tried
Troubleshooting, Monitoring, and Optimization10% of the exam0 of 5 tried
Governance and Security15% of the exam0 of 4 tried
3 · Keep going
Ready for more? Take a weighted mock or try free practice questions.