Interview Prep/DevSecOps/Incident Response and Governance

Your public API is hit by a layer 7 DDoS at 2 million requests per minute. How do you respond?

IntermediateScenarioIncident Response and Governance
Answer

Situation read → Application-layer floods look like real traffic, so network-level DDoS protection alone does not stop them.

What I'd do →

  1. Identify patterns in edge logs: path, user agent, ASN, country, header fingerprints (JA3/JA4).
  2. Add WAF rules: rate limits per IP and per path, block or challenge matching signatures, geo rules if justified.
  3. Cache what can be cached at the CDN; serve static error pages from the edge.
  4. Protect the origin: allow traffic only from the CDN (origin access control or header secret).
  5. Engage the provider's DDoS response team if subscribed (AWS Shield Advanced SRT, Cloudflare).

Why → Pushing the decision to the edge stops the load before it reaches compute and databases.

Interview tip → Mention that autoscaling during an attack mostly scales the bill.

All DevSecOps questions

More on Incident Response and Governance