WAF, Shield and network firewall
Choose the control by boundary
Defense in depth means independent controls at different trust boundaries. AWS WAF evaluates HTTP requests on supported resources such as CloudFront and Application Load Balancers; Shield helps protect against distributed denial of service (DDoS). Shield Standard supplies baseline DDoS protection; Shield Advanced adds paid protections and response capabilities for eligible resources. Network Firewall inspects routed VPC traffic rather than deciding whether a particular user owns a record. Firewall Manager coordinates supported protections across accounts and resources in an organization. None of these substitutes for application authorization.
Follow a fictional reports request
A public reports API accepts HTTPS at CloudFront and forwards approved requests to a supported private origin. Associate the WAF web ACL (also called a protection pack) at the intended entry point. For supported VPC origins, keep the origin private; for a supported S3 origin, use Origin Access Control and a restricted bucket policy. The diagram is conceptual, not a deployable network. Network Firewall can protect selected VPC paths when routes actually send traffic through firewall endpoints; use symmetric routing for stateful inspection. Classic policies support stateless and stateful engines; verify the selected policy version rather than assuming every policy has identical capabilities.
Client -> CloudFront + WAF -> private origin -> application -> private databaseApplication: verified identity + scope + resource authorizationMeasure before enforcing
A rate-based WAF rule aggregates requests by configured keys and acts on excessive traffic approximately, not as an exact per-user quota or spending cap. In a fictional traffic summary, many legitimate readers can share an IP address. Start a new rule in Count mode under an approved change process, review matches and false positives, then enforce with a rollback plan. Use application-side quotas for business limits and protect expensive operations independently. Do not equate fewer requests with authenticated traffic.
Observe without collecting secrets
Log rule decisions, timestamps and non-sensitive correlation IDs where needed. WAF logging redaction alone does not redact sampled requests; configure data protection for relevant outputs or disable unnecessary sampling. Restrict log readers and retention, and avoid tokens, passwords and personal report contents. Check effective ACL association, rule metrics, origin privacy and routing evidence; declaring a firewall is insufficient. Estimate WAF rules and request processing, Shield subscriptions where applicable, firewall endpoint/data processing, and log ingestion/storage before any live design. Practice: name one control and one limitation for each diagram boundary.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
WAF, Shield and network firewall — knowledge check
Reason about defensive controls and synthetic access decisions.
Which control evaluates HTTP requests at a supported edge?
What does a WAF rate-based rule provide?
What is required for Network Firewall inspection?
Which service coordinates supported security policies across accounts?
Does logging redaction alone protect WAF sampled requests?