GCP Networkng Flashcards
(80 cards)
How can I monitor the traffic on the VPC network to see where packets are coming from?
Enabling flow logs.
What is the largest network space you can have in a GC VPC?
/8
Will the CloudFirewall block traffic between instances in the same network?
Yes as the FW rules are applied at the instance level. and at the virtual network level.
Will the CloudFirewall block traffic coming into the network?
Yes as the firewall rules are applied at the virtual network and instance level.
When you create a GCP network (VPC), will this network (VPC) span more then a single region?
Yes, when you create a network (VPC), it spans every region.
Is a GCP network (VPC) able to span projects?
No
What is an external IP?
It is an IP address available externally and is assigned to the instances network interface.
By default the external IP address is ephemeral, what dose this mean?
It means the external IP address is given an public IP from the GCP global IP pool and this IP is put back in the pool once the instance is rebooted.
I have an external IP that is ephemeral when I stop and start my instance, is the external IP returned to the GCP global pool and do i get a new one on restart?
Yes, the address is returned to the pool and you get a new one once the VM is restarted.
What are the two different types of static IP you can reserve?
In Google Cloud Platform (GCP), there are two types of static IP addresses you can reserve:
- External Static IP
Used for public-facing resources like VM instances, load balancers, or VPN gateways.
Assigned from Google’s public IP pool.
Can be either:
Regional: Used for VM instances with external access.
Global: Used for global resources like global load balancers. - Internal Static IP
Used for private communication within a VPC network.
Assigned from a private IP range in a VPC subnet.
Always regional and used for resources like:
Internal load balancers.
Private Google Kubernetes Engine (GKE) clusters.
Private service access (e.g., Cloud SQL, Filestore).
When I create firewall rule, can I apply the rule to the entire VPC (global network) ?
Yes, the rule will span the entire global VPC network.
When I create firewall rule, can I apply the rule to a group of instances?
Yes, you can match the rule based on tags
Is network load balancing regional or global?
The network load balancer is regional or multi-region.
What are the two types of IP addresses in GCP?
Static and ephemeral
Can An instance only use a static IP that has been reserved in the same region?
Yes, in Google Cloud Platform (GCP), an instance can only use a static external IP address that has been reserved within the same project and region as the instance. This rule ensures that IP addressing conforms to regional boundaries and resource management practices within GCP. Here’s a closer look at how static IP addresses work and why they are region-specific:
Static IP Addresses in GCP
Regional Resource:
Static IP addresses in GCP are regional resources. This means that each static IP must be created and used within the same region where it was reserved. For example, if you reserve a static IP in the us-central1 region, it can only be assigned to resources (like VM instances, load balancers, etc.) that are also in the us-central1 region.
Project Scope:
In addition to being regional, static IPs are scoped to the project. Only resources within the same project can use a reserved static IP. You cannot directly assign a static IP reserved in one project to a resource in another project without transferring the IP address, which involves releasing it in one project and re-reserving it in another, subject to IP availability.
Assigning a Static IP to an Instance
To assign a static external IP address to a Compute Engine instance, you can follow these steps:
Reserve a Static IP:
Go to the Google Cloud Console.
Navigate to “VPC network” > “External IP addresses”.
Reserve a new static IP in the region where your instance is or will be located.
Assign the Static IP to an Instance:
You can assign the static IP during the creation of a new instance or edit an existing instance to attach the static IP.
During the instance creation or editing process, choose the reserved static IP as the external IP for the network interface.
What is cloud interconnect?
It refers to the 3 options to connect you on-prem to GC.
What options do you have to connect from on-prem to GCP.
Cloud VPN
Peering
Dedicated interconnect
What is Dedicated interconnect?
you connect with google’s network at a colocation, this is an expensive option but supports upto 80 GBper sec, a single link is 10GB at a cost of 1700 per month.
I need 50GB bandwidth to google, what is my best option?
Dedicated interconect, this is where you connect to a colocation, colocation has a CP peering edge.
With Dedicated interconnect, do you pay egress fees?
Yes, but at a discount, upto 50%
With Dedicated interconenct can I have it connect to my VPC or Google over all for say G-Suit?
Direct interconnect only supports connecting to a VPC.
What is Peering?
Peering connects you with google network so you can call the google API and services.
Will peering connect to the internet
No
What is the peering speed?
10GB