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.
Given historical metrics: average daily peak 200k requests, average hourly peak 5k req/s, expected 3x growth in 12 months, and current p95 latency 180ms on an 8-node cluster with avg CPU 60% during peaks—outline a capacity planning approach. Estimate required nodes or resources, propose tests to validate capacity and headroom, recommend safety margins, and describe how you'd present trade-offs and cost implications to stakeholders.
Write a test case to validate a performance acceptance criteria for a 'search' API that must respond within 200ms at the 95th percentile under a sustained load of 200 RPS. Include preconditions, test steps (load profile), exact assertions, and the measurement methodology and tools you would use.
Before executing a full-load performance test against a staging environment, what checklist of preparatory steps would you perform to ensure the test results are valid and repeatable? Cover environment configuration, test data setup, cache and queue warm-up, background jobs, monitoring configuration, and isolation of external dependencies.
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.
Outline a complete test plan to validate that a web application can support 1,000 concurrent users for a sustained 30-minute period. Your plan should include objectives, user scenarios, load profile (ramp-up/steady/ramp-down), metrics to collect, acceptance criteria, environment prerequisites, monitoring and alerting, and rollback/stop conditions.
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.