B+ tree indexes, cache failure modes and distributed locks

MediumConcept20 minSWEPro outline

The question

Quick backend round: why do databases use B+ trees for indexes, what are cache penetration, breakdown and avalanche and how do you handle each, and how would you build a distributed lock?

What the interviewer is looking for

  • Explains short trees and range scans from B+ tree leaves
  • Defines the three cache failures correctly
  • Gives one fix for each
  • Describes a lease lock with owner checks
  • Knows the limits of multi-node lock schemes

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported Moonshot AI (Kimi) question type: B+ tree indexes; cache penetration, breakdown and avalanche; distributed locks.

Reported in: mj.mianlingai.com

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Moonshot AI (Kimi) question.