PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Software Engineering Fundamentals/Databricks

Design a Cache with Hit Counts

Last updated: May 23, 2026

Quick Overview

This question evaluates a candidate's competence in system design, data structures, concurrency, and observability by requiring a key-value cache that tracks per-key read counts while supporting get, put, and delete operations.

  • hard
  • Databricks
  • Software Engineering Fundamentals
  • Software Engineer

Design a Cache with Hit Counts

Company: Databricks

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: hard

Interview Round: Onsite

Design a key-value cache that supports get(key), put(key, value), and delete(key). In addition, the cache must track how many successful reads each key receives. Explain the API, internal data structures, eviction policy, concurrency model, time complexity, and how you would extend the design if the cache needed to run across multiple machines.

Quick Answer: This question evaluates a candidate's competence in system design, data structures, concurrency, and observability by requiring a key-value cache that tracks per-key read counts while supporting get, put, and delete operations.

Related Interview Questions

  • Build a Durable Key-Value Cache - Databricks (medium)
  • Design a multi-threaded synchronous log writer - Databricks (hard)
  • Optimize least-k revenue queries for read/write load - Databricks (medium)
  • Design a multithreaded event logger - Databricks (medium)
  • Explain storing files to disk with concurrency - Databricks (medium)
Databricks logo
Databricks
Mar 15, 2026, 12:00 AM
Software Engineer
Onsite
Software Engineering Fundamentals
26
0
Loading...

Design a key-value cache that supports get(key), put(key, value), and delete(key). In addition, the cache must track how many successful reads each key receives. Explain the API, internal data structures, eviction policy, concurrency model, time complexity, and how you would extend the design if the cache needed to run across multiple machines.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More Databricks•More Software Engineer•Databricks Software Engineer•Databricks Software Engineering Fundamentals•Software Engineer Software Engineering Fundamentals
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.