500s affect only a few specific customers; everyone else is fine.

AdvancedTroubleshooting5xx errors
Answer

Likely causes → Data-dependent bugs: a record with an unexpected value (null, unicode, very large list), a tenant on a different shard or plan, a feature flag enabled for those tenants, or a poison message that keeps failing.

Diagnose → Filter error logs by tenant ID and endpoint. Pull the failing request's trace and the exact record it loaded. Check feature flag targeting and shard mapping for those tenants.

Fix → Turn off the flag for those tenants, or patch the bad data (with a backup first). Move poison messages to a dead-letter queue.

Prevent → Structured logs with tenant ID on every line, alerts on per-tenant error rate, and input validation at write time.

All Real-World Interview questions Roadmap: Interview readiness

More on 5xx errors