Databricks Data Engineer Associate · Section 7 · 15% of the exam
Differentiate between managed and external tables in Unity Catalog and perform basic operations (create, modify, delete, and convert between managed and external tables) on them.
One of the objectives of the Databricks Certified Data Engineer Associate exam, in the section “Governance and Security”. Here is what it covers, the points to remember and a question to try.
What it covers
Unity Catalog always governs a table's metadata, but only managed tables also have their files, lifecycle and optimization managed for you. This lesson covers storage credentials, external locations, managed storage precedence, DROP/UNDROP behavior, and how to convert between the two table types.
Points to remember
- Managed table: Unity Catalog controls the files in a managed storage location. External table: files live at a
LOCATIONinside a registered external location. - Managed storage precedence is schema > catalog > metastore; Databricks recommends catalog-level managed storage.
- Storage credential = cloud identity; external location = URL + credential. There is no
CREATE STORAGE CREDENTIALSQL statement: use Catalog Explorer, CLI, API or Terraform. - Creating an external table needs
CREATE EXTERNAL TABLEon the external location in addition toUSE CATALOG,USE SCHEMAandCREATE TABLE. DROP TABLEon a managed table keeps files for the recovery period (7 days by default) and then purges them; on an external table it removes metadata only.
Try a question
A data engineer runs DROP TABLE prod.raw.partner_feed. The table was originally created with the clause LOCATION 's3://acme-landing/partner_feed'. What happens to the data files?
- AThey are deleted immediately together with the table's metadata and transaction log
- BThey are kept for the 7-day recovery period and then purged asynchronously
- CThey are moved into the schema's managed storage location for later reuse
- DThey stay at the S3 path; only the metadata is removed
Show the answer
D. A table created with LOCATION is an external table. Dropping an external table removes only its metadata from Unity Catalog; the files stay in cloud storage until someone deletes them there. The keep-for-the-recovery-period-then-purge behavior applies to managed tables.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Managed vs External Tables teaches this objective (about 45 minutes), and 13 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Configure access controls using the UI and SQL by applying GRANT, REVOKE, and DENY privileges to principals (users, groups, and service principals) at appropriate levels of the security hierarchy.
- Understand column-level masking and row-level security to restrict data visibility based on user groups.
- Understand Unity Catalog ABAC policies to centrally control row-level filtering and column masking for sensitive data.