GCP Learning Path
GCP Learning Path
This is a structured learning path. We’ll follow it like a course and move forward only
when concepts are solid.
Example
[Link] 1/55
12/28/25, 10:06 PM GCP Learning Path
Exercise
Identify which apps fit IaaS / PaaS / SaaS
GCP Infrastructure
Regions
Zones
Multi-region
Edge locations
Hands-On
Create GCP free tier account
Create your first project
Explore Cloud Console & Cloud Shell
Mini Task
bash
[Link] 2/55
12/28/25, 10:06 PM GCP Learning Path
Service Accounts
Roles (Primitive / Predefined / Custom)
Principle of Least Privilege
Hands-On
Create a user
Assign viewer/editor roles
Create service account & key
Interview Focus
Difference between user & service account
Why service accounts are used in backend apps
Services
1. Compute Engine (VMs)
2. App Engine (PaaS)
3. Cloud Run (Serverless containers)
4. GKE (Kubernetes)
Hands-On
Create VM (Linux)
SSH into VM
Deploy simple Java/Node app
Compare cost & use-cases
Exercise
Service When to use
VM Full OS control
[Link] 3/55
12/28/25, 10:06 PM GCP Learning Path
Storage
Cloud Storage (Standard / Nearline / Coldline)
Buckets & Objects
Lifecycle rules
Databases
Cloud SQL (MySQL, PostgreSQL)
Firestore (NoSQL)
BigQuery (Analytics)
Hands-On
Upload files to bucket
Connect Java app to Cloud SQL
Run BigQuery SQL queries
Interview Tip
Concepts
VPC
Subnets
Firewall rules
Load Balancer
Cloud DNS
NAT Gateway
Hands-On
Create custom VPC
Create subnets
Allow SSH via firewall
Setup HTTP Load Balancer
Diagram Understanding
How traffic flows from internet → VM
DevOps Tools
Cloud Build
Artifact Registry
Cloud Deploy
Terraform (IaC)
Monitoring
Cloud Monitoring
Cloud Logging
Alerts
Hands-On
[Link] 5/55
12/28/25, 10:06 PM GCP Learning Path
Use Case
Event-driven microservices
Async processing
[Link] 6/55
12/28/25, 10:06 PM GCP Learning Path
👉 NEXT STEP
Say “Start Phase 0”
I’ll begin Cloud Fundamentals with simple examples + interview mindset.
Next
[Link] 7/55
12/28/25, 10:06 PM GCP Learning Path
Cloud Way
Pay only for what you use
Scale in minutes
Global access
High availability
You manage:
OS
[Link] 8/55
12/28/25, 10:06 PM GCP Learning Path
Runtime
App
Data
Cloud manages:
Physical servers
Networking
Storage
Examples:
Virtual Machines
Load balancers
👉 Interview line:
“IaaS gives maximum control but more responsibility.”
You manage:
Application
Data
Cloud manages:
OS
Runtime
Scaling
Infrastructure
Examples:
App platforms
Managed runtimes
👉 Interview line:
“PaaS speeds up development and reduces ops work.”
You manage:
Nothing
Cloud manages:
Everything
Examples:
Email services
Online tools
👉 Interview line:
“SaaS is ready-to-use software over the internet.”
Used by:
Startups
Enterprises
🏠 Private Cloud
Dedicated infrastructure
High security
Expensive
Used by:
Banks
Government
👉 Interview favorite:
“Hybrid cloud balances security and scalability.”
♻️ High Availability
App runs even if one server fails
Achieved using multiple zones
🌎 Fault Tolerance
System survives failures
Automatic recovery
💸 Pay-as-you-go
No upfront cost
Pay only for usage
🧠 Real-Life Example
[Link] 11/55
12/28/25, 10:06 PM GCP Learning Path
1. Virtual machine → ?
2. Email service → ?
3. Managed app platform → ?
Next
[Link] 12/55
12/28/25, 10:06 PM GCP Learning Path
👉 Interview-ready line:
📌 Hierarchy Order
scss
Organization
└── Folder (optional)
└── Project
└── Resources (VMs, DBs, Buckets)
Copy code
1️⃣ Organization
Represents a company
Linked to Google Workspace / Cloud Identity
[Link] 13/55
12/28/25, 10:06 PM GCP Learning Path
👉 Interview line:
“Project is the fundamental billing and IAM boundary in GCP.”
💳 Billing Account
Attached to projects
One billing account → many projects
No billing = resources stop
👉 Real-world practice:
Separate billing for prod vs dev
Zone
Isolated location inside region
Example:
asia-south1-a
asia-south1-b
Rule
[Link] 14/55
12/28/25, 10:06 PM GCP Learning Path
👉 Interview line:
bash
bash
[Link] 15/55
12/28/25, 10:06 PM GCP Learning Path
bash
Examples:
🧪 Mini Exercise
Try to answer:
1. Where does billing attach?
2. Can a VM exist without a project?
3. Why prod & dev should be separate projects?
We are learning Google Cloud IAM — who can do what on which resource.
🧠 What is IAM?
IAM (Identity and Access Management) controls:
WHO → user / service
WHAT → permission
WHERE → resource (project, bucket, VM)
👉 Interview-ready definition:
[Link] 17/55
12/28/25, 10:06 PM GCP Learning Path
“IAM in GCP defines who can access resources and what actions they can perform.”
👤 Types of Identities
1️⃣ Google Account (Human User)
Email-based user
Used by developers, admins
Example:
css
prathmesh@[Link]
Copy code
Example:
perl
my-app-sa@[Link]
Copy code
👉 Interview gold:
“Service accounts are used for machine-to-machine authentication.”
pgsql
[Link]
Copy code
[Link] 18/55
12/28/25, 10:06 PM GCP Learning Path
❌ Too powerful
[Link]
[Link]
3. Custom Roles
Create your own permissions set
Used for strict security
👉 Example:
bash
bash
Copy code
bash
bash
Copy code
✅ Recommended
[Link] 20/55
12/28/25, 10:06 PM GCP Learning Path
👉 Interview answer:
“Avoid service account keys; use workload identity instead.”
🧪 Mini Exercise
Answer mentally:
1. Can a service account login like user?
2. What happens if Editor role is misused?
3. Why IAM is better than hardcoded passwords?
[Link] 21/55
12/28/25, 10:06 PM GCP Learning Path
Next
Migrate Migrate to
Connector Virtual Machines
Compute Engine
Cloud APIs
Target Project
Full OS control VM
👉 Interview line:
“GCP offers multiple compute models from VMs to fully managed serverless.”
[Link] 22/55
12/28/25, 10:06 PM GCP Learning Path
Key Concepts
Machine types (e2, n2)
Boot disk
Persistent disk
Startup scripts
bash
Copy code
bash
When to Use
Legacy apps
Custom OS
Full control needed
👉 Interview trap:
“VMs don’t auto-scale by default.”
Types
Standard Environment
[Link] 23/55
12/28/25, 10:06 PM GCP Learning Path
Flexible Environment
Example
yaml
runtime: java17
instance_class: F2
Copy code
When to Use
Simple web apps
MVPs
Minimal ops work
👉 Interview line:
“App Engine abstracts infrastructure completely.”
Key Features
Stateless containers
HTTPS by default
Pay per request
bash
Copy code
When to Use
[Link] 24/55
12/28/25, 10:06 PM GCP Learning Path
REST APIs
Microservices
Event-driven systems
👉 Interview GOLD:
“Cloud Run scales to zero, unlike VMs.”
Key Concepts
Cluster
Node
Pod
Service
Deployment
When to Use
High traffic apps
Microservice architecture
Advanced orchestration
👉 Interview line:
“GKE offers full Kubernetes power with Google-managed control plane.”
[Link] 25/55
12/28/25, 10:06 PM GCP Learning Path
🧪 Mini Exercise
Answer mentally:
1. Which service scales to zero?
2. Which gives OS access?
3. Which is best for microservices?
4. Which needs Kubernetes knowledge?
Next
[Link] 26/55
12/28/25, 10:06 PM GCP Learning Path
NoSQL Firestore
Analytics BigQuery
👉 Interview line:
“GCP provides purpose-built storage solutions for different workloads.”
Storage Classes
[Link] 27/55
12/28/25, 10:06 PM GCP Learning Path
Class Use
Coldline Quarterly
Archive Yearly
👉 Interview tip:
“Cost decreases as access frequency decreases.”
Hands-On
bash
gsutil mb gs://my-bucket-name
Copy code
bash
bash
gsutil ls gs://my-bucket-name
Copy code
Real Use
Frontend assets
Backups
Static websites
Key Concepts
Instance
Database
User
Private IP / Public IP
Hands-On
bash
Copy code
👉 Interview gold:
“Cloud SQL removes DB ops overhead but is not meant for massive analytics.”
Structure
markdown
Collection
└── Document
└── Fields
Copy code
When to Use
User profiles
Chat apps
[Link] 29/55
12/28/25, 10:06 PM GCP Learning Path
Real-time dashboards
👉 Interview comparison:
“Firestore ≠ relational database.”
Key Features
Columnar storage
Pay per query
Extremely fast
Example Query
sql
Copy code
👉 Interview line:
“BigQuery is for analytics, not OLTP.”
[Link] 30/55
12/28/25, 10:06 PM GCP Learning Path
🧪 Mini Exercise
Think and answer:
1. Where to store images?
2. Which DB for transactions?
3. Which service for reports?
4. Why BigQuery is cheaper for analytics?
1/2
[Link] 31/55
12/28/25, 10:06 PM GCP Learning Path
🧠 Big Picture
Networking in Google Cloud is software-defined, global, and highly scalable.
👉 Interview line:
Important Points
VPC is global
Subnets are regional
One VPC → multiple subnets
[Link] 32/55
12/28/25, 10:06 PM GCP Learning Path
2️⃣ Subnets
What it is
IP range inside a region
Uses CIDR blocks
Example
[Link]/24 → Mumbai
[Link]/24 → Delhi
Copy code
👉 Interview line:
“Subnets define regional IP spaces in a VPC.”
Example
Allow SSH (22)
Allow HTTP (80)
bash
Copy code
👉 Interview trick:
“Firewall rules are evaluated before traffic reaches VM.”
Features
Global IP
SSL termination
Auto scaling
👉 Interview GOLD:
“GCP HTTP Load Balancer is global, not regional.”
👉 Interview line:
“Cloud NAT enables outbound internet for private VMs.”
Internet
→ Load Balancer
→ Backend Service
→ Instance Group
→ VM
Copy code
[Link] 34/55
12/28/25, 10:06 PM GCP Learning Path
✅ Networking DONE.
👉 Next:
PHASE 6 – DevOps, CI/CD & Monitoring 🔄
Type Next
[Link] 35/55
12/28/25, 10:06 PM GCP Learning Path
👉 Interview line:
“CI/CD ensures fast, reliable, and repeatable deployments.”
Typical Flow
mathematica
Git Push
→ Cloud Build
→ Run Tests
→ Build Image
[Link] 36/55
12/28/25, 10:06 PM GCP Learning Path
Copy code
Sample [Link]
yaml
steps:
- name: '[Link]/cloud-builders/docker'
args: ['build', '-t', '[Link]/project/app', '.']
Copy code
👉 Interview tip:
“Cloud Build is serverless; no agents to manage.”
👉 Interview line:
“Artifact Registry replaces Container Registry.”
Result
Zero-downtime
Auto scaling
[Link] 37/55
12/28/25, 10:06 PM GCP Learning Path
Rollbacks supported
👉 Interview GOLD:
“Cloud Run integrates seamlessly with Cloud Build.”
Example:
hcl
Copy code
👉 Interview line:
“IaC prevents configuration drift.”
Example Alert
CPU > 80% for 5 mins → email
👉 Interview point:
“Monitoring focuses on metrics.”
[Link] 38/55
12/28/25, 10:06 PM GCP Learning Path
Logs Explorer
Query logs using filters
Debug production issues
👉 Interview point:
“Logging focuses on events.”
🧪 Mini Exercise
Think through:
1. How code reaches production?
2. Where images are stored?
3. How failures are detected?
[Link] 39/55
12/28/25, 10:06 PM GCP Learning Path
Next
🧠 Big Picture
Advanced GCP focuses on:
[Link] 40/55
12/28/25, 10:06 PM GCP Learning Path
Event-driven systems
Loose coupling
Scalability
Cost optimization
Production-grade architecture
👉 Interview line:
“Modern cloud systems are event-driven, scalable, and cost-optimized.”
Core Components
graphql
Use Cases
Order processing
Payment events
Notifications
Log pipelines
Example
bash
👉 Interview GOLD:
“Pub/Sub enables asynchronous, event-driven architectures.”
[Link] 41/55
12/28/25, 10:06 PM GCP Learning Path
Triggers
Pub/Sub
HTTP
Cloud Storage
Firestore
Example
Image upload → resize function
Message received → send email
👉 Interview line:
“Cloud Functions are ideal for lightweight event processing.”
Why needed
Secure backend services
Control traffic
Centralize API policies
Typical Flow
arduino
👉 Interview line:
[Link] 42/55
12/28/25, 10:06 PM GCP Learning Path
pgsql
User Action
→ Cloud Run API
→ Pub/Sub Event
→ Cloud Function
→ Database Update
Copy code
Benefits
Scalable
Fault-tolerant
Services independent
👉 Interview favorite:
“Event-driven systems reduce tight coupling.”
Interview Line
🎯 Interview Preparation
Scenario-based questions
Architecture diagrams
Cost + security discussions
[Link] 44/55
12/28/25, 10:06 PM GCP Learning Path
Next
2 1
Sub s c riber
Pub lisher
Q ue ue
2 1 Sub s c riber
Pub/Sub mo d el
1
Sub s c riber
Topi c
Pub lisher 2 1
1
Sub s c riber
🧱 Tech Stack
Backend: Java (Spring Boot) / [Link]
Compute: Cloud Run
DB: Cloud SQL (PostgreSQL/MySQL)
Auth: IAM (Service Account)
CI/CD: Cloud Build
🧠 Architecture
java
Client
→ HTTPS
→ Cloud Run (API)
→ Cloud SQL
Copy code
🪜 Step-by-Step
1️⃣ Create Database
Cloud SQL instance
Private IP
DB + user
FROM eclipse-temurin:17
COPY target/[Link] [Link]
ENTRYPOINT ["java","-jar","/[Link]"]
Copy code
bash
Copy code
5️⃣ Secure DB Access
Attach service account
No DB passwords in code
🧠 Architecture
mathematica
Git Push
→ Cloud Build
→ Test
→ Build Image
→ Artifact Registry
→ Deploy
Copy code
🪜 Steps
[Link] 47/55
12/28/25, 10:06 PM GCP Learning Path
🧠 Architecture
mathematica
Copy code
🪜 Steps
1. Create Pub/Sub topic
2. Publish event from API
3. Trigger Cloud Function
4. Process message
5. Add retry & DLQ
[Link] 48/55
12/28/25, 10:06 PM GCP Learning Path
🧠 Architecture
nginx
Ingress
→ Service
→ Pods
→ Containers
Copy code
🪜 Skills Learned
Pods, Services, Deployments
Auto-scaling
Secrets & ConfigMaps
Rolling updates
[Link] 49/55
12/28/25, 10:06 PM GCP Learning Path
Built a serverless banking API using Cloud Run and Cloud SQL with CI/CD via Cloud
Build, implementing IAM-based security, auto-scaling, and monitoring.
Next
🧱 Architecture
java
Client
→ HTTPS
→ Cloud Run (Spring Boot API)
→ Cloud SQL (Private IP)
Copy code
bash
Copy code
--region=asia-south1 \
--cpu=2 --memory=4GB
Copy code
👉 Interview note: Prefer Private IP for production (we’ll wire it during deploy).
Endpoints
POST /accounts
GET /accounts/{id}
GET /health
[Link]
yaml
spring:
datasource:
url: jdbc:postgresql://localhost:5432/bank
username: appuser
password: ${DB_PASSWORD}
jpa:
hibernate:
ddl-auto: update
👉 Interview note: Secrets via env vars, not in code. Copy code
Dockerfile
dockerfile
[Link] 52/55
12/28/25, 10:06 PM GCP Learning Path
FROM eclipse-temurin:17-jre
WORKDIR /app
COPY target/[Link] [Link]
EXPOSE 8080
ENTRYPOINT ["java","-jar","[Link]"] Copy code
bash
Copy code
Tag & push:
bash
Grant DB access:
[Link] 53/55
12/28/25, 10:06 PM GCP Learning Path
--role="roles/[Link]"
STEP 7 — Verify
bash Copy code
curl [Link]
Create an account:
✅ CHECKPOINT
If you’ve reached here, you can confidently explain and demo a real GCP app.
👉 NEXT
Type Next and we’ll:
Add CI/CD (GitHub → Cloud Build → Cloud Run)
Enable zero-downtime deploys & rollbacks
Make this resume-perfect 💪
[Link] 55/55