Software Engineer • Senior-Level
Software Engineer • Senior-Level
High QualityPrep Other System Design Questions Asked by Databricks
Continue with targeted system design prep from Databricks's system design questions.
Interview Summary
The system needed to support ad selection, bidding, click tracking, daily campaign budgets, and advertiser account balances. The most important technical challenges involved real-time budget consistency, handling concurrent clicks, and supporting low-latency ad serving at global scale.
Interview Details
System Design: Ad Marketplace Platform
Question 1 — Design a Scalable Advertising Marketplace
The system design problem was to build an advertising marketplace that connects publishers with advertisers. Publishers would request advertisements to display on their websites, while advertisers would compete for available ad placements. The system needed to select an appropriate advertisement, serve it to the publisher, track user interactions, and manage the money associated with advertising campaigns.
The main functional requirements were:
- Ad Requests: Publisher websites can request advertisements to display.
- Ad Selection and Bidding: The platform matches requests with eligible advertisers and selects a winning advertisement through a bidding process.
- Click Tracking: The system records clicks on served advertisements.
- Daily Budget Management: Each advertising campaign has a daily spending limit, which decreases as billable clicks occur.
- Budget Reset: Campaign spending counters reset at the beginning of each new budget day.
- Advertiser Fund Management: Advertisers can add funds to their accounts or receive refunds.
The platform also needed to prevent campaigns from continuing to spend after their daily budgets were exhausted.
Question 2 — Design Ad Selection and Bidding
One major part of the design involved determining which advertisement should be returned when a publisher sends an ad request. I needed to consider how the system could identify eligible advertising campaigns and run the bidding process.
Important design considerations included:
- Matching available advertisements to publisher requests.
- Filtering campaigns based on targeting and eligibility.
- Excluding campaigns that had exhausted their budgets.
- Handling competing bids from multiple advertising providers.
Unlock Full Details
Create a free account to unlock this interview experience report.