0
0
AWScloud~20 mins

AWS WAF for web application firewall - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
AWS WAF Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does AWS WAF handle requests that match a rule with an action set to COUNT?

In AWS WAF, you can set rules with different actions. What happens when a web request matches a rule whose action is set to COUNT?

AThe request is blocked and counted in metrics.
BThe request is blocked without being counted.
CThe request is allowed without being counted.
DThe request is allowed and counted in metrics.
Attempts:
2 left
💡 Hint

Think about what the COUNT action means: it lets the request pass but tracks it.

Architecture
intermediate
2:00remaining
Where should you place AWS WAF to protect a web application hosted on Amazon CloudFront?

You have a web application served through Amazon CloudFront. To protect it using AWS WAF, where should you associate the WAF web ACL?

AAssociate the web ACL directly with the CloudFront distribution.
BAssociate the web ACL with the origin S3 bucket.
CAssociate the web ACL with the EC2 instances behind the CloudFront.
DAssociate the web ACL with the Route 53 hosted zone.
Attempts:
2 left
💡 Hint

Think about where CloudFront processes requests before sending them to origins.

security
advanced
2:00remaining
What is the effect of enabling AWS WAF rate-based rules on a web application?

You configure a rate-based rule in AWS WAF to block IP addresses that send more than 1000 requests in 5 minutes. What is the expected behavior when an IP exceeds this limit?

AThe IP address receives a CAPTCHA challenge to verify it is human.
BThe IP address is permanently blocked from accessing the application.
CThe IP address is blocked temporarily until the request rate drops below the limit.
DThe IP address is allowed but logged for review.
Attempts:
2 left
💡 Hint

Consider how rate limiting works to protect against sudden traffic spikes.

Best Practice
advanced
2:00remaining
Which AWS WAF configuration helps prevent SQL injection attacks effectively?

To protect your web application from SQL injection attacks, which AWS WAF feature should you enable or configure?

ACreate a rate-based rule to block IPs sending many requests.
BEnable AWS Managed Rules for SQLi and configure a rule to block matching requests.
CUse AWS WAF to block all POST requests to the application.
DDisable all custom rules and rely on CloudFront caching.
Attempts:
2 left
💡 Hint

Think about specialized rules designed to detect common attack patterns.

🧠 Conceptual
expert
3:00remaining
What is the primary difference between AWS WAF Classic and the latest AWS WAF in terms of rule management?

Consider AWS WAF Classic and the latest AWS WAF service. What is the main difference in how they manage rules and web ACLs?

AThe latest AWS WAF supports rule groups and managed rule sets with reusable components; Classic does not.
BAWS WAF Classic supports managed rule groups; the latest AWS WAF requires manual rule creation only.
CThe latest AWS WAF does not support associating web ACLs with CloudFront distributions.
DAWS WAF Classic allows only one rule per web ACL; the latest supports multiple rules.
Attempts:
2 left
💡 Hint

Think about improvements in modularity and reusability in newer AWS WAF versions.