Cloud Storage in Google Cloud Platform (GCP)
Last Updated :
06 May, 2023
We can store our data on a remote server with Google Cloud storage, and we can access that data whenever we need to. In addition, Google Cloud Platform provides a number of cloud storage choices, each with special features and applications. The types are listed below.
- Google Cloud Persistent Disk(Block Storage)
- Google Cloud Filestore(Network File storage)
- Google Cloud Storage (Object Storage).
- Google Cloud Storage for Firebase
- Google Cloud Storage Transfer Service
Google Cloud Persistent Disks (Block Storage)
A type of block storage called Google Cloud Persistent Disks offers dependable and quick storage for your virtual machine instances on the Google Cloud Platform.
- We can back up our storage using persistent discs, which allow us to attach discs of various sorts and sizes, such as SSDs or HDDs, to the necessary virtual machines. This block storage will boost throughput and decrease latency.
- Because of its high durability and support for snapshots, persistent discs enable us to take a disc backup when necessary without losing any data.
- Once the disk is attached to the VMs then also we can change the size of the disk which makes them more flexible it can be done without losing the data.
- Persistent Disks are more secure we can encrypt the data by using a Google key or customer-managed keys and also we can restrict the access of the disk to specific users, groups, or resources by using IAM roles.
Google Cloud Filestore (Network File Storage)
A controlled network file storage service offered by Google Cloud Platform is Google Cloud File Store. It enables reliable performance and high availability for storing and sharing files.
- We can create files with the aid of file storage that can be mounted onto the necessary path and accessed from an instance operating on the GCP or on-premises.
- File storage is available in two types:
- Standard tier: It provides a throughput of 800 MB/s per share, which will result in minimal latency and good performance.
- Premium tier: The premium tier’s throughput is 1.2 GB/s per share, enables SSD storage and can be particularly beneficial for applications that require high IOPs and low latency.
- Automatic snapshots will be taken in the file storage, and since our storage is automatically backed up, we can prevent data loss.
Google Cloud Storage (Object Storage)
Object storage is scalable, durable, and secure once we store our data in object storage it can be accessed from anywhere means the object storage is region independent.
- Object storage is very different from Block storage and file storage in this we store the data in the form of objects it is more suited for static data like videos, photos, etc.
- We can save our data in accordance with our needs; for example, if we frequently use it, we will keep it in Standard storage, while less frequently accessed data can be kept in Coldline and Archive for long-term data access.
- Object storage offers us data encryption, data replication, and lifecycle management which make it more reliable and we can integrate the object storage with multiple GCP services like Google Cloud Functions, BigQuery, and AI Platform, enabling you to build powerful applications.
Google Cloud Storage Classes, Archival Storage, And Lifecycle Management Rules
For various use cases, Google Cloud Storage offers a variety of storage classes, including Archival Storage, which is made for data that is rarely accessed but needs to be kept for a long time.
Archival Storage: Archival storage is mainly used for storing data that is in infrequent access and can be retained for long periods of time. Archival data can provide a cost-effective option for storing data that is not accessed frequently but must be preserved for legal, regulatory, or business reasons.
Benefits of using Archival Storage
- Low Cost: The data stored in Archival storage is not accessed that frequently so the cost of the storage will also be very low.
- High durability: When compared to the durability of the Archival storage it same as the other storage.
- Long retention period: The data is stored in Archival storage it will be stored for long periods it will be available for more than 8 years.
- Lifecycle management: With the help of lifecycle management rules the data can be moved automatically to the Archival storage.
Accessing the data from the Archival storage is very slow then compared with other storage if the data is needed frequently the Archival data is not a suitable option.
Types of Storages Classes
Google Cloud Platform(GCP) offers different types of storage in storage classes that can be used for efferent purposes and we can use them based on their performances. The following are the storage classes available in GCP
- Standard Storage: The data which needs to be accessed frequently can be stored in Standard Storage for a general purpose. The data which is stored in this storage class is very highly available and helps us to decrease the latency.
- Nearline Storage: The data must be highly available but not accessed as frequently as standard storage. The which needs to be accessed within seconds or minutes can be stored in Nearline Storage.
- Coldline Storage: The data which is accessed infrequently can be stored in Coldline storage. The data which needs to be accessed within hours can be stored in this Coldline Storage.
The storage mentioned above will have different pricing, availability, and performance. Based on our requirements and cost we can choose the storage class that is required for us. We can also use lifecycle management rules to automatically transition data based on our requirements.
Which Storage Should I Use?
Your use case’s particular requirements will determine which Google Cloud Platform (GCP) storage option is best for you. The following list of typical GCP storage options and use cases include:
Object Storage: Large amounts of data, such as pictures, movies, backups, and archives, can be stored in the cloud. A RESTful API is used to access cloud storage, which makes it simple to integrate with other programs and services.
Block Storage: Compute Engine persistent disks are suitable for storing data that require low-latency access, such as databases, transactional workloads, and high-performance computing (HPC) applications.
FileStore: Workloads including media rendering, analytics, and content management are ideal for Cloud Filestore. Despite being primarily an object storage service, cloud storage can also be used to store files.
Cloud Storage
Cloud storage is a fully managed scalable service, no need to provision capacity ahead of time. Each object in Cloud storage has a URL. Cloud storage consists of buckets you create and configure and use to hold your storage objects(immutable – no edit, create new versions). Cloud storage encrypts your data on the server side before being written to disk. (by default = https). You can move objects of cloud storage to other GCP storage services. When you create a bucket, it is given a globally unique name, specify a geographic location where the bucket and its contents are stored, and a default storage class.
| Bucket attributes |
Bucket contents |
| Globally unique name |
Files in a flat namespace |
| Storage class |
N/A |
| Location |
Region or multi-region |
| IAM policies or access control lists |
Access Control Lists(ACLs) offer finer controls |
| Object versioning setting |
N/A |
| Object lifecycle management rules |
N/A |
| Parameters |
Multi-regional |
Regional |
Nearline |
Coldline |
| Intended for data that is |
Most frequently accessed |
Accessed frequently within a region |
Accessed less than a month |
Accessed less than once a year |
| Availability SLA |
99,95% |
99.90% |
99.00% |
99.00% |
| Access APIs |
Consistent APIs
|
| Access time |
Millisecond access
|
| Storage price |
The price per GB per month increases from left to right
|
| Retrieved price |
The total Price per GB per month transferred decreases from left to right
|
| Use cases |
Content storage and delivery |
In-region analytics transcoding |
Long-tail content backups |
Archiving, disaster recovery |
Multi-regional storage: At least 2 geographic locations separated by at least 160km
Regional: To store data close to their computing engine or virtual machines
Cloud Storage Pricing
Pricing for Cloud Storage services is based on what you use, i.e., the amount of data you store, the time period for which you store it, the number of operations you perform, and the network resources used when moving or accessing your data.
| STANDARD STORAGE |
NEARLINE STORAGE |
COLDLINE STORAGE |
ARCHIVE STORAGE |
|
starting at $.02 per
GB per month
|
starting at $.01 per
GB per month
|
starting at $.004 per
GB per month
|
starting at $.0012 per
GB per month
|
Use Cases of Cloud Storage
- Integrated repository for analytics and ML: Cloud Storage is strongly consistent giving accuracy in analytics workloads.
- Media content storage and delivery: Cloud Storage provides the availability and throughput needed to stream audio or video directly to applications and websites.
- Backups and Archives: Backup data in Cloud Storage can be used for more than just recovery because all storage classes have ms latency and are accessed through a single API.
Features of GCP
- Object Lifecycle Management: Define conditions that trigger data deletion or transition to a cheaper storage class.
- Object Versioning: Continue to store old copies of objects when they are deleted or overwritten.
- Retention policies: Define minimum retention periods that objects must be stored for before they’re deleted.
- The object holds: Place a hold on an object to prevent its deletion
- Customer-managed encryption keys: Encrypt object data with encryption keys stored by the Cloud Key Management Service and managed by you.
- Customer-supplied encryption keys: Encrypt object data with encryption keys created and managed by you.
- Uniform bucket-level access: Uniformly control access to your Cloud Storage resources by disabling object ACLs.
- Requester Pays: Require access to your data to include a project ID to bill for network charges, operation charges, and retrieval fees.
- Bucket Lock: Bucket Lock allows you to configure a data retention policy for a Cloud Storage bucket that governs how long objects in the bucket must be retained.
- Pub/Sub Notifications for Cloud Storage: Send notifications to Pub/Sub when objects are created, updated, or deleted.
- Cloud Audit Logs with Cloud Storage: Maintain admin activity logs and data access logs for your Cloud Storage resources.
- Object- and bucket-level permissions: Cloud Identity and Access Management (IAM) allows you to control who has access to your buckets and objects.
Note: Cloud storage is binary large-object storage with high performance, internal scale, and simple administration (does not require capacity management).
Conclusion
In this article, we covered what is Cloud storage in the Google Cloud Platform, Types of storage in the Google Cloud Platform, their features, and pricing which is more important to learn while you are starting to learn the cloud storage. To know more about file storage refer to Google File System.
Similar Reads
Google Cloud Platform Tutorial
Google Cloud Platform is a set of cloud computing services provided by Google that allow you to store, manage, and analyze data. It is also used for developing, deploying, and scaling applications on Google's environment. It was announced as the leading cloud platform in Gartner's IaaS Magic Quadran
5 min read
Introduction
What is Google Cloud Platform (GCP)?
Google Cloud Platform (GCP) is a suite of cloud computing services provided by Google. It offers a wide range of services, including computing power, storage, databases, machine learning, networking, and more, all delivered over the internet. GCP enables businesses to build, deploy, and scale applic
15+ min read
Introduction to Google Cloud Platform
Google Cloud Platform (GCP) is an initiative by Google to provide cloud computing services to customers. These services run on the same infrastructure and platform on which Google services such as Gmail, YouTube, etc run. GCP was launched on April 7, 2008, and the complete set of services and the pl
5 min read
Cloud Storage in Google Cloud Platform (GCP)
We can store our data on a remote server with Google Cloud storage, and we can access that data whenever we need to. In addition, Google Cloud Platform provides a number of cloud storage choices, each with special features and applications. The types are listed below. Google Cloud Persistent Disk(Bl
9 min read
Features of Google Cloud Platform
Pre-requisite: GCP GCP or Google Cloud Platform is a Public Cloud Provider that enables us to have a list of computing services to perform various computational tasks and services. Here are some of the Features provided by Google Cloud: Cloud Storage: Cloud Storage stores data on Google's servers in
4 min read
Google Cloud Platform - Introduction to Qwiklabs
Qwiklabs provides lab learning environments that help developers and IT professionals get hands-on experience working with leading cloud platforms and software. Qwiklabs provides temporary credentials to Google Cloud Platform and Amazon Web Services so that you can get a real-life experience by work
3 min read
Storage and Database Services
Google Cloud Platform - Cloud Storage
Google Cloud Storage is unified object storage. In reality, the GCS is the place where you can store and serve static binary assets either for your app to use or directly to your users. But as straightforward, as it sounds, there is a lot going under the hood. The GCP has Buckets, Objects, and vario
2 min read
Google File System
Google Inc. developed the Google File System (GFS), a scalable distributed file system (DFS), to meet the company's growing data processing needs. GFS offers fault tolerance, dependability, scalability, availability, and performance to big networks and connected nodes. GFS is made up of a number of
3 min read
Introduction to Google Cloud Bigtable
Pre-requisite: GCP You may store terabytes or even petabytes of data in Google Cloud BigTable, a sparsely populated table that can scale to billions of rows and thousands of columns. The row key is the lone index value that appears in every row and is also known as the row value. Low-latency storage
9 min read
Data Integration and Analytics Services
Introduction to Databricks
Databricks is a cloud-based platform for managing and analyzing large datasets using the Apache Spark open-source big data processing engine. It offers a unified workspace for data scientists, engineers, and business analysts to collaborate, develop, and deploy data-driven applications. Databricks i
5 min read
Google Cloud Platform - Introduction to BigQuery
All organizations look for unlocking business insights from their data. But it can be hard to scalably ingest, store, and analyze that data as it rapidly grows. Google's enterprise data warehouse called BigQuery, was designed to make large-scale data analysis accessible to everyone. In this series,
3 min read
Google Cloud Platform - Introduction to BigQuery Sandbox
BigQuery sandbox gives you free access to try out BigQuery and use the UI without providing a credit card or using a billing account. It's a quick way to get started and try out some BigQuery concepts. To get started, click on this link and follow along with the rest of the article. If you're a new
2 min read
Google Cloud Platform - Tables in BigQuery
Tables in BigQuery or any database for that matter is used to store data in a structured manner. In this article, we will explore the concepts of the three types of table available in BigQuery: Temporary TablesPermanent TablesViews (Virtual Tables)Temporary Tables: Just as BigQuery automatically sav
3 min read
Google Cloud Platform- BigQuery(Running Queries, advantage and disadvantage)
In this article, we're going to look into how to run a query in BigQuery. Running queries is one of the most fundamental parts of discovering insights from your data. So let's ask an outrageous question to BigQuery here and ask it "what is the best jersey number you should choose in order to improve
7 min read
Google Cloud Platform - User Defined Functions in BigQuery
SQL has many built-in functions for performing calculations on data. But sometimes, your systems might need to handle data, such as string or date values, uniquely. User-defined functions are an efficient way to have these custom calculations at your fingertips when analyzing data. In this article,
4 min read
Google Cloud Platform - Working with External Data in BigQuery
In BigQuery it's also possible to query data stored externally or outside BigQuery. In this article, we're diving into these external data sources. It's possible to leave your data in any place and use BigQuery as your query engine. These sources are called external or federated data sources. This f
4 min read
Google Cloud Platform - Loading Data to BigQuery
In this article, we will look into how to load and analyze your own data in BigQuery. As it is better to understand the concept with examples, we will be answering the age-old question "Which is better, cats or dogs?" If you want to analyze data that are not already available as part of the public d
5 min read
Google Cloud Platform - Implementing Authorized View in BigQuery
In this article, we will look into how you can implement an Authorized view in BigQuery.You can follow along in your own BigQuery sandbox, which you can set up for free. For this, we're using two sandboxes in order to represent the perspectives of the data admin. As a data admin follow the below ste
3 min read
Google Cloud Platform - Query History vs Saved Query vs Shared Query in BigQuery
The process of writing and running SQL queries doesn't always follow a straight line. A particular query can be in constant iteration while you use it to explore and clean up your data, or as you fine-tune it to optimize its performance. In this article, we will highlight the ways to save and share
3 min read
Google Cloud Platform - Managing Access using IAM in BigQuery
While big data brings us valuable insights and opportunities, it also brings the responsibility to ensure that data is secure, meaning that only the right data is shared with the right people. In this article, we're talking about how to use Google Cloud's Identity and Access Management Service to de
5 min read
Google Cloud Platform - Data Visualization in BigQuery
Whether you're exploring a data set for the first time or summarizing the findings of your analysis to an audience, you can use data visualization to make large, complex data sets easier to understand and internalize. In this article, we will look into visualizing your BigQuery data. Data visualizat
4 min read
Google Cloud Platform - Data Security in BigQuery
One of the benefits of a data warehouse, like BigQuery, is the improved simplicity and speed of bringing data to your analysts and decision-makers. Data needs to vary across a company based on organizational function, geography, and more, so it's important to be able to provide customized access to
3 min read
Management tools and Monitoring Services
Miscellaneous
Difference Between Google Cloud and AWS
Google Cloud Platform: It is a suite of cloud computing services developed by Google and launched publicly in 2008. Google Cloud Platform provides IaaS, PaaS, and serverless computing environments. A comparatively new Google Cloud Platform has all the tools and services required by developers and pr
3 min read
How To Share File From Host Machine(Windows) To Guest Machine(Linux)
We need to have Ubuntu installed in our Virtual Box for the purpose of this experiment. The host machine is Windows 10 in the following experiment. Transfer File From Host Machine(Windows) To Guest Machine(Linux) 1. Method 1: Installing SSH on Ubuntu Terminal and allowing Firewall blockage Open Term
4 min read
Deployment Models in OpenStack
Pre-requisite: OpenStack OpenStack has a set of software tools for providing various cloud computing platforms for public and private clouds. OpenStack is managed by the OpenStack Foundation, a non-profit that oversees both development and community-building around that project. OpenStack is the fut
4 min read
How to Build G Suite Add-ons with Google Apps script?
G Suite is a Google service that provides access to a core set of applications like Gmail, Calendar, Drive, Docs, Sheets, Slides, Forms, Meet, etc. Add-ons means the extension given to the pre-existing G Suite products (mentioned above). Developers can add many extra features to such products. Add-o
3 min read
Google Cloud Platform - Introduction to PhoneInfoga an OSINT Reconnaissance Tool
PhoneInfoga is one of the most advanced tools which one can use to scan phone numbers and get detailed information about them using only free resources. The motive is to gather basic information such as country, area, line, and carrier on any international phone numbers with very good accuracy. Then
3 min read
Generating API Keys For Using Any Google APIs
Like most software giants, Google provides its enthusiastic developers community with its APIs, SDKs and Services. These APIs from Google are hosted on their cloud platform, popularly known as Google Cloud Platform (GCP). Software such as Google Maps, YouTube, Gmail, etc., use the same APIs and now
3 min read
Google Cloud Platform - Understanding Federated Learning on Cloud
Crowdsourcing has a wide range of benefits. Whether it's restaurant reviews that help us find a perfect place for dinner or crowdfunding to bring our favorite TV show back to life, these distributed contributions combined to make some super useful tools. We can also use that same concept to build be
3 min read