GCS buckets, lifecycle policies, Cloud SQL, Cloud Spanner, Firestore, and BigQuery — the data layer that underpins every GCP-native application.
GCS buckets, lifecycle policies, Cloud SQL, Cloud Spanner, Firestore, and BigQuery — the data layer that underpins every GCP-native application.
# Create a bucket (name must be globally unique)
gsutil mb gs://my-unique-bucket-name
# Upload files
gsutil cp file.txt gs://my-bucket/
gsutil cp -r ./folder gs://my-bucket/folder/
# List bucket contents
gsutil ls gs://my-bucket/
# Make a file public
gsutil acl ch -u AllUsers:R gs://my-bucket/file.txt
# Make entire bucket public (for static sites)
gsutil iam ch allUsers:objectViewer gs://my-bucket
from google.cloud import storage
client = storage.Client()
bucket = client.bucket('my-bucket')
# Upload
blob = bucket.blob('uploads/photo.jpg')
blob.upload_from_filename('/local/photo.jpg')
# Generate signed URL (temporary private access)
url = blob.generate_signed_url(
expiration=datetime.timedelta(hours=1),
method='GET'
)# Create a PostgreSQL instance
gcloud sql instances create my-db \
--database-version=POSTGRES_15 \
--tier=db-f1-micro \
--region=us-central1
# Create a database
gcloud sql databases create myapp --instance=my-db
# Create a user
gcloud sql users create dbuser --instance=my-db --password=secret
# Connect via proxy
gcloud sql connect my-db --user=dbuser --database=myappgsutil CLI + Python SDK for automation.db-f1-micro is the smallest Cloud SQL tier. Use it for development to minimize cost.The foundations from today carry directly into Day 4. In the next session the focus shifts to Cloud Run and Serverless — building directly on everything covered here.
Before moving on, verify you can answer these without looking:
Live Bootcamp
Learn this in person — 2 days, 5 cities
Thu–Fri sessions in Denver, Los Angeles, New York, Chicago, and Dallas. $1,490 per seat. June–October 2026.
Reserve Your Seat →