hands-on lab

Create a Network Infrastructure with Google Virtual Private Cloud

Up to 30m
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.


Google Virtual Private Cloud (VPC) is a fully managed service that allows you to create VPCs. A VPC is an isolated environment hosted in the Google Cloud infrastructure. Inside a VPC, you can define Subnets in any available region you want. Then, you can create resources inside them. By using Google Virtual Private Cloud, Subnets in different regions can communicate without traversing the public Internet. Google Virtual Private Cloud also allows you to create firewall rules that filter the ingress and egress traffic, blocking any unapproved traffic. In this lab, you will create a basic Network infrastructure composed of a VPC, two Subnets in different regions, and two firewall rules that will filter the ingress traffic.

Learning Objectives

Upon completion of this lab you will be able to:

  • Create a Virtual Private Cloud
  • Handle multiple Subnets inside the VPC
  • Define firewall rules to filter ingress or egress traffic

Intended Audience

This lab is intended for:

  • Google Cloud Associate Cloud Engineer (ACE) certification candidates
  • Individuals who want to improve their skills in the networking area
  • Solutions architects who want to build highly-available and secure network infrastructures


Basic knowledge of VPCs and Subnets is a plus but it is not required.


March 29th, 2023 - Updated the instructions and screenshots to reflect the latest UI

April 25th, 2022 - Updated the instructions and screenshots to reflect the latest UI

March 24th, 2022 - Updated screenshots to reflect UI

January 17th, 2022 - Updated the instructions and screenshots to reflect the latest UI

April 14th, 2021 - Moved validation checks to the most relevant lab step for more immediate validation feedback

Environment before

Environment after

About the author

Learning paths

Stefano studies Computer Science and is passionate about technology. He loves working with Cloud services and learning all the best practices for them. Google Cloud Platform and Amazon Web Services are the cloud providers he prefers. He is a Google Cloud Certified Associate Cloud Engineer. Node.js is the programming language he always uses to code. When he's not involved in studying or working, Stefano loves riding his motorbike and exploring new places.

Covered topics

Lab steps

Signing In to the Google Cloud Console
Creating a Google Virtual Private Cloud
Creating Two Subnets Inside the Virtual Private Cloud
Creating the Two Firewall Rules