InterviewStack.io LogoInterviewStack.io

Database Fundamentals and Storage Engines Questions

Core principles and components of data storage and persistence systems. This includes storage engine architectures and how they affect query processing and performance; transactions and isolation including atomicity, consistency, isolation, and durability; concurrency control and isolation levels; indexing strategies and how indexes affect read and write amplification; physical versus logical storage and object, block, and file storage characteristics; caching layers and cache invalidation patterns; replication basics and how replication affects durability and read performance; backup and recovery techniques including snapshots and point in time recovery; trade offs captured by consistency, availability, and partition tolerance reasoning; compression, cost versus performance trade offs, data retention, archival, and compliance concerns. Candidates should be able to reason about durability, persistence guarantees, operational recovery, and storage choices that affect latency, throughput, and cost.

EasyTechnical
43 practiced
Describe the difference between logical and physical storage in a database. Give concrete examples of logical constructs (tables, schemas, indexes, views) and physical constructs (pages/blocks, files, objects, containers). Explain how choosing block-based storage vs object storage (e.g., EBS vs S3) affects BI query latency, throughput, and cost for a reporting workload.
MediumTechnical
45 practiced
Write a SQL-based approach to deduplicate rows in a large staging table (staging_events(event_id, user_id, event_time, payload)) where duplicates are defined by same user_id and event_time (within 1 second). Provide an efficient pattern to delete duplicates in place with minimal locking and explain concurrency considerations if the staging table receives concurrent writes.
MediumTechnical
41 practiced
Describe best practices for monitoring database storage and performance specifically for BI workloads. Provide a prioritized list of metrics (IOPS, latency P99/P50, replica lag, compaction backlog, cache hit ratio, table bloat, long-running queries), how you'd alert on them, and what an automated runbook action might be for each critical alert.
MediumSystem Design
43 practiced
Design a backup and recovery plan for a cloud-based reporting data warehouse of 10 TB with daily ETL loads. Requirements: RPO = 4 hours, RTO = 2 hours for most dashboards, and ability to restore to any point in the last 30 days. Outline backup types (snapshot, incremental, WAL/log shipping), retention tiers, cost trade-offs, and a testing plan to validate restores regularly.
HardTechnical
70 practiced
You're evaluating storage engines for a BI workload that needs low-latency point updates to user profile attributes and also fast analytic aggregation on the same data. Compare InnoDB (B-tree), RocksDB (LSM), and a distributed transactional KV store (e.g., TiKV) for this mixed workload. Address latency, throughput, compaction/on-disk layout, and operational complexity.

Unlock Full Question Bank

Get access to hundreds of Database Fundamentals and Storage Engines interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.