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.

EasyTechnical
62 practiced

You are building a monitoring dashboard for a production database. What are the 8 to 10 metrics you would include, covering resource utilization, replication, query performance, and capacity? Why does each one matter, and what alert thresholds would you set for them?

MediumTechnical
58 practiced

You need to add a column to a production table with hundreds of millions of rows, and you cannot take a long lock or cause a visible outage. Describe a safe approach: what technique would you use to make the change incrementally, how would a dual-write-and-backfill strategy work if you needed one, and how would you monitor and cap the impact on live traffic while it runs, including a way to back out if something goes wrong?

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
63 practiced

Your team runs a single relational database instance that is approaching its performance ceiling as traffic grows. Explain the difference between scaling it vertically (a bigger instance) and scaling it horizontally (multiple instances). What are the practical limits and cost implications of each, and how do they affect availability and operational complexity as the system keeps growing?

MediumTechnical
51 practiced

You manage a 500GB OLTP table that shows average fragmentation over 30 percent. How would you decide between reorganizing and rebuilding its indexes, including the thresholds you would use, whether you can do it online, the impact on locks, and how fillfactor should factor into the decision? Describe a maintenance approach that minimizes impact on users.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.