Exercises

Postman API Testing and Automation

Test your practical knowledge of API development and testing with Postman. This quiz covers HTTP requests and responses, collections, variable scopes, authentication, test scripts, data-driven runs, request chaining, mock servers, monitors, schema validation, cookies, Newman, and secure secret storage. Questions range from foundational concepts to automation techniques used in professional API workflows.

Answer the questions below and check the explanation for each answer.

0/19 answered

  1. 1

    The diagram shows a client retrieving a list of users without changing server data. Which HTTP method is most appropriate?

    Question 1
  2. 2

    A Postman response displays the status code 201 Created. What does this normally indicate?

    Question 2
  3. 3

    Which Postman feature is best for switching the same collection between development and production base URLs?

  4. 4

    Which Postman test correctly verifies that the response status is 200?

  5. 5

    When does a pre-request script execute in Postman?

  6. 6

    What is the primary purpose of a Postman collection?

  7. 7

    The authorization configuration shown produces an Authorization header containing a token prefixed with “Bearer.” Which authentication scheme is being used?

    Question 7
  8. 8

    If global, environment, and local Postman variables share the same name, which one has the highest precedence?

    Question 8
  9. 9

    The response contains {"user":{"id":42}}. Which expression correctly reads the nested id value in a Postman script?

    Question 9
  10. 10

    What is Newman used for in a Postman workflow?

  11. 11

    The collection runner is shown processing several rows from a CSV file. What does each row typically provide?

    Question 11
  12. 12

    Which HTTP status code indicates that a request succeeded but the response intentionally has no body?

  13. 13

    A login response returns an access_token that the next request must use. Which script correctly stores it as an environment variable?

    Question 13
  14. 14

    What does a Postman mock server primarily provide?

  15. 15

    Which Postman feature runs collections on a schedule from Postman's cloud infrastructure to check API behavior over time?

  16. 16

    Which assertion is designed to validate a JSON response against a schema object in a Postman test?

  17. 17

    The diagram shows the same full replacement request sent twice to one resource, with both executions leaving the server in the same final state. Which HTTP method is conventionally designed for this behavior?

    Question 17
  18. 18

    What is the purpose of Postman's cookie jar?

  19. 19

    Which Postman feature is most appropriate for storing a sensitive API credential locally without syncing its value to the Postman cloud?

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate