Bird
0
0

You need to design a microservices system that supports offline token validation without contacting a central server. Which auth approach fits best?

hard📝 Trade-off Q8 of 15
Microservices - Authentication and Authorization
You need to design a microservices system that supports offline token validation without contacting a central server. Which auth approach fits best?
ACentralized authentication with frequent token refresh
BDistributed authentication using signed JWT tokens
CCentralized authentication with session storage
DNo authentication to reduce latency
Step-by-Step Solution
Solution:
  1. Step 1: Understand offline token validation needs

    Offline validation means microservices verify tokens without calling a central server.
  2. Step 2: Identify suitable auth approach

    Distributed auth with signed JWT tokens allows local verification using token signature and claims.
  3. Final Answer:

    Distributed authentication using signed JWT tokens -> Option B
  4. Quick Check:

    Offline validation = Distributed auth with JWT [OK]
Quick Trick: Offline validation needs signed tokens [OK]
Common Mistakes:
MISTAKES
  • Choosing centralized auth which requires server calls
  • Ignoring token refresh frequency
  • Removing authentication entirely

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes