API Testing · Senior · Question 61 of 75

How do you test that an API never returns data from a cache after a user's permissions change?

Show the answer

Correct answer: Revoke access, then request again and check denial, including via CDN

Explanation

Cached authorization decisions or responses can keep exposing data. Tests change roles mid-session and check every layer.

Further reading

Problem with a question

API Testing · Senior · question 61

Test yourself

Take the API Testing · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz