Protego field desk
Infrastructure Security · 20% of exam

L8. AWS WAF, Shield & DDoS Protection

Video generating

Check back soon for the video lesson on AWS WAF, Shield & DDoS Protection

Course outlineLesson 8 of 18
AWS Security Specialty Exam Prep: course overview

Layer 7 protection with WAF, always-on layer 3/4 protection with Shield Standard, white-glove DDoS response with Shield Advanced, and org-wide enforcement with Firewall Manager.

Layer 7 Protection: AWS WAF

AWS WAF is a web application firewall that sits in front of CloudFront, Application Load Balancer, API Gateway REST APIs, AppSync GraphQL APIs, and Cognito user pools, inspecting the content of HTTP requests rather than just the packet headers. That makes it the right tool for layer 7 (application-layer) attacks such as SQL injection and cross-site scripting, where the malicious payload is embedded in the request body, query string, or headers.

WAF protection is built from rule groups: AWS Managed Rules (curated by AWS for common threats like the OWASP Top 10), AWS Marketplace rule groups (from third-party vendors), and custom rules you write yourself for application-specific logic. A web ACL combines one or more rule groups and is attached to the resource you want to protect.

One especially exam-relevant rule type is the rate-based rule, which aggregates requests by a configured key (such as source IP, forwarded IP or custom keys) or counts all requests in scope over the evaluation window. The configured action, such as Count, Block, CAPTCHA or Challenge, determines the response when the rate is exceeded. This is a fast, low-effort way to blunt application-layer brute-force attempts or unsophisticated DDoS traffic without writing custom detection logic.

Layer 3/4 Protection: AWS Shield

Shield Standard is automatic and free for every AWS customer, no opt-in required. It defends against common network- and transport-layer (layer 3/4) DDoS techniques such as SYN floods and UDP reflection attacks, the kind of volumetric attacks that try to exhaust bandwidth or connection state rather than exploit application logic. Shield Advanced is a paid tier layered on top. It adds enhanced detection tuned for larger and more sophisticated attacks, access to the AWS Shield Response Team (SRT) with a qualifying AWS Support plan, and opportunities for service credits for eligible DDoS-related usage spikes on protected resources. Resources must have been protected before the attack, and applicable CloudFront/ALB resources need a WAF web ACL with a rate-based rule in Block mode. Request eligible credits under the documented terms; they apply only to Shield Advanced usage, not automatic cash refunds.

Enforcing Protection Across an Organization

Individual account owners might forget to attach a web ACL, or worse, might deliberately remove one to "fix" a false positive. AWS Firewall Manager solves this at the organization level: a designated administrator defines WAF rule sets and Shield Advanced protections once and applies policies to supported resources in configured accounts, organizational units and Regions. Configure policy scope and automatic remediation, then monitor compliance. Policy creation alone does not prove every resource is protected.

ServiceLayerCostKey use case
AWS WAF7 (application)Pay per rule/requestSQL injection, XSS, rate limiting
Shield Standard3/4 (network/transport)Free, automaticSYN floods, UDP reflection
Shield Advanced3/4 plus configurable application-layer mitigationPaid subscriptionEnhanced protection, SRT with qualifying support, eligible credits
Firewall ManagerOrg-wide enforcementPolicy charges generally apply; Shield Advanced policy-fee inclusion has conditions, and related service charges can remainMandatory WAF/Shield policy across accounts
Exam tip: If a scenario mentions a specific attack technique, application-layer techniques (SQL injection, XSS, credential stuffing via rate-based rules) point to WAF, while volumetric or protocol-flood techniques (SYN flood, UDP reflection) point to Shield. If the scenario is about guaranteeing protection across dozens of accounts without relying on each team, the answer is Firewall Manager.

References

Continue Learning

Exam Focus Points
  • ✓AWS WAF protects CloudFront, ALB, API Gateway REST APIs, AppSync GraphQL APIs, and Cognito against layer 7 attacks like SQL injection and XSS using managed or custom rule groups
  • ✓WAF rate-based rules aggregate requests by the chosen keys and apply the configured action when the rate is exceeded
  • ✓Shield Standard is free and automatic for every AWS customer, covering common layer 3/4 DDoS attacks
  • ✓Shield Advanced adds enhanced detection, SRT access with qualifying AWS Support, and service credits for eligible DDoS-related usage spikes
  • ✓AWS Firewall Manager centrally manages WAF and Shield Advanced policies for supported, in-scope resources; verify account/Region coverage, automatic remediation and compliance
Knowledge Check

1. An application is being hit with a surge of SQL injection attempts through its ALB-hosted public API. Which service should be configured to stop this?

2. What does AWS Shield Advanced provide that Shield Standard does not?

3. A company with 40 AWS accounts wants to centrally apply and remediate a baseline set of WAF rules on its in-scope internet-facing ALBs, without relying on each account team to configure it themselves. What should they use?