Bitzu

Associate Cloud Engineer ยท VPC design and firewalls

Shared VPC: host and service projects

Host and service projects, Shared VPC Admin, subnet-level permissions (compute.networkUser), when to use Shared VPC vs VPC peering.

Key points

  • A Shared VPC Admin enables a project as a host project and attaches service projects to it.
  • Resources in service projects get IPs from the host's subnets.
  • Access to subnets is granted with roles/compute.networkUser, at project level (all subnets) or per subnet.
  • Everything must sit in one organization, and a project is either host or service, never both.

Source: https://docs.cloud.google.com/vpc/docs/shared-vpc

Practice questions

Single choice

In Shared VPC, which project owns the shared network and its subnets?

  1. Each service project
  2. The host project
  3. The organization's billing project
  4. Whichever project created the first VM
Show answer

Answer: B. The host project

The host project owns the Shared VPC network; service projects only use its subnets.

Select all that apply

Which statements about Shared VPC are correct?

  1. A project cannot be a host and a service project at once
  2. A service project attaches to only one host project
  3. Host and service projects belong to the same organization
  4. A service project may attach to several host projects
  5. Host and service projects can be in different organizations
Show answer

Answer: A. A project cannot be a host and a service project at once, B. A service project attaches to only one host project, C. Host and service projects belong to the same organization

A project cannot be both host and service, each service project attaches to one host, and everything stays inside one organization.

True or false

A project can act as a Shared VPC host project and a service project at the same time.

Show answer

Answer: False

False. A project is either a host or a service project, never both.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More Associate Cloud Engineer topics in this module