Skip to content

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, exec(http(...)) is best described as:

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

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

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

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

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

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

    • A. Defines the sequence of actions virtual users perform.
    • B. Adds think time between actions.
    • C. Report metric for 95th percentile response time.correct
    • D. Injection step increasing arrival rate over time.

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

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

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

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

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

    • A. Defines the sequence of actions virtual users perform.
    • B. Executes an HTTP request action in a scenario.correct
    • C. Caps requests per second during a simulation.
    • D. Adds think time between actions.

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

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

    • A. Injection step increasing arrival rate over time.
    • B. Extracts or validates JSON response content.
    • C. Caps requests per second during a simulation.
    • D. Wires scenarios to injection profiles in a simulation.correct

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

  7. 7. 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.

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

    • A. Wires scenarios to injection profiles in a simulation.correct
    • B. Injection step increasing arrival rate over time.
    • C. Caps requests per second during a simulation.
    • D. Extracts or validates JSON response content.

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

  9. 9. 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.

  10. 10. 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.

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

    • A. Adds think time between actions.
    • B. Extracts or validates JSON response content.
    • C. Report metric for 95th percentile response time.
    • D. Defines the sequence of actions virtual users perform.correct

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

  12. 12. What is the purpose of rampUsersPerSec 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.
    • D. Injection step increasing arrival rate over time.correct

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

  13. 13. 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.

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

    • A. Wires scenarios to injection profiles in a simulation.
    • B. Caps requests per second during a simulation.
    • C. Executes an HTTP request action in a scenario.
    • D. Extracts or validates JSON response content.correct

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

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

    • A. Report metric for 95th percentile response time.correct
    • B. Defines the sequence of actions virtual users perform.
    • C. Adds think time between actions.
    • D. Executes an HTTP request action in a scenario.

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

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

    • A. Wires scenarios to injection profiles in a simulation.correct
    • B. Caps requests per second during a simulation.
    • C. Adds think time between actions.
    • D. Extracts or validates JSON response content.

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

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

    • A. Report metric for 95th percentile response time.
    • B. Executes an HTTP request action in a scenario.
    • C. Defines the sequence of actions virtual users perform.
    • D. Injection step increasing arrival rate over time.correct

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

  18. 18. Which of the following best describes pause() in Gatling?

    • A. Injection step increasing arrival rate over time.
    • B. Wires scenarios to injection profiles in a simulation.
    • C. Adds think time between actions.correct
    • D. Extracts or validates JSON response content.

    Why: pause(): Adds think time between actions.

  19. 19. In Gatling, what does pause() do or refer to?

    • A. Executes an HTTP request action in a scenario.
    • B. Adds think time between actions.correct
    • C. Wires scenarios to injection profiles in a simulation.
    • D. Report metric for 95th percentile response time.

    Why: pause(): Adds think time between actions.

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

    • A. Caps requests per second during a simulation.
    • B. Defines the sequence of actions virtual users perform.
    • C. Adds think time between actions.
    • D. Extracts or validates JSON response content.correct

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

Related Performance Testing topics