Bird
0
0

Given a microservice that receives a JWT access token, which step correctly verifies the token's authenticity?

medium📝 Analysis Q4 of 15
Microservices - Authentication and Authorization
Given a microservice that receives a JWT access token, which step correctly verifies the token's authenticity?
AStore the token in a database for later verification
BDecode the token payload and trust its content without verification
CCheck the token signature using the Authorization Server's public key
DSend the token to the Resource Server for validation
Step-by-Step Solution
Solution:
  1. Step 1: Understand JWT token verification

    JWT tokens are verified by checking their signature with the issuer's public key.
  2. Step 2: Identify the correct verification method

    Verifying the signature ensures the token was issued by a trusted Authorization Server and not tampered with.
  3. Final Answer:

    Check the token signature using the Authorization Server's public key -> Option C
  4. Quick Check:

    JWT verification = Signature check with public key [OK]
Quick Trick: Always verify JWT signature with public key before trusting token [OK]
Common Mistakes:
MISTAKES
  • Trusting decoded payload without signature verification
  • Sending token to Resource Server for validation (not standard)
  • Storing tokens for verification instead of verifying signature

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes