InterviewStack.io LogoInterviewStack.io

Database Performance Tuning and Scaling Questions

Addresses database system level performance and scaling strategies and how they interact with query design. Candidates should describe approaches for identifying and resolving database level bottlenecks including slow query diagnosis using logs and profiling instrumenting metrics and establishing baselines and targets for latency and throughput. Topics include caching strategies materialized views partitioning and sharding replication and read replica architectures connection management and improving cache utilization as well as trade offs when denormalizing schema or adopting alternative data models. Candidates should be able to propose step by step remediation plans measure the impact of changes and reason about operational concerns such as index maintenance windows monitoring and capacity planning.

EasyTechnical
60 practiced
List common index types (B-tree, Hash, GIN, GiST, BRIN) and explain typical use cases, query patterns they accelerate, their impact on write performance, and storage trade-offs. For each index type indicate when a data scientist should recommend it.
HardTechnical
63 practiced
You plan to add a new index to a hot table. Describe the instrumentation and metrics to collect (latency percentiles, TPS, write amplification, IO, CPU), design a canary or shadow-traffic rollout to validate the index under production load, and outline rollback criteria and steps.
HardSystem Design
52 practiced
Design an online resharding strategy to split 4 heavy shards into 8 for a live user-data database without downtime. Describe routing changes, migration method (background copy, dual-write, proxy-based routing), backfill/consistency checks, cutover, and rollback scenarios. Explain how you'll validate correctness after resharding.
MediumTechnical
94 practiced
A nightly ETL reads from production OLTP and is slowing down the application. Walk through a diagnostic checklist for identifying root causes (slow queries, locks, IO, missing indexes), propose immediate mitigations to reduce impact, and recommend long-term architecture changes to isolate ETL from production.
MediumTechnical
73 practiced
Compare row-oriented vs column-oriented storage for analytics and for ML feature extraction. For a high-cardinality, wide table used in model training, discuss IO patterns, compression behavior, query performance, and implications for feature pipelines.

Unlock Full Question Bank

Get access to hundreds of Database Performance Tuning and Scaling interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.

40+ Database Performance Tuning and Scaling Interview Questions & Answers (2026) | InterviewStack.io