Security Group
A security group is a stateful virtual firewall that controls inbound and outbound traffic for AWS resources such as EC2 instances. Because it is stateful, return traffic for an allowed request is automatically permitted. Security groups allow rules only (no explicit deny), unlike network ACLs which are stateless and support deny rules.