🔥 3-day streak
Databricks Certified Data Engineer Associate148 / 150
Question 148 of 150

A data engineer needs to segment customers into four equal-sized groups based on their total annual spend, so the marketing team can target the top-spending quartile. The result table already has one row per customer with a column total_spend. Which Spark SQL window function should be used to assign each customer to one of four buckets of roughly equal size ordered by spend?

Reviewed for accuracy · Report an issueNext question