AWS Certified Security – Specialty (SCS-C02) — Question 302

A company is operating an open-source software platform that is internet facing. The legacy software platform no longer receives security updates. The software platform operates using Amazon Route 53 weighted load balancing to send traffic to two Amazon EC2 instances that connect to an Amazon RDS cluster. A recent report suggests this software platform is vulnerable to SQL injection attacks, with samples of attacks provided. The company’s security engineer must secure this system against SQL injection attacks within 24 hours. The security engineer’s solution must involve the least amount of effort and maintain normal operations during implementation.

What should the security engineer do to meet these requirements?

Answer options

Correct answer: A

Explanation

Option A is correct because AWS WAF cannot be attached directly to Amazon EC2 instances, but it can be associated with an Application Load Balancer (ALB) to block SQL injection attacks before they reach the application. This solution provides virtual patching with minimal effort, keeps both EC2 instances active for high availability, and allows the security engineer to secure the backend instances by closing direct public access. Other options are incorrect because manually patching legacy code requires too much time, AWS WAF cannot be applied directly to EC2 instances, and using CloudFront with only one EC2 instance as an origin degrades the architecture's redundancy.