# Security Groups vs. NACLs

> What is the difference between a Security Group and a Network ACL (NACL) in an AWS VPC, and when would you use each?

Canonical: https://www.internhack.in/learn/interview/aws-cloud-fundamentals/aws-security-group-vs-nacl
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

What is the difference between a Security Group and a Network ACL (NACL) in an AWS VPC, and when would you use each?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Security Group, Network ACL, Stateful vs Stateless, Ephemeral Ports, VPC Subnet

Previous: [VPC Fundamentals](https://www.internhack.in/learn/interview/aws-cloud-fundamentals/aws-vpc-components) · Next: [RDS vs. DynamoDB](https://www.internhack.in/learn/interview/aws-cloud-fundamentals/aws-rds-vs-dynamodb) · [All of AWS & Cloud Fundamentals](https://www.internhack.in/learn/interview/aws-cloud-fundamentals)

## More AWS & Cloud Fundamentals questions

- [Lambda & Serverless](https://www.internhack.in/learn/interview/aws-cloud-fundamentals/aws-lambda-serverless)
- [ELB: ALB vs. NLB](https://www.internhack.in/learn/interview/aws-cloud-fundamentals/aws-elb-types)
- [Route 53 Policies](https://www.internhack.in/learn/interview/aws-cloud-fundamentals/aws-route53-routing-policies)
- [Shared Responsibility Model](https://www.internhack.in/learn/interview/aws-cloud-fundamentals/aws-shared-responsibility)
- [Amazon Aurora](https://www.internhack.in/learn/interview/aws-cloud-fundamentals/aws-aurora-benefits)
- [Amazon Redshift](https://www.internhack.in/learn/interview/aws-cloud-fundamentals/aws-redshift-use-case)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [AWS & Cloud Fundamentals](https://www.internhack.in/learn/interview/aws-cloud-fundamentals)
