Network Security Interview Questions
Core Concepts
Q: Defense in depth — network security layers.
No single control = security. Multiple layers mean attackers must defeat each.
Q: Firewalls — types.
Packet filter (L3/L4): Match by IP, port, protocol. Simple, fast. No state.
Stateful inspection (L4): Track connection state. Auto-allow return traffic.
Application-aware (L7/NGFW): Deep packet inspection. Identify apps by behaviour, not just port. Decrypt SSL for inspection.
WAF: HTTP-specific. Block OWASP attacks (SQLi, XSS, CSRF). Rules + ML.
Q: IDS vs IPS.
| IDS | IPS |
|---|
|---|---|---|
| Mode | Monitor and alert | Inline, block threats |
|---|---|---|
| Response | Alert only | Drop malicious traffic |
| Risk | No false-block risk | False positive = blocked legitimate traffic |
| Placement | Out-of-band (mirror port) | Inline (in traffic path) |
Detection methods:
Q: TLS/SSL — key concepts.
TLS = Transport Layer Security. Provides: encryption (confidentiality), integrity (MACs), authentication (certificates).
Certificate chain of trust:
Browser validates: cert issued by trusted CA? domain matches? not expired? not revoked (OCSP)?
Certificate pinning: App explicitly trusts only specific certificate/key. Prevents MitM even with compromised CA.
TLS 1.3 improvements over 1.2: 1-RTT handshake (vs 2-RTT), mandatory forward secrecy (ECDHE), removed weak ciphers.
Q: Network segmentation and zero trust.
VLAN: Layer 2 segmentation. Logically separate broadcast domains. Traffic between VLANs goes through router/firewall — enforces policies.
Micro-segmentation: Fine-grained policies between individual workloads (not just VLANs). Often software-defined (NSX, Kubernetes NetworkPolicy, security groups).
Zero Trust Network Access (ZTNA): Replace VPN. Users authenticate per-application. No implicit trust from network location. Works for remote/hybrid.

