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, and the vertical-versus-horizontal scaling decision. Tests whether a candidate can keep a database healthy as load grows.
For BI dashboards you can cache data at the browser, application, and database layers. Explain pros/cons and give concrete scenarios when you would use: 1) client/browser cache, 2) application-level cache (e.g., Redis), and 3) database query cache or materialized views. Discuss cache invalidation strategies appropriate for dashboards with hourly and near-real-time updates.
Design an automated alerting system that detects performance regressions in query latency introduced by nightly ETL runs. Specify metrics to collect (e.g., query duration histograms, p95/p99), baseline computation, anomaly-detection technique, alert thresholds, and the automatic metadata (runbook link, owner). Also describe how to surface meaningful alerts without creating noise.
You operate a multi-tenant BI platform where tenant workloads vary wildly. Design a sharding and resource-isolation strategy to prevent one 'hot' tenant from degrading performance for others. Discuss shard-by-tenant vs shard-by-hash, per-tenant resource quotas, moving heavy tenants to dedicated clusters, and how to handle cross-tenant analytical queries.
JOINs can dramatically affect dashboard performance. As a BI analyst, explain the effects of many-to-many joins and large dimension joins on query runtime and give practical mitigation strategies (pre-aggregation, denormalization, star schema, bloom filters, selective predicates) that reduce runtime for interactive dashboards.
Design a materialized view or aggregated table strategy for dashboards that require 10-minute freshness over a dataset that ingests ~1TB/day of raw events. Describe how you would implement incremental refresh, partition-level refresh, trade-offs with storage, and how BI tool caching would interact with this strategy.
Unlock Full Question Bank
Get access to all 45 Database Performance Tuning and Scaling interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.