Microservices - Authentication and AuthorizationWhich HTTP header should a microservice use to send the JWT token when calling another microservice?AAuthorizationBX-JWT-TokenCCookieDContent-TypeCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify standard headerThe 'Authorization' header is the standard for bearer tokens.Step 2: Other headersHeaders like 'X-JWT-Token' are non-standard; 'Cookie' and 'Content-Type' serve different purposes.Final Answer:Authorization -> Option AQuick Check:JWT tokens use 'Authorization' header with Bearer scheme. [OK]Quick Trick: Use 'Authorization' header for JWT tokens [OK]Common Mistakes:MISTAKESUsing custom headers instead of 'Authorization'Confusing 'Cookie' with token headerMisusing 'Content-Type' header
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