Gatling interview questions — Easy

150 easy-level Gatling questions from our Performance Testing bank, each with the correct answer and an explanation of why it is correct.

What this covers

Gatling appears throughout Performance Testing interviews. At easy level, interviewers are typically checking that you know the fundamentals and can describe them precisely — definitions, defaults, and the basic mechanics. Work through these, then explain your answer out loud; the second part is what interviews actually test.

20 example questions

  1. 1. In the context of Gatling, percentile3 (p95) is best described as:

    • A. Report metric for 95th percentile response time.correct
    • B. Extracts or validates JSON response content.
    • C. Defines the sequence of actions virtual users perform.
    • D. Injection step increasing arrival rate over time.

    Why: percentile3 (p95): Report metric for 95th percentile response time.

  2. 2. Which of the following best describes rampUsersPerSec in Gatling?

    • A. Caps requests per second during a simulation.
    • B. Adds think time between actions.
    • C. Extracts or validates JSON response content.
    • D. Injection step increasing arrival rate over time.correct

    Why: rampUsersPerSec: Injection step increasing arrival rate over time.

  3. 3. Which of the following best describes exec(http(...)) in Gatling?

    • A. Report metric for 95th percentile response time.
    • B. Extracts or validates JSON response content.
    • C. Executes an HTTP request action in a scenario.correct
    • D. Injection step increasing arrival rate over time.

    Why: exec(http(...)): Executes an HTTP request action in a scenario.

  4. 4. Which of the following best describes percentile3 (p95) in Gatling?

    • A. Wires scenarios to injection profiles in a simulation.
    • B. Injection step increasing arrival rate over time.
    • C. Extracts or validates JSON response content.
    • D. Report metric for 95th percentile response time.correct

    Why: percentile3 (p95): Report metric for 95th percentile response time.

  5. 5. In Gatling, what does percentile3 (p95) do or refer to?

    • A. Defines the sequence of actions virtual users perform.
    • B. Report metric for 95th percentile response time.correct
    • C. Extracts or validates JSON response content.
    • D. Executes an HTTP request action in a scenario.

    Why: percentile3 (p95): Report metric for 95th percentile response time.

  6. 6. In Gatling, what does scenario() do or refer to?

    • A. Executes an HTTP request action in a scenario.
    • B. Defines the sequence of actions virtual users perform.correct
    • C. Caps requests per second during a simulation.
    • D. Injection step increasing arrival rate over time.

    Why: scenario(): Defines the sequence of actions virtual users perform.

  7. 7. In Gatling, what does setUp() do or refer to?

    • A. Executes an HTTP request action in a scenario.
    • B. Wires scenarios to injection profiles in a simulation.correct
    • C. Injection step increasing arrival rate over time.
    • D. Report metric for 95th percentile response time.

    Why: setUp(): Wires scenarios to injection profiles in a simulation.

  8. 8. What is the purpose of percentile3 (p95) in Gatling?

    • A. Extracts or validates JSON response content.
    • B. Report metric for 95th percentile response time.correct
    • C. Caps requests per second during a simulation.
    • D. Wires scenarios to injection profiles in a simulation.

    Why: percentile3 (p95): Report metric for 95th percentile response time.

  9. 9. What is the purpose of exec(http(...)) in Gatling?

    • A. Adds think time between actions.
    • B. Caps requests per second during a simulation.
    • C. Executes an HTTP request action in a scenario.correct
    • D. Wires scenarios to injection profiles in a simulation.

    Why: exec(http(...)): Executes an HTTP request action in a scenario.

  10. 10. What is the purpose of setUp() in Gatling?

    • A. Adds think time between actions.
    • B. Injection step increasing arrival rate over time.
    • C. Wires scenarios to injection profiles in a simulation.correct
    • D. Executes an HTTP request action in a scenario.

    Why: setUp(): Wires scenarios to injection profiles in a simulation.

  11. 11. Which of the following best describes scenario() in Gatling?

    • A. Defines the sequence of actions virtual users perform.correct
    • B. Injection step increasing arrival rate over time.
    • C. Wires scenarios to injection profiles in a simulation.
    • D. Report metric for 95th percentile response time.

    Why: scenario(): Defines the sequence of actions virtual users perform.

  12. 12. Which of the following best describes setUp() in Gatling?

    • A. Injection step increasing arrival rate over time.
    • B. Caps requests per second during a simulation.
    • C. Adds think time between actions.
    • D. Wires scenarios to injection profiles in a simulation.correct

    Why: setUp(): Wires scenarios to injection profiles in a simulation.

  13. 13. What is the purpose of rampUsersPerSec in Gatling?

    • A. Wires scenarios to injection profiles in a simulation.
    • B. Injection step increasing arrival rate over time.correct
    • C. Executes an HTTP request action in a scenario.
    • D. Defines the sequence of actions virtual users perform.

    Why: rampUsersPerSec: Injection step increasing arrival rate over time.

  14. 14. What is the purpose of scenario() in Gatling?

    • A. Extracts or validates JSON response content.
    • B. Defines the sequence of actions virtual users perform.correct
    • C. Executes an HTTP request action in a scenario.
    • D. Adds think time between actions.

    Why: scenario(): Defines the sequence of actions virtual users perform.

  15. 15. In Gatling, what does rampUsersPerSec do or refer to?

    • A. Executes an HTTP request action in a scenario.
    • B. Injection step increasing arrival rate over time.correct
    • C. Wires scenarios to injection profiles in a simulation.
    • D. Defines the sequence of actions virtual users perform.

    Why: rampUsersPerSec: Injection step increasing arrival rate over time.

  16. 16. In Gatling, what does exec(http(...)) do or refer to?

    • A. Extracts or validates JSON response content.
    • B. Injection step increasing arrival rate over time.
    • C. Wires scenarios to injection profiles in a simulation.
    • D. Executes an HTTP request action in a scenario.correct

    Why: exec(http(...)): Executes an HTTP request action in a scenario.

  17. 17. Which of the following best describes jsonPath check in Gatling?

    • A. Adds think time between actions.
    • B. Executes an HTTP request action in a scenario.
    • C. Extracts or validates JSON response content.correct
    • D. Wires scenarios to injection profiles in a simulation.

    Why: jsonPath check: Extracts or validates JSON response content.

  18. 18. What is the purpose of throttle in Gatling?

    • A. Report metric for 95th percentile response time.
    • B. Injection step increasing arrival rate over time.
    • C. Caps requests per second during a simulation.correct
    • D. Extracts or validates JSON response content.

    Why: throttle: Caps requests per second during a simulation.

  19. 19. In Gatling, what does jsonPath check do or refer to?

    • A. Defines the sequence of actions virtual users perform.
    • B. Wires scenarios to injection profiles in a simulation.
    • C. Extracts or validates JSON response content.correct
    • D. Executes an HTTP request action in a scenario.

    Why: jsonPath check: Extracts or validates JSON response content.

  20. 20. In Gatling, what does throttle do or refer to?

    • A. Caps requests per second during a simulation.correct
    • B. Extracts or validates JSON response content.
    • C. Report metric for 95th percentile response time.
    • D. Executes an HTTP request action in a scenario.

    Why: throttle: Caps requests per second during a simulation.

Related Performance Testing topics