Managing Google Compute Engine Persistent Disks
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.
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
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
This lab has no prerequisites.
February 11th, 2022 - Updated the instructions and screenshots to reflect the latest UI
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.