Bird
0
0

A microservice system uses centralized authentication but experiences frequent downtime of the auth service. What is the best way to fix this issue?

medium📝 Conceptual Q14 of 15
Microservices - Authentication and Authorization
A microservice system uses centralized authentication but experiences frequent downtime of the auth service. What is the best way to fix this issue?
AUse plain text passwords for faster login
BRemove authentication completely
CImplement caching of authentication tokens in services
DMake each service validate tokens independently without central auth
Step-by-Step Solution
Solution:
  1. Step 1: Identify problem with centralized auth downtime

    Downtime of the central auth service causes failures in login or token validation.
  2. Step 2: Choose a solution to reduce dependency

    Caching tokens locally in services reduces calls to the central auth, improving availability without removing auth or security.
  3. Final Answer:

    Implement caching of authentication tokens in services -> Option C
  4. Quick Check:

    Fix downtime by caching tokens [OK]
Quick Trick: Cache tokens to reduce auth service calls [OK]
Common Mistakes:
MISTAKES
  • Removing authentication entirely
  • Switching to insecure plain text passwords
  • Switching to distributed auth without planning

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes