Protecting Against DDoS Attacks with AWS Shield
This lesson explains how AWS Shield protects applications against distributed denial of service (DDoS) attacks. Shield Standard is automatic and free; Shield Advanced adds broader protection, expert support and cost protection.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish Shield Standard from Shield Advanced.
- Describe a DDoS-resilient architecture.
Shield Standard and Advanced
AWS Shield protects against distributed denial-of-service (DDoS) attacks in two tiers. Shield Standard is free and automatic for every customer. It defends against the most common network and transport layer attacks, such as SYN floods and UDP reflection, and gives the strongest protection to applications behind CloudFront and Route 53.
Shield Advanced is a monthly subscription for an organisation, enabled on chosen resources: Elastic IP addresses, load balancers, CloudFront distributions, Global Accelerator and Route 53 hosted zones. It adds health-based detection, which uses Route 53 health checks to tell an attack from a legitimate surge, near real-time visibility of attacks, and automatic mitigation of application layer attacks by creating AWS WAF rules. Subscribers can engage the Shield Response Team at any time, and DDoS cost protection credits charges for scaling caused by an attack. The following table summarises the two tiers.
Shield Standard or Advanced?
DDoS-resilient architecture
Shield protects against distributed denial-of-service (DDoS) attacks, but resilience also comes from architecture. Traffic should be served through Amazon CloudFront and Amazon Route 53, which absorb attacks at edge locations across a large global network before they reach the application. Application Load Balancers and Auto Scaling behind them absorb load that does reach the Region.
The attack surface should be kept small: instances in private subnets with no public IP addresses, and security groups that admit traffic only from the load balancer. AWS WAF rate-based rules protect against HTTP floods, which operate at the application layer. For applications that do not use HTTP, AWS Global Accelerator provides edge protection with static IP addresses.
The following diagram shows the layers of a DDoS-resilient web application.

A DDoS-resilient design
Preparing for DDoS attacks
An online ticketing company expects DDoS attacks during major sales and has 30 AWS accounts.
| Need | Solution |
|---|---|
| Basic protection against network floods | Shield Standard: automatic and free |
| Protection against large attacks with expert help and cost protection | Shield Advanced on CloudFront, Route 53 and the ALBs |
| Absorb attacks away from the application | CloudFront and Route 53 at the edge; Auto Scaling behind |
| Apply the same WAF rules and Shield Advanced in all 30 accounts | AWS Firewall Manager policies |
Firewall Manager also applies protection to new accounts and resources automatically, so a team launching a new ALB next month is protected without anyone remembering to configure it.
Which DDoS protection does every AWS customer receive at no extra cost?
Show answer
Shield Standard, which protects against common network and transport layer attacks. Shield Advanced adds protection for specific resources, the Shield Response Team and cost protection.
Exam Tips
Remember for the exam
- For large DDoS attacks, with expert help and cost protection, use Shield Advanced.
- Basic DDoS protection at no cost is Shield Standard, which is automatic.
- To recover charges caused by scaling during a DDoS attack, use Shield Advanced DDoS cost protection.
- A DDoS-resilient design puts CloudFront and Route 53 at the edge and keeps instances private.