Interview Prep/Networking/VPC & Cloud Network Design

Traffic is being rejected somewhere in your VPC. How do you use VPC Flow Logs to find out where?

IntermediateScenarioVPC & Cloud Network Design
Answer

Situation read → Flow logs show ACCEPT or REJECT decisions at the ENI level, which separates security group and NACL drops from other issues.

What I'd do →

  1. Enable flow logs on the VPC or ENI to CloudWatch Logs or S3
  2. Query with Athena or CloudWatch Insights for action = "REJECT" and the target IP and port
  3. Read the line: 2 123456789012 eni-0abc 10.0.1.5 10.0.2.9 51234 5432 6 10 840 1700000000 1700000060 REJECT OK
  4. Check whether the rejection came on the inbound ENI (SG or NACL) and whether the return leg is also rejected (NACL, since SGs are stateful)

Why → Flow logs record per-ENI decisions, so you can pin the drop to a specific hop.

Interview tip → Say flow logs do not show payload and are delayed by minutes, so you pair them with tcpdump for deep dives.

All Networking questions Roadmap: Networking for DevOps

More on VPC & Cloud Network Design