Katkat

Company

Databricks interview questions

122 practice questions in the style of Databricks's interviews, covering Software Engineering Fundamentals, Behavioral & Leadership, Coding & Algorithms, System Design, ML System Design, Statistics & Math, Machine Learning, Data Manipulation (SQL/Python).

Questions122

2 easy84 medium36 hard

Your progress0/122

Databricks interview questions by the numbers

Last updated

Katkat has 122 Databricks interview questions. The largest topics are Coding & Algorithms (42%), System Design (28%) and Software Engineering Fundamentals (11%). By difficulty: 2% easy, 69% medium and 30% hard. The most common round is Onsite (57%). Frequent concepts include System Design, Distributed Systems, Concurrency and Data Structures.

Difficulty

  • Easy2% · 2
  • Medium69% · 84
  • Hard30% · 36

Interview rounds

  • Onsite57% · 69
  • Technical Screen36% · 44
  • HR Screen7% · 8
  • Online Assessment1% · 1

Roles

  • Software Engineer83% · 101
  • Machine Learning Engineer7% · 9
  • Data Scientist5% · 6
  • Backend Engineer2% · 3
  • Frontend Engineer2% · 2

Frequent concepts

  • System Design18% · 22
  • Distributed Systems11% · 13
  • Concurrency9% · 11
  • Data Structures9% · 11
  • Algorithms6% · 7
  • Scalability6% · 7

Showing 91–120 of 122 results

  • Implement resilient autocomplete fetching with a quiet period, bounded retries, newest-query precedence, and reuse of recent results. Cover empty input, out-of-order responses, cancellation during waits and requests, error classification, freshness and capacity policies, unmount safety, accessibility, shared requests, and responsive ranking.

    DatabricksFrontend EngineerSoftware Engineering FundamentalsOnsite
  • Write simple linear regression trained with gradient descent from scratch, choosing the loss, learning rate and stopping rule yourself. Tests deriving the gradients correctly, writing a runnable training loop, understanding feature scaling and convergence, and verifying results against a closed-form fit.

    DatabricksMachine Learning EngineerMachine LearningOnsite
  • This question evaluates data-structure design and iterator semantics—specifically snapshot iteration over a mutable, set-like collection without order guarantees—and tests skills in implementing mutation-isolated iteration and analyzing time and space complexity; it belongs to the Coding & Algorithms domain and emphasizes practical implementation.

    DatabricksSoftware EngineerCoding & AlgorithmsTechnical Screen
  • Design and implement a thread-safe, buffered logger that aggregates concurrent writes across multiple threads and flushes them to disk efficiently with documented ordering guarantees.

    DatabricksSoftware EngineerSoftware Engineering FundamentalsOnsite
  • This question evaluates understanding of set data structures, iterator and snapshot semantics, and the ability to reason about time and space complexity when providing stable views over mutable collections.

    DatabricksSoftware EngineerCoding & AlgorithmsTechnical Screen
  • This problem tests your ability to design a state-tracking system for an n x n Tic-Tac-Toe board that allows for constant-time move validation and win detection.

    DatabricksSoftware EngineerCoding & AlgorithmsOnsite
  • This question evaluates a candidate's understanding of designing efficient time-windowed data structures and algorithmic analysis, including space-time trade-offs and amortized complexity.

    DatabricksSoftware EngineerCoding & AlgorithmsOnsite
  • This question evaluates understanding of time-based data structures and algorithms for sliding-window counters, including fixed-size array bucketing, handling timestamp collisions within buckets, refactoring for reuse, and time/space complexity analysis.

    DatabricksSoftware EngineerCoding & AlgorithmsTechnical Screen
  • This question evaluates understanding of persistent/versioned data structures, iterator semantics, concurrency control, and complexity-aware design for mutable sets, and is categorized under Coding & Algorithms.

    DatabricksSoftware EngineerCoding & AlgorithmsOnsite
  • This problem tests your ability to design a robust state machine for a board game, focusing on efficient win-condition checking and clean API design.

    DatabricksSoftware EngineerCoding & AlgorithmsTechnical Screen
  • This problem tests your ability to implement lazy computation using function composition and design a stateful data structure with metadata tracking.

    DatabricksSoftware EngineerCoding & AlgorithmsOnsite
  • This question evaluates proficiency in string manipulation and encoding algorithms, specifically run-length encoding and decoding, along with attention to edge cases such as empty inputs and single-character runs and correct handling of repetition counts.

    DatabricksSoftware EngineerCoding & AlgorithmsOnsite
  • This question evaluates understanding of data compression algorithms, bit-level manipulation, two's‑complement integer representation, streaming algorithm design, and encoder/decoder state management for 32-bit signed integers.

    DatabricksSoftware EngineerCoding & AlgorithmsOnsite
  • Design a set of integers with amortized constant-time add and remove whose iterators capture the exact contents at creation time without copying, stay independent of later changes and of each other, and fit in linear total space. Also compares a shared history log with per-key logs.

    DatabricksSoftware EngineerSoftware Engineering FundamentalsOnsite
  • Design a middleman service that takes an ISBN, bid price and payment method, queries several hundred asynchronous bookstores for the lowest price, and then orders, returns the price or reports no stock. Deep dives cover partial results and circuit breakers, caching against thundering herds, and order-and-charge consistency.

    DatabricksSoftware EngineerSystem DesignOnsite
  • Tests the ability to solve multi-source shortest path problems on a grid using multi-source Breadth-First Search (BFS). Evaluates graph traversal efficiency, boundary checking, and handling of impassable terrain.

    DatabricksSoftware EngineerCoding & AlgorithmsTechnical Screen
  • This problem tests your ability to manipulate an Abstract Syntax Tree (AST) representing a relational query plan to reduce data processing costs through predicate pushdown and projection pruning.

    DatabricksSoftware EngineerCoding & AlgorithmsTechnical Screen
  • Determine the minimum number of contiguous substrings from a source string required to reconstruct a target string.

    DatabricksSoftware EngineerCoding & AlgorithmsOnsite
  • Given the order of a recursively defined Fibonacci tree and two nodes labeled by preorder number, return the path between them without building a tree that can hold trillions of nodes. Tests recursive subtree-size reasoning, implicit tree navigation and 64-bit index arithmetic.

    DatabricksSoftware EngineerCoding & AlgorithmsOnsite
  • This question assesses a candidate's ability to articulate the architecture, personal impact, and technical decision-making process behind a complex engineering project while navigating intense scrutiny.

    DatabricksSoftware EngineerBehavioral & LeadershipOnsite
  • Build a referral credit tracker with account creation, threshold queries, deterministic ordering, and correct credit propagation through indirect referrals.

    DatabricksSoftware EngineerCoding & AlgorithmsOnsite
  • This question tests the relationship between regression coefficients when predictors undergo linear transformations, specifically focusing on scaling and centering transformations.

    DatabricksData ScientistStatistics & MathTechnical Screen
  • Process a sequence of alternating tic-tac-toe moves on an n x n board and report, after every move, whether player 1 or player 2 has just completed a full row, column, main diagonal or anti-diagonal. Tests efficient incremental win detection, diagonal indexing and correct handling of draws.

    DatabricksSoftware EngineerCoding & AlgorithmsOnsite
  • Design the retrieval system that lets an internal coding agent find the right tables and notebooks to answer data questions. Tests what to index for each asset type, hybrid retrieval plus reranking, handling noisy or stale assets, access control, and metric design from retrieval to final answers.

    DatabricksMachine Learning EngineerML System DesignOnsite
  • This interview question evaluates behavioral evidence, ownership, communication, trade-offs, and measurable outcomes in a realistic interview setting. A strong answer for Share background, conflicts, and proud project details states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

    DatabricksSoftware EngineerBehavioral & LeadershipHR Screen
  • Design and write pseudocode for a single-machine in-memory cache behind a web service, then add write-ahead-log persistence, shard it to cut lock contention, shrink critical sections, find deadlocks by inspection, and explain LRU eviction built from a linked list and a hash map.

    DatabricksSoftware EngineerSystem DesignOnsite
  • This question tests the ability to solve a shortest-path problem with multiple constraints using Dijkstra's algorithm, followed by understanding sampling techniques for connected graph structures.

    DatabricksSoftware EngineerCoding & AlgorithmsTechnical Screen
  • This interview question evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer for Solve graph path, interval deletion, and robbery states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

    DatabricksSoftware EngineerCoding & AlgorithmsHR Screen
  • This problem evaluates hypothesis testing for proportions—formulating null and alternative hypotheses, applying the binomial-to-normal approximation, and interpreting p-values; it belongs to Statistics & Math for Data Scientist roles and is pitched at an introductory/undergraduate applied statistics level.

    DatabricksData ScientistStatistics & MathTechnical Screen
  • Design a thread-safe DataWriter whose push method durably appends opaque records of up to 1 KB to one local file while thousands of threads call it at once. Tests durability contracts, batching disk syncs across callers, crash-safe record framing and handling of failed writes.

    DatabricksSoftware EngineerSystem DesignOnsite

Databricks interview experiences

All 17 →
  • Downleveled from L6 to L5, Same Question Twice, RejectedDatabricks · Software Engineer · Senior+ · Onsite · Sep 2026
    Rejected

    I applied for L6 with 9 years of experience, and got a referral. The HR screen questions made me a little uncomfortable. Starting from the first company after I graduated all the way to my current one, they asked about every single one why I left and whether I got promoted. But the HR seemed nice, and scheduled a phone screen for a week later. Phone screen: the book seller question. Honestly I di…

  • Game Logic, Referral Credits, and Chat DesignDatabricks · Software Engineer · Onsite · Sep 2026

    The report describes two coding sessions and a chat-system design discussion in a Databricks onsite. One coding exercise involved a turn-based board game, including player switching, board output, and correctly ending wins or draws. Its follow-up introduced automated play. The other exercise tracked account credits associated with referrals, queried accounts meeting a threshold, and extended cred…

  • System Design Screen on the Bookstore Question, Passed After a WeekDatabricks · Software Engineer · Technical Screen · Aug 2026
    In progress

    The interviewer seemed like a very senior person, I felt his level was really high. I got the hugely popular Bookstore question. He asked a lot of questions about failure modes. For example: if the request inserts into the DB but then SQS fails, what should happen? How can we prevent that? I said I would use a transaction outbox. He said he had never heard of that pattern, we spent a while with m…

  • Cleared the Full Onsite, Then Rejected After a Messy Reference-Check SagaDatabricks · Software Engineer · Onsite · Jul 2026
    Rejected

    Phone screen: system design — design a music playlist. The recruiter told me it would be a full-stack SD round with front-end code and everything, so I spent a long time brushing up on React, but it turned out to just be a normal SD round with no front-end content at all. My answer was pretty average. The interviewer seemed nice but looked exhausted the whole time — not sure if he was just overwo…

  • Phone Screen Plus Five Onsite Rounds, Then an OfferDatabricks · Software Engineer · Senior+ · Onsite · Jul 2026
    Offer

    End of June: Phone Screen — Coding: KV Store + Hit Counter Implement a KV Store that also supports tracking averageGet and averagePut. The main focus was on how to maintain a sliding window, and the follow-up extended it to stats over the past 1 hour, 1 day, and 1 week. Early July: Onsite 1 — Coding: File Encryption Tree Optimization Given a file system tree made of DirectoryNode and FileNode, wh…

More companies