Interview Prep/Networking/Security: Firewalls, SGs, NACLs & VPN

What is a WAF and where do you place it?

BeginnerScenarioSecurity: Firewalls, SGs, NACLs & VPN
Answer

Situation read → It filters HTTP requests for application attacks.

What I'd do →

  1. A WAF inspects layer 7 for SQL injection, XSS, bad bots and rate abuse
  2. Attach AWS WAF to CloudFront, an ALB or API Gateway
  3. Start with managed rule groups (AWSManagedRulesCommonRuleSet) in count mode, then block
  4. Review sampled requests and tune false positives
  5. It does not replace secure code or network controls

Why → It blocks known bad patterns before they reach your application, but only the patterns it knows.

Interview tip → Say count mode first, because false positives can take your own app down.

All Networking questions Roadmap: Networking for DevOps

More on Security: Firewalls, SGs, NACLs & VPN