Which statement about JSON Web Tokens (JWTs) is true?

Test your Systems Design Concepts knowledge with our comprehensive quiz. Utilize flashcards and multiple choice questions to enhance your study session. Prepare thoroughly with detailed explanations for each answer and ace your examination!

Multiple Choice

Which statement about JSON Web Tokens (JWTs) is true?

Explanation:
JWTs are tokens that carry identity information and permissions inside a self-contained, signed payload. The signature protects the token from tampering, and because the token is signed, a service can verify its validity and trust the embedded claims without hitting a database on every request. This enables stateless authentication: once a token is issued, downstream services can make authorization decisions based on the token’s claims (such as user identity and roles) without a database lookup, as long as the token is valid and not expired. Remember that the token is not encrypted by default—the payload can be read by anyone who has the token—so avoid placing secret data in it unless you use encryption (JWE) or rely on TLS to protect data in transit. TLS remains responsible for securing the transport channel, not for the token’s integrity or confidentiality. Server-side session storage is not required for typical JWT-based workflows.

JWTs are tokens that carry identity information and permissions inside a self-contained, signed payload. The signature protects the token from tampering, and because the token is signed, a service can verify its validity and trust the embedded claims without hitting a database on every request. This enables stateless authentication: once a token is issued, downstream services can make authorization decisions based on the token’s claims (such as user identity and roles) without a database lookup, as long as the token is valid and not expired. Remember that the token is not encrypted by default—the payload can be read by anyone who has the token—so avoid placing secret data in it unless you use encryption (JWE) or rely on TLS to protect data in transit. TLS remains responsible for securing the transport channel, not for the token’s integrity or confidentiality. Server-side session storage is not required for typical JWT-based workflows.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy