AWS Certified Solutions Architect – Professional (SAP-C02) — Question 363

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 features native geographic match conditions that allow blocking requests based on country of origin with minimal maintenance, while easily logging blocked requests. Utilizing an IPSet in Option A or security groups in Option D requires manual tracking and updating of IP ranges, which introduces significant administrative overhead. AWS Shield, as mentioned in Option C, is a DDoS protection service and does not offer geographic access control or logging of blocked application-level requests.