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 →
- A WAF inspects layer 7 for SQL injection, XSS, bad bots and rate abuse
- Attach AWS WAF to CloudFront, an ALB or API Gateway
- Start with managed rule groups (
AWSManagedRulesCommonRuleSet) in count mode, then block - Review sampled requests and tune false positives
- 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.
More on Security: Firewalls, SGs, NACLs & VPN
Security group versus NACL: explain the differences.BeginnerHow do you let only your office IP SSH into a server?BeginnerWhat does it mean that a security group can reference another security group?BeginnerStateful versus stateless firewalls: what is the practical difference?BeginnerWhat is the difference between a site-to-site VPN and a client VPN?BeginnerHow does DNAT or port forwarding work on a Linux gateway?Beginner