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
37 practiced

You need a secure leader election and state replication scheme for a global control plane spanning five regions, where some nodes may behave maliciously (Byzantine). Choose an algorithm (e.g., PBFT, HotStuff), justify it for this use case, and describe the authentication and cryptographic protections, quorum sizes and performance implications, and the operational monitoring and recovery procedures to detect and handle malicious nodes.

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.

MediumTechnical
38 practiced

Explain the implications of eventual consistency for access-control decisions. Give concrete examples of how a permission revocation or role change can leave a brief window of unauthorized access, propose SRE-level mitigations for that window, and discuss the tradeoffs between performance and security those mitigations introduce.

HardTechnical
39 practiced

Implement a proof-of-concept Python CLI rotate_secret that rotates a symmetric secret across a list of services by calling a provided secret store interface. Requirements: idempotence, canary rollout (rotate for a subset and validate), concurrency-safe updates, and rollback if validation fails. Assume the following interface:

python
class SecretStore:
    def get_secret(self, service_name):
        pass
    def put_secret(self, service_name, secret, version):
        pass
    def validate_service(self, service_name, secret) -> bool:
        pass

Implement rotate_secret(services: List[str], new_secret_generator, canary_fraction=0.05) that performs safe rotation with canaries and supports retry-safe behavior.

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).

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.