Skip to Content
Asterrr's Handbook
3 · Infrastructure security

AWS Shield and DDoS Resilience

Shield Standard versus Shield Advanced, which resources each protects, and the architecture patterns that make an application resilient to DDoS.

Exam tasks: 3.1 (Shield Advanced)

The decision: is the free automatic baseline enough, or does the requirement name layer 7 mitigation, an expert response team or cost protection?

AWS Shield protects against DDoS attacks. Standard is automatic and free for every customer. Advanced is a paid subscription for named resources that adds detection tuning, WAF integration, response-team help and cost protection.

DNSHTTPSL3 L4 L7cleanClients andattackersRoute 53CloudFrontShieldWAFLoad balancerAuto Scaling
A resilient edge. Route 53 and CloudFront absorb attacks near the viewer, WAF filters layer 7, and only CloudFront reaches the load balancer.

Standard versus Advanced

Shield StandardShield Advanced
CostIncluded for all customersPaid subscription
LayersCommon network and transport layer (3 and 4) attacksLayers 3, 4 and 7
EnablementAutomaticYou must explicitly add each resource, or use a Firewall Manager policy
Best coverageRoute 53 hosted zones, CloudFront, Global Accelerator standard acceleratorsSame, plus Elastic IPs, ALB, Classic LB, NLB (through Elastic IPs), EC2 (through Elastic IPs)
WAFSeparateWAF costs for protected resources are covered up to normal limits. Includes the Anti-DDoS managed rule group
Layer 7 responseNoneAutomatic application layer mitigation. Adds a WAF rule group of 150 WCUs and rate limits known DDoS sources. You choose count or block
DetectionAlways-onHealth-based detection using Route 53 health checks, which cuts false positives
PeopleNoneShield Response Team (SRT), 24x7. Needs Business or Enterprise Support
Proactive engagementNoneSRT contacts you when an associated health check turns unhealthy during an event. Needs health-based detection
MoneyNoneCost protection as service credits for scaling charges caused by an attack
VisibilityBasicReal-time metrics in CloudWatch, event details, DDoS reports
GroupingNoneProtection groups treat related resources as one unit

Exam signal

"DDoS response team", "cost spike from an attack", "automatic layer 7 mitigation" or "proactive engagement": Shield Advanced. "Free, automatic baseline protection": Standard.

Exam trap

Shield Advanced does not protect anything by default. A resource is covered only after you add it to Shield Advanced or include it in a Firewall Manager Shield Advanced policy. An NLB must be associated with an Elastic IP.

Attack layers

LayerExample attacksDefense
3 and 4 infrastructureSYN flood, UDP flood, ICMP flood, reflectionShield, CloudFront, Route 53, Global Accelerator, enough capacity
7 applicationHTTP request floods, DNS query floods, WordPress pingbackWAF rate-based rules, CloudFront caching, bot controls

Infrastructure attacks are high volume. Application attacks can be low volume and still exhaust a backend.

Resilience patterns

  • Reduce the attack surface. Put only CloudFront, load balancers and gateways in public view. Lock origins to CloudFront with OAC or VPC origins. Use security groups and NACLs to cut open ports.
  • Plan for scale. Spread load with CloudFront, Route 53 and Global Accelerator. Auto Scaling and load balancers absorb server capacity attacks.
  • Know normal traffic. Baseline traffic, then use rate-based rules to trim the abnormal.
  • Add a WAF for SQL injection, XSS and bad bots.

Shield Response Team access

  • Grant the SRT access with a role (AWSShieldDRTAccessPolicy) and, if they need your logs, access to the WAF log bucket.
  • Protection groups treat several resources as one for detection, for example all ALBs behind one app.

Further reading

On this page