Bird
0
0

Which HTTP header should a microservice use to send the JWT token when calling another microservice?

easy📝 Conceptual Q2 of 15
Microservices - Authentication and Authorization
Which HTTP header should a microservice use to send the JWT token when calling another microservice?
AAuthorization
BX-JWT-Token
CCookie
DContent-Type
Step-by-Step Solution
Solution:
  1. Step 1: Identify standard header

    The 'Authorization' header is the standard for bearer tokens.
  2. Step 2: Other headers

    Headers like 'X-JWT-Token' are non-standard; 'Cookie' and 'Content-Type' serve different purposes.
  3. Final Answer:

    Authorization -> Option A
  4. Quick Check:

    JWT tokens use 'Authorization' header with Bearer scheme. [OK]
Quick Trick: Use 'Authorization' header for JWT tokens [OK]
Common Mistakes:
MISTAKES
  • Using custom headers instead of 'Authorization'
  • Confusing 'Cookie' with token header
  • Misusing 'Content-Type' header

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes