A company is hosting a reporting application on Amazon EC2 instances in a private subnet with CIDR block . The database tier runs on EC2 instances in a separate private subnet with CIDR block . The reporting application must initiate queries to the database on TCP port . The company's security policy requires using both security groups and network ACLs to enforce strict isolation. The database must not be allowed to initiate any connections back to the reporting application. Which combination of actions will allow this traffic while maintaining the required security boundaries? (Select TWO.)
- Configure the database security group to allow inbound traffic on TCP port from the reporting application's security group.Cevap
- Configure the network ACL associated with the database subnet to allow inbound traffic on TCP port from and outbound traffic on TCP ports to .Cevap
- CConfigure the database security group to allow inbound traffic on TCP port from the reporting application's security group, and add an outbound rule to allow return traffic on ephemeral ports.
- DConfigure the network ACL associated with the database subnet to allow inbound traffic on TCP port from , and rely on the stateful nature of network ACLs to permit the return database response.
- EAssociate an AWS WAF Web ACL with the database subnet to inspect incoming database traffic and block unauthorized queries from the reporting subnet.
Cevap
Configure the database security group to allow inbound traffic on TCP port from the reporting application's security group, and configure the network ACL associated with the database subnet to allow inbound traffic on TCP port from and outbound traffic on TCP ports to .
The correct architecture requires a combination of stateful security group rules and stateless network ACL rules. The database security group must allow inbound traffic on TCP port from the source security group; because security groups are stateful, return traffic is automatically allowed. The database subnet's network ACL must allow inbound traffic on port from the reporting subnet CIDR block, and since network ACLs are stateless, an outbound rule must also be configured to allow return traffic on the ephemeral port range () back to the reporting subnet.
Adım Adım Çözüm
Anahtar Kavram
Stateful vs. Stateless VPC Filtering
Tahmini Süre:1m 30s