Google Cloud Engineer interview question · Most asked
How is networking in a Google Cloud VPC different from AWS?
Comparison Asked in Cloud Engineer interviews
Summary
A Google Cloud VPC network is global: one network spans all regions, and its subnets are regional, so VMs in different regions talk over Google's backbone with internal IPs without peering. Firewall rules belong to the network and target instances by network tags or service accounts. In AWS, a VPC is regional and subnets are zonal.
Longer Answer
- Subnets are regional and can be expanded without downtime.
- Firewall: stateful VPC firewall rules plus hierarchical firewall policies at organisation or folder level and network firewall policies; implied deny ingress, allow egress.
- Shared VPC: a host project owns the network; service projects deploy into its subnets, so a central team controls networking while app teams own their projects.
- VPC Network Peering is non-transitive; Network Connectivity Center offers hub-and-spoke.
- Cloud NAT gives private instances outbound access; Private Google Access lets them reach Google APIs without external IPs.
Key Points
- VPC is global; subnets are regional.
- Firewall rules target tags or service accounts.
- Hierarchical firewall policies for guardrails.
- Shared VPC separates network and app ownership.
- Cloud NAT and Private Google Access for private instances.
Explanation
What interviewers look for
Knowing the global VPC model and Shared VPC, which are frequent interview topics.
More Google Cloud Engineer questions
- How do you design a Google Cloud landing zone for a company with several teams?
- How do you run Terraform for Google Cloud safely in a team?
- Explain Google Cloud's resource hierarchy: organisation, folders, projects and resources.
- How does IAM work in Google Cloud, and why should you avoid basic roles?
- Compare Google Cloud's database options: Cloud SQL, AlloyDB, Spanner, Firestore and Bigtable.
- What are service accounts, and how should workloads authenticate without service account keys?
- When would you choose Cloud Run, GKE or Compute Engine?
- Design a highly available web application on Google Cloud.