Databricks Interview Prep

Databricks runs a harder coding bar than most companies in this group, and the tagged list shows why: almost every problem near the top is stateful or has a nasty implementation detail. Design Hit Counter, IP to CIDR, Design Tic-Tac-Toe, Time Based Key-Value Store, Snapshot Array. These are not problems you reason your way through on the whiteboard — you have to build the thing, get the operation complexities right, and handle the awkward cases.

Databricks publishes its backend loop as a recruiter screen, a technical screen, internal team matching, and then a full panel of four to six hour-long interviews. One of those is a domain deep dive, which Databricks describes as a conversation about architectural and scaling challenges from your own experience — not a design puzzle but an interrogation of work you actually did. Some loops also include a practical or debugging round. The design round sits squarely in distributed data: ingestion, job orchestration, storage layout, and caching.


Interview Process

Stage Duration Focus
Recruiter Screen 30 min Background, level, team interest
Technical Screen 60 min Coding, harder than the typical screen
Team Matching Internal Handled by Databricks, nothing to prepare
Full Panel: Coding 60 min Stateful problems, fiddly implementations
Full Panel: Practical / Debugging 60 min Work in real code, varies by team
Full Panel: System Design 60 min Distributed data and storage systems
Full Panel: Domain Deep Dive 60 min Architecture and scaling from your own work
Full Panel: Behavioural / HM 45-60 min Decisions, collaboration, motivation

The full panel is a combination of four to six of those rounds rather than all of them, and the mix depends on the team and the level. Team matching happens before the panel, not after, so by the onsite you usually know which team you are being assessed for and the domain deep dive is scoped accordingly. Staff and above add leadership rounds and the timeline stretches.


What Databricks Actually Tests

Derived from 31 reported Databricks-tagged problems. Difficulty mix:

Difficulty Count Share
Easy 2 6%
Medium 22 71%
Hard 7 23%

Hard problems are a real but minority share. Medium fluency wins most rounds; Hard shows up late in the loop.

Where those problems fall by pattern:

Rank Pattern Problems Share of list
1 Design (Coding) 7 23%
2 Arrays & Hashing 5 16%
3 Dynamic Programming 3 10%
4 Trees 3 10%
5 Strings 3 10%
6 Sliding Window & Two Pointers 2 6%
7 Intervals, Greedy & Sorting 2 6%
8 Graphs 2 6%
9 Math & Bit Manipulation 1 3%
10 Backtracking 1 3%

Databricks Signature Problems

These rank high on Databricks’s list but are reported by few other companies — the questions that are distinctively theirs rather than generic interview classics. The last column is how many of the 142 companies on this site report each one.

# Problem Pattern Difficulty Also asked at Link
1 Design Hit Counter Data Stream + Queue Medium 20 of 142 Solve →
2 IP to CIDR Bit Manipulation Medium 4 of 142 LeetCode →
3 Design Tic-Tac-Toe Design Medium 12 of 142 LeetCode →
4 Find All Anagrams in a String Sliding Window Medium 12 of 142 Solve →
5 Step-By-Step Directions From a Binary Tree Node to Another Lowest Common Ancestor + Binary Lifting Medium 6 of 142 LeetCode →
6 Time Based Key-Value Store Design + Binary Search Medium 25 of 142 Solve →
7 House Robber II DP Medium 17 of 142 Solve →
8 RLE Iterator Iterator + Design Medium 2 of 142 LeetCode →
9 Shortest Path in a Grid with Obstacles Elimination BFS Hard 13 of 142 Solve →
10 Closest Leaf in a Binary Tree Binary Tree + BFS Medium 3 of 142 LeetCode →
11 Longest Palindrome by Concatenating Two Letter Words Greedy Medium 6 of 142 LeetCode →
12 Snapshot Array Persistent Data Structure + Design Medium 17 of 142 Solve →
13 Unique Paths III Hamiltonian Path + Backtracking Hard 7 of 142 LeetCode →
14 Count Integers in Intervals Segment Tree + Ordered Set Hard 4 of 142 LeetCode →

If you are short on time, these carry more Databricks-specific signal per hour than the universal top-100 lists.


Reported in the Last Six Months

The recency-filtered slice of Databricks’s list, ranked by how often each was reported. Expect heavy overlap with the all-time classics — that overlap is the point, it means these stay in rotation.

# Problem Pattern Difficulty Link
1 Design Hit Counter Data Stream + Queue Medium Solve →
2 Find All Anagrams in a String Sliding Window Medium Solve →
3 IP to CIDR Bit Manipulation Medium LeetCode →
4 Design Tic-Tac-Toe Design Medium LeetCode →
5 RLE Iterator Iterator + Design Medium LeetCode →
6 Shortest Path in a Grid with Obstacles Elimination BFS Hard Solve →
7 Step-By-Step Directions From a Binary Tree Node to Another Lowest Common Ancestor + Binary Lifting Medium LeetCode →
8 Time Based Key-Value Store Design + Binary Search Medium Solve →

System Design (HLD) Problems Asked at Databricks

# Problem Difficulty Link
1 Message Queue (Distributed Log and Ingest) Advanced Read →
2 Distributed Job Scheduler (Jobs and Workflows) Advanced Read →
3 Distributed Key-Value Store Advanced Read →
4 Distributed Cache Intermediate Read →
5 File Storage and Sync (Dropbox-style) Advanced Read →
6 Metrics and Monitoring System Intermediate Read →
7 LLM Serving Platform (ChatGPT-style) Advanced Read →
8 Rate Limiter (Multi-tenant API Limits) Beginner Read →

LLD / Machine Coding Problems Asked at Databricks

Databricks does not advertise a separate LLD round, but the coding rounds behave like one. Reported prompts include cache design, multithreaded structures, and IP range handling, and the tagged list is dominated by Design-category problems. Build the class, state the complexity of each method, then make it thread-safe when asked.

# Problem Difficulty Link
1 Multilevel Cache Intermediate Read →
2 Task Scheduler Intermediate Read →
3 Pub Sub System Intermediate Read →
4 Tic Tac Toe (Design Tic-Tac-Toe) Beginner Read →
5 Rate Limiter Intermediate Read →

DSA Problems Asked at Databricks

27 problems across 8 pattern groups. Each group is allocated in proportion to its real share of Databricks’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Design (Coding)

Build a data structure to a spec. Graded on API shape and the complexity of each operation, not just correctness. All 7 on the list.

# Problem Pattern Difficulty Link
1 Design Hit Counter Data Stream + Queue Medium Solve →
2 Design Tic-Tac-Toe Design Medium LeetCode →
3 Time Based Key-Value Store Design + Binary Search Medium Solve →
4 RLE Iterator Iterator + Design Medium LeetCode →
5 Number of Recent Calls Data Stream + Queue Easy Solve →
6 Snapshot Array Persistent Data Structure + Design Medium Solve →
7 Finding Pairs With a Certain Sum Design Medium LeetCode →

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 5 on the list.

# Problem Pattern Difficulty Link
8 Shortest Path in a Grid with Obstacles Elimination BFS Hard Solve →
9 Rotting Oranges BFS Medium Solve →
10 Shortest Path in Binary Matrix BFS Medium Solve →
11 Spiral Matrix Simulation + Matrix Medium Solve →
12 Two Sum Hash Table + Array Easy Solve →

Trees

Recursion discipline: what you return up, what you pass down. Follow-ups usually push from recursive to iterative. All 3 on the list.

# Problem Pattern Difficulty Link
13 Step-By-Step Directions From a Binary Tree Node to Another Lowest Common Ancestor + Binary Lifting Medium LeetCode →
14 Closest Leaf in a Binary Tree Binary Tree + BFS Medium LeetCode →
15 Count Integers in Intervals Segment Tree + Ordered Set Hard LeetCode →

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. All 3 on the list.

# Problem Pattern Difficulty Link
16 House Robber DP Medium Solve →
17 House Robber II DP Medium Solve →
18 Longest Mountain in Array Two Pointers + DP Medium LeetCode →

Strings

Parsing, transformation, and in-place edits. Clarify the character set and whitespace rules before you start. All 3 on the list.

# Problem Pattern Difficulty Link
19 Text Justification Simulation + String Hard Solve →
20 Split Message Based on Limit Enumeration + String Hard LeetCode →
21 String to Integer (atoi) String Medium Solve →

Graphs

Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 2 on the list.

# Problem Pattern Difficulty Link
22 Minimum Cost to Reach Destination in Time Dijkstra + Graph Hard LeetCode →
23 Minimum Knight Moves Heuristic Search + A* Search Medium Solve →

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. All 2 on the list.

# Problem Pattern Difficulty Link
24 Find All Anagrams in a String Sliding Window Medium Solve →
25 Permutation in String Sliding Window + Two Pointers Medium Solve →

Intervals, Greedy & Sorting

Sort, then make a local decision you can defend. Expect to justify why greedy is safe here. All 2 on the list.

# Problem Pattern Difficulty Link
26 Longest Palindrome by Concatenating Two Letter Words Greedy Medium LeetCode →
27 Merge Intervals Quicksort Medium Solve →

Databricks’s Favourite Patterns (Ranked)

Rank Pattern Frequency Problems on list Start with
1 Design (Coding) Very High 7 (23%) Design Hit Counter, Design Tic-Tac-Toe, Time Based Key-Value Store
2 Arrays & Hashing High 5 (16%) Shortest Path in a Grid with Obstacles Elimination, Rotting Oranges, Shortest Path in Binary Matrix
3 Trees High 3 (10%) Step-By-Step Directions From a Binary Tree Node to Another, Closest Leaf in a Binary Tree, Count Integers in Intervals
4 Dynamic Programming Medium-High 3 (10%) House Robber, House Robber II, Longest Mountain in Array
5 Strings Medium-High 3 (10%) Text Justification, Split Message Based on Limit, String to Integer (atoi)
6 Graphs Medium-High 2 (6%) Minimum Cost to Reach Destination in Time, Minimum Knight Moves
7 Sliding Window & Two Pointers Medium 2 (6%) Find All Anagrams in a String, Permutation in String
8 Intervals, Greedy & Sorting Medium 2 (6%) Longest Palindrome by Concatenating Two Letter Words, Merge Intervals

How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Design (Coding), Arrays & Hashing, Trees covers the bulk of what Databricks actually asks. The rest is insurance for the one round that goes somewhere unexpected.


The Domain Deep Dive

Databricks own interview guide describes this round as a technical, conversational interview exploring architectural and scaling challenges from your experience, assessing your problem-solving approach, your technical decisions, and your domain expertise. In practice it is the round that most distinguishes a senior candidate from a strong mid-level one, and it cannot be crammed.

How to prepare one properly:

  1. Pick the system you know best, not the most impressive one. You will be pushed several layers past the summary.
  2. Draw it from memory on a blank page: services, data stores, the queues between them, and where the data is partitioned.
  3. Write down the numbers you remember — request rate, data volume, p99, cost. If you do not remember, say so rather than inventing a figure.
  4. Name the scaling wall you hit and what you did. “It worked fine” is not a deep dive. “At around 40 thousand writes a second the primary could not keep up, so we moved the hot path to an append-only log and derived the read model asynchronously” is.
  5. Name the alternatives you rejected and why. This is where the round is actually scored. Interviewers want evidence that the decision was a decision.
  6. Know what you would do differently now. Every senior engineer has an answer to this. Not having one reads as not having reflected.

Prepare two systems in case the first one does not fit the team you are matched with.


Behavioural Round

# Question
1 Walk me through the hardest scaling problem you have personally solved.
2 Tell me about a technical decision you made that you would reverse today.
3 Tell me about a time you had to understand someone else large system quickly.
4 Tell me about a performance problem you diagnosed from first principles.
5 Tell me about a time you disagreed with a senior engineer on an architecture call.
6 Tell me about a time you had to trade correctness guarantees for throughput.
7 Why Databricks, and which part of the platform interests you?

The behavioural round and the domain deep dive overlap, and both reward depth over breadth. Pick one or two systems you can discuss at the level of partition keys, retry semantics, and what the p99 looked like before and after. Breadth across ten projects is worth less here than genuine depth in one.


12-Day Prep Plan

Built from the pattern ranking above, so the heaviest topics get the most time.

Day Focus Problems
1 Design (Coding) (part 1) Design Hit Counter, Design Tic-Tac-Toe, Time Based Key-Value Store
2 Design (Coding) (part 2) RLE Iterator, Number of Recent Calls, Snapshot Array
3 Arrays & Hashing Shortest Path in a Grid with Obstacles Elimination, Rotting Oranges, Shortest Path in Binary Matrix
4 Trees Step-By-Step Directions From a Binary Tree Node to Another, Closest Leaf in a Binary Tree, Count Integers in Intervals
5 Dynamic Programming House Robber, House Robber II, Longest Mountain in Array
6 Strings Text Justification, Split Message Based on Limit, String to Integer (atoi)
7 Graphs Minimum Cost to Reach Destination in Time, Minimum Knight Moves
8 Sliding Window & Two Pointers Find All Anagrams in a String, Permutation in String
9 Intervals, Greedy & Sorting Longest Palindrome by Concatenating Two Letter Words, Merge Intervals
10 Mock round Two problems in 45 minutes, timed, no hints. Simulate the real round.
11 Revision Redo the problems you failed or needed a hint on.
12 Light review + rest Re-read your pattern notes. Sleep early.

Tips for Databricks Interviews

  1. Prepare the domain deep dive deliberately. It is a named round in Databricks own guide and it is about your work, not a hypothetical. Choose one system, draw it from memory, and know the scaling limits you hit and how you moved them.
  2. Expect a harder coding bar than the group average. Over a third of the tagged list is Hard or awkward-Medium. Treat Hard problems as the baseline for this loop rather than a stretch target.
  3. Drill stateful design problems. Design Hit Counter, Time Based Key-Value Store, Snapshot Array, and Number of Recent Calls are all near the top. Each one is about choosing the right internal structure and defending the complexity of every operation.
  4. Learn IP to CIDR properly. It sits second on the list, it is nearly unique to Databricks, and it is a bit-manipulation problem that people fail on sign and boundary handling rather than on the idea.
  5. Be fluent in the Spark execution model for design. Stages, shuffles, partitioning and skew, spill to disk, and why a broadcast join beats a shuffle join when one side is small. You do not need internals trivia, but you do need to reason about data movement.
  6. Separate storage from compute in your design answers. Object storage as the source of truth, a metadata and transaction layer on top, and elastic compute that can be killed and restarted. That is the architecture the company is built on, so the vocabulary should be natural to you.
  7. Say what happens to a failed job. Retries, idempotent writes, partial output cleanup, and exactly-once versus at-least-once. A pipeline design that only covers the happy path reads as junior here.

Other Company Prep


The stage list reflects the process Databricks publishes for engineering roles; the specific mix of panel rounds varies by team and level and is partly community-reported. Confirm your loop with your recruiter.