Skip to content
tezvyn:

DDoS Mitigation: Surviving Traffic Floods

Source: learn.microsoft.comMediumHow cards are made

DDoS Mitigation: Surviving Traffic Floods

DDoS mitigation acts like a smart bouncer, learning your app's normal traffic to block malicious floods. It's used for any public internet endpoint, filtering attacks at the network and transport layers (L3/L4).

Why it exists

A Distributed Denial of Service (DDoS) attack attempts to exhaust an application's resources with a flood of malicious traffic, making it unavailable to legitimate users. DDoS mitigation services were created to absorb and filter these massive attacks at the network edge, before they can overwhelm your servers, databases, or other infrastructure.

The mental model

Think of DDoS protection as an intelligent bouncer for your application's front door. It spends its time learning what your regular crowd looks like—how many people arrive at once and how they behave. When a massive, coordinated mob (the DDoS attack) tries to rush the door, the bouncer instantly identifies the abnormal pattern and blocks them, while still letting your legitimate customers through.

How it works

DDoS mitigation works through a continuous, automated process. First, it performs always-on traffic monitoring, observing your application's traffic patterns 24/7. Second, it uses intelligent traffic profiling, a machine learning process that learns your app's typical traffic over time and creates a profile of what's normal. This profile adapts as your traffic changes. Third, it provides automatic mitigation. When incoming traffic deviates from the profile and exceeds a policy threshold, the service instantly reroutes and scrubs the traffic, dropping the attack packets while forwarding the legitimate ones. This protection is applied at the network (Layer 3) and transport (Layer 4) layers.

When to use it

Use DDoS mitigation for any endpoint that is publicly reachable through the internet, especially for business-critical applications where availability is paramount. It is essential for protecting virtual networks and public IPs from high-volume network-layer attacks like UDP floods or TCP SYN floods that aim to saturate your bandwidth or connection tables.

When not to use it

Do not rely on it as your sole security measure. Standard DDoS protection is not designed to stop sophisticated application-layer (Layer 7) attacks. These attacks, like slow-rate API abuse or credential stuffing, can look like legitimate traffic. For these threats, you must use a Web Application Firewall (WAF) in addition to DDoS mitigation.

One canonical example

A popular e-commerce site running on Azure is targeted by a massive TCP SYN flood attack on Black Friday. The goal is to exhaust the web servers' connection capacity. Azure DDoS Protection, which is enabled on the site's virtual network, detects the attack as the rate of SYN packets far exceeds the auto-configured threshold. It automatically begins filtering the malicious packets, allowing legitimate customer connections to proceed to the servers, preventing an outage during a peak sales period.

Interview question

Which type of attack is standard DDoS mitigation least effective at preventing on its own?

  • a.Credential stuffing attacksCorrect
  • b.TCP SYN floods
  • c.Network bandwidth saturation attacks
  • d.UDP floods
Why?

Standard DDoS mitigation is designed to protect against network (L3) and transport (L4) layer attacks like SYN or UDP floods that aim to exhaust resources. It is not effective against application-layer (L7) attacks such as credential stuffing, which require a Web Application Firewall (WAF) for protection.

Just read this? Test yourself on what you have been reading.

Read the original → learn.microsoft.com

You just looked this up. Could you explain it out loud?

That is the part interviews actually test. Tezvyn takes questions like this one and gives you what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles