AWS · explainer · checked November 4, 2026
AWS Shield vs WAF: what each one protects and how they work together
AWS Shield protects against Distributed Denial of Service (DDoS) attacks, which flood a target with traffic. Shield Standard is automatic and free; Shield Advanced is a paid subscription for chosen resources. AWS WAF is a web application firewall: you write rules that allow, block or count individual HTTP(S) requests. Shield is about volume, WAF is about what a request contains. They are often used together.
Side by side
| AWS Shield Standard | AWS Shield Advanced | AWS WAF | |
|---|---|---|---|
| Main job | Defends against common network and transport layer DDoS attacks | Expanded DDoS protection for resources you choose, with expert help | Inspects HTTP(S) requests and applies your rules |
| Layers | Layer 3 and 4 (the most common attacks) | Layer 3, 4 and 7 | Layer 7 (web requests) |
| Setup | None; provided automatically | Subscribe, then add protection to each resource | Create a web ACL, add rules, associate it with a resource |
| Cost | No additional charge | Subscription plus data transfer out usage fees | Per web ACL, per rule and per million requests inspected |
| Protects | All AWS customers; strongest for Route 53, CloudFront and Global Accelerator | CloudFront, Route 53 hosted zones, Global Accelerator, Elastic IP addresses and EC2 instances behind them, Application and Classic Load Balancers, Network Load Balancers | CloudFront, API Gateway REST APIs, Application Load Balancers, AppSync, Cognito user pools, App Runner, Verified Access, Amplify, Bedrock AgentCore Gateway |
Two different problems
A Distributed Denial of Service (DDoS) attack uses many compromised systems to flood a target so real users cannot reach it. The requests do not have to be malicious in content. The volume is the attack.
A web application firewall deals with a different problem: requests that are individually harmful or unwanted, such as ones that carry an exploit pattern, come from an address you want to block, or arrive at a rate you want to limit.
AWS Shield addresses the first problem. AWS WAF addresses the second. That is why the two are compared so often and why they are not rivals.
What AWS Shield does
AWS says Shield Standard and Shield Advanced protect AWS resources against DDoS attacks at the network and transport layers (layers 3 and 4) and the application layer (layer 7). The attack classes it describes are:
- Network volumetric attacks (layer 3), which try to saturate the capacity of a network or resource.
- Network protocol attacks (layer 4), such as a TCP SYN flood, which exhaust connection state on servers, load balancers or firewalls.
- Application layer attacks (layer 7), such as a flood of valid-looking web requests.
**Shield Standard** is provided automatically, at no extra charge, to every AWS customer. It defends against the most common network and transport layer attacks. AWS says you get particular benefit with Amazon Route 53 hosted zones, Amazon CloudFront distributions and AWS Global Accelerator standard accelerators, which receive comprehensive protection against all known network and transport layer attacks. There is nothing to switch on.
**Shield Advanced** is a subscription. It gives expanded DDoS protection, but only for resources you explicitly add, or that an AWS Firewall Manager policy adds for you. AWS states that it does not protect your resources automatically. The resource types are CloudFront distributions, Route 53 hosted zones, Global Accelerator standard accelerators, Amazon EC2 Elastic IP addresses (and the EC2 instances behind them), Application Load Balancers, Classic Load Balancers, and Network Load Balancers through Elastic IP addresses.
What Shield Advanced adds
The Shield Advanced documentation lists these capabilities:
- **Automatic application layer mitigation.** Shield Advanced can enforce AWS WAF rate limiting on requests from known DDoS sources and add and manage custom AWS WAF rules in response to a detected attack. You can set it to count or to block.
- **Health-based detection.** Amazon Route 53 health checks feed event detection, which helps avoid false positives and speeds up mitigation.
- **Protection groups** that treat several protected resources as one unit for detection and mitigation.
- **Visibility.** Real-time metrics and reports on events and attacks through the console, the API and Amazon CloudWatch.
- **AWS Shield Response Team (SRT).** You can contact the SRT during an attack that affects availability, and work with it on custom mitigations. This requires the Business Support or Enterprise Support plan. With proactive engagement, the SRT contacts you if the health check on a protected resource turns unhealthy during an event.
- **Cost protection.** Some protection against bill spikes caused by an attack on protected resources, given as Shield Advanced service credits.
- **Firewall Manager policies** for Shield Advanced at no additional charge.
You pay one monthly subscription fee for all accounts in a consolidated billing family, plus usage fees based on data transferred out. See the Shield pricing page for current amounts.
What AWS WAF does
AWS WAF lets you control how a protected resource responds to HTTP(S) requests. You create a web access control list (web ACL), add rules to it, and associate it with a resource. The resource forwards requests to AWS WAF, which checks them against the rules. Each rule has criteria (for example an IP address range, or the value of a query string) and an action: allow, block, count, or run a CAPTCHA or challenge check. The web ACL also has a default action for requests no rule matched.
The resource types AWS WAF can protect include CloudFront distributions, Amazon API Gateway REST APIs, Application Load Balancers, AWS AppSync GraphQL APIs, Amazon Cognito user pools, AWS App Runner services, AWS Verified Access instances, AWS Amplify and Amazon Bedrock AgentCore Gateway. A Network Load Balancer or a bare Elastic IP address is not on that list, which is one reason a layer 3 and 4 problem is a Shield problem.
You do not have to write every rule. AWS Managed Rules provides ready-made rule groups. The core rule set, for example, covers a wide range of vulnerabilities, including some of the high-risk ones in the OWASP Top 10, with rules for cross-site scripting, file inclusion and oversized requests. The known bad inputs group blocks patterns such as Log4j exploit attempts.
AWS WAF is billed on the web ACLs, the rules and the number of requests inspected, with extra charges for options such as Bot Control and CAPTCHA. The WAF pricing page has the rates.
How they work together
A common pattern for a public web application is CloudFront or an Application Load Balancer in front of the application, a web ACL on that front door, and Shield protecting the same resource.
Shield Standard covers every customer with no setup. If the application needs more, Shield Advanced adds layer 7 detection that works with AWS WAF. A Shield Advanced subscription covers the standard AWS WAF fees (per web ACL, per rule and the base per-million-request price, up to 1,500 web ACL capacity units) for the resources you protect with it, and includes up to 50 billion requests a month to protected resources. It does not cover extras such as Bot Control or the CAPTCHA action. Turning on automatic application layer mitigation adds a rule group that uses 150 capacity units of the web ACL.
For many accounts, AWS Firewall Manager sets this up once for an organization. It applies AWS WAF and Shield Advanced protections across accounts and to every resource of a given type, and it can subscribe all member accounts of an AWS Organizations organization to Shield Advanced. AWS says Firewall Manager charges are for the underlying services, such as AWS WAF and AWS Config, and that Shield Advanced protection policies are included at no additional charge for Shield Advanced customers.
Which one do you need
- Blocking exploit strings, bad bots, or an IP address, or limiting one client’s request rate is AWS WAF.
- Surviving a traffic flood with no setup is already covered by Shield Standard.
- Wanting expert help during an attack, cost credits, or automatic layer 7 response is Shield Advanced, used with AWS WAF.
- Applying the same rules to many accounts is Firewall Manager.
On the exams
How certification exams use this
The exam guides ask candidates to choose security services for a threat. SAA-C03 task 1.2 lists integrating AWS Shield and AWS WAF to secure applications, CLF-C02 task 2.4 asks candidates to describe AWS WAF, AWS Firewall Manager and AWS Shield, SOA-C03 task 5.1 includes auditing network protection services, and SCS-C03 tasks 3.1 and 6.2 cover edge protection with AWS WAF and Shield Advanced and central deployment with Firewall Manager. Watch what the requirement names. A flood of traffic or a DDoS attack points to Shield, an exploit pattern or a request rule points to AWS WAF, and “across all accounts” points to Firewall Manager. The usual wrong answer is picking AWS WAF for a volumetric attack, or picking Shield for a request-content rule.
Test yourself
See how well you know it, free.
Each exam’s diagnostic is free, with no sign-in: questions across the whole exam, and a map of what you know and what you don’t.
AWS Certified Solutions Architect – Associate
20 free questions, no sign-in.
Take the free diagnosticAbout the examAWS Certified Security – Specialty
20 free questions, no sign-in.
Take the free diagnosticAbout the examAWS Certified Cloud Practitioner
20 free questions, no sign-in.
Take the free diagnosticAbout the examAWS Certified CloudOps Engineer – Associate
20 free questions, no sign-in.
Take the free diagnosticAbout the examAWS Certified DevOps Engineer – Professional
20 free questions, no sign-in.
Take the free diagnosticAbout the examAWS Certified Developer – Associate
20 free questions, no sign-in.
Take the free diagnosticAbout the exam
Sources
Checked against the vendors’ own documentation.
- How AWS Shield and Shield Advanced work
- AWS Shield Standard overview
- AWS Shield Advanced overview
- List of AWS resources that AWS Shield Advanced protects
- AWS Shield Advanced capabilities and options
- Deciding whether to subscribe to AWS Shield Advanced
- AWS WAF
- How AWS WAF works
- Baseline rule groups (AWS Managed Rules)
- AWS Firewall Manager
Last checked November 4, 2026. Spotted something wrong or out of date? Tell us.