Recall & Review
beginner
What is variable scope in Postman?
Variable scope defines where a variable is accessible within Postman. It can be global, collection, environment, data, or local to a request.
Click to reveal answer
beginner
List the order of variable precedence in Postman from highest to lowest.
Local (request) > Data > Environment > Collection > Global variables.
Click to reveal answer
intermediate
Why does a local variable override an environment variable in Postman?
Because local variables have higher precedence, they temporarily override environment variables during request execution.
Click to reveal answer
beginner
How can you set a variable that is accessible across all collections in Postman?
By setting a global variable, which is accessible in all collections and requests.
Click to reveal answer
intermediate
What happens if a variable is defined in both environment and collection scopes with the same name?
The environment variable takes precedence over the collection variable during request execution.
Click to reveal answer
Which variable scope has the highest precedence in Postman?
✗ Incorrect
Local variables are the most specific and override all other scopes during request execution.
If a variable named 'token' exists in both environment and global scopes, which value is used?
✗ Incorrect
Environment variables have higher precedence than global variables.
Where can you set a variable that only applies to a single request in Postman?
✗ Incorrect
Local variables are specific to a single request and override other scopes.
Which scope is shared across all collections in Postman?
✗ Incorrect
Global variables are accessible in all collections and requests.
What is the correct order of variable precedence from highest to lowest?
✗ Incorrect
Local variables have the highest precedence, followed by data, environment, collection, then global.
Explain variable scope and precedence in Postman with examples.
Think about where variables are set and which ones Postman uses first.
You got /4 concepts.
How does Postman decide which variable value to use when multiple scopes have the same variable name?
Remember the hierarchy from most specific to most general.
You got /4 concepts.