Zero Trust, Segmentation, and Service-to-Service Security Questions

Designing network and service-communication trust models where no implicit trust is granted by network location. Covers zero-trust access, microsegmentation and identity-aware perimeters, least-privilege network access, lateral-movement prevention, and segmenting environments to contain blast radius, together with securing service-to-service communication in distributed and microservices architectures: mutual authentication between services, service mesh security, multi-tenancy isolation, east-west traffic, and the security implications of scale and geographic distribution. The architectural trust-boundary pattern and its enforcement across decomposed, high-scale systems, distinct from device-level firewall configuration.

MediumTechnical
40 practiced

Explain the roles of a Policy Decision Point (PDP) and a Policy Enforcement Point (PEP) in a zero-trust system. Walk through a concrete example: a user requests access to an internal API, the PEP collects attributes and forwards them to the PDP, the PDP evaluates policy, and the PEP enforces the decision. What caching and latency considerations does this introduce?

MediumTechnical
35 practiced

What are the trade-offs between enforcing authentication and authorization at a centralized API gateway versus distributing that check to each microservice? Discuss performance, consistency, and what happens when each option fails.

MediumSystem Design
48 practiced

How should an API gateway enforce zero-trust controls at the edge of a system: token validation, scope/claim-based authorization integrated with a policy decision point, input validation, and rate limiting? What must still be enforced by the backend services themselves?

MediumTechnical
41 practiced

Compare the main approaches for authenticating one service to another: mutual TLS via a service mesh with workload identities (e.g. SPIFFE/SPIRE), signed JWTs issued by a central authority, and cloud-native IAM roles or client certificates. What's the trust model, key-rotation story, and operational overhead for each, and how would you decide between them for a multi-team, multi-namespace environment?

MediumTechnical
41 practiced

Compare JSON Web Tokens and opaque tokens for service authentication: local verification versus introspection, how each is revoked, size and transport considerations, and when you'd prefer one over the other. What common mistakes should a reviewer look for when a service validates a JWT (algorithm confusion, missing audience or expiry checks)?

Unlock Full Question Bank

Get access to all 15 Zero Trust, Segmentation, and Service-to-Service Security interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.