注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
整理了 16 篇 2026 年发布的 Databricks 面经帖(其中 14 篇记录的是 2026 年的面试;另有 2 篇发帖于 2026 年 1 月、记录的是 2025 年的面试——2025 年 10–12 月、2025 年 7–9 月,逐帖已注明),覆盖 SWE / MLE / Applied AI;外加地里面经题库(约 123 题,35 hot)。Databricks 是题库型公司的典型:原题重复率高,但面试官追问极深——能做出原题只是入场券,follow-up 的深度才是真正的 bar。
说明:题面尽量引用楼主原话;帖子没写的细节不脑补,会注明"帖子没展开"。
一、流程概览
- 网申/内推 → recruiter/HR → technical phone(1–2 轮 coding,多为题库原题)→ VO 4–5 轮(coding + algo + system design / system programming + BQ)。
- 原题率高:第 11 帖标题直接写"全是地里原题";第 3、4 帖也称"地里的老题""地里的原题"。
- 但追问深:多篇反馈"问得很细";第 16 帖细到锁的临界区能不能再缩小、瞪眼 debug 死锁;第 9 帖面试官会提出另一种数据结构让你当场对比。
- 典型组合:coding(KV/QPS、Tic-Tac-Toe、RLE)+ algo(Fibonacci tree、Optimal Commute、CIDR)+ SD(bookseller、file system、单机 cache)+ BQ。
- 决策速度不一:有次日拒信的,也有走 hiring committee 流程的。
二、高频题(完整题面)
Coding
1. KV Store + QPS / Hit Counter——跨 role 最高频。楼主原话:"题目是地里的原题,一个in-memory的kv store,要求实现一个5-min的qps query function,具体就是对于每一个key,如果在过去5分钟内query次数超过了某个阈值,就要return false。" 按顺序的 follow-up,楼主原话:
(1) 如果输入是一个stream呢?那应该怎么改?(面试官提示:用priority queue)
(2) 有一个server,多个worker来读这个server,应该怎么改?
(3) 怎么让qps统计的更精确?(一个query过来要查过去5分钟的数据,那过去的数据还要不要扔掉?如果直接扔掉的话就统计的不精确了,应该怎么做?面试官提示:这个其实是要搞清楚,5min和query次数超过threshold之间的关系)
楼主 coding 花太久只剩 20 分钟,没答完 (2)(3)。
2. Optimal Commute——楼主原话:"地里提到过的sf commute, 给一个二维matrix,标明Start和Destination, 有四种通勤方式,用1,2,3,4代表可以走的路径。给出1,2,3,4每走一步分别需要的时间和cost,问哪种最省时间,在一样时间的情况下取cost最小的。" 楼主解法原话:"用bfs四种方式分别跑一次即可"。帖子没有记录后续追问。
3. CIDR / IP 防火墙——楼主原话(规则示例):
rules = [("192.168.1.0/24" : "ALLOW"), ("8.8.8.8" : "DENY"), #etc.]
任务原话:"Write a function get_status(rules, "192.168.1.5") which returns the status of the given IP in the above case - would pass since first 24 bits (192.168.1) matches and we hit the first rule -> ALLOW."
关键规则原话:"rules list is ordered, so first rule hit is the one that you should return."(规则有序,命中第一条就返回)
实现要点:IP 转二进制串,拿前 /Prefix 位做前缀匹配。楼主建议原话:"Do a Quick refresh on Binary numbers."(先复习二进制)
follow-up(第 16 帖):"建立好ACL之后,如果input改成一个CIDR而不是IP怎么办"——楼主原话思路:逻辑上一个 CIDR 代表一大堆 IP,ALLOW 的话需要每一个 IP 都 ALLOW;暴力枚举每个 IP 再判断复杂度太高,曾想到用线段树优化(CIDR 是一个 range,看 range 是否相交);评论区给出更简洁的思路:抽象成普通区间问题,用多个 interval 去 match 一个 target interval。最终楼主没写出来。
约束(题库 hot 题给出):最多 10^5 条规则,前缀 0–32,裸地址视为 /32。
4. Generalized Tic-Tac-Toe——楼主原话(英文题面):
"Design a TicTacToe game played on an m x n board between two players. Implement the TicTacToe class: TicTacToe(int m, int n, int k) — initializes the board with dimensions m x n and the win condition k. int move(int row, int col, int player) — indicates the player with id player (1 or 2) plays at cell (row, col). The move is guaranteed to be valid. Returns: 0 if no one wins, 1 if player 1 wins, 2 if player 2 wins. A player wins if they place k of their marks in a consecutive line — horizontally, vertically, or diagonally (either direction)."
要点:m×n 棋盘、k 连胜;行/列/对角线计数器做到 O(1) 判胜(第 11 帖同题)。
5. Customer Revenue——楼主原话:"phone screen题目是cus面见二-10;LC438 只找首个;可扩展性 follow-up 无细节),结果 WaitList
14. 2026-04-13 发帖(MLE,面试为 2026 年 1–3 月):coding lazy array(题面见二-9;怎么 test laziness)+ ML design 检测 LLM 有害内容(见二-ML 第二条)+ 常规 BQ(楼主记不清细节)+ ML 手写 linear regression + gradient descent(见二-ML 第一条;recruiter 事先说的轮次和实际对不上)+ 项目介绍,结果 Fail
15. 2026-04-30,Applied AI,ML SD:内部 coding agent 的 RAG(题面见二-ML 第三条;retrieval + reranker;index 什么、noisy notebook 处理、metric 设计),结果 Pass
16. 2026-01-10 发帖(NG Distributed Data System,面试为 2025 年 7–9 月):电面 IP-CIDR(题面见二-3;follow-up 输入变 CIDR,楼主没写出来)→ VO 四轮:coding SQL optimizer(题面见二-12;column pruning + filter pushdown,代码要能 run)+ algo(与楼主之前 intern 轮一模一样的题)+ SD 单机 cache(题面见二-SD-4;WAL、shard、LRU、细粒度锁追问)+ HM chat,结果 Fail
补充:地里面经题库
- Databricks Interview Questions:约 123 题(35 hot = 21 coding + 12 SD + 2 behavioral,站方持续整理中)
- 公司面经页(含 2026 年各轮次投稿索引)
- Hot 题示例——IP / CIDR Firewall(含 10^5 规则、0–32 前缀等完整约束)
- Hot 题示例——Snapshot Set Iterator(含 O(1) 约束与快照语义)
五、备考建议
1. Coding 先刷题库高频:KV QPS、Optimal Commute、CIDR firewall、Tic-Tac-Toe、Fibonacci tree、RLE/bit-packing、Snapshot Set、Customer Revenue、File Encryption Tree、SQL optimizer(column pruning + filter pushdown)——每道额外准备 follow-up(stream 改法、多 worker、精确统计、CIDR 输入变体)。
2. SD:bookseller(async fan-out、下游容错、cache/TTL/thundering herd、order-charge 补偿与幂等)、单机 cache(WAL、shard、LRU、细粒度锁)、durable event writer / multithreaded log writer(同步落盘)。
3. MLE / Applied AI:手写 linear regression + gradient descent;RAG for data assets(index 什么、noisy notebook 处理、metric 设计);harmful content detection。
4. BQ:第 1 帖原题可直接准备——"Talk to me about your current role? Why Databricks?" / "Tell me about a project that you are most proud of?" / "Has there been feedback shared with you which you did not agree with? How did you react?" / "Tell me about a time you disagreed with your co-worker about a technical decision? How was it resolved?"
5. 面试中跟紧面试官的引导:第 9 帖面试官会提出另一种数据结构让你对比,第 16 帖面试官确认"你已经把我要问的都想出来了"——把思考过程说出来比抢答重要。
6. 别只背最优解:先给 clean baseline,再讲 edge case、复杂度、生产约束——Databricks 的 bar 在第二层。
已发布的《Harvey面经汇总》《Spreadsheet设计题全解析》见我主页,评论区欢迎补充 2026 新题,码字不易,求加精、求大米支持。
|