A company is hosting a multi-tier web application in an Amazon Virtual Private Cloud (Amazon VPC). The security team has identified a range of malicious IP addresses, , that must be blocked from accessing the application. Additionally, the web servers must only accept inbound traffic on TCP ports and , and the return traffic to the clients must be allowed automatically without configuring any additional outbound rules. Which combination of AWS network security features will meet these requirements?
- AA stateful Security Group at the instance level to deny traffic from , and a stateless Network Access Control List (Network ACL) at the subnet level to allow inbound traffic on TCP ports and .
- BA stateful Security Group at the subnet level to deny traffic from , and an AWS Transit Gateway route table to restrict access to TCP ports and .
- A stateless Network Access Control List (Network ACL) at the subnet level to deny traffic from , and a stateful Security Group at the instance level to allow inbound traffic on TCP ports and .Answer
- DA stateless Network Access Control List (Network ACL) at the instance level to allow traffic on TCP ports and , and a custom route table associated with the Internet Gateway to deny traffic from .
Answer
A stateless Network Access Control List (Network ACL) at the subnet level to deny traffic from the malicious IP range, and a stateful Security Group at the instance level to allow inbound traffic on TCP ports and .
A stateless Network ACL operates at the subnet level and supports explicit deny rules, which allows it to block the malicious CIDR range () before traffic reaches any EC2 instances. A stateful Security Group operates at the instance level and automatically tracks connection states, ensuring that inbound traffic allowed on TCP ports and can receive return traffic without requiring explicit outbound configuration.
Step-by-Step Solution
Key Concept
The operational differences and use cases for stateful Security Groups and stateless Network ACLs within an Amazon VPC.
Estimated Time:2m 0s