NACL's vs Security Groups Flashcards

1
Q

How many NACL’s can a subnet associate with?

A

One

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

What’s the default NACL configuration for a VPC?

A

Your VPC automatically comes with a modifiable default network ACL.

By default, it ALLOWS ALLl inbound and outbound IPv4 traffic and, if applicable, IPv6 traffic.

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

What’s the default custom NACL configuration?

A

You can create a custom network ACL and associate it with a subnet.

By default, each custom network ACL DENIES ALL inbound and outbound traffic until you add rules.

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

What happens if you don’t explicitly associate a subnet with a NACL?

A

Each subnet in your VPC must be associated with a network ACL.

If you don’t explicitly associate a subnet with a network ACL, the subnet is automatically associated with the default network ACL.

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

Can you associate a NACL with multiple subnets?

Can you associate a subnet with multiple NACLs?

A

You can associate a network ACL with multiple subnets; however, a subnet can be associated with only one network ACL at a time.

When you associate a network ACL with a subnet, the previous association is removed.

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

How does AWS recommend you number your NACL rules?

A

A network ACL contains a numbered list of rules evaluated in order, starting with the lowest numbered rule, to determine whether traffic is allowed in or out of any subnet associated with the network ACL. The highest number that you can use for a rule is 32766.

We recommend that you start by creating rules with rule numbers that are multiples of 100, so that you can insert new rules where you need to later on.

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

Does a NACL have separate in and outbound rules?

A

Yes

A network ACL has separate inbound and outbound rules, and each rule can either allow or deny traffic.

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

Are NACL’s stateless?

A

Network ACLs are stateless; 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
9
Q

What do Security Groups act as a firewall for?

A

EC2 Instances (as long as an instance is associated with a SG)

They control in/out traffic at the instance level

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

What do Network Access Control Lists act as a firewall for?

A

Subnets (and so to all instances in the subnets)

they control in/out traffic at the subnet level

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

What do flow logs do?

Where is their data published to?

A

Capture information about IP traffic going in/out of the network interfaces in the VPC

Data is published to Cloudwatch Logs

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

Can you secure VPC instances with only Security Groups , and add NACL’s as a second layer of defense?

A

yes

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

Do Security Groups support Allow Rules, Deny Rules or both?

A

Allow Rules only

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

Do NACLs support allow rules, deny rules, or both?

A

Both

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

Is return traffic automatically allowed for a Security Group

A

Yes. Because they are stateful

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

Is return traffic automatically allowed for a NACL?

A

No. Return traffic must be explicitly allowed because NACLs are stateless

17
Q

Are security groups or NACL’s evaluated first (in terms of incoming traffic?)

A

NACL’s evaluated first.

If a security group allows http traffic from a source, but nail denies it, the traffic is denied because the NACL is evaluated first