Database Internals and Storage Engines Questions

How a single database engine works internally, at the mechanism level: storage-engine architectures such as B-tree versus LSM-tree, on-disk page and buffer-pool management, write-ahead logging (WAL) and checkpointing, and MVCC's internal mechanics (version chains, vacuum and bloat, transaction-ID wraparound). Also covers compaction and its write/read amplification trade-offs, including engine-specific behavior such as Bloom filters and tombstone/TTL expiry in LSM-based stores like Cassandra, and hands-on design of simplified storage components: on-disk data layouts and indexes, WAL recovery routines, compaction strategies, and crash-safe log or queue formats. Tests depth beyond usage: why the engine behaves as it does, not how to operate, tune, recover, or scale it.

EasyTechnical
47 practiced

Explain what a write-ahead log (WAL) is and why databases use it. Describe the typical order of operations for a durable commit using WAL and when an fsync is required to ensure durability. Mention the role of checkpointing in recovery time.

EasyTechnical
42 practiced

What is a B-tree index and why is it well-suited to range queries? Describe briefly how B-tree insert/delete operations maintain balance, why page splits occur, and how page splits can impact write amplification and concurrency.

EasyTechnical
76 practiced

Explain the difference between a database's logical storage (tables, schemas, indexes, views) and its physical storage (pages, files, and how those pages are actually organized on disk or in object storage). Why does an engine maintain this separation, and how does the physical storage choice affect query latency and cost for a read-heavy reporting workload?

MediumTechnical
65 practiced

What is MVCC (multi-version concurrency control)? Describe how it enables readers to avoid blocking writers (and vice versa), how versions are tracked, and provide a simple scenario where two concurrent transactions can each read a valid snapshot yet still produce an anomaly together.

EasyTechnical
44 practiced

Explain the difference between B-tree and LSM-tree indexing structures, for example as used in PostgreSQL versus RocksDB. For a high-ingest logging service, which index type would you typically choose, and why?

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