Infrastructure Security
A CloudFront application must block requests from specified countries only for paths beginning with /checkout. Other paths must remain accessible from those countries. Which configuration meets these requirements?
Show the answer
Correct answerA. An AWS WAF rule combining geographic and URI path matches
AWhy this is right: Combining country and path conditions blocks only requests that meet both conditions.
BWhy not this: CORS controls browser access to responses, not geographic access to application paths.
CWhy not this: CloudFront geographic restrictions cannot limit country blocking to selected URI paths.
DWhy not this: A geographic rule without a path condition also blocks access to unrelated paths.
AWS WAF can combine a geographic match with a URI path match using AND logic, limiting blocking to checkout requests. CloudFront geographic restrictions apply to the distribution, not selected paths.