350-401 · Question #44
What is the structure of a JSON web token?
The correct answer is A. three parts separated by dots header payload, and signature. JSON Web Token (JWT) Structure Option A is correct because a JWT consists of exactly three Base64Url-encoded parts separated by dots (.): the Header (containing the token type and hashing algorithm), the Payload (containing the claims/data), and the Signature (used to verify the
Question
What is the structure of a JSON web token?
Options
- Athree parts separated by dots header payload, and signature
- Bheader and payload
- Cthree parts separated by dots version header and signature
- Dpayload and signature
How the community answered
(49 responses)- A94% (46)
- B4% (2)
- D2% (1)
Explanation
JSON Web Token (JWT) Structure
Option A is correct because a JWT consists of exactly three Base64Url-encoded parts separated by dots (.): the Header (containing the token type and hashing algorithm), the Payload (containing the claims/data), and the Signature (used to verify the token's integrity). Option B is wrong because it omits the critical Signature component, which is what makes JWTs secure and verifiable. Option C is incorrect because there is no "version" section in a JWT - the three parts are specifically Header, Payload, and Signature. Option D is wrong because it drops the Header, which is essential for defining how the token is encoded and signed.
Memory Tip: Think of a JWT like a "HPS sandwich" - Header, Payload, Signature - all three layers held together by dots (e.g.,
xxxxx.yyyyy.zzzzz). If any layer is missing, the sandwich falls apart!
Topics
Community Discussion
No community discussion yet for this question.