Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

The SecOps Group CAP Exam - Topic 26 Question 94 Discussion

Posted by Shala on Apr 29, 2025 at 04:43 PM

In the context of the following JWT token, which of the following statements is true?

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.ey

JUYW1I1joiU2vjbB3ZiNo_mn0vNWT4G1-

ATqOTmo7rm70VI12WCdkMI_S1_bPg_G8

Suggested Answer: B

A JSON Web Token (JWT) consists of three parts separated by dots (.): Header, Payload, and Signature. Each part is Base64Url-encoded. The given JWT is:

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJUYW1I1joiU2vjbB3ZiNo_mn0vNWT4G1-ATqOTmo7rm70VI12WCdkMI_S1_bPg_G8

The first part (eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9) is the Header, which typically includes metadata like the algorithm (alg) and type (typ). Decoding it gives: {'alg':'HS256','typ':'JWT'}.

The second part (eyJUYW1I1joiU2vjbB3ZiNo_mn0vNWT4G1-ATqOTmo7rm70VI12WCdkMI_S1_bPg_G8) is the Payload, which contains claims (e.g., user data, expiration). The highlighted segment corresponds to this second part, making it the Payload. Decoding it (though incomplete due to truncation) would reveal claims in JSON format.

The third part (not fully shown) would be the Signature, used to verify the token's integrity.

Option A ('The highlighted segment of the token represents a JWT Header'): Incorrect, as the highlighted segment is the second part, which is the Payload.

Option B ('The highlighted segment of the token represents a JWT Payload'): Correct, as the highlighted segment is the Payload portion of the JWT.

Option C ('Both A and B are correct'): Incorrect, as only B is correct.

Option D ('None of the above'): Incorrect, as B is correct.

The correct answer is B, aligning with the CAP syllabus under 'JWT Security' and 'Token-Based Authentication.'


Get Premium CAP Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
14 comments · newest first
EU
Eulah 10 months ago
Nope, it's not both A and B, just A.
JO
Johnetta 10 months ago
Wait, are we sure about that? I thought it could be the payload.
VI
Vincent 10 months ago
I agree, it's the header for sure!
LY
Lynelle 10 months ago
I thought JWTs had more complex structures, this seems simple!
PA
Paola 10 months ago
The highlighted segment is definitely the JWT Header.
AN
An 11 months ago
I’m leaning towards option A, but I also recall that the payload has important info too. This is tricky!
MI
Ming 11 months ago
I'm a bit confused; could it be that both A and B are correct? I feel like I need to double-check the structure of JWTs.
DA
Danilo 11 months ago
I remember practicing a question like this, and I think the first part of a JWT is always the header.
AB
Abraham 11 months ago
I think the highlighted segment is part of the JWT Header, but I'm not entirely sure.
VI
Vincent 12 months ago
I'm a bit confused by the formatting of the token. I'll need to review my notes on JWT to approach this properly.
SH
Shaun 12 months ago
I've seen these JWT questions before. I think I know the answer, but I'll double-check to be sure.
PE
Pedro 12 months ago
Okay, let me break this down step-by-step. The key is understanding the structure of a JWT token.
CO
Coral 1 year ago
Hmm, I'm not too sure about this one. I'll have to think it through carefully.
HE
Helene 1 year ago
This looks like a pretty straightforward JWT question. I'm confident I can figure this out.
0/2000 characters

Save Cancel