VPC Flashcards

1
Q

How many networks can a project contain by default?

A

5

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

What are the 3 types of VPC networks?

A

Default, Auto, Custom

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

A network in Google Cloud has these featuures

A

Global and spans all available regions
Has no IP address range
Contains subnetworks

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

Default network type

A

Every project gets this VPC with preset subnets and firewall rules.
A subnet for each region with non overlapping CIDR blocks.
Firewall rules allow ICMP, RDP and SSH traffic from anywhere. Within the network, any ingress traffic is allowed.
Also an auto mode network.

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

Auto mode network type

A

Default network
Regional IP allocation
Fixed /20 subnetwork per region, expandable up to /16
As new regions become available, auto added
Can be converted to custom to avoid auto adding (1 way)
All subnets fit in 10.128.0.0/9 CIDR block

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

Custom mode network type

A

Full control
Subnets cannot overlap IP ranges

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

Describe how resources in different regions and/or networks communicate

A

Resources in same network can communicate across regions with internal IP
Resources in different networks cannot communicate with internal IP

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

Describe how a basic VPN would connect to a VPC with multiple regions

A

Single VPN Gateway can leverage global VPC

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

A subnet reserves what IP addresses

A

4 total reserved addresses
.0 and .1 for network and subnet’s gateway
Second to last and last address for broadcast

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

What is relationship between subnets and regions/zones, and how does it affect firewall rules

A

Subnets work on a region, which has multiple zones. So subnets can cross zones (for the given region)
Use same subnet IP address so a single firewall rule will work

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

Subnet expansion features

A

Can increase IP address space of any subnets without workload shutdown or downtime
Note still cant overlap, need valid CIDR block
Cannot undo

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

How many IP addresses can a machine have?

A
  1. One internal, one (optional) external. Although… see Alias IP Ranges
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

External IP address types

A

Ephemeral or static

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

Static IP address cost more when…

A

they are not used/assigned

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

External IP addresses are mapped to…

A

the internal IP address

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

Cloud DNS Features and Availability

A

Host DNS zones. 100% availability

17
Q

Alias IP Ranges

A

Assign range of internal IP addresses as an alias to a VM’s network interface. Useful if multiple services or containers running on VM

18
Q

Define a Route. Every network has what kind of routes?

A

Mapping of an IP range to a destination. Routes that let instances in a network send traffic directly to each other. A default route that directs packets to destinations that are outside the network.

19
Q

Manually created networks and firewalls

A

Manually created networks have no default firewall rules

20
Q

Routes are created automatically when

A

A network is created. A subnetwork is created.

21
Q

VPC and Firewall Relationship (mention ingress/egress rules, how firewall connections work)

A

VPC network functions as a distributed firewall
Firewall rules are applied to the network as a whole
Connections are allowed or denied at the instance level
Firewall rules are stateful (if connection established, allow bidirectional comms)
Implied deny all ingress and allow all egress

22
Q

Firewall rule is composed of

A

direction, source or destination, protocol and port, action, priority, and rule assignment

23
Q

Example Network Pricing for Compute Engine

A

Ingress - No Charge (unless something like load balancer)
Egress to same zone (internal IP address) - No Charge
Egress to Google Products - No Charge
Egress to a different GCP service in same region - No Charge (for most)
Egress between zones in same region - .01
Egress to the same zone (external IP address) - .01
Egress between regions within US and Canada - .01
Egress between regions, not including US regions - varies by region

24
Q

How to estimate costs

A

Google Cloud Pricing Calculator

25
Q

Structure of a Network with Increased Availability

A

Use multiple zones in same subnetwork (single firewall rule on CIDR block). IE VMs in multiple zones.

26
Q

Structure of a Network with Globalization

A

Use multiple regions. Load balancer can route to region that is closest to user.

27
Q

Cloud NAT

A

Provides internet access to private instances (internal IP addresses) for things like updates, patching, etc. Outbound initiated only.

28
Q

Private Google Access definition and scope

A

Provides access to Google APIs and services for VM instances with only internal IP addresses. Subnet-by-subnet basis. Does not impact VMs with public IP addresses.

29
Q

Firewall rules added via

A

Tags