A startup is deploying a two-tier application in a Virtual Private Cloud (VPC) with public and private subnets. The security team must enforce two controls: first, block specific malicious IP addresses from entering the public subnet entirely; second, allow stateful, bidirectional web traffic only on port 443 to the web servers. Which two AWS networking features or configurations should be used to satisfy these security requirements? (Select TWO.)
- A Network Access Control List (NACL) rule associated with the subnet to deny traffic from the malicious IP addressesAnswer
- A Security Group rule associated with the web server instances to allow inbound HTTPS trafficAnswer
- CA Security Group rule associated with the web server instances to deny inbound traffic from the malicious IP addresses
- DA Network Access Control List (NACL) rule associated with the web server instances to allow stateful return traffic
- EAn AWS Transit Gateway configured to route and filter traffic between the subnets
Answer
A Network Access Control List (NACL) rule associated with the subnet to deny traffic from the malicious IP addresses, and a Security Group rule associated with the web server instances to allow inbound HTTPS traffic.
The correct options are a Network Access Control List (NACL) rule to deny traffic at the subnet boundary and a Security Group rule to allow HTTPS traffic at the instance level. NACLs allow explicit deny rules and apply at the subnet level, which blocks malicious traffic before it reaches any instances. Security Groups are stateful and operate at the instance level, allowing return traffic automatically once inbound access on port 443 is granted.
Step-by-Step Solution
Key Concept
The difference between stateful Security Groups operating at the instance level and stateless Network Access Control Lists (NACLs) operating at the subnet level.