JMeter interview questions — Medium
620 medium-level JMeter questions from our Performance Testing bank, each with the correct answer and an explanation of why it is correct.
What this covers
JMeter appears throughout Performance Testing interviews. At medium level, interviewers are typically checking that you have used it in practice: what you configured, what broke, and how you knew it worked. Work through these, then explain your answer out loud; the second part is what interviews actually test.
20 example questions
1. "Handles cookies per virtual user like a browser" — in JMeter, this describes which of the following?
- A. Plugin Manager.
- B. If Controller.
- C. HTTP Cookie Manager.correct
- D. Constant Throughput Timer.
Why: HTTP Cookie Manager: Handles cookies per virtual user like a browser.
2. "CLI command running a plan and logging results" — in JMeter, this describes which of the following?
- A. JSON Extractor.
- B. HTTP Header Manager.
- C. Duration Assertion.
- D. Jmeter -n -t plan.jmx -l results.jtl.correct
Why: jmeter -n -t plan.jmx -l results.jtl: CLI command running a plan and logging results.
3. "Adds headers such as Content-Type to requests" — in JMeter, this describes which of the following?
- A. Transaction Controller.
- B. HTTP Header Manager.correct
- C. Duration Assertion.
- D. Jmeter -n -t plan.jmx -l results.jtl.
Why: HTTP Header Manager: Adds headers such as Content-Type to requests.
4. "Groups samplers to measure combined business-step time" — in JMeter, this describes which of the following?
- A. If Controller.
- B. HTTP Header Manager.
- C. Transaction Controller.correct
- D. Regular Expression Extractor.
Why: Transaction Controller: Groups samplers to measure combined business-step time.
5. "Installs additional samplers, timers, and graphs" — in JMeter, this describes which of the following?
- A. HTTP Header Manager.
- B. User Defined Variables.
- C. Loop Controller.
- D. Plugin Manager.correct
Why: Plugin Manager: Installs additional samplers, timers, and graphs.
6. "Post-processor pulling values from JSON via JSONPath" — in JMeter, this describes which of the following?
- A. If Controller.
- B. Regular Expression Extractor.
- C. Duration Assertion.
- D. JSON Extractor.correct
Why: JSON Extractor: Post-processor pulling values from JSON via JSONPath.
7. On a release readiness call: Which JMeter element validates response content/codes?
- A. Assertion.correct
- B. Pre-processor.
- C. Timer.
- D. Listener.
Why: Assertions verify content/codes and fail samples that don't match.
8. Which JMeter element validates that a response contains expected text or a status code?
- A. Assertion (e.g., Response Assertion).correct
- B. Timer.
- C. Pre-processor.
- D. Listener.
Why: Assertions (Response Assertion, JSON Assertion, Duration Assertion, …) verify response content/codes and mark samples as failed when they don't match.
9. "Static variables shared in the test plan" — in JMeter, this describes which of the following?
- A. User Defined Variables.correct
- B. Constant Throughput Timer.
- C. Plugin Manager.
- D. Transaction Controller.
Why: User Defined Variables: Static variables shared in the test plan.
10. "Paces requests to a target rate per minute" — in JMeter, this describes which of the following?
- A. User Defined Variables.
- B. Plugin Manager.
- C. Loop Controller.
- D. Constant Throughput Timer.correct
Why: Constant Throughput Timer: Paces requests to a target rate per minute.
11. "Executes children conditionally based on an expression" — in JMeter, this describes which of the following?
- A. If Controller.correct
- B. User Defined Variables.
- C. Plugin Manager.
- D. JSON Extractor.
Why: If Controller: Executes children conditionally based on an expression.
12. "Fails samples exceeding a response-time limit" — in JMeter, this describes which of the following?
- A. HTTP Cookie Manager.
- B. Constant Throughput Timer.
- C. If Controller.
- D. Duration Assertion.correct
Why: Duration Assertion: Fails samples exceeding a response-time limit.
13. Which statement correctly describes JMeter?
- A. JMeter supports only the HTTP protocol and nothing else.
- B. JMeter can test protocols beyond HTTP, including JDBC, JMS, FTP, and WebSocket (via plugins).correct
- C. The ramp-up period defines how long the server takes to respond.
- D. Timers in JMeter speed up requests to increase throughput.
Why: Multiple protocol samplers ship built in or via the plugin manager.
14. While onboarding a junior QA, you explain: In JMeter, a Thread Group represents:
- A. A single request.
- B. A pool of virtual users.correct
- C. A results graph.
- D. A DB connection.
Why: A Thread Group defines virtual users, ramp-up, and loops.
15. While onboarding a junior QA, you explain: For large load, JMeter should run in:
- A. GUI mode with many listeners.
- B. Non-GUI (CLI) mode, optionally distributed.correct
- C. Recording mode.
- D. Debug mode.
Why: Non-GUI mode is recommended for load generation.
16. During a code review, a reviewer asks: Which JMeter element displays results?
- A. Sampler.
- B. Config Element.
- C. Listener.correct
- D. Timer.
Why: Listeners gather and visualize sampler results.
17. Identify the accurate statement about JMeter:
- A. JMeter tests should be executed in non-GUI (CLI) mode for actual load generation.correct
- B. The ramp-up period defines how long the server takes to respond.
- C. Listeners generate the actual HTTP load in a test plan.
- D. CSV Data Set Config can only supply one identical row to every thread.
Why: GUI mode is for building/debugging; CLI mode for running load.
18. Which of the following statements about JMeter is TRUE?
- A. Distributed testing in JMeter is limited to exactly one machine.
- B. JMeter tests should be executed in non-GUI (CLI) mode for actual load generation.correct
- C. Timers in JMeter speed up requests to increase throughput.
- D. JMeter supports only the HTTP protocol and nothing else.
Why: GUI mode is for building/debugging; CLI mode for running load.
19. During a sprint demo, a teammate asks: A JMeter Timer is used to:
- A. Assert content.
- B. Add think-time/pauses between requests.correct
- C. Record results.
- D. Set thread count.
Why: Timers introduce delays (think time) between samplers.
20. On a release readiness call: The JMeter 'Ramp-up period' controls:
- A. Total duration.
- B. How gradually threads start.correct
- C. Pause between requests.
- D. Max response time.
Why: Ramp-up spreads thread startup over the given seconds.