Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam Databricks-Certified-Data-Analyst-Associate Topic 2 Question 45 Discussion

Actual exam question for Databricks's Databricks-Certified-Data-Analyst-Associate exam
Question #: 45
Topic #: 2
A data analyst has been asked to use the below table sales_table to rank products within region by the sales.
Input table:
region product sales
WEST A 1880.59
EAST A 2045.99
EAST B 4583.23
WEST B 3391.19
The result of the query should look like this:
region product rank
EAST B 1
EAST A 2
WEST B 1
WEST A 2
Which query will accomplish this task?

Suggested Answer: D Vote an answer

Option D is correct. The phrase "rank products within region by the sales" means each region must be ranked separately, so the window must use PARTITION BY region. The ranking must be based on highest sales first, so the window must use ORDER BY sales DESC. Option A ranks across all regions together. Option B ranks within product, not within region. Option C does not specify the sales ordering. Official Databricks extract:
rank() "returns the rank of a value compared to all values in the partition," and its OVER clause must include ORDER BY.

by Clark at Sep 07, 2026, 03:14 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.