Scrivio Interview library
LeadershipAdvanced6 min read · updated 12 November 2026

Your security policy says tokens must be revocable, but your architecture relies on stateless JWT validation everywhere. How would you reconcile the policy and the architecture?

We reconcile them by turning "revocable" into a number that security agrees to, such as "a revoked session stops working within 15 minutes, and within seconds for payments". Short access tokens and revocable refresh tokens meet that for most APIs without changing the stateless design, and introspection or deny-list checks cover only the high-risk operations. Then we document and drill the mechanisms, and update the policy wording so it says what the system actually guarantees.

Why this question is asked

Policies and architectures drift apart quietly. A policy written years ago says tokens must be revocable; meanwhile the platform moved to stateless JWT validation because it scales and removes the identity provider from every request. An auditor or a new security lead then reads both and calls it a contradiction. Interviewers ask this leadership question because the answer is not a technical trick: it is how to turn an absolute statement into a measurable requirement, meet it at a reasonable cost, and leave behind a policy that is true. In this answer, we will look at why the conflict is smaller than it seems, agree the revocation delay, meet it with layered mechanisms, prove it with drills, and rewrite the policy.

1Why the Conflict Is Smaller Than It Looks

Stateless validation means each service checks a JWT's signature and claims locally, without asking the identity provider. So a revoked token keeps working until its exp (expiry) time. That sounds like "not revocable", but in practice it means "revocable with a delay equal to the access token lifetime". With 10-minute tokens and refresh tokens that the identity provider checks on every use, a revoked session stops producing new access tokens immediately and its last access token dies within 10 minutes.

So the real question is not whether tokens are revocable, but how fast revocation must take effect, and for which operations. That is a question security can answer with a number, and once it has a number, the architecture can be measured against it.

2Agreeing the Acceptable Delay

The conversation with security starts from scenarios rather than from the policy text: an employee is dismissed, a customer reports a stolen phone, fraud detects an account takeover, a partner's credentials leak. For each, we ask how long continued access would be tolerable and what the damage would be in that window.

Typically the answers split into two groups. For most APIs, such as reading a profile or browsing orders, a delay of 10 to 15 minutes is acceptable. For a few operations, such as payments, changes to credentials or bulk data export, the requirement is near-immediate. Writing both numbers down, with the scenarios that justify them, turns an absolute rule into an explicit, testable requirement that everyone has agreed to.

Agreed revocation targets
OperationsTarget delayMechanism
Most APIs (read, browse, update profile)15 minutesShort access tokens + revoked refresh tokens
Payments, credential changes, data exportUnder 1 minuteIntrospection or deny-list check
Admin and internal tools5 minutes5-minute tokens + revoked sessions
Service-to-service15 minutesShort client-credential tokens, rotate client keys

3Meeting the Target for Most APIs

For the general case, the stateless design stays as it is, with two conditions. Access tokens must be short, no longer than the agreed delay, for example 10 minutes for a 15-minute target to leave margin. And refresh tokens must be revocable at the identity provider, with rotation and reuse detection for public clients, so that revoking a user's sessions immediately stops new access tokens from being issued.

The worst case is then easy to state: a revoked session can still use its current access token for at most 10 minutes. No service changes, no extra calls per request. This covers the large majority of traffic at almost no cost, which is why it is the default.

4Adding Fast Checks Only Where Risk Is High

For the high-risk operations, we add state, but only there. One option is token introspection: the payment service calls the identity provider's introspection endpoint to ask whether the token is still active, perhaps caching the answer for a few seconds. Another is a deny list: the identity provider or fraud tool publishes revoked user ids with a not-before time, services keep a local copy refreshed every few seconds, and tokens issued before that time are rejected.

The point of limiting this to a few operations is cost. Introspection on every request of every service would put the identity provider on the critical path of the whole company and change its capacity needs completely. Applied to payments and credential changes, it is a small, justified load.

Step throughChoosing the check for an endpoint
  1. Endpoint is high risk?Payments, credentials, export
    YesIntrospection or deny listNoLocal JWT validation only
  2. Access token within agreed lifetime?10 min for 15 min target
    YesMeets targetNoShorten token lifetime
  3. Refresh tokens revocable at IdP?Rotation for public clients
    YesPolicy metNoFix before sign-off

3 steps in order. Play them, or step through them one at a time.

5Documenting and Drilling the Mechanisms

A requirement nobody tests tends to erode. So the mechanisms are written down where engineers and auditors can find them: which lifetimes are configured, which endpoints use introspection, how a revocation is triggered, and who can trigger it. Then they are tested with drills. In staging, a script signs in a test user, revokes the session and measures how long until each API rejects it; the numbers go on a dashboard next to the targets. In production, the same drill runs with a dedicated test account on a schedule.

The drills also catch drift. When a team raises its token lifetime to an hour to reduce refresh traffic, the drill turns red before an auditor notices.

6Updating the Policy Wording

The last step is to change the policy so it describes what the system guarantees. "Tokens must be revocable" becomes something like "A revoked session must stop granting access within 15 minutes for general APIs and within 1 minute for payments and credential changes. These limits are verified by automated drills each month." That wording is honest, measurable and auditable.

This matters beyond tidiness. A policy that the system cannot meet trains people to ignore policies, and it gives auditors a finding every year. A policy that matches reality, with evidence attached, ends the argument and makes future changes, such as tightening a target, a normal engineering task.

7Follow-up questions

What if security insists on immediate revocation everywhere?

Then we show the cost: introspection or deny-list checks on every request, more infrastructure and a central dependency for all traffic. Usually, with the scenarios and costs on the table, security agrees that immediate revocation matters for a few operations. If they still require it everywhere, a deny list with local caching is the cheaper way to provide it.

Is a deny list not just sessions again?

Partly, but much smaller. It only holds recent revocations, and entries expire after the maximum token lifetime, so it stays tiny and services read it locally. A session store holds every active session and is consulted on every request.

Who owns the policy change?

Security owns the policy, so they make the change, with architecture providing the mechanisms and the drill evidence. The point is that the new wording comes from an agreement, not from engineering lowering the bar.

8Conclusion

In this answer, we reconciled a revocation policy with stateless JWTs by making revocation a measurable delay agreed with security. Short access tokens and revocable refresh tokens meet a minutes-level target for most APIs, and introspection or deny lists provide near-immediate revocation for high-risk operations only. Documentation and regular drills prove the targets, and the policy wording is updated to state what the system actually guarantees.

What to say in the interviewAbout 90 seconds aloud

Open with

I would start by pointing out that stateless JWTs are not unrevocable, they are revocable with a delay equal to the access token lifetime, as long as refresh tokens can be revoked at the identity provider.

Then, if they want more

So the real question is how fast revocation has to take effect. I would sit down with security and go through scenarios like a dismissed employee, a stolen phone or an account takeover, and agree explicit targets. Typically that ends up as something like fifteen minutes for most APIs and under a minute for payments and credential changes.

For the general case, we meet the target with access tokens of ten minutes and refresh tokens that are rotated and revocable, which needs no change to services. For the high-risk operations only, we add introspection or a deny-list check with a few seconds of local caching, so the identity provider is not on the path of every request.

Then I would make it provable: document which mechanism protects which endpoint, and run automated drills that revoke a test session and measure how long each API keeps accepting it, with the results on a dashboard.

Finally, I would ask security to update the policy wording so it states those targets and the verification, because a policy that says something the system cannot do just produces audit findings and teaches people to ignore it.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
RFC 7519, JSON Web Token
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Your security policy says tokens must be revocable, but your architecture relies on...": https://scrivio-interview-library.netlify.app/spring-boot/jwt/cec06b0764/