databricks Data Engineer Associate · Practice questions

Section 7: Governance and Security Practice Questions

Review 10 sample questions with their correct answers and explanations. Sign up free to continue with the full topic quiz.

Sign up free for the full quiz

Question 1

Which statement about row filters and column masks is correct?

  1. They only apply when the table is queried through a dashboard
  2. They are suggestions that BI tools may ignore
  3. They are enforced for every query on the table — Correct
  4. They only apply to external tables

Correct answer

They are enforced for every query on the table

Explanation

Row filters and column masks are enforced by Unity Catalog on supported compute for every query path.

Question 2

A team creates a catalog for each environment: dev, test and prod. What is a benefit of this design in Unity Catalog?

  1. Per-environment isolation with the same schema and table names — Correct
  2. It enables cross-catalog transactions
  3. It allows tables in different catalogs to share the same physical files automatically
  4. It removes the need for service principals

Correct answer

Per-environment isolation with the same schema and table names

Explanation

Environment catalogs isolate data and access; code can parameterize the catalog name while keeping schema and table names consistent.

Question 3

A data engineer wants to see all privileges granted on the schema prod.sales. Which command shows them?

  1. DESCRIBE SCHEMA EXTENDED prod.sales
  2. SHOW GRANTS ON SCHEMA prod.sales — Correct
  3. DESCRIBE HISTORY prod.sales
  4. SHOW TABLES IN prod.sales

Correct answer

SHOW GRANTS ON SCHEMA prod.sales

Explanation

SHOW GRANTS lists privileges on a securable object. DESCRIBE SCHEMA shows schema metadata.

Question 4

A service principal runs the production ingestion job and must append data to prod.bronze.events. Which privilege on the table is needed in addition to USE CATALOG and USE SCHEMA?

  1. MODIFY — Correct
  2. CREATE TABLE
  3. SELECT only
  4. MANAGE

Correct answer

MODIFY

Explanation

MODIFY allows adding, updating and deleting data in a table. SELECT only allows reading.

Question 5

Which statement about the lineage that Unity Catalog captures for a pipeline is correct?

  1. It only captures lineage for external tables
  2. It requires a separate lineage tool to be installed
  3. It only captures lineage for SQL warehouses
  4. It is captured automatically on Unity Catalog compute — Correct

Correct answer

It is captured automatically on Unity Catalog compute

Explanation

Unity Catalog records lineage at runtime across languages and compute types that support Unity Catalog.

Question 6

A data engineer needs to grant a group the ability to create tables in the schema dev.sandbox. Which grant is correct?

  1. GRANT CREATE SCHEMA ON SCHEMA dev.sandbox
  2. GRANT USE CATALOG ON CATALOG dev; GRANT USE SCHEMA, CREATE TABLE ON SCHEMA dev.sandbox — Correct
  3. GRANT MODIFY ON SCHEMA dev.sandbox TO the group
  4. GRANT SELECT ON CATALOG dev

Correct answer

GRANT USE CATALOG ON CATALOG dev; GRANT USE SCHEMA, CREATE TABLE ON SCHEMA dev.sandbox

Explanation

Creating tables requires CREATE TABLE on the schema plus USE SCHEMA and USE CATALOG.

Question 7

A data engineer needs to give a team access to a set of PDF files stored in a Unity Catalog volume. Which privilege allows reading the files?

  1. USE CONNECTION
  2. READ VOLUME — Correct
  3. READ FILES on the external location
  4. SELECT

Correct answer

READ VOLUME

Explanation

Volume access is governed with READ VOLUME and WRITE VOLUME (plus USE CATALOG and USE SCHEMA).

Question 8

A group of analysts needs read-only access to all tables in the schema prod.sales. Which set of grants follows least privilege?

  1. ALL PRIVILEGES on prod
  2. USE CATALOG on prod and CREATE TABLE on prod.sales
  3. SELECT and MODIFY on prod.sales
  4. USE CATALOG, USE SCHEMA and SELECT — Correct

Correct answer

USE CATALOG, USE SCHEMA and SELECT

Explanation

Reading requires USE CATALOG, USE SCHEMA and SELECT. MODIFY and CREATE TABLE grant write capabilities that are not needed.

Question 9

Which statement about creating an external table in Unity Catalog is correct?

  1. External tables cannot be created with SQL
  2. Any cloud path can be used without configuration, because Unity Catalog uses the user's cloud credentials
  3. The path must be within an external location on which the user has the appropriate privileges — Correct
  4. External tables must be created in the DBFS root

Correct answer

The path must be within an external location on which the user has the appropriate privileges

Explanation

External tables point to paths governed by external locations, which pair a storage path with a storage credential. Users need CREATE EXTERNAL TABLE on the external location.

Question 10

Sales managers should see only rows for regions they manage. A mapping table lists each manager's regions. Which feature applies this rule directly on the sales table?

  1. A row filter that checks the user against the mapping table — Correct
  2. A column mask on the region column
  3. A view per manager with SELECT granted to that manager
  4. A Delta Sharing recipient per manager

Correct answer

A row filter that checks the user against the mapping table

Explanation

Row filters attach a boolean SQL function to a table. The function can use current_user() or group membership and a mapping table to decide which rows each user sees.

Ready for the full quiz?

Create a free QuizAnalyst account to practice the complete question set and save your progress.

Sign up free for the full quiz