VPCs Flashcards

(48 cards)

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 a VPC?

A
  • Think virtual data center in the cloud
  • A logically isolated section of AWS where you can launch AWS resources in a virtual network that you define
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is VPC Peering?

A
  • Allows you to connect one VPC with another via a direct network route using private IP addresses
  • Instances behave as if they were on the same private network
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Can VPC Peering be done between two VPCs in different AWS accounts?

A

Yes

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

Suppose VPC A is peered with VPC B, and VPC B is paired with VPC C. Is VPC A considered peered with VPC C?

A

NO. VPC Peering is NOT transitive!

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

Can you use VPC Peering to peer two VPC in different AWS regions?

A

Yes

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

What does IGW stand for?

A

Internet Gateway

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

What are the key components of a VPC?

A
  • Gateway (IGW or Virtual Private Gateway)
  • Route Tables
  • Network Access Control Lists
  • Subnets
  • Security Groups
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Can you have two VPC subnets in the same AZ?

A

Yes

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

Can you have a subnet stretched across multiple AZs?

A

No

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

When you create a VPC, what infrastructure is created by default?

A
  • A Default Route Table
  • A Network ACL
  • A Default Security Group

(Note that it does NOT create subnets or IGWs)

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

If I launch a VPC into US-East-1a in my account, and someone else launches a VPC into US-East-1a in their account, does this mean the two VPCs are in the same AZ?

A

Not necessarily, The AZ’s are randomized

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

How many IP Addresses does Amazon Reserve per subnet?

A

5

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

What is the maximum number of IGWs you can have per VPC?

A

1

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

Can you have a security group spanning multiple VPCs?

A

No

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

Can you create an ELB with only one public subnet?

A

No, to create an ELB you need at least 2 public subnets

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

What is a Bastion Host?

A

A hardened, secure request forwarder allowing you to SSH/RDP in to private subnets in order to administer them (Idea is about lowering surface area of attack)

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

Can you use a NAT Gateway as a Bastion Host?

A

No

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

Are Bastion Hosts usually placed in a private subnet or a public subnet?

A

They are placed in a public subnet so you can access the private subnet

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

What is Direct Connect and what are its primary use cases?

A
  • Idea is that it directly connects your data center to AWS
  • Useful for high throughput workloads (lots of network traffic)
  • Useful if you need a stable and reliable secure connection
21
Q

What is AWS Global Accelerator?

A

A service in which you create accelerators to improve availability and performance of your applications for local and global users

22
Q

How many static IP addresses does AWS assign to you for Global Accelerator?

A

2

(Note you can also bring your own static IPs!)

23
Q

How do you control traffic in AWS Global Accelerator?

A

Use traffic dials. This is done within an endpoint group

24
Q

What is a VPC Endpoint?

A

A VPC Endpoint enables you to privately connect your VPC to supported AWS Services without requiring an internet gateway, or connecting to the public internet

25
What are the two types of VPC Endpoints?
* Interface Endpoints * Gateway Endpoints
26
For what services are VPC Gateway Endpoints supported?
* Amazon S3 * DynamoDB
27
Suppose you want to peer a VPC with tens or thousands of other customer VPCs. What is the best way to accomplish this?
**AWS PrivateLink**
28
Does AWS PrivateLink require VPC Peering?
**No**. There's no NAT, no route tables, no IGWs, etc.
29
What is required to use AWS PrivateLink?
* A Network Load Balancer on the service VPC * An ENI on the customer VPCs
30
What is **AWS Transit Gateway** used for?
* It allows you to have transitive peering between thousands of VPCs and on-premises data centers * Think **simplify network topology** * Always works on a hub-and-spoke model
31
Can you use AWS Transit Gateway across multiple regions?
**Yes**
32
Can you use AWS Transit Gateway across multiple accounts?
**Yes**
33
Do AWS Transit Gateways work with Direct Connect?
**Yes**
34
When using AWS Transit Gateways, how can I limit how VPCs talk to one another?
Use **route tables**
35
What is the ONLY AWS Service that supports **IP Multicast**?
**AWS Transit Gateway**
36
What is the use case for **AWS VPN CloudHub**?
* Connecting multiple sites, each with a VPN Connection, together over a hub-and-spoke model * It operates over the public internet, but all traffic between the customer gateways and the VPN CloudHub is encrypted
37
When using VPCs, will private IPs or public IPs produce a lower network cost? Why?
Private IPs result in lower cost for cross-AZ traffic (within the same region). The cost difference is mainly due to Data Transfer Out charges for Public IPs vs. the lower Data Transfer charges for Private IPs on the AWS network.
38
In general, does AWS charge you more/less/or the same for communicating between VPCs in different AZs within the same region vs. communicating between VPCs in different regions?
communicating between VPCs in different AZs in the same region is **less expensive** than communicating between VPCs in different regions.
39
How can you use VPCs and cut all network costs? What is the problem with that approach?
* Use private IP addresses * group all EC2 instances in a single AZ * This is a problem because it leaves a single point of failure
40
What is the definition of a **public subnet**?
One that **has at least one route in its routing table that uses an IGW**
41
Does VPC peering support edge to edge routing?
**No**
42
What components define the internal segmentation boundaries of a VPC?
- Subnets (logical segmentation within an AZ) - CIDR range (custom IP address ranges)
43
How is traffic directed within the VPC and to the internet?
**Route Tables**
44
In the context of VPCs, what is a **route table**?
A **path between subnets**, to the IGW, or to a VGW
45
What does **VGW** strand for?
**V**irtual Private **G**ate**w**ay
46
What are the two layers of security controls for VPC, and where do they apply?
1. **Security Groups** -- _stateful_ firewall applied at the _instance/ENI_ level 2. **NACLs** -- _stateless_ firewall applied at the _subnet_ level
47
What two components allow for traffic to flow _outside_ the VPC?
1. IGW (for public internet access) 2. VGW (for VPN/Direct Connect to On-premises)
48
What are the 3 key difference between a Security Group and an NACL?
SGs are **Stateful**, apply to **instances** and support **ALLOW only** NACLs are **Stateless**, apply to **subnets** and support **both ALLOW and DENY**