↑ ↓ to move, Enter to open, Esc to close

    DBX-DEAData Engineer Associate

    Switch exam

    Microsoft Azure

    aws Amazon Web Services

    Google Cloud

    ServiceNow

    Databricks

    Cisco

    Salesforce

    All exams and search

    Exams / DBX-DEA / D1 Data Governance & Quality

    D1.1

    Data Governance & Quality (part 1)

    • 2 min read
    • 5 sections
    • 29 questions
    • Free preview
    • Exam domain: Data Governance & Quality
    You are reading a free preview. The rest of the DBX-DEA course unlocks with an Exam pass or All access.See plans

    Unity Catalog privileges

    Privileges are checked down the hierarchy catalog → schema → table. To reach an object you need USE CATALOG on the parent catalog and USE SCHEMA on the parent schema; DATABASE is interchangeable with SCHEMA in SQL.

    Goal Privileges
    Browse/read a table USE CATALOG + USE SCHEMA + SELECT
    Create tables in a schema USE CATALOG + USE SCHEMA + CREATE TABLE
    Read a view SELECT on the view (+ USE CATALOG/USE SCHEMA); the view owner's rights cover the base tables on shared compute
    Everything on an object ALL PRIVILEGES (does not include MANAGE, READ METADATA, EXTERNAL USE SCHEMA)

    Syntax: GRANT <privilege> ON <object type> <name> TO <group>;. There is no USE TABLE privilege and VIEW is not a privilege.

    Privileges needed to create a table

    Every securable object has an owner; the table page in Catalog Explorer (formerly Data Explorer) shows the Owner field. Ownership transfer is done by the owner, a MANAGE holder or a metastore admin.

    DESCRIBE DATABASE name (or DESCRIBE SCHEMA) returns the name, comment and location.

    Managed vs external tables

    Managed External
    Storage lifecycle Unity Catalog You
    DROP TABLE Metadata and data files deleted Only metadata removed, files remain

    Managed tables are the default and recommended type.

    Expectations (Delta Live Tables / Lakeflow Spark Declarative Pipelines)

    Clause Effect
    EXPECT (...) Rows kept, violations logged in metrics
    ON VIOLATION DROP ROW Invalid rows dropped, metrics tracked
    ON VIOLATION FAIL UPDATE The update fails; no metrics recorded

    Metrics come from the pipeline event log (flow_progress events). Quarantining invalid rows needs custom logic.

    DLT expectation actions

    Lineage, sharing and the lakehouse

    • Unity Catalog lineage shows upstream/downstream tables, jobs, notebooks and dashboards.
    • Delta Sharing: a share is read-only for recipients. Open sharing works for recipients without Databricks; Databricks-to-Databricks also shares notebooks, volumes and models.
    • A lakehouse gives one source of truth; Delta Lake adds ACID transactions and schema enforcement.

    PySpark access to tables

    spark.table("sales") loads a registered table as a DataFrame; spark.sql("SELECT ...") runs a query and returns a DataFrame. spark.delta.table is not an API.

    Exam traps

    • ON VIOLATION FAIL and ON DROP ROW are not valid; the clauses are FAIL UPDATE and DROP ROW.
    • Dropped rows are not quarantined automatically.
    • Dropping an external table never deletes data files.
    • USE TABLE does not exist; creating tables needs USE CATALOG + USE SCHEMA + CREATE TABLE.
    • Shares are read-only; write access for internal users comes from Unity Catalog grants.

    Docs

    The rest of this chapter is part of the DBX-DEA premium course

    Unlock every chapter, all 280 questions and spaced review with All access or a 90-day exam pass. Every Fundamentals exam stays free, and the first chapter of every exam is open.

    Chapters