Distributed Systems Security and Trust Questions

Security problems that exist because a system is distributed: keeping trust state correct while it propagates across many services, clusters and regions. Covers credential, token and certificate revocation under eventual consistency and network partitions; fleet-wide rotation of signing keys, secrets and trust anchors without outages (key rollover and grace windows, canary rotation, recovery from a compromised root); distributed authorization (replicated policy decision points, cached decisions, fail-open versus fail-closed when an auth dependency degrades); propagating caller identity and permissions through service call chains; tamper-evident audit trails across services and regions (hash chains, Merkle proofs, ordering events with imperfect clocks); Byzantine and partially trusted participants; cross-cluster and cross-organization trust federation; securing shared distributed components such as caches and message brokers against injection, replay and cross-tenant access; protecting data in transit across region boundaries; and tenant isolation as a security blast-radius boundary. Steady-state mTLS, service-mesh identity and network segmentation mechanics are covered by zero-trust service-to-service security; single-system cryptography and KMS basics by applied cryptography.

HardTechnical
45 practiced

Design a secure service-to-service authentication and authorization system across multiple clusters and regions. Cover token issuance, short-lived credentials, certificate/key rotation, trust boundaries, least-privilege authorization, fallback when an identity provider is down, and operational practices for key management.

HardSystem Design
33 practiced

Design authentication and authorization propagation across hundreds of microservices. Discuss token formats (JWT vs opaque tokens), token exchange patterns for internal services, token refresh and revocation strategies, minimization of token bloat in headers, and patterns for enforcing fine-grained permissions in downstream services (authorization middleware, PDP/PAP, or policy-as-a-service).

HardTechnical
40 practiced

Compare opaque tokens that require introspection with self-contained JWTs in a global microservices environment that experiences intermittent network partitions. Discuss revocation complexity, cacheability, introspection latency, consistency of revocation decisions, and proposed architectures for both approaches. Provide guidelines for SREs on when to prefer opaque tokens vs JWTs based on trust boundaries and SLOs.

MediumSystem Design
46 practiced

You need to build a distributed auditing pipeline that collects security events from 200 services across three regions at a sustained rate of 100k events per second. Requirements: tamper-evident storage, per-entity ordered audit history, low-latency querying for investigations, seven-year retention, and resilience to partitions. Walk through ingestion, transport, storage choices, cryptographic integrity controls, and how SREs would operate restores and audit queries.

MediumTechnical
45 practiced

Design a key rotation protocol for asymmetric signing keys used to issue tokens across 1,000 services with 200k tokens in flight. Requirements: avoid downtime, let tokens signed with the old key keep verifying for a bounded period after rotation, and eventually retire the old key everywhere. Walk through how you would publish and roll over keys, how verifiers would handle the transition, and how SREs should monitor the rollout and roll back if something goes wrong.

Unlock Full Question Bank

Get access to all 23 Distributed Systems Security and Trust interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.