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
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.
More Design Secure Architectures questions
- A security architect wants delegated product engineers to create IAM roles for their microservices inside an AWS…
- An application running on Amazon ECS Fargate connects to an Amazon Aurora PostgreSQL cluster. Compliance rules require…
- A financial company manages forty AWS accounts in AWS Organizations and wants developers to sign in with their…
- A regulated workload in a private subnet with no internet gateway or NAT gateway must call an internal SaaS partner…
- A company operates an Application Load Balancer and an Amazon CloudFront distribution for app.example.com. Security…
- A compliance officer needs an automated service that uses machine learning and pattern matching to discover personally…
- A security team manages an AWS Organization and must ensure that no principal in any member account—including account…
- A healthcare workload stores regulated objects in an Amazon S3 bucket. Auditors require customer-controlled key…
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.