InterviewStack.io LogoInterviewStack.io

Distributed Systems Security and Trust Questions

Securing communication and trust across a distributed system: service-to-service authentication and authorization, mutual TLS, zero-trust boundaries, secrets management, and multi-party protocols and distributed trust models. Covers securing data in transit and at rest across service boundaries and isolating tenant and network zones. The security-architecture concerns specific to distributed designs.

MediumTechnical
39 practiced

Design an anti-replay mechanism for asynchronous message processing (e.g., Kafka consumers) where retries and duplicates can cause repeated processing. Requirements: idempotent processing, bounded deduplication window, modest coordination cost, and resilience to consumer restarts. Describe the deduplication data structure, sharding strategy, and how to garbage collect old dedup state.

HardSystem Design
44 practiced

Design a distributed policy decision point (PDP) for authorization that must serve 1,000 decisions/sec with 50ms latency SLA across three regions, while preventing privilege escalation during partitions. Describe how to store and replicate policies, caching strategies at local PDPs, decision versioning, how to roll back a bad policy quickly, and operational monitoring and audit logging requirements for compliance.

HardTechnical
38 practiced

Case study: After rotating verification keys for an auth service, downstream services were not updated and 40% of requests started failing authentication for 4 hours, requiring rolling restarts and manual fixes. Analyze possible root causes in the rotation and deployment design. Provide immediate remediation steps to restore availability, and propose long-term engineering changes (automation, preflight checks, canaries, monitoring, and fail-safe verification behavior) to prevent recurrence.

MediumSystem Design
45 practiced

Design a multi-region TLS termination strategy for a global API gateway with three goals: low latency for users, compliance with region-specific key residency rules, and the ability to provide end-to-end encryption when required. Describe where to terminate TLS (edge vs origin), key management approaches (per-region keys, key-wrapping), and the SRE operational model for certificate issuance, rotation, and emergency key compromise.

MediumTechnical
32 practiced

You're evaluating integrating a cloud HSM-backed KMS for signing keys used by microservices. Describe an SRE integration plan covering key hierarchy (root/wrapping/data keys), envelope encryption, replication strategy across regions for DR, latency/performance considerations for signing at 10k req/sec, caching and rate limits, fallback modes when HSM is unavailable, and how to satisfy audit and compliance requirements.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.