You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Cloud Storage is GCP's object storage service for storing and accessing any amount of data. It's designed for durability, availability, and scalability. Use it for everything from website assets and backups to data lakes and machine learning training data.
A bucket is a container for your data. Every object in Cloud Storage belongs to a bucket.
An object is a file stored in a bucket, along with its metadata:
gs://my-app-assets/images/logo.png
| | |
bucket folder object key
Cloud Storage offers four storage classes with different cost and access characteristics:
| Storage Class | Access Frequency | Min Storage Duration | Use Case |
|---|---|---|---|
| Standard | Frequently accessed | None | Hot data, websites, streaming |
| Nearline | Once per month | 30 days | Backups, infrequently accessed data |
| Coldline | Once per quarter | 90 days | Disaster recovery, archival |
| Archive | Once per year | 365 days | Long-term archival, compliance |
Key point: All storage classes provide the same durability (99.999999999% — eleven 9s), latency, and API. The only differences are cost structure and minimum storage duration.
As you move from Standard to Archive:
Choose the class that matches your access pattern.
| Location Type | Description | Use Case |
|---|---|---|
| Region | Single region (e.g., europe-west2) | Data close to compute resources |
| Dual-region | Pair of regions (e.g., EUR4 = europe-north1 + europe-west4) | Higher availability within a continent |
| Multi-region | Large geographic area (e.g., EU, US, ASIA) | Highest availability, global access |
When versioning is enabled on a bucket:
# Enable versioning
gsutil versioning set on gs://my-bucket
# List all versions
gsutil ls -la gs://my-bucket/file.txt
Lifecycle rules automatically manage objects based on conditions:
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.