Exercises
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
Auto audio on: the next questions will be read aloud when you click Continue.
GET is used to retrieve a representation of a resource without requesting a state change on the server.
201 Created means the request succeeded and resulted in a new resource. The response may also provide its location.
Environments can define different values for variables such as base_url. Selecting another environment changes the active value without rewriting requests.
Postman tests use pm.test to define an assertion and pm.response.to.have.status(200) to check the HTTP status.
A pre-request script runs before dispatch. It can generate data, calculate signatures, or set variables needed by the outgoing request.
A collection groups related API requests and can also contain shared authorization, variables, scripts, examples, and documentation.
Bearer authentication sends a token in the header using the form Authorization: Bearer <token>.
Among these scopes, the local variable is narrowest and takes precedence. It can temporarily override environment and global values.
pm.response.json() parses the response body as JSON. The properties user.id then access the nested value.
Newman is Postman's command-line collection runner. It is useful for automated testing in terminals and CI/CD systems.
CSV or JSON data files support data-driven testing. Each row or object supplies variable values for an individual iteration.
204 No Content indicates successful processing with no response message body, such as after some update or deletion operations.
The response is parsed as JSON, and pm.environment.set stores the token so later requests can reference {{access_token}}.
A mock server returns simulated responses based on request and response examples. Teams can develop and test clients before the real API is available.
A monitor runs a collection on a configured schedule, helping teams track availability, correctness, and performance over time.
pm.response.to.have.jsonSchema(schema) checks whether the response JSON conforms to the supplied schema, including expected types and required properties.
PUT is conventionally idempotent: repeating the same full update should leave the resource in the same final state as sending it once.
The cookie jar manages cookies by domain. It can retain cookies from responses and include applicable cookies in later requests.
Postman Vault stores encrypted secrets locally and prevents their values from being synchronized to the Postman cloud, reducing accidental exposure.
Video Courses
Advanced
recommended
Thousands of online courses in video, ebooks and audiobooks.
To test your knowledge during online courses
Generated directly from your cell phone's photo gallery and sent to your email
Download our app via QR Code or the links below:.
+ 10 million
students
Free and Valid
Certificate
60 thousand free
exercises
4.8/5 rating in
app stores
Free courses in
video and ebooks