Protecting Against DDoS Attacks with AWS Shield
This lesson explains how AWS Shield protects against distributed denial of service (DDoS) attacks. Standard protection is automatic, and Shield Advanced adds expert help, automatic layer 7 mitigation and financial protection.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish Shield Standard from Shield Advanced.
- Identify the features Shield Advanced adds, such as health-based detection and the Shield Response Team.
- Describe architectures that are resilient to DDoS attacks.
Standard or Advanced
Shield Standard is free and automatic for every AWS customer. It protects against the most common network and transport layer (layer 3 and 4) attacks, such as SYN floods and UDP reflection, and is most effective for resources behind CloudFront and Route 53, which absorb attacks at the edge.
Shield Advanced is a paid subscription, charged once per organisation payer with a one-year commitment. It adds enhanced protection for specific resources: CloudFront distributions, Route 53 hosted zones, Global Accelerator accelerators, Application and Classic Load Balancers, and Elastic IP addresses, which cover EC2 instances and Network Load Balancers. Its automatic application layer mitigation creates WAF rules during a layer 7 attack. It also includes the Shield Response Team, health-based detection and cost protection against scaling charges caused by an attack. The following table summarises the tiers.
Shield Standard or Shield Advanced?
Shield Advanced features
AWS Shield Advanced provides features beyond the protection included in Shield Standard. The following list describes them.
- Health-based detection with Route 53 health checks: faster, more accurate.
- Shield Response Team (SRT): 24/7 DDoS experts, once you grant them a role to your WAF configuration.
- Proactive engagement: the SRT contacts you when a health check goes unhealthy during an attack.
- Detailed attack diagnostics.
- Cost protection: credits for scaling charges caused by DDoS.
- WAF and Firewall Manager included for protected resources; use Firewall Manager to apply protection to all accounts.
The following diagram lists, in order, the preparations for AWS Shield Advanced before an attack.

Shield Advanced features
Resilient design
Put CloudFront and Global Accelerator in front, Auto Scaling behind, and minimise the exposed attack surface.
Preparing Shield Advanced before the attack
Shield Advanced is most effective when configured before an attack. For a public website behind CloudFront with a Route 53 health check, the security team protects the distribution, associates the health check for health-based detection, enables automatic layer 7 mitigation, and lets the Shield Response Team act on its behalf:
PROT_ID=$(aws shield create-protection --name web-cf --resource-arn $DISTRIBUTION_ARN \
--query ProtectionId --output text)
aws shield associate-health-check --protection-id $PROT_ID \
--health-check-arn arn:aws:route53:::healthcheck/$HEALTH_CHECK_ID
aws shield enable-application-layer-automatic-response --resource-arn $DISTRIBUTION_ARN --action Count={}
aws shield associate-drt-role --role-arn arn:aws:iam::111111111111:role/ShieldResponseTeamAccess
aws shield enable-proactive-engagementAutomatic mitigation is started in Count mode so the team can review the rules Shield would create; switching to Block is a one-line change. The SRT role carries the managed AWSShieldDRTAccessPolicy, which lets the team inspect and update WAF configuration during an engagement. Without these preparations, the SRT has to wait for access in the middle of the incident.
What does Shield Advanced cost protection provide?
Show answer
Credits for scaling charges caused by a DDoS attack.
Exam Tips
Remember for the exam
- Credits for scaling charges caused by a DDoS attack come from Shield Advanced cost protection.
- DDoS experts available around the clock are the Shield Response Team, with Shield Advanced.
- Automatic layer 7 DDoS mitigation, which creates WAF rules, comes with Shield Advanced.
- Protection against common network-layer DDoS at no cost is Shield Standard.
- To apply Shield Advanced to all accounts, use Firewall Manager.
- For faster detection, associate Route 53 health checks with protections.