CERTIFIED-DATA-ANALYST-ASSOCIATE Databricks Certified Data Analyst Associate
Study 64 CERTIFIED-DATA-ANALYST-ASSOCIATE Databricks Certified Data Analyst Associate practice questions with explanations. 20 of them are free to try, no sign-up needed.
Buy to unlock all questions, full reading mode and PDFs.
About this question bank
Questions
64 in total
Free to try
20 questions (no sign-up)
Exam domains
5 domains
Price
JPY 1,500 (≈ US$10; shown in your local currency at checkout) · one-time payment · 3 months
PDF
Japanese · Japanese–English · Chinese–English · Korean–English · English (for buyers)
Data version
2026-11
About this exam
Databricks Certified Data Analyst Associate, offered by Databricks, validates foundational skills for analytics work with Databricks SQL. It covers Databricks SQL and SQL warehouse basics, writing SQL queries, managing tables and data, and building visualizations and dashboards: what a data analyst needs to work with data on the lakehouse.
Try a sample question
This is an original sample question written by itmoshi based on the exam objectives.
From sales.orders in the exhibit, you need exactly one row per customer: their most recent order. If a customer has several orders with the same order_ts, keep only the one with the larger order_id. Which Databricks SQL query runs without error and returns the required result?
ASELECT customer_id, order_id, MAX(order_ts) FROM sales.orders GROUP BY customer_id
BSELECT * FROM (SELECT *, ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY order_ts DESC, order_id DESC) AS rn FROM sales.orders) t WHERE rn = 1
CSELECT * FROM sales.orders WHERE ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY order_ts DESC, order_id DESC) = 1
DSELECT * FROM (SELECT *, RANK() OVER (PARTITION BY customer_id ORDER BY order_ts DESC) AS rk FROM sales.orders) t WHERE rk = 1
Show answer and explanation
Answer:B Compute the window function as a column in a subquery and filter in the outer query; use ROW_NUMBER with a tie-breaking sort column to guarantee one row even when values tie.
Why it is correct
ROW_NUMBER always assigns distinct numbers (1, 2, 3…) even for equal values, so rn = 1 leaves exactly one row per customer. Adding order_id DESC to the ORDER BY picks 5003 over 5002 when order_ts ties, so the result is deterministic. Window functions cannot be used directly in WHERE, so rn is computed in a subquery and filtered by the outer WHERE.
The other options
✗ A order_id is neither in the GROUP BY nor inside an aggregate, so the query fails. If you only need each customer's latest timestamp, a GROUP BY without order_id is enough.
✗ C Window functions are not allowed in a WHERE clause, so this fails. Number the rows in a subquery as in B and filter in the outer query (Databricks SQL also offers the QUALIFY extension).
✗ D RANK gives tied values the same rank, so C01 returns both 5002 and 5003, breaking the one-row requirement. Use it when you want to show every row tied for first.
Key takeaway
Exactly one row per group → ROW_NUMBER (include a tie-breaker in ORDER BY). Keep all ties → RANK/DENSE_RANK. Filter on a window function → subquery plus an outer WHERE (QUALIFY also works in Databricks SQL).