Interview Prep/AWS/VPC and Networking

How would you secure a VPC against data exfiltration to the internet?

IntermediateScenarioVPC and Networking
Answer

Situation read → Default-deny egress with allow-listed destinations and visibility.

What I'd do →

  1. Remove public IPs, route egress through NAT and AWS Network Firewall using domain-list rules
  2. Tighten SG egress rules
  3. Use Route 53 Resolver DNS Firewall to block unknown domains
  4. Add endpoint policies for S3 to restrict to your buckets
  5. Alert on GuardDuty exfiltration findings

Why → DNS and S3 are the typical exfiltration paths, so control both.

Interview tip → SG default egress allows all; mention that you tighten it.

aws All AWS questions Roadmap: AWS core services

More on VPC and Networking