Amazon Web Services
Security group (AWS)
An instance-level virtual firewall on EC2 that controls inbound and outbound traffic. It works as an allow-only rule list — there are no explicit deny rules. Stateful: if you allow inbound traffic, the response is automatically allowed out.
On the exam
Fundamental for CLF-C02 and SAA-C03. Difference from NACLs: security groups are stateful and instance-level; NACLs are stateless and subnet-level. Question: to allow only HTTPS traffic to an EC2 instance → a security group with an inbound rule on port 443.
Related terms
- NACL (Network Access Control List)An optional subnet-level firewall in AWS. It evaluates rules in numeric order and can allow or deny traffic. Stateless: inbound and outbound rules are independent, so you must define both explicitly.
- VPC (Virtual Private Cloud)A private, isolated virtual network in AWS where you launch resources such as EC2, RDS, or Lambda. It gives you full control over the network environment: IP ranges, subnets, route tables, and gateways.
- Network Security Group (NSG)A basic Azure firewall that filters network traffic to and from Azure resources within a VNet. It contains inbound and outbound rules that allow or deny traffic based on IP, port, and protocol.