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.

HardTechnical
65 practiced

A multi-tenant SaaS product runs many tenants on a shared database cluster. One tenant's workload suddenly causes I/O and CPU spikes that degrade performance for everyone else. Propose an architecture and operational plan to detect and isolate noisy tenants: logical isolation (schemas, row-level throttles), physical isolation (dedicated instances for the worst offenders), resource limits, and how you would think about cost and billing allocation.

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?

EasyTechnical
59 practiced

What is a materialized view, and how is it different from a regular (logical) view? Compare them on storage cost, query latency, data freshness, and maintenance overhead, and describe the refresh strategies you could use (on-demand, scheduled full refresh, incremental refresh) and which access patterns favor each.

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

An ingestion pipeline is feeding a data warehouse at high volume, and query performance is starting to suffer. You are weighing two approaches: scaling up the compute layer (more nodes or slots) versus pre-partitioning and pre-aggregating data as it is ingested. Compare the performance, cost, and operational-complexity trade-offs of each.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.