AWS Solutions Architect · Design Secure Architectures · medium

A public REST API hosted on Amazon API Gateway and an Application Load Balancer experiences SQL injection attempts and Layer-7 HTTP floods from botnets across shifting IP ranges. Which service should the solutions architect attach to inspect requests and apply rate-based blocking rules?

Published · Last updated · checked before publication — how we verify questions

Options

  • AAttach an AWS WAF web ACL with SQL injection managed rule groups and a rate-based rule to both endpointsCorrect answer
  • BConfigure stateless VPC network ACL deny rules on the public subnets and update IP lists manually each hour
  • CEnable Amazon Inspector automated assessments on the VPC and block offending IP addresses in security groups
  • DPlace an AWS Network Firewall endpoint in front of Amazon API Gateway and filter traffic with Suricata rules

Answer: A. Attach an AWS WAF web ACL with SQL injection managed rule groups and a rate-based rule to both endpoints

AWS WAF attaches directly to Amazon API Gateway and Application Load Balancers to inspect HTTP/HTTPS requests for SQL injection patterns and enforce rate-based rules per client IP. Network ACLs and Security Groups operate at Layer 3/4 and cannot inspect SQL payloads or apply automatic Layer-7 rate-based rules, and Amazon Inspector scans workloads for software vulnerabilities.

Why the other options are wrong

  • B. Configure stateless VPC network ACL deny rules on the public subnets and update IP lists manually each hour — Network ACLs operate at Layer 3/4, cannot inspect HTTP bodies for SQL injection, and do not support API Gateway directly.
  • C. Enable Amazon Inspector automated assessments on the VPC and block offending IP addresses in security groups — Amazon Inspector scans EC2, ECR, and Lambda for software vulnerabilities; it is not an inline Layer-7 web firewall.
  • D. Place an AWS Network Firewall endpoint in front of Amazon API Gateway and filter traffic with Suricata rules — AWS Network Firewall filters VPC subnet traffic and cannot be attached directly in front of regional API Gateway endpoints.

All Design Secure Architectures questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.