Bird
0
0

In a distributed authentication model, what is the primary purpose of using tokens such as JWT?

easy📝 Conceptual Q2 of 15
Microservices - Authentication and Authorization
In a distributed authentication model, what is the primary purpose of using tokens such as JWT?
ATo prevent any token expiration issues
BTo store user passwords securely across services
CTo centralize session management in one service
DTo enable stateless verification of user identity by microservices
Step-by-Step Solution
Solution:
  1. Step 1: Understand distributed auth tokens

    Tokens like JWT carry user identity and claims, allowing services to verify without contacting a central server.
  2. Step 2: Analyze options

    B is incorrect because tokens do not store passwords; C is false as distributed auth avoids central session management; D is wrong since tokens can expire.
  3. Final Answer:

    To enable stateless verification of user identity by microservices -> Option D
  4. Quick Check:

    JWT enables stateless identity verification [OK]
Quick Trick: Tokens enable stateless identity checks [OK]
Common Mistakes:
MISTAKES
  • Confusing tokens with password storage
  • Assuming tokens centralize session management
  • Believing tokens never expire

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes