Interview Q&A · questions with model answers
Web Security & WAF Interview Questions
Part of the study plan for: DevOps Engineer · Cloud Engineer · Backend Engineer · Frontend Engineer · Full Stack Engineer · QA Engineer / SDET
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Most asked How do rate-limiting algorithms work (fixed window, sliding window, token bucket)?
Fixed window counts requests per time window (simple, bursty at boundaries); sliding window smooths this by weighting the previous window or logging timestamps; token bucket refills tokens at a…
-
How do you handle file uploads securely?
Limit size, validate type by content (magic bytes), generate server-side names, store outside the web root (or in object storage) with no execute permissions, scan for malware where needed,…
-
How should applications manage secrets?
Keep secrets out of source code and images, inject them at runtime from a secrets manager (Vault, AWS Secrets Manager, GCP Secret Manager, Kubernetes Secrets with encryption), grant least-privilege…
-
How do cookie prefixes like __Host- and __Secure- improve security?
Browsers enforce rules for prefixed cookies: Secure- cookies must be set with Secure over HTTPS; Host- cookies must also have Path=/ and no Domain, so they're locked to the exact host and can't be…