QA Interview Hub · Knowledge base · Quizzes · Українська
All topics
Performance Testing interview questions
30 questions on Performance Testing, from the basics to the hard ones. Answers and explanations are in the quiz and the knowledge base.
By level: Junior QA interview questions · Middle QA interview questions · Senior QA interview questions
Types of performance testing
- What does load testing check? Junior
- What is the goal of stress testing? Junior
- An online shop starts a sale at 12:00 and traffic grows tenfold within a minute. Which test best covers this scenario? Junior
- After 12 hours of steady load the response time slowly grows and the server memory use never goes down. Which test type reveals such problems? Junior
- How do the terms performance testing and load testing relate? Junior
- When is it wisest to start testing performance? Junior
- A team wants to know how many concurrent users the system holds within the SLA, to plan how many servers to run. Which test type fits? Junior
- A stateless service sits behind a load balancer. The test raises the load until saturation. After growing from 2 to 4 instances the maximum throughput rose only 10%, and the load generator was not saturated. What does this most likely mean? Middle
Take the quiz for this chapter · Read the explanation in the knowledge base
Metrics
- In the usual definition, how does response time differ from latency? Junior
- What is throughput in a performance test? Junior
- A test showed a mean response time of 200 ms and p99 = 4 s. What does this mean? Junior
- What does a result of p95 = 800 ms mean? Junior
- Why should response time not be judged separately from the error rate? Junior
- Each of 1000 virtual users sends one request and then waits 10 s (treat the response time as zero). What request rate does the test generate? Middle
- What does an Apdex score with threshold T = 500 ms mean? Middle
- Four instances have a per-minute p95 of 200, 220, 210 and 900 ms. Can the system-wide p95 be obtained as the mean of these values? Middle
Take the quiz for this chapter · Read the explanation in the knowledge base
Test design
- What is a workload model (load profile) in a performance test? Junior
- Why is ramp-up used in a test? Junior
- A load test should simulate real site users, but the script sends requests one after another with no pauses between actions. What problem does this cause? Junior
- Why does a performance test on a stage with an empty database give unreliable results for production? Junior
- What is a baseline in performance testing? Junior
- What should the pass criterion of a performance test be? Junior
- The first run after a deployment shows higher times than later ones. What is the right way to handle this? Middle
Take the quiz for this chapter · Read the explanation in the knowledge base
Tools and analysis
- What is configured in a Thread Group in Apache JMeter? Junior
- What is the right way to run a large load test in JMeter 5.x? Junior
- A k6 script is started with k6 run script.js. The abortOnFail option is not set. What happens if p(95) of http_req_duration exceeds 500 ms? Junior
export const options = {
vus: 50,
duration: '5m',
thresholds: {
http_req_duration: ['p(95)<500'],
http_req_failed: ['rate<0.01'],
},
};
- During a load test the response time grows. Application server CPU is about 20%, database CPU is about 95% and many queries are queued in the database. Where is the bottleneck? Middle
- Response time jumps already at 100 VUs while server CPU and memory are low. The database connection pool shows 10 of 10 connections active all the time, while database CPU is about 15%. What is the most likely cause? Middle
- How can you make sure the bottleneck is not in the load generator itself? Middle
- A closed-model test: each VU sends a request and waits for the response before sending the next. The server hangs for 10 s. What is wrong with the statistics of such a test? Senior
Take the quiz for this chapter · Read the explanation in the knowledge base