Databricks Certified Data Analyst Associate Exam-style mock test
Databricks Certified Data Analyst Associate Practice Exams|Practice test
Full explanations
Exam format
Pass line 70%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Databricks SQL and the Lakehouse for Analysts
An analyst at a B2B SaaS company needs a persistent dashboard that runs scheduled aggregate queries over subscription revenue tables in Unity Catalog. Which Databricks SQL object should they run queries against for interactive analysis?
・An all-purpose compute cluster configured only for Python notebook jobs and streaming
Incorrect. All-purpose clusters target notebook and streaming workloads, not SQL warehouse interactive analytics.
✓A SQL warehouse, which provides the compute that executes SQL queries and dashboards
Correct. A SQL warehouse supplies the compute that runs SQL queries, visualizations, and dashboards in Databricks SQL.
・A Delta Live Tables pipeline that continuously ingests raw clickstream events into bronze
Incorrect. DLT pipelines handle declarative ingestion and transformation, not ad hoc analyst query serving.
・A job cluster that spins up solely for a scheduled batch ETL task and then terminates
Incorrect. A job cluster is ephemeral compute for batch tasks and is not used for interactive dashboards.
Explanation
Databricks SQL dashboards and interactive queries execute on SQL warehouses, the compute layer purpose-built for analyst SQL workloads.
Example2 · SQL Queries, Joins, and Aggregations
A B2B SaaS company stores its paid subscriptions in a table named subscriptions with columns account_id, plan_tier, and mrr. An analyst must return only the accounts on the Enterprise tier whose monthly recurring revenue exceeds 5000. Which WHERE clause correctly expresses both conditions?
・WHERE plan_tier = 'Enterprise' OR mrr > 5000
Incorrect. OR returns any Enterprise account plus every account above 5000 regardless of tier, which is broader than required.
✓WHERE plan_tier = 'Enterprise' AND mrr > 5000
Correct. AND requires both predicates to be true, so only Enterprise accounts above 5000 MRR are returned.
・WHERE plan_tier IN ('Enterprise') HAVING mrr > 5000 AND mrr IS NOT NULL
Incorrect. HAVING filters grouped results and cannot be used here without aggregation, making this clause invalid for row-level filtering.
・WHERE plan_tier = 'Enterprise', mrr > 5000
Incorrect. A comma cannot separate two predicates in a WHERE clause; Spark SQL requires a boolean operator such as AND.
Explanation
Combining two row-level conditions that must both hold requires the AND operator inside WHERE.
Example3 · Data Visualization and Dashboards
A B2B SaaS analyst must show how monthly recurring revenue (MRR) has trended across the last 18 months for a leadership review in a Databricks SQL dashboard. Which visualization type best communicates this trend over time?
・A pie chart that splits the total MRR into one slice per calendar month
Incorrect. A pie chart shows composition of a whole, not change across an ordered time series, so monthly trend direction is lost.
✓A line chart plotting MRR on the Y axis against each month on the X axis
Correct. A line chart maps an ordered time dimension to the X axis and the measure to the Y axis, making month-over-month trend direction clear.
・A single counter widget that displays only the most recent month's MRR figure
Incorrect. A counter shows only one point in time and cannot reveal how MRR rose or fell across the 18-month window.
・A pivot table listing the raw MRR amount recorded for every individual month
Incorrect. A raw pivot table lists values but forces readers to infer the trend manually instead of seeing it visually.
Explanation
Line charts are the standard choice for showing how a single measure changes over an ordered time dimension.
Example4 · Data Management, Delta Lake, and Governance
An analyst at a healthcare services firm needs to compare today's patient_claims Delta table against how it looked before last night's batch load, which overwrote several rows. Which approach lets them read the earlier state without restoring anything?
・Clone the table into a brand new schema and manually delete the rows added overnight
Incorrect. Cloning and manually deleting rows is error-prone and does not reliably reproduce the prior version.
✓Use a time travel query with VERSION AS OF to read the earlier table version
Correct. Delta time travel with VERSION AS OF reads a historical snapshot while leaving the current table untouched.
・Restore the Delta table to the prior version so the current state is replaced
Incorrect. RESTORE overwrites the current state, which the analyst wants to keep for comparison.
・Rerun the overnight pipeline in reverse to regenerate yesterday's records
Incorrect. Reversing a pipeline is not a supported operation and would not recover the prior snapshot.
Explanation
Time travel with VERSION AS OF (or TIMESTAMP AS OF) reads an earlier committed snapshot non-destructively, enabling comparison against the current table.
Example5 · Analytics Applications, Alerts, and Scheduling
A data analyst at a healthcare services firm must notify the operations team whenever the average patient wait time in the clinic dashboard query rises above 45 minutes. Which Databricks SQL feature should the analyst configure to automate this notification?
・A dashboard parameter that filters the wait-time visualization by clinic location and date
Incorrect. Dashboard parameters change how data is filtered but do not send any notification when a threshold is crossed.
✓An alert evaluating the query result against the 45-minute threshold condition
Correct. A Databricks SQL alert evaluates a query's result against a condition and triggers a notification when the threshold is met.
・A scheduled query refresh that reruns the wait-time query every fifteen minutes continuously
Incorrect. A scheduled refresh keeps results current but does not evaluate thresholds or notify anyone about them.
・A query snippet saved to the catalog so other analysts reuse the wait-time calculation logic
Incorrect. Saving a query snippet promotes reuse but has nothing to do with automated threshold notifications.
Explanation
Alerts in Databricks SQL watch a query result and fire a notification when the configured condition is satisfied, which is exactly what threshold monitoring requires.
Example6 · Databricks SQL and the Lakehouse for Analysts
An analyst at a regional healthcare services firm needs to run ad hoc SQL against the clinical billing tables but keeps getting a message that no compute is attached. Which Databricks SQL resource must be running so the analyst can execute queries in the SQL editor?
・A Delta Live Tables pipeline configured for continuous ingestion
Incorrect. A Delta Live Tables pipeline builds and maintains tables but does not provide the interactive compute that the SQL editor needs.
✓A SQL warehouse providing compute for the editor
Correct. A SQL warehouse is the compute resource that the SQL editor connects to for running interactive queries.
・A dedicated Unity Catalog metastore assigned to the workspace
Incorrect. A metastore organizes catalogs and governance metadata, but it does not execute the analyst's SQL statements.
・A scheduled workflow job that triggers the saved query output
Incorrect. A scheduled job can run a saved query on a cadence, yet interactive editing still requires an attached SQL warehouse.
Explanation
The SQL editor needs a running SQL warehouse to supply compute for interactive query execution.
Example7 · Databricks SQL and the Lakehouse for Analysts
An analyst at the retail brand Northwind Apparel runs ad-hoc queries in Databricks SQL against sales tables and wants fast startup and automatic scaling as more teammates connect during a weekend promotion. Which compute resource should they attach their queries to?
・A general-purpose all-purpose compute cluster shared with the data engineering notebooks team
Incorrect. All-purpose clusters are tuned for notebook development, not optimized SQL serving, and sharing with engineering risks contention.
✓A serverless SQL warehouse that scales automatically and starts within seconds
Correct. A serverless SQL warehouse offers near-instant startup and automatic scaling, ideal for ad-hoc analyst queries during traffic spikes.
・A single-node job cluster that is created on demand for each scheduled pipeline run
Incorrect. Job clusters spin up for scheduled pipelines and terminate after the job, so they do not serve interactive analyst queries.
・A local DBFS mount configured to cache query results without any running compute
Incorrect. A DBFS mount is storage, not compute, so it cannot execute SQL on its own.
Explanation
Serverless SQL warehouses start in seconds and auto-scale, making them the correct compute for interactive, bursty analyst workloads.
Example8 · Databricks SQL and the Lakehouse for Analysts
Northwind Apparel stores its orders table in the schema 'sales' inside the catalog 'retail_prod'. An analyst wants to select all rows from this governed table in the SQL editor. Which fully qualified reference is correct?
✓SELECT * FROM retail_prod.sales.orders
Correct. Unity Catalog uses the three-level namespace catalog.schema.table, so retail_prod.sales.orders is right.
・SELECT * FROM orders IN retail_prod USING sales
Incorrect. There is no IN...USING syntax for table references in Databricks SQL.
・SELECT * FROM sales.retail_prod.orders
Incorrect. The order is reversed; the catalog must precede the schema, not follow it.
・SELECT * FROM retail_prod/sales/orders
Incorrect. Slashes are path separators for files, not for referencing governed tables.
Explanation
Unity Catalog three-level naming is catalog.schema.table, so the reference is retail_prod.sales.orders.
Example9 · Databricks SQL and the Lakehouse for Analysts
During a nightly load of Northwind Apparel returns data, a concurrent job fails partway through writing to a Delta table. An analyst notices the table still returns consistent, complete results with no partial rows. Which Delta Lake capability best explains this behavior?
✓ACID transactions that commit writes atomically so readers never see partial data
Correct. Delta Lake provides ACID transactions, so a failed write does not commit and readers see only consistent data.
・Automatic replication of the table across three regions before any write is allowed
Incorrect. Delta does not require multi-region replication to guarantee consistency for a single write.
・Caching of the full table in memory so failed writes never reach storage at all
Incorrect. In-memory caching does not govern durability of writes to the Delta transaction log.
・Row-level encryption applied during ingestion to protect returns records
Incorrect. Encryption protects confidentiality, not the atomicity that keeps partial rows from appearing.
Explanation
Delta Lake's ACID transaction guarantees mean uncommitted writes never appear to readers, explaining the consistent results.
Example10 · Databricks SQL and the Lakehouse for Analysts
A risk analyst at a retail bank opens the Databricks SQL editor to explore a new fraud_alerts table before building reporting. They want the fastest way to confirm the column names and a few sample rows without affecting any downstream dashboards. Which action should the analyst take?
・Export the fraud_alerts table to a notebook and load it into a pandas DataFrame to inspect it locally
Incorrect. Moving data into a local pandas DataFrame is unnecessary overhead and defeats the purpose of exploring directly in SQL.
✓Run a SELECT statement against fraud_alerts with a LIMIT clause to preview a handful of rows
Correct. A simple SELECT with LIMIT returns column names and sample rows instantly without touching dashboards.
・Create a materialized view on fraud_alerts so that every column is cached for repeated exploration later
Incorrect. A materialized view is for recurring query acceleration, not a quick one-time preview of columns.
・Ask a workspace admin to grant OWNER privileges so the table definition becomes fully readable
Incorrect. OWNER privileges are not required to read a table, and admin escalation is unrelated to previewing rows.
Explanation
A SELECT with LIMIT is the standard, lightweight way to inspect schema and sample data in the SQL editor.
Example11 · Databricks SQL and the Lakehouse for Analysts
An analytics team at an investment firm runs many short, concurrent dashboard queries that spike during market open and go idle overnight. They want low-latency startup and automatic scaling to control cost. Which Databricks SQL compute choice best fits this bursty, concurrent workload?
・A classic SQL warehouse that stays running continuously so no query ever waits for cluster startup time
Incorrect. Keeping a classic warehouse always on wastes money during the long idle overnight window.
✓A serverless SQL warehouse, which starts quickly and scales with demand
Correct. Serverless SQL warehouses start fast and auto-scale, matching bursty concurrent dashboard demand cost-effectively.
・An all-purpose cluster shared with the data engineering team's long-running ingestion and transformation jobs
Incorrect. Sharing an all-purpose cluster with heavy engineering jobs causes contention and is not tuned for BI concurrency.
・A single-node job cluster that is manually started each morning before the markets open for trading
Incorrect. A manually started single-node job cluster cannot scale for concurrency and risks being forgotten at open.
Explanation
Serverless SQL warehouses provide rapid startup and elastic scaling ideal for intermittent, concurrent BI workloads.
Example12 · Databricks SQL and the Lakehouse for Analysts
An analyst at a manufacturing distributor opens Databricks SQL to pull daily order totals for the bearings product line. They write a SELECT statement but need to point it at the correct compute. Which action lets the query run against the warehouse?
・Attach the notebook to a job cluster before pressing run on the statement
Incorrect. The SQL editor runs on SQL warehouses, not notebook job clusters attached before running.
✓Choose a running SQL warehouse from the selector at the top of the editor
Correct. The query editor requires selecting a running SQL warehouse from the compute selector to execute the statement.
・Set the default catalog for the whole workspace in admin console settings first
Incorrect. A workspace default catalog does not supply the compute needed to run the query.
・Export the SELECT to a dashboard tile and schedule its refresh
Incorrect. Exporting to a dashboard tile does not execute the ad hoc statement in the editor.
Explanation
Statements in the Databricks SQL editor execute on a selected SQL warehouse, chosen from the compute selector at the top of the editor.
Example13 · Databricks SQL and the Lakehouse for Analysts
The distributor stores shipment records in Delta tables on the Lakehouse. A nightly batch load updated some rows, and an analyst must report figures exactly as they appeared yesterday morning before that load. Which Delta capability makes this possible?
・Re-import the raw CSV extracts and rebuild the shipment table completely from scratch
Incorrect. Rebuilding from raw CSV extracts is unnecessary and may not match yesterday's exact state.
✓Query a prior table version using Delta time travel by snapshot timestamp
Correct. Delta time travel lets you query an earlier table version by timestamp, returning data as it was before the load.
・Enable a materialized view that caches the current shipment aggregates
Incorrect. A materialized view caches current aggregates and does not expose historical versions.
・Switch the shipment table storage format over to Parquet files only
Incorrect. Switching to plain Parquet removes the versioning that time travel depends on.
Explanation
Delta Lake time travel allows querying historical versions of a table by timestamp or version number, reproducing an earlier state.
Example14 · Databricks SQL and the Lakehouse for Analysts
A telecom analyst opens the Databricks SQL editor to explore a table of subscriber call records before building a dashboard. The analyst wants to execute only a single SELECT statement from a script that also contains several other statements. What should the analyst do to run just that one statement?
・Comment every other statement in the editor and press Run
Incorrect. Commenting out all other statements works but is tedious and error-prone compared with selecting the one statement.
✓Highlight the target statement, then run the current selection
Correct. Highlighting a statement runs only the selected text, which is the standard SQL editor behavior.
・Open a brand new query tab and retype only that statement
Incorrect. Retyping the statement in a new tab is unnecessary when the editor can run a highlighted selection.
・Save the script as a scheduled job limited to one statement
Incorrect. Scheduling a job executes later and is not how you run a single statement interactively.
Explanation
The Databricks SQL editor runs only the highlighted text when a selection exists, so selecting one statement executes just that statement.
Example15 · Databricks SQL and the Lakehouse for Analysts
An analyst at a telecom operator writes a query against the network outage table but the editor reports that no compute is selected. To execute the query, which Databricks SQL compute resource must the analyst choose from the dropdown?
✓A SQL warehouse that provides the compute for running the query
Correct. A SQL warehouse supplies the compute that executes queries in Databricks SQL.
・A Delta Live Tables pipeline
Incorrect. A Delta Live Tables pipeline builds tables but does not serve interactive SQL editor queries.
・A standalone Python notebook cluster running in another workspace
Incorrect. A notebook cluster in another workspace is not the compute the SQL editor attaches to here.
・A Unity Catalog metastore
Incorrect. A metastore governs metadata and permissions but does not run queries itself.
Explanation
Queries in Databricks SQL run on a SQL warehouse, which is the compute resource selected before execution.
▶ Try 10 free questions (graded)