A Cantrill - VPC Basics Flashcards

1
Q

t or f : VPCs by default allow nothing in or out without explicit configuration

A

True. VPCs by default allow nothing in or out without explicit configuration

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

What hardware device would an IGW be ?

A

Router.

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

What is a Stateless firewall?

A

A firewall that treats each request as a new connection. It doesnt keep track of state, so each inbound and outbound connection need inbound/outbound defined rules to allow traffic.

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

What is a Stateful firewall?

A

A firewall that is “smart” enough to identify the Request and Response of a connection as being RELATED. Does NOT treat them like separate connections (like a Stateless firewall) so only requires an inbound rule.

Allowing the REQUEST (inbound or outbound), means the RESPONSE (in or out) is automatically allowed.

Reduces overhead, doesnt need to allow a full ephemeral port range (49152 to 65535)

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

true or false: For rules in a NACL, Connections within a subnet that is associated with the NACL are impacted.

ex., two ec2s in the same subnet talking back and forth

A

False. Connections within a subnet are NOT impacted by NACLs

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

What type of firewall is a NACL?

A

A NACL is a STATELESS, network firewall.

Both the request and response parts of EVERY communication need individual rules
(1 x INBOUND rule & 1 x OUTBOUND rule)

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

What is the default NACL access behavior?

A

Default NACL allows all access. Has no effect whatsoever

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

What is the custom (created by user) NACL access behavior ?

A

Custom NACLs deny all inbound and outbound by default.

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

What type of a firewall is a Security Group?

A

Stateful firewall at the subnet level, attached to ENIs. Has NO EXPLICIT DENY.

Allow rules ONLY

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

How do SGs and NACLs work together?

A

Use NACLs for EXPLICIT DENY
Use SGs for EXPLICIT allow

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

What are Security Groups attached to? EC2s or ENIs?

A

SGs are attached to the ENI of the EC2. SG is NOT directly attached to the EC2 instance

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

What is best practice for a WEB instance in a PUBLIC SG to interact with an APP instance in a PRIVATE SG?

A

Create an Inbound rule on the APP SG and set the source as the WEB SG.

Dont have to worry about IPs or CIDR ranges here. Scales really well, reduces admin overhead.

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

What is the difference between SGs and NACLS?

A

Use the SG to EXPLICITLY ALLOW
Use the NACL to EXPLICITLY DENY

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

Difference between NAT gateway and IGW?

A

NAT GW does IP masquerading - Hiding CIDR blocks behind ONE IP. Many private IPs –> ONE public IP

IGW does a 1-to-1 Private IP to Public IP translation

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

What type of subnet does an NAT GW need to run from?

A

NAT GWs need to run from a public subnet.

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

What type of IP does a NAT GW use?

A

NAT GWs use Elastic IPs (Static IPv4 Public)

17
Q

At what level is a NAT gateway resilient?

A

Resilient at the AZ level

Maximum level of resilience for NAT GW = 1 NAT GW per AZ

18
Q

How is traffic flow supported in a NAT GW? NACL or SG?

A

NAT GWs support only NACLs, NOT a SG.

19
Q

What type of IP addressing does NOT work with a NAT GW?

A

NAT Gateways do NOT work with IPv6.

20
Q

What happens if the Default VPC is deleted (doesn’t exist) ?

A

Some services can behave oddly

21
Q

What happens if you accidentally delete the default VPC?

A

Default VPCs can be recreated.

22
Q

What is the Minimum and Maximum Size of a VPC Subnet?

A

Minimum: /28
Maximum: /16

23
Q

How can an Internet Gateway (IGW) be configured to be highly available?

A

IGW is HA by default - Attached to a VPC