AWS Certified Security – Specialty — Question 380

A company has deployed servers on Amazon EC2 instances in a VPC. External vendors access these servers over the internet. Recently, the company deployed a new application on EC2 instances in a new CIDR range. The company needs to make the application available to the vendors.

A security engineer verified that the associated security groups and network ACLs are allowing the required ports in the inbound diction. However, the vendors cannot connect to the application.

Which solution will provide the vendors access to the application?

Answer options

Correct answer: B

Explanation

Network ACLs are stateless, meaning they do not automatically allow return traffic; therefore, outbound rules must be explicitly configured to permit return traffic to the clients' ephemeral ports. Security groups are stateful, so they do not require corresponding outbound rules for return traffic, making changes to them unnecessary. Internet gateways do not have configurable security rules, and setting the network ACL outbound rules to match the inbound rules would block the return traffic which uses ephemeral ports.