6-VPCs Flashcards

1
Q

What are the basic components of VPCs?

A
  • The CIDR address range
  • Subnets
  • Route tables
  • Network gateways
  • NACLs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does the CIDR address range work?

A

It covers the private IP addresses of resources in the VPC

The smaller the number after the slash, the bigger the range

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

How do subnets work?

A

They exist in a single AZ. It is common to have public and private subnets

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

How do route tables work?

A

Thye control traffic between subnets and to the gateways

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

How do network gateways work?

A

There are two types - there can be up to one IGW (internet gateway) which connects straight to the internet

Virtual Private Gateways create hardware VPN connections

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

What is the default VPC like?

A

All subnets have a route to the internet and each instance has a public and private IP address

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

How do NACLs work?

A

They act as firewalls for subnets

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

How does VPC peering work?

A

Allows resources to use private IPs for resources in another VPC

Peering can be across accounts but not across regions

Transitive peering and peering with overlapping CIDR blocks is not supported

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

How can EC2 instances in a private subnet access the internt?

A

with NAT in which traffic is routed through a resource in a public subnet, whose public IP is used

There are two options - NAT instances are NAT gateways

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

What are NAT instances?

A

Generic EC2 instances that are placed in a public subnet.

The disable “source/destination check” option must be enabled

For high-availability, redundancy and fail-over needs to be configured

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

What are NAT Gateways?

A

A managed service that are highly-available and automatically scale up to 10 GB/s

They do not use security groups

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

How do VPC endpoints work?

A

The allow instances in private subnets to access AWS services i.e. S3

They must be configured in route tables

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

How is security in VPCs managed?

A

With NACLs and flow logs

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

How do NACLs work?

A

They define rules for inbound and outbound traffic separately - they are stateless

They consist of numbered rules that are evaluated in order, starting with the smallest number

NACLs can be shared across subnets but each subnet can only have one NACL

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

How do Flow Logs work?

A

They record IP traffic at the VPC, subnet or network interface level

You can’t reconfigure them once created or enable flow-logs for VPC peering connections that span accounts

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

What traffic is not included in flow logs?

A

Traffic to the Amazon DNS server. if a custom DNS is used then it is logged

Windows license activation

The EC2 metadata service

DHCP traffic

Traffic to the reserved IP of the default VPC router