Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
+1 vote
75 views
in Information Technology by (178k points)
When should I use AWS NACL vs. Security Groups?

Please log in or register to answer this question.

1 Answer

+1 vote
by (178k points)
  • AWS NACL: Use when you need to control traffic at the subnet level, or when you want to explicitly deny traffic between subnets or the internet.

    Example NACL rule:

    {
        "RuleNumber": 100,
        "Protocol": "tcp",
        "RuleAction": "allow",
        "CidrBlock": "0.0.0.0/0",
        "PortRange": {
            "From": 80,
            "To": 80
        }
    } 
  • Security Groups: Use when you need to control traffic at the instance level based on ports and protocols, or when you want automatic stateful handling of traffic.

    Example Security Group rule (using AWS CLI):

    aws ec2 authorize-security-group-ingress --group-id sg-12345678 --protocol tcp --port 80 --cidr 0.0.0.0/0 

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...