VPC Flashcards

1
Q

What does VPC stand for?

A

Virtual Private Cloud

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

What is the difference between a private and public subnet?

A
  • Public can be accessed from the internet via an IGW (Internet Gateway)
  • Private cannot be accessed from the internet.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are Route Tables used for?

A

To define access to the internet/between subnets

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

How does AWS provide subnets for you in a VPC?

A
  • Each AZ comes with a “default” vpc, which contains a public subnet.
  • You cannot create private subnets.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can a private subnet access the internet?

A

The private subnet connects to the public subnet via a NAT Gateway (AWS managed)/NAT instance (self managed), which can access the IGW.

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

How can a private subnet access the internet?

A

The private subnet connects to the public subnet via a NAT Gateway (AWS managed)/NAT instance (self managed), which can access the IGW.

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

What is a NACL?

A

Network ACL (Access Control List):
- A firewall which controls traffic from and to a subnet
- Can have ALLOW and DENY rules
- Attached at the subnet level
- Rules only include IP addresses
- Stateless (rules must be set for outbound traffic)

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

How are security groups used with VPC?

A
  • Security groups are a firewall that control traffic to and from an ENI (elastic network interface, can contain different types of IP address)/ an EC2 instance
  • Can only have ALLOW rules
  • Rules include IP addresses and other security groups
  • Stateful: return traffic is automatically allowed, regardless of rules
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the VPC flow log?

A

Information about IP traffic going into your VPC

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

What is VPC Peering?

A

Connect two VPC, privately, using AWS’ network, allowing them to behave as if they were in the same network.

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

What is a requirement of VPC Peering?

A
  • Must not have overlapping CIDR (IP address range)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does it mean to say that VPC Peering is not transitive?

A

If A is connected to B, and B to C, that does not mean that A is connected to C.

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

What is a VPC Endpoint?

A

An endpoint allowing you to connect to AWS services using a private network instead of the public network
- This gives you enhanced security and lower latency to access AWS services

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

What is the difference between VPC Endpoint Gateway and VPC Endpoint Interface?

A

Gateway - S3 and Dynamo DB
Interface - The rest (e.g., cloudwatch).

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

What is Site to Site VPN?

A
  • Connect an on-premises VPN to AWS
  • Connection is automatically encrypted
  • Goes over the internet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is Direct Connect (DX)?

A
  • Establish a physical connection between on-premises and AWS
  • Connection is private, secure and fast
  • Goes over a private network
  • Takes at least a month to establish
16
Q

What is the limitation with Site to site and DX with respect to VPC endpoints?

A

Site to Site VPN and DX cannot access VPC endpoints.

17
Q

What is a subnet?

A

Tied to an AZ, it is a network partition of the VPC.