Design network microsegmentation for a platform with 200 services.
AdvancedScenarioSecurity: Firewalls, SGs, NACLs & VPN
Answer
Situation read → Thousands of SG rules can't be hand-managed; you need identity or label based policy.
What I'd do →
- Use Kubernetes NetworkPolicies with default-deny per namespace, then allow by labels
- Use Cilium or Calico for L3/L4 and L7 policy, and identity-based rules
- Add a mesh for mTLS and authorization policies by service identity
- Outside Kubernetes use SGs referencing SGs per service
- Observe actual flows with Hubble or flow logs before enforcing
- Roll out in audit mode
Why → Policy by identity survives IP churn; policy by IP does not.
Interview tip → Say you observe first, enforce second.
More on Security: Firewalls, SGs, NACLs & VPN
Security group versus NACL: explain the differences.BeginnerHow do you let only your office IP SSH into a server?BeginnerWhat does it mean that a security group can reference another security group?BeginnerStateful versus stateless firewalls: what is the practical difference?BeginnerWhat is a WAF and where do you place it?BeginnerWhat is the difference between a site-to-site VPN and a client VPN?Beginner