Networking Flashcards

1
Q

Are VPCs bound to a specific zone?

A

No, vpcs are not bound geographically and can create subnets which are multi-zonal

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

Can you change the size of a subnet without affecting already existing VMs?

A

Yes, you can increase the address range of the subnet but not decrease it

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

How can two vpcs exchange traffic with one another?

A

By using vpc peering

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

How do you share vpc between multiple projects?

A

Shared VPC

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

What is the two types of vpcs and what are their differences?

A

Auto mode vcps and custom mode, auto mode vpcs generate a subnet per region automatically and each subnet can have a max address range of 16. Custom mode vpcs do not create subnets by default.

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

How many ips are reserved per subnet and what are they used for?

A

4 ips
- First ip - Network Ip
- Second Ip - Gateway Ip
- 2nd last Ip - Google used
- Last Ip - Broadcast

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

What is Private Google Access and what is it used for?

A

Private google access is a configuration for subnets that allows them to use private ips to reach google services. Otherwise a public ip with internet connection must be used.

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

What are the two types of IPs, describe them

A

Ephemeral and Static, ephemeral live whilst the resource their attatched to exists, static ip addresses still exist after the resource is destroyed and can be reassigned to another.
Ephemeral Ips can be converted to static.

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

What command allows you to promote a ephemeral ip address to a static one.

A

gcloud compute adresses create promoted-external –adresses (ip) –region (region)

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

What different bgp routing modes can vpcs have?

A

Regional and Global
Regional has cloud routers share local subnet routes to BGP peers
Global has cloud routers share subnets from all regions to BGP peers

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

Which command expands subnet ip address range?

A

gcloud compute networks subnets expand-ip-range (subnet-name) –region (region) –prefix-length (prefix-length)

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

What is the command to create a new vpc?

A

gcloud compute networks create (network-name) –subnet-mode (mode) –range (range, not needed)

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

Which command allows you to create a subnet?

A

gcloud compute networks subnets create (subnet name) –network (network name) –region (region)

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

What are the 3 types of NATing?

A

Static - 1 to 1 private to public ip translation
Dynamic - 1 to many private to pool of public ips
PAT - many to 1 private to public ip translation with external communications being seperated by port

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