An enterprise has a multi-tier web application running on Amazon EC2 instances in a production VPC. The instances are placed in private subnets behind an internet-facing Application Load Balancer (ALB). An AWS WAF WebACL is associated with the ALB. The WebACL includes a custom IP match rule with an 'Allow' action to permit traffic from partner IP ranges, followed by AWS Managed Rules to block SQL injection (SQLi) attacks.
A recent security audit reveals two security issues:
1. The web application EC2 instances are receiving HTTP traffic directly from external sources, bypassing the ALB.
2. Malicious SQLi attacks originating from the partner IP ranges are successfully reaching the application.
Which combination of actions should a solutions architect take to resolve these security issues? (Select TWO.)
- Configure the security groups of the web tier EC2 instances to only allow inbound HTTP/HTTPS traffic from the security group of the ALB, and remove any rules allowing direct public inbound access.Cevap
- Adjust the rule evaluation order in the AWS WAF WebACL to position the SQL injection detection rules with a higher priority (lower numeric value) than the partner IP allow-list rule.Cevap
- CAttach a Service Control Policy (SCP) to the production account's Organizational Unit (OU) that denies direct internet access to the web tier EC2 instances, while allowing traffic from the ALB.
- DConfigure the ALB to use an AWS-managed KMS key to decrypt and inspect inbound SSL/TLS payloads before routing them to the EC2 instances.
- EConsolidate all outbound traffic from the private subnets to route through a single NAT Gateway deployed in one Availability Zone to monitor traffic patterns.