Skip to content

Postman interview questions — Medium

362 medium-level Postman questions from our API Testing bank, each with the correct answer and an explanation of why it is correct.

What this covers

Postman appears throughout API 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. 1. On a release readiness call: Which Postman variable scope is broadest (available everywhere)?

    • A. Local.
    • B. Environment.
    • C. Global.correct
    • D. Collection.

    Why: Globals are broadest; precedence narrows local>data>environment>collection>global.

  2. 2. "Shared area where teams collaborate on APIs and collections" — in Postman, this describes which of the following?

    • A. Example response.
    • B. Workspace.correct
    • C. Pm.environment.get().
    • D. Pm.response.json().

    Why: workspace: Shared area where teams collaborate on APIs and collections.

  3. 3. "Configures auth (Bearer, Basic, OAuth2) applied to requests" — in Postman, this describes which of the following?

    • A. Example response.
    • B. Pm.environment.get().
    • C. Pm.sendRequest.
    • D. Authorization tab.correct

    Why: authorization tab: Configures auth (Bearer, Basic, OAuth2) applied to requests.

  4. 4. In a test-strategy meeting, the question comes up: In Postman, where do assertions run after a response?

    • A. Pre-request Script.
    • B. Tests tab.correct
    • C. Headers.
    • D. Params.

    Why: The Tests tab runs after the response; Pre-request runs before.

  5. 5. "Controls execution order/branching in a collection run" — in Postman, this describes which of the following?

    • A. Global variables.
    • B. Pm.response.json().
    • C. Pm.sendRequest.
    • D. Postman.setNextRequest.correct

    Why: postman.setNextRequest: Controls execution order/branching in a collection run.

  6. 6. "Sends an additional HTTP request from a script" — in Postman, this describes which of the following?

    • A. Pm.sendRequest.correct
    • B. Example response.
    • C. Authorization tab.
    • D. Pm.environment.get().

    Why: pm.sendRequest: Sends an additional HTTP request from a script.

  7. 7. "Reads an environment variable in scripts" — in Postman, this describes which of the following?

    • A. Authorization tab.
    • B. Pm.environment.get().correct
    • C. Example response.
    • D. Postman.setNextRequest.

    Why: pm.environment.get(): Reads an environment variable in scripts.

  8. 8. "Saved response used for documentation and mock servers" — in Postman, this describes which of the following?

    • A. Workspace.
    • B. Example response.correct
    • C. Authorization tab.
    • D. Pm.sendRequest.

    Why: example response: Saved response used for documentation and mock servers.

  9. 9. "Parses the response body as JSON in a test script" — in Postman, this describes which of the following?

    • A. Workspace.
    • B. Pm.response.json().correct
    • C. Postman.setNextRequest.
    • D. Global variables.

    Why: pm.response.json(): Parses the response body as JSON in a test script.

  10. 10. Which statement correctly describes Postman?

    • A. The Collection Runner can only execute a single request once.
    • B. Postman Mock Servers return predefined responses based on saved examples.correct
    • C. Postman tests must be written in Python.
    • D. Mock servers in Postman forward every request to the real API.

    Why: Mocks let front-end and test work proceed before the API is ready.

  11. 11. In Postman, where do assertions run after a response?

    • A. Pre-request Script.
    • B. Tests tab.correct
    • C. Params.
    • D. Headers.

    Why: The Tests tab runs after the response; Pre-request runs before.

  12. 12. Which of the following statements about Postman is TRUE?

    • A. Mock servers in Postman forward every request to the real API.
    • B. Data files (CSV/JSON) drive the Collection Runner for data-driven testing.correct
    • C. The Collection Runner can only execute a single request once.
    • D. Pre-request scripts execute after the response is received.

    Why: Each row/entry executes the collection iteration with different data.

  13. 13. Identify the accurate statement about Postman:

    • A. Postman cannot import OpenAPI or Swagger specifications.
    • B. Mock servers in Postman forward every request to the real API.
    • C. Postman tests must be written in Python.
    • D. Postman collections group related requests and can be executed with the Collection Runner.correct

    Why: Collections organize requests and share scripts and variables.

  14. 14. During a code review, a reviewer asks: Which asserts a 200 status in Postman?

    • A. Pm.expect(200).
    • B. Pm.response.to.have.status(200).correct
    • C. Assert(200).
    • D. Status.is(200).

    Why: pm.response.to.have.status(200) checks the HTTP status.

  15. 15. During a sprint demo, a teammate asks: Newman is:

    • A. A mock server.
    • B. The CLI runner for Postman collections.correct
    • C. A load GUI.
    • D. A schema validator only.

    Why: Newman runs Postman collections from the command line (CI).

  16. 16. Which Postman concept matches this description: "Values available across all collections and environments"?

    • A. Global variables.correct
    • B. Example response.
    • C. Workspace.
    • D. Collection Runner.

    Why: global variables: Values available across all collections and environments.

  17. 17. Which Postman concept matches this description: "Executes all requests in a collection, optionally with data files"?

    • A. Pm.response.json().
    • B. Global variables.
    • C. Pm.environment.get().
    • D. Collection Runner.correct

    Why: Collection Runner: Executes all requests in a collection, optionally with data files.

  18. 18. In Postman, which of the following is described as: "Configures auth (Bearer, Basic, OAuth2) applied to requests"?

    • A. Collection Runner.
    • B. Authorization tab.correct
    • C. Postman.setNextRequest.
    • D. Global variables.

    Why: authorization tab: Configures auth (Bearer, Basic, OAuth2) applied to requests.

  19. 19. Which Postman concept matches this description: "Saved response used for documentation and mock servers"?

    • A. Pm.sendRequest.
    • B. Collection Runner.
    • C. Workspace.
    • D. Example response.correct

    Why: example response: Saved response used for documentation and mock servers.

  20. 20. Which Postman concept matches this description: "Controls execution order/branching in a collection run"?

    • A. Workspace.
    • B. Postman.setNextRequest.correct
    • C. Collection Runner.
    • D. Pm.response.json().

    Why: postman.setNextRequest: Controls execution order/branching in a collection run.

Related API Testing topics