Skip to content
Sharp

Authentication · interview question

Why do teams use JWTs over traditional JSESSIONID cookies in a distributed system in production code?

Multiple choiceEasychapter-17-curatedpremiumauthenticationjson-web-tokens-jwt
Choose one answer
Answer and explanation

Correct answer

A. JWTs eliminate the need for server-side session storage.

Why

JWTs allow for stateless authentication, meaning no session data needs to be stored on the server. This helps with scalability in distributed systems.

Test yourself on Authentication

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

Start free test
All Authentication questions →