Interview Prep/Networking/VPC & Network Architecture

How do you restrict egress traffic from private workloads?

IntermediateProductionVPC & Network Architecture
Answer

Default routes through NAT allow everything. Tighten with: security group egress rules limited to known ports and prefix lists, AWS Network Firewall or a proxy with domain allow-lists (SNI filtering), VPC endpoints instead of internet paths, and DNS Firewall to block known bad domains.

Egress control matters most for data exfiltration and for reverse shells after a compromise, and it is usually what auditors ask about.

All Networking questions Roadmap: Networking for DevOps

More on VPC & Network Architecture