Web Application Firewall Flashcards

This deck aims to help retain concepts related to the AWS Web Application Firewall service. (30 cards)

1
Q

Which AWS service is designed to protect web applications from attacks by using rules to allow, block, or monitor (count) web requests based on defined conditions?

A

Web Application Firewall (WAF)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which AWS resources can be protected using AWS WAF (layer 7 firewall product)?

A
  • CloudFront
  • Application Load Balancer (ALB)
  • AppSync
  • API Gateway
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Where can AWS WAF deliver its logs?

A
  • Amazon S3 (delivered within 5 minutes)
  • CloudWatch Logs
  • Kinesis Data Firehose (can output data into any supported destination including S3)

All log destinations can be integrated with event-driven security response architecture (using S3 Events, Lambda, Athena, and EventBridge)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What factors determine the pricing structure of AWS WAF?

A
  • $5/month per WebACL
  • $1/month per rule per ACL
  • $0.60 per 1M requests
  • $0.40 per 1K CAPTCHA attempts
  • $10/month + $1 per 1K login attempts for fraud control
  • charges for marketplace rule groups
  • additional fees for intelligence threat mitigation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the primary control unit of AWS WAF that is associated with supported services to control which traffic is allowed or blocked?

A

WebACL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What two types of AWS WAF WebACLs are available?

A
  • Global (CloudFront)
  • Regional (service-specific)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Can a global WAF WebACL be associated with a regional resource?

A

No, Global WebACLs are for CloudFront only; Regional WebACLs are for regional resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What functionality does a WAF WebACL provide by default?

A

None, rules or rule groups must be created

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What types of rules are available for WAF WebACLs?

A
  • AWS managed rule groups
  • Allow / Deny lists
  • SQL injection (SQLi) protection
  • Cross-site scripting (XSS) protection
  • HTTP flood protection (rate limiting)
  • IP reputation lists
  • Bot protection
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How are WAF WebACL rules processed?

A

Processed in order, compute cost depends on rule complexity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What unit quantifies the resources required to process WAF WebACL rules and rule groups?

A

WebACL Capacity Units (WCU)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the default maximum WAF WebACL Capacity Units (WCU)?

A

1500 WCU (limit can be increased with a support ticket)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What attributes does WAF WebACL rule have?

A
  • Type: defines the rule category (regular or rate-based)
  • Statement: the main logic that defines what the rule checks for
  • Action: the outcome when the rule matches (Allow, Block, Count, Captcha)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What WAF WebACL rule types are available?

A
  • Regular: matches specified conditions
  • Rate-based: matches when request rate exceeds a defined threshold
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What WAF WebACL rule statements are available?

A
  • WHAT to match (for Regular rules)
  • COUNT ALL (for Rate-based rules)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What can a WAF WebACL rule statement match against?

A
  • Origin country
  • IP
  • Label
  • Query
  • Cookie
  • Query parameter
  • URI path
  • Query string
  • Body (first 8192 bytes only)
  • HTTP method

Matching options include startsWith, endsWith, contains, regex, and more

17
Q

Can a WAF WebACL rule contain only a single statement?

A

No, a rule can have either a single or multiple statements, when multiple statements are used, logical operators such as NOT, AND, OR can be applied

18
Q

What actions can be defined for WAF WebACL rules?

A
  • For Regular rules: allow, block, count, and run CAPTCHA
  • For Rate-based rules: block, count, and run CAPTCHA
19
Q

For which WAF WebACL rule action can both a custom response and custom header be added?

20
Q

For which WAF WebACL rule actions can a custom header be added?

A

Allow, count, and CAPTCHA actions

21
Q

For which WAF WebACL rule actions does processing stop?

A

Allow and block actions

22
Q

For which WAF WebACL rule actions does processing continue?

A

Count and CAPTCHA actions

23
Q

What internal WAF WebACL feature allows rules to react differently based on its presence?

A

Labels, which can be referenced later within the same WebACL or across multi-stage rule flows

24
Q

What WAF feature allows creating a set of rules that can be reused across multiple WebACLs?

25
What WAF WebACL rule group types are available?
- AWS-managed - Marketplace vendor-managed - Service-managed (e.g., Shield, Firewall Manager) - Customer-managed
26
When are WAF WebACL Capacity Units (WCU) defined for a rule group?
Defined upfront when creating the rule group (default max 1500 WCU)
27
What are AWS Managed Rules in AWS WAF?
Pre‑defined, ready‑to‑use rule groups created by AWS or third‑party vendors
28
If a managed rule is blocking legitimate traffic, how can it be configured to allow the traffic while still monitoring?
Set the rule’s action to Count mode
29
What kind of logs should be analyzed to determine which AWS WAF rule is dropping traffic?
AWS WAF logs
30
How can new AWS WAF WebACLs be tested without impacting production traffic?
Configure all rules to count requests and set the WebACL default action to allow