Free practice questions · Databricks
10 Databricks Certified Data Analyst Associate practice questions, with answers
Exam-style questions from the CertLumen course, spread over the exam's sections by their weights. Each has its answer and why. They're written for practice: never questions from the real exam.
Question 1 · Understanding of Databricks Data Intelligence Platform
Finance finds that *net revenue* and *gross margin* are calculated differently in three AI/BI dashboards and a Genie space. They want each measure defined once in Unity Catalog, together with its dimensions, so that every tool aggregates it the same way at whatever level of detail a chart groups by. Which object fits best?
- AA materialized view per dashboard that stores the measures at a fixed grain
- BA temporary view that each analyst creates at the start of a session
- CA dynamic view that changes the formulas for each user who queries it
- DA metric view that defines the measures and dimensions in YAML
Show the answer
D. A metric view stores no data. It is a YAML definition of measures and dimensions registered in Unity Catalog, so dashboards, Genie and SQL all reuse the same business logic and aggregate it at the grouping each query asks for. A materialized view precomputes one result at one grain, and temporary and dynamic views solve different problems.
Question 2 · Managing Data
A data steward wants to mark main.sales.orders_gold as certified. They are not the owner of the table. Which set of permissions lets them apply the certification?
- ASELECT on the table, plus USE SCHEMA on main.sales and USE CATALOG on main
- BMODIFY on the table, plus CREATE TABLE on the main.sales schema
- CWorkspace admin rights, which by default include assigning every governed tag
- DASSIGN on the certification tag, plus APPLY TAG, USE SCHEMA and USE CATALOG
Show the answer
D. Certification is a value of the system governed tag system.certification_status. Applying it needs ASSIGN on that governed tag. Like any tag, it also needs ownership of the object, or APPLY TAG on the object plus USE SCHEMA on the parent schema and USE CATALOG on the parent catalog.
Question 3 · Importing Data
A supplier that runs Databricks on a different cloud wants to give your team live, read-only access to its inventory tables. There should be no file exports and no copies to maintain. What should be used?
- ADatabricks-to-Databricks Delta Sharing, mounted as a catalog in your metastore
- BA nightly COPY INTO job that loads CSV files the supplier exports to a bucket
- CA Lakeflow Connect managed connector that replicates the supplier's tables
- DA public Marketplace listing that the supplier publishes for anyone to request
Show the answer
A. Delta Sharing (documented today as OpenSharing) shares live data across clouds and regions without copying it. The supplier adds the tables to a share and grants it to your metastore's sharing identifier. You then mount the share with CREATE CATALOG ... USING SHARE or Mount to catalog, and the provider's updates appear in near real time.
Question 4 · Executing queries using Databricks SQL and Databricks SQL Warehouses
A team keeps Parquet files in s3://acme-finance/ledger/, and an external tool must keep writing to that path. An analyst wants to query the files as a Unity Catalog table without moving them. What is required?
- AA managed table created by CTAS from the path, because Unity Catalog can govern only data in managed storage
- BAn external table with
LOCATIONset to that path, inside a Unity Catalog external location - CA foreign catalog created with
CREATE FOREIGN CATALOGon a connection to the S3 bucket - DA volume over the path, followed by
CREATE TABLE ... LOCATION '/Volumes/...'pointing at the volume
Show the answer
B. An external table registers files at a path inside a Unity Catalog external location, which is backed by a storage credential. Creating it requires CREATE EXTERNAL TABLE on the external location, plus the usual USE CATALOG, USE SCHEMA and CREATE TABLE. Unity Catalog governs queries through the table, the files stay where the tool writes them, and dropping the table leaves the files in place.
Question 5 · Executing queries using Databricks SQL and Databricks SQL Warehouses
Regional managers query one shared orders view. Each manager may see only the rows for the regions assigned to them in a mapping table, and only members of the finance group may see the margin column. Users must not need access to the base table. What should the analyst create?
- AOne materialized view per region, refreshed hourly, with
SELECTon each granted to the matching managers - BA dynamic view using
current_user()with the mapping table andis_account_group_member('finance') - CA standard view granted to the
financegroup, plus a second view withoutmarginfor everyone else - DA temporary view that each manager creates in their own session with a
WHEREclause for their regions
Show the answer
B. Dynamic views evaluate identity functions for the user running the query. A WHERE clause that checks the mapping table for current_user() restricts the rows, and CASE WHEN is_account_group_member('finance') THEN margin END masks the column. Granting SELECT on the view alone lets users query it without access to the base table.
Question 6 · Analyzing Queries
An analyst is tuning a slow query on a serverless SQL warehouse and needs every test run to measure real execution time, but repeated runs keep returning cached results. Restarting the warehouse between runs did not help. What should she do?
- ARun
CACHE SELECT * FROMthe table before each test run so that the cached data is refreshed - BSet
spark.databricks.io.cache.enabledto false so that the warehouse stops caching - CRun
SET use_cached_result = falsein the session she uses for testing - DMove the tests to a classic SQL warehouse because it does not have a result cache
Show the answer
C. SET use_cached_result = false disables query result caching for the session; Databricks recommends it only for testing and benchmarking. Restarting did not help because the remote result cache of serverless warehouses is persisted as workspace system data and survives stops and restarts.
Question 7 · Working with Dashboards and Visualizations in Databricks
In a notebook, an analyst runs display(df) on a DataFrame of 2.5 million order lines, and the results table notes that only the first rows are shown. She then adds a bar chart of revenue by region, with the Y axis aggregated as Sum. What does the chart show?
- ATotals for only the rows shown in the results table, so revenue is understated
- BTotals for a random sample of the rows, so each region's revenue is an estimate
- CAn error, because a chart needs the whole result to fit in the displayed table
- DTotals over the entire result, because the chart's aggregation uses every row
Show the answer
D. Built-in aggregation in notebook and SQL editor visualizations (Sum, Average, Count, Median and so on, for line, bar, area, pie, heatmap and histogram charts) runs over the entire dataset, not just the rows the results table displays. A truncated preview therefore doesn't distort the chart. Combination charts are the exception: they don't support built-in aggregation.
Question 8 · Working with Dashboards and Visualizations in Databricks
An analyst wants one SQL editor query to read from whichever of three monthly snapshot tables a user selects, using a :snapshot_table parameter that holds a full three-level table name. SELECT * FROM :snapshot_table fails. How should the FROM clause be written?
- A
FROM ':snapshot_table' - B
FROM {{ snapshot_table }} - C
FROM IDENTIFIER(:snapshot_table) - D
FROM read_files(:snapshot_table)
Show the answer
C. Named parameter markers are bound as values, not pasted into the SQL text, so a marker can't stand where a table name is expected. IDENTIFIER(:snapshot_table) interprets the parameter's string value as an object name. The same pattern works for column names, in notebooks and in dashboard datasets.
Question 9 · Developing, Sharing, and Maintaining AI/BI Genie spaces
After rewriting several instructions in a Genie space, an author wants objective evidence that accuracy on 60 known business questions improved and that nothing regressed. What should she do?
- AAsk business users to rate answers for a week and compare the thumbs-up counts per question
- BAsk the 60 questions in one long chat thread and compare the answers manually
- CSave them as benchmarks with ground-truth SQL and compare runs before and after
- DAdd the 60 questions as example SQL so Genie answers them from trusted assets
Show the answer
C. Benchmarks are test questions with an optional ground-truth SQL Answer. Each runs as a new conversation that still uses the space's instructions and examples, is rated Good, Bad or Manual review needed, and each run gets an accuracy score in the Evaluations tab, so runs before and after a change can be compared.
Question 10 · Securing Data
A company wants the catalog prod_finance to be usable only from its production workspace, even by engineers who hold SELECT grants on it and also work in a development workspace attached to the same metastore. What should an administrator configure?
- ARevoke USE CATALOG from the development workspace's local groups and keep grants elsewhere
- BBind the catalog to the production workspace on the catalog's Workspaces tab
- CMove the catalog into a second metastore created in the same cloud region
- DAdd a row filter to every table that compares the current workspace ID
Show the answer
B. Workspace-catalog binding restricts a catalog to selected workspaces (optionally read-only). It overrides privileges, so users with explicit grants cannot reach the catalog from an unbound workspace. Configure it on the catalog's Workspaces tab by clearing All workspaces have access.
How ready are you?
Take ten more, weighted like the real exam, and see your score by section and a rough chance of passing. The course has 258 questions and 4 timed practice exams.
About the course · Free study guide · A question a day by email