databricks Data Engineer Professional · Practice questions

Section 6: Ensuring Data Security and Compliance 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

A data engineer needs a credential to access an external cloud storage path from Unity Catalog. Which objects are required?

  1. A SQL warehouse
  2. A storage credential and an external location — Correct
  3. A Delta Sharing recipient
  4. A secret scope only

Correct answer

A storage credential and an external location

Explanation

External locations pair a storage path with a storage credential and are granted to principals.

Question 2

A row filter function references a mapping table to decide which regions a user may see. Which permission consideration applies?

  1. Row filters only apply to admins
  2. It runs with the owner's rights for referenced tables — Correct
  3. Row filters cannot reference other tables
  4. Every user needs SELECT on the mapping table

Correct answer

It runs with the owner's rights for referenced tables

Explanation

Row filter and mask functions are evaluated with definer's rights for objects they reference.

Question 3

Which approach rotates a credential used by a Unity Catalog connection without changing jobs?

  1. Store the password in a job parameter and edit it per job
  2. Delete all foreign catalogs and recreate them with new names
  3. Update the connection's credentials in Unity Catalog — Correct
  4. Edit every job's code to include the new password

Correct answer

Update the connection's credentials in Unity Catalog

Explanation

Centralized connections let credentials be updated in one place.

Question 4

A right-to-be-forgotten request requires deleting a customer from all tables. Which practice makes this tractable?

  1. Restore all tables to a version before the customer existed
  2. Wait for VACUUM to remove the customer automatically
  3. Track PII locations with tags and lineage, then delete and vacuum — Correct
  4. Delete the customer only from gold, since lower layers are internal

Correct answer

Track PII locations with tags and lineage, then delete and vacuum

Explanation

Knowing where PII lives and purging old files ensures complete removal.

Question 5

Which design best isolates PII so that most engineers never touch it?

  1. Encode PII in base64 so that it is no longer considered sensitive
  2. Keep PII in notebooks rather than tables
  3. Store PII in every table so that joins are never needed
  4. Separate PII into restricted tables or schemas, joined by tokenized keys — Correct

Correct answer

Separate PII into restricted tables or schemas, joined by tokenized keys

Explanation

Segregating PII and using pseudonymous keys limits exposure.

Question 6

A table contains a column ssn that only the compliance group may see; others must see only the last 4 digits. The rule must apply to all current and future tables with a pii_ssn tag. Which approach fits?

  1. An ABAC policy that masks columns tagged pii_ssn — Correct
  2. Encrypting the column with a static key in notebooks
  3. A column mask on each existing table only
  4. A dynamic view per table

Correct answer

An ABAC policy that masks columns tagged pii_ssn

Explanation

ABAC policies apply masks based on governed tags across catalogs or schemas, including new tables.

Question 7

A team wants data engineers to read production tables but write only to dev. Which setup fits?

  1. Grant ALL PRIVILEGES on prod and ask engineers not to write
  2. Make engineers owners of the prod catalog
  3. Give engineers the production service principal's credentials
  4. Grant SELECT on prod and write privileges only on dev — Correct

Correct answer

Grant SELECT on prod and write privileges only on dev

Explanation

Separate read and write grants per environment enforce least privilege.

Question 8

Which approach keeps secrets out of bundle configuration and code?

  1. Hard-code passwords in notebooks
  2. Email credentials to team members
  3. Use a secret scope — Correct
  4. Put tokens in databricks.yml variables committed to Git

Correct answer

Use a secret scope

Explanation

Secret scopes keep credentials out of code; values are redacted in outputs.

Question 9

Which privilege allows a group to create external tables in a specific external location?

  1. USE CONNECTION
  2. CREATE EXTERNAL TABLE — Correct
  3. MODIFY on the metastore
  4. SELECT on the external location

Correct answer

CREATE EXTERNAL TABLE

Explanation

External location privileges include READ FILES, WRITE FILES and CREATE EXTERNAL TABLE.

Question 10

Which statement about workspace-catalog binding is correct?

  1. Binding copies the catalog's data into the workspace
  2. Every catalog is always visible to every workspace in every account
  3. Binding only applies to SQL warehouses
  4. Catalogs can be bound so only specific workspaces can access them — Correct

Correct answer

Catalogs can be bound so only specific workspaces can access them

Explanation

Workspace bindings restrict which workspaces can use a catalog, such as prod data only in prod workspaces.

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