Skip to main content

🛡️ 02. AWS DDoS Protection

Understand how AWS protects applications from Distributed Denial-of-Service (DDoS) attacks using built-in and advanced services like AWS Shield, WAF, CloudFront, and Route 53.


🧩 1. What is a DDoS Attack?

A Distributed Denial-of-Service (DDoS) attack occurs when multiple systems flood the target server with requests, overwhelming its capacity and causing downtime.

IAM Roles Example
ComponentDescription
AttackerLaunches control over multiple bots or compromised devices.
BotsSend massive numbers of requests to the application server.
ImpactServer becomes unresponsive → users experience service outages.

🧰 AWS DDoS Protection Layers

AWS offers multiple layers of defense against DDoS attacks.

ServiceRole in Protection
AWS Shield StandardAlways-on, free protection for all AWS customers against common DDoS attacks (L3/L4).
AWS Shield AdvancedPaid ($3,000/month/org) enhanced protection with 24/7 support and cost protection during attacks.
AWS WAF (Web Application Firewall)Protects Layer 7 (HTTP/S) from web exploits like SQL injection & XSS.
Amazon CloudFrontDistributes and caches content globally, absorbing attack traffic at edge locations.
Amazon Route 53DNS service that is globally resilient and integrated with Shield for DDoS mitigation.
Auto ScalingAutomatically scales resources to handle unexpected traffic surges.

🔐 DDoS-Resilient Application Setup

Users → Route 53 (Shield Protected) → CloudFront (Shield + Cache) → AWS WAF → Application Load Balancer → EC2 Instances (Auto Scaling Group)

IAM Roles Example

Benefits:

  • Global edge protection using CloudFront & Route 53
  • Layer 3/4 defense with Shield Standard/Advanced
  • Layer 7 filtering via WAF
  • Scalability during traffic spikes with Auto Scaling

🛡️ AWS Shield

TypeDescription
Shield StandardDefault, free protection for all AWS customers. Defends against SYN/UDP floods, reflection attacks, etc.
Shield AdvancedPaid upgrade for enhanced protection on EC2, ELB, CloudFront, Global Accelerator, and Route 53. Includes 24/7 AWS DDoS Response Team (DRT) and cost protection during attacks.

🌐 AWS Web Application Firewall (WAF)

Protects HTTP/S applications (Layer 7) from malicious traffic.

FeatureDescription
Deploys OnALB, CloudFront, API Gateway
Web ACL (Access Control List)Collection of filtering rules applied to web traffic.
Rule TypesIP-based, Header-based, Body-based, SQL Injection, XSS, Geo-blocking, Size constraints
Rate-based RulesLimit requests per IP to mitigate DDoS (e.g., 5 req/sec).

🧠 5. Exam Tips

ConceptKey Point
Shield StandardEnabled automatically for all AWS accounts.
Shield AdvancedOptional, $3,000/month; includes DRT support and cost protection.
WAFWorks at Layer 7; supports custom filtering rules.
CombinationUse Shield + WAF + CloudFront + Route 53 + Auto Scaling for complete DDoS resilience.

✅ Summary

AWS provides a multi-layered defense approach:

  1. Shield Standard – baseline protection (free).
  2. Shield Advanced – enterprise-grade DDoS defense.
  3. WAF – customizable rules for web exploits.
  4. CloudFront & Route 53 – global edge mitigation.
  5. Auto Scaling – elasticity during high traffic.

Together, these services ensure uptime, performance, and resilience against even large-scale DDoS attacks.