A solutions architect is configuring network security for a new cache tier in a VPC. A cluster of Redis instances is deployed in a private subnet () and must accept inbound cache requests on TCP port from web application servers located in a public subnet (). The solutions architect configures a custom Network Access Control List (Network ACL) for the private subnet with the following rules:
* Inbound: Rule – Allow TCP port from
* Outbound: Rule – Allow TCP port to
* Both inbound and outbound default rules (Rule ) are set to deny all other traffic.
The web application servers are unable to establish a connection to the Redis instances. Which configuration change to the private subnet's Network ACL will resolve this issue?
- Change the outbound rule to allow TCP traffic to on ports .Cevap
- BChange the inbound rule to allow TCP traffic from on ports .
- CConfigure the security group of the Redis instances to allow outbound TCP traffic to on ports .
- DRemove the outbound Network ACL rule entirely, as Network ACLs are stateful and automatically permit return traffic.
Cevap
Change the outbound rule to allow TCP traffic to the public subnet on the ephemeral port range ().
The correct option is the one recommending changing the outbound Network ACL rule to allow TCP traffic to the public subnet on the ephemeral port range. Because Network ACLs are stateless, they do not automatically allow return traffic. When the web application servers connect to Redis on port , they use a client-side ephemeral port (in the range ) for the source. The response from Redis is sent from source port to the destination ephemeral port on the web server. Therefore, the private subnet's outbound Network ACL must permit TCP traffic to the public subnet's CIDR block on ports .
Adım Adım Çözüm
Anahtar Kavram
Stateless nature of Network ACLs requiring return traffic on ephemeral ports
Tahmini Süre:1m 30s