A research institution runs high-performance scientific simulations on Amazon EC2 instances within a private subnet. The security team must implement a network security strategy that meets two requirements:
1. Block traffic from a specific range of external IP addresses at the subnet boundary by explicitly evaluating both inbound and outbound traffic.
2. Allow incoming simulation control data to the EC2 instances, ensuring that return traffic is automatically permitted without requiring explicit outbound rules.
Which combination of AWS features best satisfies these requirements?
- ASecurity Groups at the subnet level to block the IP range, and Network Access Control Lists (NACLs) at the instance level to allow the control data
- BAmazon Inspector at the subnet level to block the IP range, and Amazon GuardDuty at the instance level to allow the control data
- Network Access Control Lists (NACLs) at the subnet level to block the IP range, and Security Groups at the instance level to allow the control dataAnswer
- DAWS infrastructure security to automatically block the IP range at the subnet level under the Shared Responsibility Model, and Security Groups at the instance level to allow the control data
Answer
Network Access Control Lists (NACLs) at the subnet level to block the IP range, and Security Groups at the instance level to allow the control data
The correct answer correctly identifies that Network Access Control Lists (NACLs) operate at the subnet level and are stateless, meaning both inbound and outbound traffic must be explicitly allowed or denied. This makes NACLs ideal for blocking specific IP ranges at the subnet boundary. Security Groups operate at the instance level and are stateful, meaning any allowed inbound traffic automatically permits the corresponding outbound response traffic, satisfying the second requirement.
Step-by-Step Solution
Key Concept
Stateful vs. Stateless network firewalls in a VPC (Security Groups vs. Network ACLs)