AWS Certified Solutions Architect – Professional — Question 472

A company is developing a web application that runs on Amazon EC2 instances in an Auto Scaling group behind a public-facing Application Load Balancer (ALB).
Only users from a specific country are allowed to access the application. The company needs the ability to log the access requests that have been blocked. The solution should require the least possible maintenance.
Which solution meets these requirements?

Answer options

Correct answer: B

Explanation

AWS WAF natively supports geographic matching conditions, which allows administrators to block traffic from specific countries with minimal maintenance because AWS automatically manages the IP-to-country mappings. Options A and D require manually managing and updating IP ranges, which introduces high administrative overhead. AWS Shield (Option C) is a DDoS protection service and cannot be used for country-based access control.