🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Security and JWT: all 10 questions

Quiz: Security and JWT · Question 6 of 10

A token's payload is changed by one character in transit. What happens when the API checks it?

A token's payload is changed by one character in transit. What happens when the API checks it?

  1. A.The changed claims are accepted
  2. B.Only the expiry is checked
  3. C.The signature check fails, so the request is rejected
  4. D.The server repairs the token
Answer & explanation

Correct answer: The signature check fails, so the request is rejected

The signature covers the header and payload, so any change breaks it.

Can you get the rest right without peeking?

Take the timed Quiz: Security and JWT quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →