advancedSpring Security337 of 469
API Gateway generates a JWT and forwards the request to microservice A. Should A validate the token again?
Tests whether you argue yes -- trusting the gateway blindly creates a security hole if internal network traffic is ever compromised or misrouted -- so each service should independently verify the signature/expiry, following a zero-trust internal-network posture rather than perimeter-only security.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response