InterviewStack.io LogoInterviewStack.io

Database Internals and Storage Engines Questions

How databases work under the hood: storage-engine architectures (B-tree versus LSM-tree), on-disk page and buffer management, write-ahead logging, and MVCC. Covers the engine-level mechanisms that explain performance, durability, and concurrency behavior. Tests depth beyond usage — why a database behaves as it does.

HardTechnical
48 practiced

Describe how B+ trees (used for most B-tree indexes) are laid out on disk, how lookup and range scan costs are modeled (I/O per page), and the trade-offs between random and sequential I/O. Quantify (qualitatively) how page size, fanout, and clustering affect performance and memory usage.

HardTechnical
51 practiced

Explain approaches to support efficient binary search over a compressed, immutable sorted array stored on disk to save space. Discuss delta encoding, front-coding, block compression versus element-level compression, trade-offs for random-access latency, and how to design block indices to keep search latency low.

HardTechnical
51 practiced

Compare storage engines like InnoDB, RocksDB, and WiredTiger for OLTP workloads. Discuss how each handles write amplification, compaction, concurrency, crash recovery, and the types of workloads they excel at.

HardTechnical
40 practiced

Explain how Write-Ahead Logging (WAL) works and how crash recovery uses WAL to achieve durability. Describe the role of checkpoints and how fsync frequency and group commit impact durability, latency, and throughput. Discuss trade-offs when tuning WAL behavior for high-throughput systems.

That is every published Database Internals and Storage Engines question for Software Engineer so far. Browse the other topics in this category, or practice this one interactively.