Networking and VPC Flashcards

1
Q

Main difference between Transit Gateway and VPC peering?

A

Both can be used to peer multiple VPCs. Transit Gateway is transitive, while VPC peering isn’t.
Transit Gateway can also be shared cross-account with Resource Access Manager

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

What are VPC endpoint useful for?

A

Access AWS resources from a VPC using a private network instead of internet

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

How many IPs are reserved from each subnet in a VPC?

A

5 IPs, first 4 and last 1 of the IP range specified for the subnet
You need to take this into account to specify the correct IP range size to provide your instances with enough IPs

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

What is Internet Gateway?

A

It allows resources in a VPC to connect to the internet
It’s highly available, and needs Route Tables for internet access
A VPC can only be attached to one IGW and vice versa

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

What is Bastion Host?

A

It’s an EC2 instance located in a public subnet, that allows you to SSH into your EC2 instances in private subnets

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

What’s the disadvantage of using a NAT Instance?

A

You have to manage the EC2 instance, so launching EC2 with a NAT AMI. It’s not resilient and not HA (unless you create multiple instances by yourself)
You have to manage the security groups, so allow traffic from private subnets and allow traffic to the internet
You have to disable Source/Destination Check on the EC2 instance

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

What’s the advantage of NAT Gateway?

A

Highly available, higher bandwith (5 Gbps scaling up to 45 Gbps automatically)
No security groups to manage

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

Can I use a NAT Gateway from an EC2 Instance deployed in the same subnet?

A

No

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

What’s the difference between NACL and Security Groups?

A

NACLs are stateless, security groups are stateful
If there is an incoming request, NACLs will evaluate the rule on both inbound and outbound, while security groups will evaluate only inbound and allow outbound by default. Viceversa for outgoing requests

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

How are NACLs set by default?

A

NACLs are set for each subnet and their default rules allow all IPs for inbound and outbound

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

What’s VPC peering?

A

You can privately connect two VPCs, even if they are from different accounts or are in different regions
You must update route tables in each VPC subnets to ensure the EC2 instances can communicate with each other

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

Which service supports equal cost multi-path (ECMP)?

A

Transit Gateway
You can route into the Transit Gateway through multiple VPN tunnels, therefore enhancing the connectivity to be over the default limit of 1.25 Gbps
You must enable dynamic routing option on Transit Gateway to take advantage of it

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

What’s the connection speed of Direct Connect?

A

Dedicated Connections: 1 Gbps, 10 Gbps or 100 Gbps
Hosted Connections: 50 Mbps, 500 Mbps, to 10 Gbps

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

What is Direct Connect Gateway?

A

It allows to use a single Direct Connect to connect into multiple VPCs in different regions

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

What’s the allowed CIDR block size in a VPC?

A

Between /16 and /28

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

Every subnet you create is automatically associated with main route table of the VPC. True or false?

A

True

17
Q

What is AWS Network Firewall?

A

A service to inspect traffic. You can inspect traffic at VPC level, to/from internet/direct Connect/site-to-site VPN.
You can apply 1000s of rules or create custom rules
You can filter by IP, Port, Patterns, domains
Rules can be centrally managed with Firewall Manager to apply the same to cross-account VPCs

18
Q

Can you use VPC endpoint across different regions?

A

No, VPC endpoints don’t support cross-region communication

19
Q

How is AWS Site-To-Site VPN connection established?

A

There has to be a Virtual Private Gateway (VGW) on VPC side. Each VPC can have max 1 VGW
There has to be a Customer Gateway Device on-premises. The device can have a public IP associated or can be put behind a NAT device with NAT traversal enabled

Route propagation for VGW must be enabled in Route Table

20
Q

Can an account share their VPC with another accounts of the same Organization with Resource Access Manager?

A

No, it can only share subnets