VPC Flashcards

1
Q

By default, how many VPCs are allowed in each region?

A

5

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

What is the largest VPC CIDR allowed in AWS?

A

/16

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

What are the private IP classes/ranges?

A

10/8

  1. 32/12
  2. 168/16

Reference: CIDR.xyz

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

How traffic can enter the VPC?

A

Internet Gateway and Virtual Private Gateway

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

How the default VPC is designed?

A

Each instance has both public and private IPs

All subnets have a route out to the internet

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

VPC Peering

A

Connect one VPC with any other VPC using private IP addresses;
Peering is a start configuration: i.e. 1 central VPC peers with 4 others (no transitive/intercept peering)
You can peer between regions

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

What resources are automatically created when a new VPC is provisioned?

A

The MAIN Router Table (designed to be the private subnet), NACL, Security Group

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

When launching a 10.0.0.0/24 subnet, only 251 IPs are available. Why?

A

The first four IPs and the last one are reserved:

  1. 0.0.0-Network address
  2. 0.0.1-VPC router
  3. 0.0.2-DNS Server
  4. 0.0.3-Reserved for future use
  5. 0.0.255-Reserved for Broadcast, but no supported
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Explain NAT Gateway VS NAT Instance

A

NAT Gateway is a highly available managed service inside THE Availability Zone, so it is recommended to create one NAT Gateway per AZ. While NAT instance is an EC2 (with NAT community AMI) what you configure according to your needs. Also, the route table needs to be complemented to forward 0.0.0.0/0 traffic to the NAT Instance ENI

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

What is need to disable on a newly created NAT instance?

A

Source/Destination Check

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

What are the default rules for a created NACL?

A

Both inbound and outbound traffic are denied from/to everywhere

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

What is an ephemeral port?

A

It is a short-lived port dynamically assigned. A NAT Gateway uses the ports 1024-65535

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

Why the NACL rules matter?

A

The lower the number, the higher the priority. If something needs to be denied, it needs to come first.

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

What is VPC Flow log and what it can monitor?

A

VPC Flow log monitors the accepted or failed traffic of the VPC/Subnet/NIC and sends the logs to either S3 or CloudWatch Logs

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

What is a bastion host?

A

It is a hardened host either on the outside of the firewall or in a DMZ

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

What is Direct Connect?

A

It is a solution that allows onpremise to establish private connectivity to the cloud with lower cost, increased bandwidth throughput, and a more consistent network experience

17
Q

What is the purpose of Global Accelerator?

A

It provides better availability and performance by creating a straight route from customers to the final endpoint (EC2, ALB, ElasticIP, etc).

18
Q

What is a VPC Endpoint?

A

It is virtual device that will allow your service requests to go straight to the target service such as S3. It skips the NAT Gateway, Direct Connect, VPN Connection, Internet Gateway, etc.

Interface Endpoint: ENI with a private IP that can be used to route the traffic straight to the target service. This ENI will be attached to the EC2. (Several services)
VPC Endpoint: Similar to interface endpoint, but a route is added to the subnet route table. (S3 and DynamoDB only for now)

19
Q

What is a VPC PrivateLink?

A

It is the technique used to link tens/hundreds/thousands of VPCs.
It requires a NLB on the service and an ENI on the customer VPC

20
Q

What is the purpose of Transit Gateway?

A

It is a way to simplify the network topology. It works with hub-and-spoke model by supporting transitive peering between VPCs. It also supports IP multicast (not supported by any other AWS service)

21
Q

VPN CloudHub

A

It is similar to Transit Gateway, hub-and-spoke model, to connect multiple on premise locations using site to site vpn connections with low cost.

22
Q

Describe the AWS Network cost

A

Data injection is free
Data traffic within the same AZ using private IP is free
Data traffic Inter-AZ is $0.01/GB
Data traffic within the same AZ using private public IP is $0.02/GB
Data traffic between VPCs is also $0.02/GB