Running DDL against managed and external tables
In Azure Databricks, DDL commands create either managed tables (Databricks controls both metadata and underlying data files) or external tables (Databricks controls only metadata, while data resides at a user-specified location). Understanding CREATE, DROP, and ALTER behavior for each table type—especially what happens to underlying data—is essential for safe schema and storage management.
1 · Learn the must-know
- CREATE TABLE without a LOCATION clause creates a managed table whose data is stored in the default managed storage location (DBFS root or, in Unity Catalog, the catalog/schema's managed location).
- CREATE TABLE ... LOCATION 'path' creates an external table; Databricks stores only metadata in the metastore while data remains at the specified path.
- DROP TABLE on a managed table deletes both the metadata and the underlying data files, whereas DROP TABLE on an external table removes only the metadata and leaves the data files intact.
- In Unity Catalog, external tables require a defined external location and storage credential granting access to the target cloud storage path before creation succeeds.
- CREATE TABLE AS SELECT (CTAS) and CREATE OR REPLACE TABLE can be used to create/overwrite managed tables from query results, and the default table format is Delta unless another USING clause is specified.
- DESCRIBE TABLE EXTENDED (or DESCRIBE DETAIL) reveals whether a table is MANAGED or EXTERNAL along with its storage Location, which is the reliable way to verify table type.
2 · Check your understanding
A data engineer runs CREATE TABLE sales.orders (order_id INT, amount DOUBLE) USING DELTA in a Unity Catalog-enabled workspace, without a LOCATION clause. Several months later, a different engineer runs DROP TABLE sales.orders. What happens to the underlying data files?
What you have tried across DP-750's objectives, not a readiness score.
Set up and configure an Azure Databricks environment15-20% of the exam0 of 13 tried
Secure and govern Unity Catalog objects15-20% of the exam0 of 12 tried
Prepare and process data30-35% of the exam0 of 28 tried
Deploy and maintain data pipelines and workloads30-35% of the exam0 of 24 tried
3 · Keep going
Ready for more? Take a weighted mock or try free practice questions.