NAT Instances and NAT Gateways Flashcards

1
Q

What does NAT stand for?

A

Network Address Translation

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

What is the purpose of NAT in VPCs?

A

NAT allows a private subnet to forward traffic to the internet, while still preventing the internet from initiating connection with the private subnet

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

When creating a NAT Instance, do you need to disable Source/Destination checks on the Instance?

A

Yes

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

Can NAT Instances be in private subnets?

A

No.

They are used by private subnets but they exist in public subnets, so there must be a route of the private subnet to the NAT instance in order for it to work.

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

Suppose a NAT Instance is bottlenecking from traffic. What can you do?

A

Increase the instance size.

The amount of traffic a NAT instance can support depends on the instance size.

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

How might you ensure high availability using NAT Instances?

A
  • Use Auto-Scaling Groups
  • Have Multiple Subnets in different AZs
  • Have a script to automate failover

(Possible but a pain in the butt)

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

Can NAT Gateways surive the failure of an underlying EC2 instance?

A

Yes, they are implemented with redundancy in each AZ

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

Given the choice between using NAT Instances or NAT Gateways, which should you choose?

A

NAT Gateways

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

Who manages software patches for NAT Instances?

A

You do

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

Who manages software patches for NAT Gateways?

A

AWS Does

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

Can NAT Instances be associated with Security Groups?

A

Yes

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

Can NAT Gateways be associated with security groups?

A

No

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

Are NAT Gateways automatically assigned public IP addresses?

A

Yes

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

When creating a NAT Gateway, do you need to disable Source/Destination checks on the Instance?

A

No

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

Suppose you have resources in multiple AZs, all sharing one NAT Gateway, and the AZ containing the NAT Gateway goes down. What happens to the resources in the other AZs?

A

The resources in the other AZs will lose internet access

This is why it is important to have an AZ-independent architecture

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

How might you create an AZ-independent architecture for NAT?

A
  • Create a NAT Gateway in each AZ
  • configure routing to ensure that resources use the NAT Gateway in the same AZ