All Questions
Api Gateway hard

You have multi-region API Gateways (US and EU). A US user fails over to the EU region during an outage but receives `401 Unauthorized` for their valid token. What architectural component was likely neglected?

  1. A Global Database Locking: You must lock the user's account in all regions whenever they are logged in.
  2. B The 'Global Statelessness' of the validation mechanism: The Gateway's JWT signing keys (or JWKS endpoints) were not globally synchronized across regions, so the EU Gateway couldn't 'trust' the US token's signature.
  3. C Regional Latency: The EU Gateway was too slow to respond, causing the browser to assume the token was invalid.
  4. D The EU Gateway requires tokens to be prefixed with the `EU#` string to be valid.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions