Ends in
00
days
00
hrs
00
mins
00
secs
SHOP NOW

🚀 Get 20% OFF All Azure Products Today — Azure Super Sale!

Back to Course

GCP PlayCloud Labs

0% Complete
0/0 Steps
  1. GCP PlayCloud Labs
  2. Guided Lab: How to Launch a GCP Compute Engine Linux Instance
  3. Guided Lab: Creating a VM Using Instance Templates
  4. Guided Lab: Creating and Managing Instance Groups in Compute Engine
  5. Guided Lab: Creating a Spot VM Instance
  6. Guided Lab: Configuring Shielded VM Options
  7. Guided Lab: Exploring Instance Metadata in Google Cloud
  8. Guided Lab: Vertically Scaling a VM Instance
  9. Guided Lab: Setting up a Web Server on a VM Instance
  10. Guided Lab: Using Startup Scripts in GCP VM Instances
  11. Guided Lab: Creating a Custom Image from a VM Instance with Web Server in Google Cloud
  12. Guided Lab: Creating VM Snapshots and Restoring a VM from a Snapshot
  13. Guided Lab: Setting Up and Managing a Database on a VM Instance
  14. Guided Lab: Installing WordPress on an Ubuntu VM Instance with LEMP Stack
  15. Guided Lab: Deploying a LAMP Stack on a Compute Engine VM
  16. Guided Lab: Reserving or Promoting a Static IP Address for a VM Instance
  17. Guided Lab: SSH Access to GCP VM Instance from Local Machine using SSH Key Pair
  18. Guided Lab: Guarding Your VM with Deletion Protection
  19. Guided Lab: Setting Up a Linux Bastion Host on GCP
  20. Guided Lab: Creating a Cloud Storage Bucket
  21. Guided Lab: Uploading, Organizing, and Managing Objects in Cloud Storage
  22. Guided Lab: Exploring Google Cloud Storage Classes
  23. Guided Lab: Hosting a Static Website in Google Cloud Storage Bucket
  24. Guided Lab: Protecting Data on Cloud Storage Bucket Against Accidental Delete and Overwrite Using Object Versioning
  25. Guided Lab: Using Cloud Storage Lifecycle Rules to Automate Object Management
  26. Guided Lab: Managing Cloud Storage Buckets via SSH Commands
  27. Guided Lab: Creating a Cloud SQL Instance
  28. Guided Lab: Running SQL Commands in Cloud SQL Studio
  29. Guided Lab: Creating and Restoring Cloud SQL Backups
  30. Guided Lab: Integrating Cloud SQL Database instance with a VM instance
  31. Guided Lab: Connecting Cloud SQL Database with MySQL Workbench (Local)
  32. Guided Lab: Guarding Your Cloud SQL Instances with Deletion Protection
  33. Guided Lab: Creating a Cloud NAT Gateway
  34. Guided Lab: Creating a Google Kubernetes Engine (GKE) Cluster
  35. Guided Lab: Connecting to a Kubernetes Engine Cluster
  36. Guided Lab: Deploying a Simple Web Application on GKE
  37. Guided Lab: Creating a Custom Virtual Private Cloud (VPC)
  38. Guided Lab: Establishing VPC Peering for Secure Cross‑Network Communication
  39. Guided Lab: Configuring Firewall Rules to Secure and Access a VM
  40. Guided Lab: Creating an Application Load Balancer
  41. Guided Lab: Creating a Network Load Balancer
Lesson 22 of 41
In Progress

Guided Lab: Exploring Google Cloud Storage Classes

Description

Google Cloud Storage provides multiple storage classes, including Standard, Nearline, Coldline, and Archive, to meet different use cases based on data access frequency, durability, and cost. Understanding these classes is essential for designing efficient storage strategies and managing data lifecycle effectively.

In this guided lab, you’ll create multiple buckets, each with a different storage class, upload sample files, and explore the characteristics of each class. You’ll learn how access frequency, retrieval times, and cost considerations differ across classes, giving you a practical understanding of when to use each storage class.

Prerequisites

This lab assumes you are familiar with creating Cloud Storage buckets and uploading objects through the Google Cloud Console.

If you find any gaps in your knowledge, consider taking the following lab/s:

Objectives

In this lab, you will:

  • Create Cloud Storage buckets with different storage classes
  • Upload sample files to each bucket
  • Compare storage classes based on access frequency and intended use
  • Understand the trade-offs between cost and retrieval times

Lab Steps

Creating Cloud Storage Buckets with Different Storage Classes

1. In the Google Cloud Console, use the search bar to navigate to Cloud Storage

2. Go to the Buckets tab, then click Create or Create bucket.

3. Configure the first bucket with the following:

  • Name: <your-desired-bucket-name>-standard
  • Location type: Region
  • Location: us-central1
  • Storage class: Standard

Once done, click Create. Then tick the “Enforce public access prevention on this bucket“.

4. Repeat the process to create three more buckets, using the same region and access control, but different storage classes:

  • Archive: <your-desired-bucket-name>-archive
  • Nearline: <your-desired-bucket-name>-nearline
  • Coldline: <your-desired-bucket-name>-coldline

You can change the storage class of your bucket in the “Choose how to store your data” section

5. Confirm that the four buckets with different storage classes were created and appear in your list of buckets.

Uploading a sample file to each bucket

1. Create the following demo.txt file on your local machine containing “Hello! This is for exploring the different Cloud Storage classes.“:

2. Open each bucket one by one, then click Upload files and select the same .txt file for all buckets.

3. Verify that the file appears in each bucket.

Comparing Storage Classes by Access Speed and Cost

Testing its Retrieval

1. Open the Standard bucket, locate your uploaded demo.txt file, and click Download. Observe how quickly the file is retrieved.

2. Repeat the download for the Nearline, Coldline, and Archive buckets.

Note: Retrieval from Coldline and Archive may not feel slower with a small .txt file, but for larger files in a real environment, the download speed and latency would be more noticeable.

Reviewing Storage Cost

1. Go back to the Buckets tab, then go to the bucket creation page by clicking Create or Create bucket.

2. Select each of the storage classes one by one, then check the estimated cost of each storage class on the upper right side of the page. (Don’t proceed with creating the bucket itself)

You can see here that the Standard storage class has the highest storage cost, while Nearline is lower, Coldline is even lower, and Archive has the lowest storage cost. However, while storage costs decrease, retrieval costs increase, with Archive having the highest retrieval cost. This demonstrates how Google Cloud Storage offers different classes to help optimize costs based on both storage and access patterns. A table below shows a simple comparison between each storage class:

Storage ClassStorage CostRetrieval CostRetrieval LatencyWhen to use?
StandardHighestLowestFastestFrequently accessed data, websites, active projects
NearlineLowerHigherFastInfrequently accessed files, monthly backups, logs
ColdlineEven lowerEven higherSlightly slowRarely accessed data, quarterly backups, historical reports
ArchiveLowestHighestSlowestLong-term archival, compliance data, rarely accessed records
Comparison of Google Cloud Storage Classes by Cost and Use Case

You’ve successfully created multiple Cloud Storage buckets, uploaded objects, and explored the differences between Standard, Nearline, Coldline, and Archive storage classes using the Google Cloud Console. This guided lab helps you understand how storage class selection affects costs, access frequency, and data management. You can apply these concepts to real-world projects, such as backups, logs, or archival data, and in future labs, you’ll explore more advanced features, such as combining storage classes with lifecycle rules or automated data transitions.

Skip to content