Security groups Flashcards

1
Q

What are security groups?

A

SGs are boundaries which can filter traffic

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

What are SGs attached to?

A

Resources, logical resources, network interfaces of an AWS resource.

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

Can SGs be attached to subnets?

A

No. Only to resources

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

How many sets of rules do SGs have?

A

2, like NACLs

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

Are SGs stateless or stateful?

A

Stateful. Only one inbound rule is needed. Response traffic is considered the same thing and it is automatically allowed.

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

Can SGs reference logical resources?

A

Yes, they can use logical resources.

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

Can SGs reference other SGs?

A

Yes.

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

Can a SG reference himself?

A

Yes.

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

What does a default SG for a VPC?

A

Allows all traffic by default - Explicit ALLOW rule

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

How does SGs achieve the default Explicit ALLOW?

A

By referencing himself.

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

For what would a SG reference himself?

A

So that anything this SG is attached to is matched by the default explicit allow.

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

Do SGs have any implicit deny rule?

A

Yes, anything that is not matched by other rule sets is implicitly denied.

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

Can a SG explicitly deny anything?

A

No. Normally NACLs are used together with SGs to achieve the explicit deny of something.

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

When are NACLs used over SGs?

A
  1. When products do not support SGs (like NAT Gateways).

2. When there is a need to add explicit denies.

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

When are SGs preferred over NACLs?

A
  1. SGs is the default almost everywhere because they are stateful and easier to work with (simplicity and lower admin overhead).
  2. NACLs can’t filter any traffic within the same subnet but SGs can due to the association to Logical resources.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly