VPC Overview Flashcards

1
Q

Can Security Groups span subnets?

A

Yes

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

Does one subnet have to stay in one availability zone?

A

Yes

One Subnet = One AZ

Subnets cannot cross availability zones

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

What RFC 1918 adresses ranges can be used?

A
  1. 0.0.0 /8 (10.0.0.0 - 10.255.255.255.)
  2. 16.0.0 /12 (172.16.0.0 - 172.31.255.255)
  3. 168.0.0 /16 (192.168.0.0 - 192.168.255.255)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How many VPC’s can you have in a region?

A

Soft limit of 5

Get more by contacting AWS

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

How many internet gateways can you have in a VPC?

A

one

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

Can security groups span availability zones?

A

yes

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

Can security groups span subnets?

A

yes

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

Default VPC Overview

A

all subnets have route to internet

every EC2 instance has a public and private IP address

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

VPC Peering Overview

A

Peer with a direct route with private IP addresses

Instances act as if on the same private network

Can peer with other AWS accounts and other VPC’s in same account

Peering always in hub-spoke configuration.

Never have transitive peering

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

List 5 Main Components of a VPC

A
Internet Gateways (or Virtual Private Gateways)
Route Tables
NACLs
Subnets
Security Groups
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Are Security Groups Stateful?

A

Yes

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

Are NACLs Stateless?

A

Yes

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

Compare stateful vs stateless

A

Open port 80 on SG does outbound automatically

Open port 80 on NACL, do outbound manually

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

When you create a VPC, what things are automatically created?

A

Default Route Table
Default NACL
Default VPC Security Group

no IGW
no Subnets

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

Steps in creating VPC

A

Lecture “build your own custom VPC”

  1. Create VPC
  2. Create Subnets (assign subnet to AZ)
  3. Create internet Gateway, Attach it
  4. Create new Route Table
  5. Give new Route Table internet access by adding route (0.0.0.0/0 -> IGW)
  6. Associate Route Table with subnets
  7. Enable auto-assign public IP address for public subnets

(by default new subnets are associated with main route table, so for security, you don’t want main route table to have internet access. Create new route table for the VPC and associate the subnets with it)

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

How many IP addresses do you lose when you provision a subnet?

A

5

.0 network address
.1 VPC router
.2 AWS DNS Server always reserved
.3 AWS for future use
.255 network broadcast not supported in AWS but reserved
17
Q

Can Security Groups span VPC’s?

A

NO

18
Q

Name a couple issues with NAT Instances

A

Single Point of Failure
Performance isn’t great, scaling involves ASG, multiple AZ’s and gets complicated with scripting

Have to edit the instance networking settings to disable source/destination checking

replaced with NAT Gateway

19
Q

What’s the difference between

Egress Only Internet Gateway and NAT Gateway?

A

Egress only is for IPv6

NAT Gateway is for IPv4

20
Q

What did you goof up when you created a NAT Gateway?

A

Put it in the private subnet.

Fixed by deleting, making new one in public subnet

21
Q

Do you want to install NAT Gateways in multiple AZ’s?

A

Yes
If one AZ fails, the NAT Gateway will go down.

Route between them for redundancy

22
Q

Max bandwidth on NAT Gateway

A

10Gbs

23
Q

Do NAT instances have to be in a public subnet?

A

Yes

24
Q

How does NAT instance size affect the amount of traffic it can handle?

A

The amount of traffic depends on the instance size

25
Q

How many public subnets do you need in order to deploy an application load balancer?

A

At least 2