An organization is securing a proprietary database tier hosted on Amazon EC2 instances within a private subnet of a Virtual Private Cloud (VPC). The database must receive SQL traffic on TCP port from the application servers located in a public subnet, while ensuring strict network isolation at both the subnet and instance levels. Which two configuration steps are required to establish this network security architecture? (Select TWO.)
- Configure the database security group with an inbound rule allowing TCP port from the application security group, and rely on its stateful nature to automatically permit outbound response traffic.Cevap
- Configure the private subnet Network ACL with an inbound rule allowing TCP port from the public subnet CIDR, and an outbound rule allowing TCP ports - to the public subnet CIDR.Cevap
- CConfigure the private subnet Network ACL with an inbound rule allowing TCP port , relying on its stateful monitoring to automatically handle response traffic without an outbound rule.
- DConfigure the database security group with both an inbound rule allowing TCP port and a manual outbound rule allowing ephemeral ports to return database responses.
- EEnable Amazon GuardDuty at the private subnet border to inspect and filter individual packets, since AWS manages subnet security under the shared responsibility model.
Cevap
Configuring the database security group with an inbound rule allowing TCP port from the application security group (leveraging its stateful tracking), and configuring the private subnet Network ACL with an inbound rule allowing TCP port and an outbound rule allowing TCP ephemeral ports -.
Security groups operate at the instance level and are stateful. When you add an inbound rule allowing TCP port from the application security group, the return traffic is automatically permitted outbound, regardless of outbound rules. Network ACLs operate at the subnet level and are stateless. This means that both inbound traffic (port ) and outbound response traffic (ephemeral ports -) must be explicitly allowed.
Adım Adım Çözüm
Anahtar Kavram
The key concept is the distinction between stateful Security Groups (operating at the instance level) and stateless Network Access Control Lists (operating at the subnet level) in AWS VPC security.