Database Performance Tuning and Scaling Questions

System-level performance work beyond a single query: configuration and resource tuning, capacity planning, handling large data volumes, and scaling read and write throughput. Covers identifying bottlenecks, growth management, the vertical-versus-horizontal scaling decision, materialized views for expensive queries, and maintenance work such as vacuuming, index rebuilds, bulk loads, and safe schema changes on large tables. Tests whether a candidate can keep a database healthy as load grows.

MediumTechnical
57 practiced

Serverless functions in your stack open many short-lived database connections, and you are saturating the database's connection limit under load. What patterns would you use to minimize the connection count while preserving throughput and low latency (for example, an external pooler, a proxy such as RDS Proxy, or connection reuse strategies), and what are the trade-offs of each?

HardTechnical
53 practiced

Product wants a new global search feature that today works easily with ad-hoc joins on your monolithic database. Engineering wants to shard the database to support it at scale. How would you evaluate the trade-offs between the two paths, build a case that gets both product and engineering aligned, and propose an approach that meets the product requirement while keeping operational risk and cost under control?

EasyTechnical
55 practiced

Describe the role of tempdb in SQL Server and how you would configure it for a busy transactional server. Cover the number and sizing of files, autogrowth settings, storage placement, and the common pitfalls that lead to tempdb contention.

MediumTechnical
96 practiced

You are sizing a cloud data warehouse cluster that ingests 1TB per day, with average query concurrency around 200 and peak concurrency near 2000 during a seasonal reporting crunch. How would you size the cluster, configure workload management so the peak does not starve other queries, and control cost during the peak window?

MediumSystem Design
69 practiced

You manage a transactions table with 5 years of history, about 3 billion rows, where most queries target the last 90 days and older data is only queried occasionally for audits. Propose a partitioning and retention strategy: how would you choose the partition key and size, archive or drop old data, and migrate the existing table into this scheme with minimal disruption?

Unlock Full Question Bank

Get access to all 25 Database Performance Tuning and Scaling interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.