Bird
0
0

A microservice is not forwarding the JWT token to downstream services. Which issue is the most probable cause?

medium📝 Analysis Q6 of 15
Microservices - Authentication and Authorization
A microservice is not forwarding the JWT token to downstream services. Which issue is the most probable cause?
AThe JWT token is encrypted and cannot be read
BThe JWT token is expired and cannot be forwarded
CThe downstream service does not support JWT authentication
DThe service code does not copy the 'Authorization' header when making outbound requests
Step-by-Step Solution
Solution:
  1. Step 1: Check token forwarding

    Forwarding requires explicitly copying the 'Authorization' header.
  2. Step 2: Token expiration

    Expiration affects validation, not forwarding.
  3. Step 3: Downstream support

    Does not prevent forwarding, only validation.
  4. Step 4: Encryption

    JWT tokens are base64 encoded, not encrypted.
  5. Final Answer:

    The service code does not copy the 'Authorization' header when making outbound requests -> Option D
  6. Quick Check:

    Forwarding requires explicit header copy. [OK]
Quick Trick: Always copy 'Authorization' header to downstream calls [OK]
Common Mistakes:
MISTAKES
  • Assuming token expiration stops forwarding
  • Believing downstream service support affects forwarding
  • Confusing encoding with encryption

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes