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.
3 example questions
1. Which scope makes a Postman variable available across every request in any collection?
- A. Local variable.
- B. Environment variable.
- C. Global variable.correct
- D. Collection variable.
Why: Globals are the broadest scope (available everywhere). Order of precedence narrows: local > data > environment > collection > global.
2. Which snippet correctly asserts a 200 status in a Postman Tests script?
- A. Pm.expect(200).
- B. Pm.test('status', () => pm.response.to.have.status(200)).correct
- C. Assert(response==200).
- D. Status.should.be(200).
Why: pm.test wraps an assertion; pm.response.to.have.status(200) checks the HTTP status code.
3. What is Newman in the Postman ecosystem?
- A. A mocking server.
- B. A command-line runner for Postman collections (great for CI).correct
- C. A load-testing GUI.
- D. A schema validator only.
Why: Newman is Postman's CLI collection runner, letting you execute collections in CI/CD pipelines and produce reports.