What is a Virtual Private Cloud?
A software version of a physical network that links resources in a project
What are some key points of a VPC? (7)
What are some key points about subnets in a VPC? (7)
How do you create a VPC via shell?
glcoud compute networks create [VPC NAME] –subnet-mode=[auto|custom]
How do you create custom subnets for a VPC via shell?
gcloud beta compute network subnets create [SUBNET NAME] –network=[VPC NAME] –region=[REGION] –range=[RANGE] –enable-private-ip-google-access –enable-flow-logs
How do you create a shared VPC and assign projects via shell?
At what levels can a shared VPC exist?
Folder or organization.
What is VPC peering?
allows inter-project traffic when an organization does not exist
How do you set up VPC peering via shell?
gcloud compute networks peerings create [PEER NAME] –network [VPC 1 NAME] –peer-project [PROJECT 2 NAME] –peer-network [VPC 2 NAME] –auto-create-routes
then do the same but reverse project 1, vpc1 and vpc 2
At what level are firewalls for VPC defined?
They are defined at the network level and used to control flow of traffic to VMs. They allow or deny traffic on a port and are applied in one direction (incoming or outgoing)
What are the components for VPC firewall rules (7)?
What 2 implied rules do all VPCs start with?
Automatically created VPCs have what 4 network rules created?
How do you create a VPC firewall via shell?
gcloud compute firewall-rules create
many options
How do you increase the number of addresses available on a VPC subnet?
gcloud compute networks subnets expand-ip-range [SUBNET NAME] –prefix-length [NEW PREFIX LENGTH]
You can only increase the number of addresses. The only was to decrease is to recreate the subnet.
What two tiers are available for reserving an IP?
2. Premium Tier routes all traffic over Google’s global network (more expensive)