A global healthcare SaaS provider hosts its telemedicine platform on AWS. The architecture consists of an Amazon CloudFront distribution caching static web content, an Application Load Balancer (ALB), and an Amazon ECS cluster running containerized microservices on AWS Fargate. During a high-profile launch, the platform experiences a distributed denial of service (DDoS) attack consisting of a massive Layer 3/4 UDP reflection attack, a Layer 7 HTTP GET flood targeting the patient search API endpoint, and concurrent SQL injection attempts on the database through the search parameters. The provider needs to implement a solution that automatically detects and mitigates the Layer 3/4 volumetric attacks at the network edge, identifies and blocks the SQL injection attempts and the Layer 7 HTTP GET flood before they reach the ECS cluster, protects the organization from unexpected billing spikes caused by the scale-up of resources during the attack, and prevents attackers from bypassing CloudFront and targeting the ALB directly. Which combination of configurations should the solutions architect implement to meet these requirements?
- ASubscribe to AWS Shield Advanced and associate it with the ECS Fargate service. Configure stateless Network ACLs in the public subnets to block the IP addresses associated with the Layer 3/4 UDP reflection and the Layer 7 HTTP GET flood. Deploy AWS WAF on the ALB to inspect and block SQL injection attempts.
- Subscribe to AWS Shield Advanced and associate it with both the CloudFront distribution and the ALB. Deploy AWS WAF on the CloudFront distribution with a rate-based rule for the search endpoint and a SQL injection inspection rule. Configure the ALB security group to allow inbound traffic only from the CloudFront managed prefix list, and restrict the ECS security group to allow traffic only from the ALB.Answer
- CDeploy AWS WAF on the CloudFront distribution with a rate-based rule and SQL injection inspection rules. Configure the ALB listener rules to allow traffic only when a custom HTTP header shared with CloudFront is present. Rely on AWS Shield Standard to automatically mitigate Layer 3/4 attacks and provide financial protection against scaling charges incurred by the ALB and ECS cluster.
- DDeploy AWS WAF on the CloudFront distribution and associate it with an AWS Shield Standard protection group. Create a security group for the ALB that allows inbound traffic only from the public IP ranges of AWS WAF. Implement rate-limiting at the ECS container level using application-specific middleware.