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

Write a Kubernetes NetworkPolicy (or set of policies) that restricts pod-to-pod traffic so that only the intended namespaces and ports can talk to each other, with everything else denied by default. Explain how enforcement differs across CNI plugins and the risk of relying on the cluster's default allow-all behavior.

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

MediumTechnical
35 practiced

Write a policy-as-code snippet (Open Policy Agent / Rego, or an equivalent policy language of your choice) that authorizes a service-to-service request only when: the caller's JWT audience claim matches the target service, the caller's role is on that service's access list, and the caller's device posture score meets a minimum bar. Explain what each clause is protecting against.

EasyTechnical
46 practiced

What does a service mesh provide for security, and which responsibilities does it take off individual services? Cover mutual TLS, service identity, traffic policy enforcement, and observability, and mention a scenario where adopting a mesh adds more complexity than it's worth.

HardTechnical
47 practiced

In a large environment where many teams author their own microsegmentation policies independently, policies will conflict. What data structure would you use to represent the rule set, what algorithm would detect a conflict between two rules, and how would you resolve it (priority order, most-specific-wins, explicit override)?

Unlock Full Question Bank

Get access to all 12 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.