Which of the following is the most important metric to monitor during a load test to understand system responsiveness?
Think about what tells you how fast the system reacts to user actions.
Response time directly measures how quickly the system responds to requests, which is critical for user experience during load.
What is the main purpose of establishing a baseline in performance test planning?
Baseline is about knowing how the system behaves before changes.
Baseline testing measures system performance under normal conditions to compare against future tests.
You are planning a performance test for a web application expected to have sudden spikes in user traffic. Which combination of test types should you include to best simulate this scenario?
Think about tests that simulate normal and extreme user loads.
Load testing simulates expected user traffic, while stress testing pushes beyond limits to see how the system handles spikes.
Given a performance test plan with the success criterion: "Response time must be under 2 seconds for 95% of requests." Which assertion correctly validates this criterion after test execution?
assert (sum(t <= 2 for t in response_times) / len(response_times)) >= 0.95
Focus on counting requests with response time less than or equal to 2 seconds.
Option A correctly counts requests with response time ≤ 2 seconds and checks if they are at least 95% of total.
After running a performance test, the CPU usage is low, memory usage is stable, but response times increase drastically under load. What is the most likely cause?
Think about what can cause slow responses without high CPU or memory use.
Network bandwidth saturation can cause delays in response times even if CPU and memory are fine.