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.
Describe the main OAuth 2.0 flows (authorization code, client credentials, implicit, resource owner password) and when each is appropriate in a microservice ecosystem. Explain PKCE and why it's important, how refresh tokens should be handled, and how you would test OAuth endpoints and flows during an API penetration test.
Describe techniques to discover and exploit SSRF (Server-Side Request Forgery) vulnerabilities in microservice endpoints, including blind SSRF. Explain how SSRF can be used to access cloud metadata services (AWS IMDSv1 vs IMDSv2), retrieve instance or task credentials, and abuse those credentials. List mitigations specific to microservices and service meshes.
Compare the security differences between a monolithic application and a distributed microservices architecture. Discuss how attack surface, authentication and authorization patterns, lateral movement risk, logging/visibility, patching/patch windows, and incident response differ. Provide 3 concrete security controls you would prioritize when migrating a monolith to microservices and explain why.
List essential container image hardening practices for microservices: using minimal base images, removing unnecessary tools (package managers), pinning package and base-image versions, scanning images for CVEs, running as non-root, and avoiding privileged containers. How would you verify these practices during a penetration test or review?
Tell me about a time you discovered a security vulnerability in a distributed system or microservice. Using the STAR method, describe the situation, how you validated and exploited (safely) the issue, how you communicated findings to engineers and stakeholders, and what remediation and impact followed. Highlight any follow-ups you performed to confirm fixes.
Unlock Full Question Bank
Get access to all 35 Zero Trust, Segmentation, and Service-to-Service Security interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.