databricks Data Analyst Associate · Practice questions

Section 2: Managing Data 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

An analyst writes: SELECT * FROM finance.reporting.invoices. What do the three parts of this name represent in Unity Catalog?

  1. schema.catalog.view
  2. workspace.database.table
  3. metastore.catalog.table
  4. catalog.schema.table — Correct

Correct answer

catalog.schema.table

Explanation

Unity Catalog uses a three-level namespace: catalog.schema.object (table, view, volume, function or model). The metastore sits above catalogs and is not part of the name.

Question 2

A data analyst needs to store a set of PDF reports and CSV extracts next to governed tables so that access to the files is controlled by Unity Catalog. Which object should be used?

  1. A temporary view
  2. A Unity Catalog volume — Correct
  3. The DBFS root
  4. A managed table with a BINARY column

Correct answer

A Unity Catalog volume

Explanation

Volumes are Unity Catalog objects for non-tabular files. Access is governed with privileges such as READ VOLUME and WRITE VOLUME, and files are addressed as /Volumes/catalog/schema/volume/path.

Question 3

An auditor asks for the exact contents of a gold table at the time the Q3 board report was produced, which was version 310. VACUUM retention is the default. Version 310 was written 45 days ago. What is the most likely outcome?

  1. The query will succeed only on a classic SQL warehouse
  2. It may fail because VACUUM may have removed the needed files — Correct
  3. The query will always succeed, because time travel keeps every version forever
  4. The query will return the current data with a warning

Correct answer

It may fail because VACUUM may have removed the needed files

Explanation

By default VACUUM removes unreferenced files older than 7 days, so old versions may not be readable. For audit retention, keep snapshots (for example with CTAS or deep clone) or extend retention settings.

Question 4

A retail company shares a curated Delta table with a subsidiary that runs its own Databricks workspace on a different Unity Catalog metastore. Which sharing model is the most direct?

  1. Exporting the table to CSV in a shared volume
  2. Open sharing with a bearer token emailed to the subsidiary
  3. Lakehouse Federation from the subsidiary's workspace into your SQL warehouse
  4. Databricks-to-Databricks Delta Sharing using the recipient's sharing identifier — Correct

Correct answer

Databricks-to-Databricks Delta Sharing using the recipient's sharing identifier

Explanation

Databricks-to-Databricks sharing uses the recipient metastore's sharing identifier; no tokens need to be managed, and the shared data appears as a catalog for the recipient.

Question 5

What does Predictive Optimization do for Unity Catalog managed tables?

  1. Rewrites analysts' SQL queries to use materialized views automatically
  2. Predicts future values of numeric columns and stores them in a separate table
  3. Scales SQL warehouses up before the morning dashboard refresh
  4. Automatically runs OPTIMIZE, VACUUM and ANALYZE when they are likely to help — Correct

Correct answer

Automatically runs OPTIMIZE, VACUUM and ANALYZE when they are likely to help

Explanation

Predictive Optimization identifies managed tables that would benefit from maintenance and runs OPTIMIZE, VACUUM and ANALYZE automatically, removing the need for manual maintenance jobs.

Question 6

Which command shows the current table size, location, number of files and properties for a Delta table?

  1. SHOW PARTITIONS
  2. SHOW GRANTS
  3. DESCRIBE HISTORY
  4. DESCRIBE DETAIL — Correct

Correct answer

DESCRIBE DETAIL

Explanation

DESCRIBE DETAIL returns current metadata such as format, location, sizeInBytes, numFiles and properties.

Question 7

A table version history shows a DELETE at version 57 that removed 3,000 rows. An analyst needs to see those rows. Which query returns them?

  1. DESCRIBE HISTORY t VERSION 57 ROWS
  2. SELECT * FROM t VERSION AS OF 57 EXCEPT SELECT * FROM t VERSION AS OF 56
  3. SELECT * FROM t WHERE _deleted = true
  4. SELECT * FROM t VERSION AS OF 56 EXCEPT SELECT * FROM t VERSION AS OF 57 — Correct

Correct answer

SELECT * FROM t VERSION AS OF 56 EXCEPT SELECT * FROM t VERSION AS OF 57

Explanation

Rows present in version 56 but not in version 57 are the deleted rows. Reversing the operands returns rows added in 57.

Question 8

An analyst needs a new dashboard to show figures as of the end of the previous quarter for one table, while other datasets show current data. Which clause should be used in the dataset query?

  1. AS OF SYSTEM TIME for the whole dataset
  2. VERSION AS OF or TIMESTAMP AS OF on that table — Correct
  3. RESTORE TABLE before the dashboard refreshes
  4. WHERE _commit_timestamp <= '2026-09-30'

Correct answer

VERSION AS OF or TIMESTAMP AS OF on that table

Explanation

Delta time travel (TIMESTAMP AS OF or VERSION AS OF) reads a table as it was at an earlier point without changing it. RESTORE would change the live table for every user.

Question 9

A large table is queried mostly with filters on customer_id and event_date, and the filter columns used by analysts change over time. The table is a Unity Catalog managed table. Which option requires the least ongoing tuning?

  1. Partition by event_date and create a view per customer
  2. Convert the table to an external CSV table
  3. Enable automatic liquid clustering with CLUSTER BY AUTO — Correct
  4. Partition by customer_id and event_date and run ZORDER weekly

Correct answer

Enable automatic liquid clustering with CLUSTER BY AUTO

Explanation

With CLUSTER BY AUTO, Databricks chooses and adjusts clustering keys based on the observed query workload; it relies on Predictive Optimization for managed tables. Partitioning on a high-cardinality column like customer_id creates many small files.

Question 10

Which statement about Delta Lake is correct?

  1. It is a BI tool for dashboards
  2. It is a catalog that defines permissions
  3. An open table format adding ACID transactions, schema enforcement and time travel to Parquet — Correct
  4. It is a proprietary database engine that stores data inside the SQL warehouse

Correct answer

An open table format adding ACID transactions, schema enforcement and time travel to Parquet

Explanation

Delta Lake stores data in Parquet files with a transaction log, which provides ACID transactions, schema enforcement, time travel and more.

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