0
0
Microservicessystem_design~20 mins

JWT token propagation in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
πŸŽ–οΈ
JWT Propagation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the primary purpose of JWT token propagation in microservices?

In a microservices architecture, why do services propagate JWT tokens between them?

ATo maintain user identity and authorization context across service calls
BTo encrypt all data transmitted between services
CTo store session data on the server side
DTo replace the need for HTTPS communication
Attempts:
2 left
πŸ’‘ Hint

Think about how services know who the user is without re-authenticating.

❓ Architecture
intermediate
1:30remaining
Which component is responsible for issuing JWT tokens in a microservices system?

In a typical microservices setup using JWT, which component usually creates and signs the JWT token?

ADatabase server
BAPI Gateway or Authentication Service
CEach individual microservice
DLoad balancer
Attempts:
2 left
πŸ’‘ Hint

Consider where user login and token creation logically happen.

❓ scaling
advanced
2:00remaining
How does JWT token propagation help scale microservices authentication?

Why does using JWT tokens for authentication improve scalability in microservices compared to centralized session storage?

ABecause JWT tokens automatically refresh themselves without server interaction
BBecause JWT tokens reduce network latency by compressing data
CBecause JWT tokens are stateless and do not require centralized session lookups
DBecause JWT tokens store user passwords securely
Attempts:
2 left
πŸ’‘ Hint

Think about what happens when many services need to check user identity simultaneously.

❓ tradeoff
advanced
2:00remaining
What is a key tradeoff when using JWT token propagation for authorization in microservices?

Which of the following is a significant tradeoff when relying on JWT tokens for authorization across microservices?

ADifficulty in revoking tokens before expiration
BIncreased network bandwidth due to token size
CNeed for synchronous database calls on every request
DRequirement to store tokens in a centralized cache
Attempts:
2 left
πŸ’‘ Hint

Consider what happens if a user’s permissions change or they log out.

❓ component
expert
2:30remaining
In a microservices system, which step correctly describes JWT token propagation during a user request flow?

Consider a user making a request that passes through multiple microservices. Which sequence correctly shows how JWT tokens are propagated?

AClient sends credentials β†’ Each microservice generates its own JWT β†’ Services exchange tokens
BClient sends JWT β†’ Each microservice requests token from Authentication Service β†’ Services verify token
CClient sends JWT β†’ API Gateway strips token β†’ Microservices request token from database
DClient sends JWT β†’ API Gateway verifies and forwards JWT β†’ Each microservice verifies JWT locally
Attempts:
2 left
πŸ’‘ Hint

Think about how tokens are passed and verified without extra calls.