Add WAF protection against SQL injection and bot floods for a public app.
IntermediateScenarioRoute 53, CloudFront and Messaging
Answer
Situation read → AWS WAF on CloudFront or ALB with managed rule groups and rate limits.
What I'd do →
- Create a web ACL with AWS managed rules
AWSManagedRulesCommonRuleSetandAWSManagedRulesSQLiRuleSet - Add a rate-based rule such as 2,000 requests per 5 minutes per IP
- Start in Count mode, review logs, then Block
- Send logs to S3 or CloudWatch
- Add Shield Advanced for DDoS needs
Why → Count mode prevents false positives from blocking real customers on day one.
Interview tip → Mention WAF logging to inspect matches.
More on Route 53, CloudFront and Messaging
You want users routed to the nearest healthy region. Which Route 53 policy do you use?BeginnerPrimary region fails; how do you fail over DNS in a controlled way?IntermediateWhat is the difference between a CNAME and an alias record in Route 53?BeginnerRoll out a new version to 5 percent of users using DNS. How?IntermediateCloudFront serves stale content after you deployed a new JS bundle. How do you handle cache correctly?IntermediateCloudFront returns 403 from an S3 origin. List the checks.Intermediate