NewThe Learning module is now liveSee what's new
avatar
User-lxxa2Jun 23, 2026

Databricks phone screen, moving to onsite

Interview Experiences
databricks

Result: Pending (moving to onsite) Number of Rounds: 1

Databricks phone screen, 45 minutes.

Got IP CIDR Firewall, given a set of firewall rules in CIDR notation and an IP address, determine whether the IP is allowed or blocked based on priority ordering. Rules can have overlapping ranges.

The core approach is parsing CIDR notation into a subnet mask: convert the IP to a 32-bit integer, create a mask from the prefix length by shifting bits, AND them together to get the network address, then do the same comparison for the incoming IP. If the network bits match, the rule applies. Worked through the bit manipulation step by step with the interviewer, they seemed engaged.

First follow-up was IPv6 handling. Noted the address space is 128 bits instead of 32, structurally the same approach with wider integers. Second follow-up was about scaling to thousands of rules evaluated per second. Talked through a trie-based approach on the binary representation of IPs, where each bit becomes a branching node, but acknowledged I'd need more time to work through trie construction fully.

Interviewer said we'd go deeper in the onsite loop. Onsite scheduled next week.

516873
Related QuestionsAI

Replies (5)

avatar
emilywu0526Jun 23, 2026

good luck on the onsite. databricks loops are long but the interviewers are usually reasonable

17
avatar
leilachen97Jun 23, 2026

the trie approach for large rulesets is smart, basically prefix tree on binary IP. did you sketch it out on the board?

8
avatar
arjun.patel1997Jun 23, 2026

explained the concept but didn't have time to code it. they seemed fine with the direction

26
avatar
User-i9jf2Aug 3, 2026

It's great that you made it this far in the interview. How did the onsite go

8
avatar
crazydogggAug 20, 2026

congrats! How was our onsite experience?

6
avatar
aaronzhang0812Jun 23, 2026

IPv6 follow-up is such a databricks thing. they love scalability and system extensions

3
No more replies