hands-on lab

Managing Google Compute Engine Persistent Disks

Beginner
45m
112
5/5
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.
Lab description

Persistent disks are one of the core concepts when you need to store and handle data that will be used by Compute Engine instances. Persistent disks can be Zonal or Regional. Zonal persistent disks are kept in a single zone within a region; Regional persistent disks are distributed over two different zones within the same region. Persistent disks are very easy to use and offer a lot of good advantages such as high performance, reliability, and the possibility to encrypt data. Persistent disks provide you the possibility to create snapshots in a very smart and efficient way: you create a persistent disk and when you need to create a snapshot you create the first snapshot. This will have the same size of the persistent disk he has been created from. The next snapshot, will only contains information that has changed or added to the last snapshot. An intuitive example is: you create a snapshot of a disk that is 25 GB size; you then create another snapshot of the same disk that now is 26 GB (suppose you have created files and folders). The new snapshot will be 1 GB size. This method is referred to as incremental snapshots.

In this lab, you will create a zonal persistent disk, you will attach it to an existing VM and you will backup it by creating a snapshot.

Learning Objectives

Upon completion of this lab you will be able to:

  • Create a persistent disk
  • Attach a persistent disk to a Compute Engine instance
  • Perform a persistent disk backup by creating a snapshot

Intended Audience

This lab is intended for:

  • Google Cloud Security Engineer (SE) certification candidates
  • Security Engineers who want to keep data backed up and available
  • Individuals who want to understand the best practices to handle persistent disks

Prerequisites

This lab has no prerequisites.

Updates

February 11th, 2022 - Updated the instructions and screenshots to reflect the latest UI

Environment before
Environment after
About the author
Avatar
Stefano Cascavilla
Junior Data Engineer
Students
39,553
Labs
106
Courses
2
Learning paths
10

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 Zonal Persistent Disk
Attaching the Persistent Disk to a Compute Engine Instance
Creating a Snapshot of a Persistent Disk