An architectural design for a secure application separates the processing service (deployed in subnet ) and the database cluster (deployed in subnet ). The database listens on custom TCP port . A solutions architect is configuring a Network Access Control List (Network ACL) for the database subnet to restrict traffic. The database instances are already associated with a security group that allows inbound traffic on port from the processing service's security group. Which configuration must be applied to the database subnet's Network ACL to allow successful communication between the services?
- AAn inbound rule allowing TCP port from the processing service's security group ID and an outbound rule allowing TCP ports to the processing service's security group ID.
- An inbound rule allowing TCP port from and an outbound rule allowing TCP ports to .Cevap
- CAn inbound rule allowing TCP port from , with no outbound rule required because Network ACLs automatically track connection states.
- DAn inbound rule allowing TCP ports from and an outbound rule allowing TCP port to .
Cevap
An inbound rule allowing TCP port from and an outbound rule allowing TCP ports to .
The correct option correctly configures the stateless Network ACL. The inbound rule allows the processing service's subnet () to connect to the database subnet on port . Since Network ACLs do not track connection states, a corresponding outbound rule is required to allow return traffic from the database back to the processing service's client instances. Because client instances initiate connections from random ports within the ephemeral port range (), the outbound rule must allow traffic to those ports.
Adım Adım Çözüm
Anahtar Kavram
Stateless nature of Network ACLs and the requirement for ephemeral port rules.