An application tier runs on Amazon EC2 instances in Subnet A (). A PostgreSQL database runs on an Amazon EC2 instance in Subnet B (). Both subnets are in the same VPC. The Security Group associated with the database instance allows inbound TCP traffic on port from the security group of the application tier. Subnet A is associated with the default Network Access Control List (NACL), which allows all inbound and outbound traffic. Subnet B is associated with a custom NACL that contains only the default deny rules. Currently, the application instances are unable to connect to the database. Which of the following rules must be added to the Subnet B NACL to allow successful database connections from the application tier? (Select TWO.)
- An inbound rule that allows TCP traffic on port from source Cevap
- An outbound rule that allows TCP traffic on ports to destination Cevap
- CAn outbound rule that allows TCP traffic on port to destination
- DAn inbound rule that allows TCP traffic on ports from source
- EAn outbound rule that allows TCP traffic on ports to destination
Cevap
An inbound rule that allows TCP traffic on port from source , and an outbound rule that allows TCP traffic on ports to destination .
For a successful TCP connection to the PostgreSQL database, the Subnet B Network ACL must allow both the inbound connection request and the outbound response. The inbound rule must permit TCP traffic on the database port () from the application tier's subnet (). Because Network ACLs are stateless, the outbound response is not automatically allowed; a corresponding outbound rule must be created. This outbound rule must allow TCP traffic to destination on ports , which represents the ephemeral ports allocated by the client operating systems for the connection.
Adım Adım Çözüm
Anahtar Kavram
Stateless Network ACL configuration requires explicitly allowing both request and response traffic, accounting for target service ports inbound and ephemeral client ports outbound.