Microservices - Authentication and AuthorizationA 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 readBThe JWT token is expired and cannot be forwardedCThe downstream service does not support JWT authenticationDThe service code does not copy the 'Authorization' header when making outbound requestsCheck Answer
Step-by-Step SolutionSolution:Step 1: Check token forwardingForwarding requires explicitly copying the 'Authorization' header.Step 2: Token expirationExpiration affects validation, not forwarding.Step 3: Downstream supportDoes not prevent forwarding, only validation.Step 4: EncryptionJWT tokens are base64 encoded, not encrypted.Final Answer:The service code does not copy the 'Authorization' header when making outbound requests -> Option DQuick Check:Forwarding requires explicit header copy. [OK]Quick Trick: Always copy 'Authorization' header to downstream calls [OK]Common Mistakes:MISTAKESAssuming token expiration stops forwardingBelieving downstream service support affects forwardingConfusing encoding with encryption
Master "Authentication and Authorization" in Microservices9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More Microservices Quizzes Authentication and Authorization - API key management - Quiz 5medium Event-Driven Architecture - Event-driven vs request-driven - Quiz 13medium Event-Driven Architecture - Event types (domain, integration, notification) - Quiz 2easy Event-Driven Architecture - Event-driven vs request-driven - Quiz 5medium Monitoring and Observability - Three pillars (metrics, logs, traces) - Quiz 15hard Monitoring and Observability - Metrics collection (Prometheus) - Quiz 1easy Orchestration with Kubernetes - ConfigMaps and Secrets - Quiz 7medium Orchestration with Kubernetes - Horizontal Pod Autoscaler - Quiz 8hard Orchestration with Kubernetes - Why Kubernetes manages microservice deployment - Quiz 15hard Service Mesh - Traffic management (routing, splitting) - Quiz 5medium