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 →
- Identify patterns in edge logs: path, user agent, ASN, country, header fingerprints (JA3/JA4).
- Add WAF rules: rate limits per IP and per path, block or challenge matching signatures, geo rules if justified.
- Cache what can be cached at the CDN; serve static error pages from the edge.
- Protect the origin: allow traffic only from the CDN (origin access control or header secret).
- 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.
More on Incident Response and Governance
You find a ransom note in an S3 bucket and most objects have been deleted. What do you do in the first hour?AdvancedYour company has its first real security incident and people are all talking at once in Slack. How do you organise the response?BeginnerAn EC2 instance is confirmed compromised. A colleague wants to terminate it immediately. What do you do instead?IntermediateFalco reports a reverse shell from a pod in EKS. How do you contain it while keeping evidence?AdvancedAfter a security incident, leadership wants to know who to blame. How do you run the post-incident review?BeginnerYou are asked to run a security tabletop exercise for the engineering team. How do you design it?Intermediate