An eco-tourism agency hosts its public-facing room booking portal on Amazon EC2 instances within a public subnet, and its internal database on EC2 instances within a private subnet. The security team needs to configure network security controls to meet two requirements: block specific malicious public IP addresses at the subnet boundary, and allow the web servers to communicate with the database while ensuring return traffic is automatically allowed at the instance level. Which TWO configurations should the security team implement to meet these requirements?
- Create an inbound deny rule in the Network ACL associated with the web server subnet to block the malicious IP addresses.Cevap
- Configure the database security group to allow inbound traffic from the web servers, relying on the stateful nature of security groups to permit return traffic.Cevap
- CCreate an inbound deny rule in the security group associated with the web servers to block the malicious IP addresses.
- DConfigure the web server subnet Network ACL to allow outbound traffic to the database subnet, as Network ACLs are stateful and will automatically track and permit return traffic.
- EDeploy Amazon Inspector to scan incoming network traffic at the subnet boundary and automatically block the malicious IP addresses.
Cevap
The security team should create an inbound deny rule in the Network ACL associated with the web server subnet, and configure the database security group to allow inbound traffic from the web servers.
The requirements are met by combining a Network ACL and a Security Group. A Network ACL operates at the subnet boundary and supports explicit deny rules, which allows the security team to block specific malicious IP addresses. A security group operates at the instance level and is stateful, meaning that allowing inbound traffic automatically permits the corresponding outbound return traffic without requiring separate outbound configuration.
Adım Adım Çözüm
Anahtar Kavram
Security groups are stateful firewalls at the instance level that support only allow rules, whereas Network ACLs are stateless firewalls at the subnet level that support both allow and deny rules.