Infrastructure Security

A CloudFront application must use AWS WAF geolocation to block requests originating in California while allowing other US states. Which rule arrangement meets this requirement?

Show the answer

Correct answerA. Count United States geographic matches, then block the resulting US-CA region label.

AWhy this is right: Count mode permits evaluation to continue, allowing a later rule to block requests labeled as originating in California.

BWhy not this: Labels added by a geographic match rule are available to subsequent rules, not earlier rules.

CWhy not this: CloudFront country restrictions block the entire United States before AWS WAF can apply the state-specific decision.

DWhy not this: A United States country match blocks every US state rather than only California.

An AWS WAF geographic match rule adds country and region labels; a later rule can block the US-CA region label. A label match rule placed before the geographic rule cannot use labels that have not yet been added.