Bird
0
0

Given this AWS WAF rule configuration snippet:

medium📝 service behavior Q13 of 15
AWS - Advanced Security
Given this AWS WAF rule configuration snippet:
{"Name": "BlockBadBots", "Priority": 1, "Action": {"Block": {}}, "Statement": {"ByteMatchStatement": {"SearchString": "BadBot", "FieldToMatch": {"UriPath": {}}, "TextTransformations": [{"Priority": 0, "Type": "NONE"}]}}}
What will happen when a request URI contains the text "BadBot"?
AThe rule will cause an error and not apply
BThe request will be blocked by AWS WAF
CThe request will be logged but allowed
DThe request will be allowed without filtering
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the ByteMatchStatement

    The rule looks for the string "BadBot" in the URI path and blocks the request if found.
  2. Step 2: Understand the action on match

    The action is "Block", so any request matching the condition will be blocked.
  3. Final Answer:

    The request will be blocked by AWS WAF -> Option B
  4. Quick Check:

    Match "BadBot" in URI = block request [OK]
Quick Trick: ByteMatch with Block action blocks matching requests [OK]
Common Mistakes:
  • Assuming requests are allowed by default
  • Confusing Block with Count or Allow actions
  • Thinking the rule causes errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes