Networking and Content Delivery

Instances with public IP addresses in a subnet routed to an internet gateway serve HTTPS. Their security group allows inbound TCP 443, and the subnet's network ACL allows inbound TCP 443 and outbound TCP 443 only. Clients' connections time out. What should the engineer change?

Show the answer

Correct answerA. Add an outbound network ACL rule allowing TCP 1024-65535 to 0.0.0.0/0.

AWhy this is right: The stateless network ACL must explicitly allow responses leaving for the clients' ephemeral ports.

BWhy not this: Security groups are stateful, so return traffic for allowed inbound connections is already permitted.

CWhy not this: The inbound requests already arrive on port 443; the blocked traffic is the outbound responses.

DWhy not this: A NAT gateway handles connections that private instances start, not responses from public instances to inbound clients.

Network ACLs are stateless, so responses to clients, which go to the clients' ephemeral ports, need their own outbound rule. Security groups are stateful and already allow the return traffic for an allowed inbound connection.