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

What is your WAF strategy for a public API?

AdvancedScenarioSecurity: Firewalls, SGs, NACLs & VPN
Answer

Situation read → Layers of rules with lifecycle management.

What I'd do →

  1. Attach WAF at CloudFront or the ALB with managed core, known-bad-inputs and IP reputation groups
  2. Add rate-based rules by IP and by API key header
  3. Add custom rules for your path and method patterns, and body size limits
  4. Log to S3 or Kinesis and analyze with Athena
  5. Deploy changes through IaC with a count-mode stage and review false positives weekly

Why → A WAF is a tuned control, not a one-time setting.

Interview tip → Say bot and API abuse need behavior-based protection beyond signatures.

All Networking questions Roadmap: Networking for DevOps

More on Security: Firewalls, SGs, NACLs & VPN