A solutions architect is designing the network security for a two-tier application in a VPC. The database tier runs on Amazon EC2 instances in a private subnet, and the web tier runs in a public subnet. The database instances must accept incoming database connections on TCP port 3306 from the web tier. Additionally, the database instances must be able to download software updates from the internet over HTTPS (TCP port 443) via a NAT Gateway. No other outbound connections from the database instances should be allowed. The architect wants to implement these controls using both Security Groups and Network Access Control Lists (Network ACLs) under the principle of least privilege. Which combination of configurations will satisfy these requirements? (Select TWO.)
- Configure the database security group with an inbound rule that allows TCP port 3306 from the web security group, and an outbound rule that allows TCP port 443 to 0.0.0.0/0.Cevap
- Configure the database subnet Network ACL with inbound rules allowing TCP port 3306 from the web subnet CIDR and TCP ports 1024-65535 from 0.0.0.0/0, and outbound rules allowing TCP ports 1024-65535 to the web subnet CIDR and TCP port 443 to 0.0.0.0/0.Cevap
- CConfigure the database security group with inbound rules allowing TCP port 3306 from the web security group and TCP ports 1024-65535 from 0.0.0.0/0, and outbound rules allowing TCP ports 1024-65535 to the web security group and TCP port 443 to 0.0.0.0/0.
- DConfigure the database subnet Network ACL with an inbound rule allowing TCP port 3306 from the web subnet CIDR, and an outbound rule allowing TCP port 443 to 0.0.0.0/0, with no rules for ephemeral ports.
- EAssociate an AWS WAF web ACL directly with the database subnet to inspect incoming traffic on port 3306 and block unauthorized requests.