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

A company’s public API runs as tasks on Amazon Elastic Container Service (Amazon ECS). The tasks run on AWS Fargate behind an Application Load Balancer (ALB) and are configured with Service Auto Scaling for the tasks based on CPU utilization. This service has been running well for several months.

Recently, API performance slowed down and made the application unusable. The company discovered that a significant number of SQL injection attacks had occurred against the API and that the API service had scaled to its maximum amount.

A solutions architect needs to implement a solution that prevents SQL injection attacks from reaching the ECS API service. The solution must allow legitimate traffic through and must maximize operational efficiency.

Which solution meets these requirements?

Answer options

Correct answer: C

Explanation

Option C is correct because it directly addresses the SQL injection issue by implementing a rule that blocks SQL-related requests while allowing all other traffic, thus maintaining operational efficiency. Option A does not specifically block SQL injections; option B focuses on bot traffic rather than SQL attacks; and option D requires manual IP management, which is less efficient and may not catch all threats.