350-401 · Question #894
JSON web tokens (JWT) are used to secure JSON based communications. Which of the following fields make up a JWT? (Choose three.)
The correct answer is A. Header C. Payload E. Signature. JSON Web Tokens (JWTs) are comprised of three distinct parts: a Header containing metadata, a Payload holding the claims, and a Signature for integrity verification.
Question
JSON web tokens (JWT) are used to secure JSON based communications. Which of the following fields make up a JWT? (Choose three.)
Options
- AHeader
- BTrailer
- CPayload
- DSequence number
- ESignature
How the community answered
(53 responses)- A87% (46)
- B9% (5)
- D4% (2)
Why each option
JSON Web Tokens (JWTs) are comprised of three distinct parts: a Header containing metadata, a Payload holding the claims, and a Signature for integrity verification.
The Header contains metadata about the token itself, such as the type of token (JWT) and the cryptographic algorithms used for signing.
A 'Trailer' is not a standard component of a JSON Web Token; it is sometimes associated with other network protocols or data formats.
The Payload contains the claims, which are statements about an entity (typically the user) and additional data, serving as the actual data being transmitted.
A 'Sequence number' is not a standard component of a JSON Web Token; it is typically used in network protocols for ordering packets.
The Signature is used to verify the token's integrity and authenticity by combining the encoded header and payload with a secret key, ensuring the token hasn't been tampered with.
Concept tested: JWT structure and components
Source: https://jwt.io/introduction/
Topics
Community Discussion
No community discussion yet for this question.