New Year Sale 2026! 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

Actual exam question for The SecOps Group's CAP exam
Question #: 94
Topic #: 26
[All CAP Questions]

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

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.ey

JUYW1I1joiU2vjbB3ZiNo_mn0vNWT4G1-

ATqOTmo7rm70VI12WCdkMI_S1_bPg_G8

Show Suggested Answer Hide Answer
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.'


Contribute your Thoughts:

0/2000 characters
Eulah
2 months ago
Nope, it's not both A and B, just A.
upvoted 0 times
...
Johnetta
2 months ago
Wait, are we sure about that? I thought it could be the payload.
upvoted 0 times
...
Vincent
2 months ago
I agree, it's the header for sure!
upvoted 0 times
...
Lynelle
3 months ago
I thought JWTs had more complex structures, this seems simple!
upvoted 0 times
...
Paola
3 months ago
The highlighted segment is definitely the JWT Header.
upvoted 0 times
...
An
3 months ago
I’m leaning towards option A, but I also recall that the payload has important info too. This is tricky!
upvoted 0 times
...
Ming
3 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.
upvoted 0 times
...
Danilo
4 months ago
I remember practicing a question like this, and I think the first part of a JWT is always the header.
upvoted 0 times
...
Abraham
4 months ago
I think the highlighted segment is part of the JWT Header, but I'm not entirely sure.
upvoted 0 times
...
Vincent
4 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.
upvoted 0 times
...
Shaun
4 months ago
I've seen these JWT questions before. I think I know the answer, but I'll double-check to be sure.
upvoted 0 times
...
Pedro
4 months ago
Okay, let me break this down step-by-step. The key is understanding the structure of a JWT token.
upvoted 0 times
...
Coral
5 months ago
Hmm, I'm not too sure about this one. I'll have to think it through carefully.
upvoted 0 times
...
Helene
5 months ago
This looks like a pretty straightforward JWT question. I'm confident I can figure this out.
upvoted 0 times
...

Save Cancel