Interview › Security & DevSecOps
What is the difference between a WAF, an IDS, and an IPS? [Advanced]
Answer
A WAF filters and protects web application traffic, usually at HTTP layer 7. An IDS detects suspicious activity and alerts. An IPS detects and actively blocks or prevents suspicious traffic. WAF is application-focused; IDS/IPS are broader network or host detection/prevention controls.
Technical explanation
A WAF can block common web attacks such as SQL injection, XSS patterns, bad bots, or protocol anomalies.
An IDS is usually passive and helps with detection and investigation.
An IPS is inline and can block, so tuning is critical to avoid false-positive outages.
Hands-on example
Example: place AWS WAF or Cloudflare WAF in front of a public API to block known malicious request patterns. Use IDS sensors for alerting on lateral movement. Use IPS cautiously on high-confidence signatures where blocking risk is acceptable.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Security & DevSecOps interview questions
- How do you prove to an auditor that security controls are enforced continuously, not just documented? [Advanced]
- Why do you hash and salt passwords rather than encrypt them? [Advanced]
- What is the difference between encoding, encryption, and hashing? [Advanced]
- How do you prevent privilege escalation in a Kubernetes cluster? [Advanced]
- What are Kubernetes Pod Security Standards (privileged, baseline, restricted)? [Advanced]
- What are Linux capabilities, and why drop them in containers? [Advanced]
- What is the difference between authentication and authorization? [Advanced]
- What is certificate management, and how do tools like cert-manager help? [Advanced]