VPC NACLs Flashcards

1
Q

What is a Network Access Control List (NACL)?

A

A NACL is an optional layer of security for your VPC that acts as a firewall for controlling traffic in and out of one or more subnets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do NACLs operate in AWS?

A

NACLs operate at the subnet level and provide a rule-based tool for controlling network traffic. They support both allow and deny rules and are stateless, meaning responses to allowed inbound traffic are subject to the rules for outbound traffic (and vice versa).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What distinguishes a NACL from a Security Group?

A

NACLs are stateless, apply to an entire subnet, and can evaluate a set of rules to deny or allow traffic. In contrast, Security Groups are stateful, apply to individual instances, and by default, deny all inbound traffic while allowing all outbound.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How are rules evaluated in a NACL?

A

Rules in a NACL are evaluated in order starting from the lowest numbered rule to the highest. This allows you to finely tune traffic rules by placing more specific rules at lower numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What types of rules can you set in a NACL?

A

You can set both inbound and outbound traffic rules in a NACL, specifying whether to allow or deny traffic based on protocols, source IP addresses, destination IP addresses, and ports.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Can a VPC have multiple NACLs?

A

Yes, a VPC can have multiple NACLs. Each subnet in a VPC must be associated with a NACL, but you can create custom NACLs and associate them with specific subnets as needed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What happens to traffic that does not match any NACL rule?

A

Traffic that does not match any rule in a NACL is automatically denied, as NACLs apply a default deny all” rule if no match is found within the numbered rules.”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Is it possible to associate a subnet with more than one NACL?

A

No, a subnet can be associated with only one NACL at a time. However, you can change which NACL a subnet is associated with at any time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the purpose of using NACLs in a VPC?

A

The purpose of using NACLs in a VPC is to add an additional layer of security that helps to control traffic entering and leaving subnets within a VPC, enhancing the network’s security posture against unauthorized access or attacks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does one configure NACLs for a new subnet in AWS?

A

When a new subnet is created in AWS, it is automatically associated with the VPC’s default NACL, which allows all inbound and outbound traffic. You can modify this by either editing the default NACL’s rules or creating a new NACL and associating it with the subnet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly