Home > Blog > AWS AWS Certified Cloud Practitioner > AWS WAF vs Shield: Which One Protects Your Apps?

AWS WAF vs Shield: Which One Protects Your Apps?

Comparison Cert Sensei Team 2028-05-16 8 min read

AWS WAF provides Layer 7 protection against common web exploits like SQL injection and XSS using customizable rules. AWS Shield focuses on DDoS protection: Shield Standard is free for all customers, while Shield Advanced provides enhanced mitigation and 24/7 access to the AWS SRT team for high-stakes enterprise workloads.

#AWS WAF #AWS Shield #CLF-C02 #Cloud Security #DDoS Protection

What exactly is AWS WAF and how does it work?

Think of AWS WAF (Web Application Firewall) as a highly sophisticated bouncer for your web applications. It operates at Layer 7 of the OSI model—the Application Layer—which means it can actually "read" the HTTP and HTTPS requests coming into your app. While a standard firewall might just block a port, WAF looks at the content of the request to see if it looks suspicious.

You control WAF using Web ACLs (Access Control Lists), where you define specific rules to allow or block traffic. For example, if you see a surge of requests containing common SQL injection patterns or Cross-Site Scripting (XSS) attempts, you can create a rule to drop those packets instantly. For those of you studying for the CLF-C02, remember that WAF is about filtering specific malicious payloads, not just stopping a flood of traffic.

How does AWS Shield differ from WAF?

The biggest point of confusion for students is the difference between 'filtering' and 'mitigation.' AWS WAF filters specific types of bad requests (the 'what'), while AWS Shield protects your infrastructure from being overwhelmed by sheer volume (the 'how much'). Shield is designed specifically to combat Distributed Denial of Service (DDoS) attacks.

If a hacker tries to crash your site by sending 10 million requests per second, that's a DDoS attack—Shield is your primary defense here. If a hacker sends one single, perfectly crafted request that steals your entire user database via SQL injection, that's an application-level attack—WAF is your primary defense. In a real-world production environment, you don't choose one over the other; you use both to create a layered security posture.

When should you use Shield Standard versus Advanced?

AWS provides two tiers of Shield, and you need to know the distinction for the exam. AWS Shield Standard is automatically enabled for all AWS customers at no extra cost. It protects against the most common, frequently occurring Layer 3 and 4 DDoS attacks (like SYN floods or UDP reflections). It's your baseline protection that's always running in the background.

AWS Shield Advanced is a paid premium service designed for enterprises with high-value applications. For a monthly subscription fee, you get advanced detection, proactive engagement from the AWS Shield Response Team (SRT), and 'cost protection.' Cost protection is a huge deal—if a DDoS attack causes your Auto Scaling group to spin up 100 extra instances to handle the fake traffic, AWS Shield Advanced can provide credits to cover those unexpected costs.

Where do you actually deploy these services in your architecture?

WAF doesn't just float in the cloud; it has to be attached to a resource that receives traffic. You'll typically deploy AWS WAF in front of an Application Load Balancer (ALB), Amazon CloudFront, or the Amazon API Gateway. By placing WAF at the CloudFront edge, you can block malicious requests before they even reach your origin server, saving you compute costs and reducing latency.

Shield works slightly differently. While Shield Standard is global, Shield Advanced provides protection for specific resources like Elastic IP addresses and Amazon Route 53 health checks. When you're designing an architecture for the Cloud Practitioner exam, always remember the flow: Traffic hits Route 53, then CloudFront/ALB (protected by Shield and WAF), and finally your EC2 instances or Lambda functions.

How do these concepts appear on the CLF-C02 exam?

On the AWS Cloud Practitioner exam, you'll rarely be asked for a technical definition. Instead, you'll get a scenario. If the question mentions 'stopping a SQL injection' or 'blocking specific IP addresses from a web app,' the answer is almost always AWS WAF. If the question mentions 'protecting against a volumetric attack' or 'access to the SRT team,' look for AWS Shield Advanced.

Mastering these distinctions is where many students struggle because the services overlap. This is why we built our practice exams at Cert Sensei. We provide 1,000 expert-curated AWS Cloud Practitioner (CLF-C02) practice questions that mimic the actual exam's phrasing. With our detailed expert reasoning for every answer and domain-level analytics, you can stop guessing and start knowing exactly where your knowledge gaps are in the Security domain.

Can you use WAF and Shield together for maximum security?

Absolutely. In fact, this is the recommended 'Defense in Depth' strategy. By combining them, you protect your application from both the 'brute force' of a DDoS attack and the 'surgical precision' of a web exploit. Shield Advanced actually integrates with WAF to automatically create WAF rules based on the traffic patterns it detects during a DDoS attack.

Imagine a scenario where an attacker is using a botnet to flood your site. Shield Advanced detects the flood and identifies that the botnet is using a specific, unusual User-Agent string. It can then automatically signal WAF to create a rule that blocks all requests with that specific User-Agent. This synergy is what makes AWS security so powerful—the services talk to each other to keep your application online and secure.

❓ Frequently Asked Questions

Does AWS WAF protect against all types of DDoS attacks?

No. WAF protects against application-layer (Layer 7) attacks. While it can block some HTTP floods, volumetric attacks at Layers 3 and 4 are handled by AWS Shield. For full protection, you should use both services in tandem.


Is AWS Shield Standard enabled by default for my account?

Yes, AWS Shield Standard is automatically enabled for all AWS customers at no additional cost. It provides basic protection against the most common infrastructure-layer DDoS attacks without any configuration required.


Can I use AWS WAF without an Application Load Balancer?

Yes. While ALBs are common, you can also associate AWS WAF with Amazon CloudFront distributions or the Amazon API Gateway. It must be attached to one of these supported resources to filter incoming traffic.

More from AWS AWS Certified Cloud Practitioner

🧠

Test Your Knowledge

Ready to practice AWS Certified Cloud Practitioner? Put what you've learned to the test.

Try 10 Free Questions

⭐ 1,000 expert-curated questions available with Premium

Upgrade Premium
📖 Browse the Glossary

Join thousands of certification students

Sign Up Free