Skip to content
Sharp

Spring Security · interview question

Why is role=CUSTOMER in a valid JWT often insufficient to authorize GET /orders/123?

Multiple choiceMediumchapter-17-curatedpremiumspring-securityauthorization
Choose one answer
Answer and explanation

Correct answer

A. The system may still need ownership, workflow-state, or tenant checks for that specific order

Why

Authorization often depends on more than a coarse role. A customer can be authenticated yet still be forbidden from reading someone else's order or refunding an order in the wrong state.

Test yourself on Spring Security

A free test with instant, explained results. No account needed.

Start free test
All Spring Security questions →