Performance and Load Testing Questions
Evaluating a system under expected and extreme load. Covers load, stress, soak, and scalability testing, defining performance goals, generating load, and interpreting latency and throughput results. Includes identifying bottlenecks and validating capacity before release.
A Java service experiences long GC pause times and latency spikes under load. Describe how you would collect GC logs, interpret key GC metrics (pause times, frequency, young/old generation collections), recommend JVM flag changes or heap sizing strategies (e.g., G1 tuning, region sizes, -Xmx/-Xms), and design load tests to validate the impact of GC tuning changes.
You observe degrading performance under load in a multi-tier application. Provide a systematic diagnostic checklist and workflow to isolate the bottleneck across application code, database, cache, and infrastructure. Include which high-level metrics/logs/traces to gather first, how to reduce variables for isolation, and two concrete commands or tools you would run on affected machines.
Architect a framework to support both functional correctness and performance testing while maximizing code reuse. Explain the test harness, how to parameterize scenarios for load, shared client libraries, metric collection (latency, throughput, error rates), environment orchestration (kubernetes clusters, scale-out generators), and how to correlate functional failures with performance anomalies.
For a three-tier web application (load balancer, web server, application server, database, cache), list the key system and application-level resources you would monitor during a load test. For each resource specify one critical metric to collect, why that metric matters during load tests, and one tool or agent you'd use to collect it.
During a 30-minute load test you observe: overall throughput ~1000 req/s, average response 200ms, p95 response 1500ms; application server CPU ~90%, database CPU ~30%, DB active connections at configured max 500, error rate 2% (mostly connection timeouts). Diagnose the most likely root causes and outline a step-by-step plan to confirm and remediate the issue. Provide quick mitigations to reduce user impact while investigating.
Unlock Full Question Bank
Get access to all 42 Performance and Load Testing interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.