DP-750 · Unity Catalog Objects and Discovery
22 cards
Unity Catalog Tables, Views, and Materialized Views
-
Quick check
A team is deciding between a managed table and a standard view for the same sales data. Which statement separates the two correctly?
AA managed table recalculates its rows each time someone reads it
Recomputing on read is view behavior. A managed table already holds its rows, so nothing is recalculated when it is queried.
BA managed table owns the stored rows; a view stores only its query
Right. The table persists the data while the view persists only the query that produces a result.
CA standard view owns the data files and the managed table owns the query
This reverses both objects: the view is the one that keeps a query, and the table is the one with files behind it.
2 / 22
-
Quick check
You run USE CATALOG and USE SCHEMA, then create a table. How can that table be addressed afterwards, and what happens if it is dropped?
ABy its short name; dropping it removes metadata and data files
Right. The current catalog and schema supply the first two name levels, and a managed table's drop clears both its metadata and its files.
BBy a two-level catalog and table name; dropping it keeps the files in place
The namespace always has three levels, so a name that omits the schema does not identify the table, and a managed drop does delete the files.
CBy its storage path only; dropping it leaves the metadata registered
A managed table is addressed by name rather than by path, and its drop removes the catalog metadata as well.
5 / 22
-
Quick check
An order table has a CHECK constraint on its total and a foreign key to the customer table. A write satisfies the CHECK but points to a customer that does not exist. What happens?
AIt is rejected, because both kinds of constraint block invalid writes
Only some constraints are enforced. CHECK and NOT NULL reject bad rows, but key constraints do not.
BIt is rejected, because a foreign key is validated before the CHECK runs
There is no validation order to appeal to here: the foreign key is never checked at write time in the first place.
CIt is accepted, because the key constraint documents but does not enforce
Right. Foreign keys are informational metadata for modeling and optimization, so the row is written even though the reference is dangling.
8 / 22
-
Keep your progress in the app
That’s 3 of 8 quick checks. In the app they stay answered, and every lesson remembers where you left off.
-
Quick check
A view joins three tables that are updated all day, and analysts must always see the latest rows. What does a standard view give them, and at what price?
ACurrent results, since its query runs on each access and is recomputed
Right. Recomputation on every access is exactly what keeps the result current, and it is also what the analysts pay for in query time.
BCached results that stay fixed between scheduled refreshes of the stored copy
Caching between refreshes describes a materialized view, which is precisely the freshness trade this team refused.
CCurrent results at no compute cost, because rows are copied into the view ahead of time
A standard view stores no rows, so there is no copy to read from and the computation cannot be avoided.
11 / 22
-
Quick check
Auditors must see raw email addresses, everyone else must see redacted values, analysts need current rows, and nobody will maintain one table per audience. Which object fits?
AA standard view returning the email column unchanged to all
An unchanged projection shows the same address to auditors and to everyone else, so no masking happens at all.
BA dynamic view whose column mask depends on the querying user
Right. The mask is evaluated against the caller's group membership, and a single view keeps current data with no duplicated copies.
COne managed table per audience, each with its own copy of the rows
Copying the rows per audience is the duplication the team ruled out, and it scatters the access logic across several objects.
14 / 22
-
Quick check
A dashboard runs the same expensive aggregation for hundreds of users, and a short lag behind source changes is acceptable. Which object fits, and why?
AA standard view, because it never repeats the aggregation work
A standard view repeats the aggregation on every access, so hundreds of readers means hundreds of executions.
BA dynamic view, because caching is a form of user-level filtering
A dynamic view addresses who may see which rows; it does not accelerate a repeated aggregation.
CA materialized view, because it serves a cached result
Right. The cost is paid once per refresh and every reader is served from the cached result, which the accepted lag allows.
17 / 22
-
Quick check
An incremental refresh of a materialized view cannot start. The source tables are Delta tables, but the refresh keeps reprocessing everything. What is missing?
AInformational primary keys on the sources
Key constraints are informational metadata about relationships and say nothing about which rows changed.
BColumn masks on the source columns
Masks control which values a user can see and have no role in detecting changed data.
CRow tracking enabled on the Delta source tables
Right. Incremental refresh identifies changed rows through row tracking, so a Delta source without it cannot be processed incrementally.
20 / 22
-
Quick check
Which summary matches each object to the behavior that defines it?
AManaged tables cache query output, dynamic views own the data files, and materialized views recompute on every access
Every pairing here is misplaced: caching belongs to the materialized view, file ownership to the managed table, and recomputation to the standard view.
BManaged tables own data, dynamic views vary results per user, and materialized views cache results
Right. Persistent storage, per-user evaluation, and cached output are the three defining behaviors.
CManaged tables store queries, and both view types enforce keys
A managed table stores rows rather than a query, and no view type enforces key constraints, which are informational everywhere in Unity Catalog.
22 / 22
-
8 quick checks · then the test
In the app, finishing the quick checks opens this lesson’s 10-question test, and the ones you miss come back exactly when you’re about to forget them.
The whole course, on your phone
Lessons you can read, audio you can listen to on the way to work, and practice that remembers what you got wrong.