Every GCP service from Compute to AI. Zero fluff, all clarity.
βοΈ Compute Services
Fully customizable VMs running on Google's infrastructure. Choose CPU, memory, GPU, disk, and OS.
| Family | Series | vCPUs | Memory | Use Case |
|---|---|---|---|---|
| General | E2, N2, N2D, N1 | 2β224 | 1β896 GB | Web servers, small/mid DBs, dev/test |
| Compute | C2, C2D, C3 | 4β176 | 16β704 GB | HPC, gaming, single-threaded apps |
| Memory | M1, M2, M3 | 32β416 | 256 GBβ12 TB | SAP HANA, in-memory DBs, analytics |
| Accelerator | A2, A3 (GPU) | 12β96 | 170β1360 GB | ML training, rendering, HPC |
| Model | Discount | Details |
|---|---|---|
| On-demand | 0% | Pay per second, no commitment |
| Sustained Use (SUD) | Up to 30% | Auto-applied for consistent monthly usage |
| Committed Use (CUD 1yr) | Up to 37% | 1-year commitment on vCPU + memory |
| Committed Use (CUD 3yr) | Up to 55% | 3-year commitment, highest savings |
| Spot / Preemptible | 60β91% | Can be reclaimed with 30s notice |
Event-driven, pay-per-invocation compute. Write a function, pick a trigger, deploy.
| Trigger | Source |
|---|---|
| HTTP | Direct HTTPS endpoint |
| Pub/Sub | Message published to topic |
| Cloud Storage | Object create/delete/archive |
| Firestore | Document write/update/delete |
| Firebase | Auth, Analytics, Remote Config |
| Cloud Scheduler | Cron-scheduled invocations |
| Eventarc | 90+ event sources (Audit Logs, custom) |
| Criteria | Cloud Run | Cloud Functions | App Engine | GKE |
|---|---|---|---|---|
| Unit | Container | Function | App | Pod |
| Scale to Zero | β | β | β (Standard) | β |
| Custom Runtime | β Any | Limited | Flex only | β Any |
| Pricing | Per request+CPU | Per invocation | Per instance-hr | Per node |
| Max Timeout | 60 min | 60 min (Gen2) | Unlimited | Unlimited |
| K8s Knowledge | None | None | None | Required |
| Best For | APIs, microservices | Event handlers | Full web apps | Complex platforms |
| Feature | Standard | Flexible |
|---|---|---|
| Languages | Python, Java, Go, Node, PHP, Ruby | Any (custom Docker) |
| Scaling | 0 β auto (rapid) | 1+ instances (slower) |
| Startup | Seconds | Minutes |
| Pricing | Per instance-hour (scale to 0) | Per VM (always β₯ 1) |
| Custom Runtime | β | β Dockerfile |
| VPC Access | Via connector | Native VPC |
| SSH Access | β | β |
| WebSockets | β | β |
β οΈ One App Engine app per project. Cannot change region once set. Consider Cloud Run for new projects.
| Feature | Standard | Autopilot |
|---|---|---|
| Node Management | You manage | Google manages |
| Scaling | Cluster + node autoscaler | Auto per pod |
| Pricing | Pay per node (VM) | Pay per pod (CPU/mem) |
| Security | You harden | Hardened by default |
| GPU / TPU | β | β (limited) |
| Privileged Pods | β | β |
| Best For | Full control, custom configs | Hands-off, cost efficiency |
πΎ Storage & Databases
| Class | Min Duration | Availability | Retrieval Cost | Use Case |
|---|---|---|---|---|
| Standard | None | 99.99% (multi) / 99.9% (region) | Free | Hot data, frequently accessed |
| Nearline | 30 days | 99.95% / 99.0% | $0.01/GB | Backups accessed monthly |
| Coldline | 90 days | 99.95% / 99.0% | $0.02/GB | Disaster recovery, quarterly access |
| Archive | 365 days | 99.95% / 99.0% | $0.05/GB | Long-term archives, compliance |
All classes offer strong global consistency. Identical API, only pricing differs.
| Engine | Versions | Max Storage |
|---|---|---|
| MySQL | 5.7, 8.0 | 64 TB |
| PostgreSQL | 12, 13, 14, 15, 16 | 64 TB |
| SQL Server | 2017, 2019, 2022 | 64 TB |
Read replicas use asynchronous replication, good for read scaling, not HA.
TrueTime: atomic clocks + GPS β globally consistent timestamps β external consistency without coordination lag.
| Feature | Cloud SQL | Cloud Spanner |
|---|---|---|
| Scale | Vertical (bigger VM) | Horizontal (add nodes) |
| Max Size | 64 TB | Unlimited (petabyte+) |
| Multi-region | Read replicas only | Native multi-region writes |
| Consistency | Regional strong | Global external |
| SLA | 99.95% | 99.999% |
| Cost | $$ (from ~$7/mo) | $$$$ ($0.90/node-hr) |
| Best For | Traditional apps, small-mid scale | Global apps, financial, gaming |
| Concept | Description |
|---|---|
| Row Key | Unique identifier, lexicographically sorted |
| Column Family | Group of related columns (defined at table creation) |
| Column Qualifier | Individual column within a family |
| Cell | Value at row Γ column, timestamped (versioned) |
Design row keys carefully: avoid hotspots, use reverse timestamps for time-series data.
| Feature | Redis | Memcached |
|---|---|---|
| Persistence | β RDB/AOF | β |
| Data Types | Strings, Lists, Sets, Hashes, Sorted Sets, Streams | Strings only |
| Clustering | β (Redis Cluster) | β (distributed) |
| Pub/Sub | β | β |
| Replication | β Read replicas + HA | β |
| Max Size | 300 GB | 5 TB (distributed) |
| Lua Scripting | β | β |
HTAP: handle both OLTP and OLAP workloads in a single database with the columnar engine.
| Feature | Cloud SQL | AlloyDB | Cloud Spanner |
|---|---|---|---|
| Engine | MySQL, PostgreSQL, SQL Server | PostgreSQL only | GoogleSQL / PG interface |
| Scale | Vertical | Vertical + read pools | Horizontal (unlimited) |
| Multi-region | Cross-region read replicas | Cross-region read replicas | Native multi-region writes |
| OLTP Speed | Baseline | 4Γ faster | Comparable |
| Analytics | Limited | 100Γ (columnar engine) | Good (SQL) |
| SLA | 99.95% | 99.99% | 99.999% |
| Cost | $$ | $$$ | $$$$ |
| Best For | Standard workloads | High-performance PG apps | Global-scale apps |
π Data & Analytics
| Component | Model | Price |
|---|---|---|
| Queries (On-demand) | Per TB scanned | $5/TB (first 1 TB/mo free) |
| Queries (Capacity) | Slot-based | ~$0.04/slot-hour (autoscale) |
| Active Storage | Per GB/month | $0.02/GB |
| Long-term Storage | >90 days unmodified | $0.01/GB |
| Streaming Inserts | Per 200 MB | $0.01 |
Cost optimization: use partitioning + clustering to minimize bytes scanned.
| Feature | What It Does |
|---|---|
| Partitioning | Split table by date/int range/ingestion time, prune scans |
| Clustering | Sort data within partitions by columns, co-locate related rows |
| Materialized Views | Pre-computed aggregates, auto-refreshed |
| Scheduled Queries | Cron-based SQL execution |
| Data Transfers | Import from SaaS (GA, Ads, YouTube, S3) |
| BigLake | Fine-grained access on data lake files |
| Analytics Hub | Share datasets across orgs (marketplace) |
| Change Data Capture | Datastream β real-time CDC into BigQuery |
| Aspect | Batch | Streaming |
|---|---|---|
| Input | Bounded (files, tables) | Unbounded (Pub/Sub, Kafka) |
| Latency | Minutesβhours | Seconds |
| Windowing | Global window | Fixed / Sliding / Session |
| Workers | Scale to 0 after job | Always running |
| Use Case | ETL, backfills, reports | Real-time dashboards, alerts |
| Criteria | Dataproc (Spark) | Dataflow (Beam) |
|---|---|---|
| Engine | Apache Spark | Apache Beam |
| Management | Clusters (or serverless) | Fully serverless |
| Best For | Existing Spark jobs, ML (Spark ML), interactive analysis | New pipelines, streaming-first, unified batch/stream |
| Latency | Micro-batch (~500ms) | True streaming (per-element) |
| Cost Model | Cluster VMs (per second) | Worker VMs (auto-managed) |
| Portability | Run on any Spark cluster | Beam runs on Flink, Spark, Dataflow |
Rule of thumb: existing Spark β Dataproc. New streaming β Dataflow.
Composer environments run on GKE, you can customize machine types and node counts.
| Feature | Looker | Looker Studio (free) |
|---|---|---|
| Cost | Enterprise license | Free |
| Modeling | LookML (semantic layer) | No modeling layer |
| Data Governance | Centralized metrics, row-level security | Basic sharing |
| Embedded Analytics | β iframes, SSO | β embeddable reports |
| Custom Viz | Custom components (React) | Community visualizations |
| API | Full REST API | Limited |
| Best For | Enterprise data teams | Quick dashboards, individuals |
π€ AI / Machine Learning
| Component | Description |
|---|---|
| AutoML | Train models without code, image, text, tabular, video |
| Custom Training | Bring your own container / pre-built (TF, PyTorch, XGBoost) |
| Pipelines | Kubeflow / TFX-based ML workflow orchestration |
| Feature Store | Centralized feature management + online/offline serving |
| Model Registry | Version control, metadata, lineage |
| Endpoints | Deploy models for real-time or batch serving |
| Experiments | Track + compare training runs |
| TensorBoard | Managed training visualization |
| Vector Search | Nearest-neighbor search (embeddings at scale) |
| Domain | Tasks |
|---|---|
| Vision | Image classification, object detection, segmentation |
| NLP | Sentiment analysis, entity extraction, classification |
| Tables | Structured data, regression, classification, forecasting |
| Video | Classification, object tracking, action recognition |
AutoML handles data preprocessing, architecture search, hyperparameter tuning, and deployment automatically.
| API | Input | Output | Use Case |
|---|---|---|---|
| Vision AI | Image | Labels, OCR, faces, landmarks, objects | Image tagging, document scanning, moderation |
| Natural Language | Text | Sentiment, entities, syntax, categories | Review analysis, content classification |
| Speech-to-Text | Audio | Transcription (125+ languages) | Subtitles, voice commands, call center |
| Text-to-Speech | Text | Audio (380+ voices, 50+ languages) | Accessibility, IVR, audiobooks |
| Translation | Text | Translated text (130+ languages) | Localization, real-time translation |
| Video Intelligence | Video | Labels, shots, objects, text, faces | Media analysis, content moderation |
| Document AI | Document (PDF/image) | Structured data, entities, tables | Invoice processing, form parsing, ID verification |
| Dialogflow | Text / Audio | Intent, entities, response | Chatbots, IVR, virtual agents |
All APIs: REST + client libraries (Python, Java, Go, Node.js). Pay per request, no infrastructure to manage.
| Model | Capability | Context | Best For |
|---|---|---|---|
| Gemini Ultra | Most capable, complex reasoning | 1M+ tokens | Advanced research, multi-step reasoning |
| Gemini Pro | Balanced performance/cost | 1M tokens | General tasks, enterprise applications |
| Gemini Flash | Fastest, most cost-efficient | 1M tokens | High-volume, latency-sensitive tasks |
π Security
IAM policies are additive, if ANY policy grants a permission, it's allowed. There are no explicit "deny" policies (use deny policies for exceptions).
| Type | Format | Description |
|---|---|---|
| Google Account | user:[email protected] | Individual person |
| Service Account | serviceAccount:[email protected]β¦ | Identity for apps/services |
| Google Group | group:[email protected] | Collection of accounts |
| Workspace Domain | domain:company.com | All accounts in domain |
| allAuthenticatedUsers | , | Any logged-in Google account |
| allUsers | , | Anyone on the internet (public) |
| Type | Example | Details |
|---|---|---|
| Basic Avoid | Owner, Editor, Viewer | 1000s of permissions, too broad |
| Predefined Recommended | roles/storage.objectViewer | Per-service, fine-grained |
| Custom | roles/myCustomRole | You define exact permissions |
| Type | Created By | Example |
|---|---|---|
| Default | Auto (GCE, App Engine) | PROJECT_NUM-compute@β¦ |
| User-managed | You | [email protected] |
| Google-managed | Internal agents (cloud services) |
Service accounts are both an identity (authenticate as SA) and a resource (grant others access to impersonate it).
| Encryption Level | Who Manages Key | Details |
|---|---|---|
| Google Default | Auto, AES-256, no config needed | |
| CMEK | Customer (in KMS) | Your key, Google's HSM |
| CSEK | Customer (external) | You supply key per-request |
| EKM | External KMS | Key never leaves your premises |
Confidential Computing: data stays encrypted even during processing, trusted execution environments (TEEs).
Constraints applied at org, folder, or project level, guardrails for the entire cloud.
| Policy | Effect |
|---|---|
| Restrict VM external IPs | VMs can't have public IPs |
| Restrict resource locations | Only allow us-central1, europe-west1 |
| Disable serial port access | Block VM serial console login |
| Disable SA key creation | No downloadable service account keys |
| Restrict shared VPC projects | Control who can attach to shared VPC |
| Uniform bucket-level access | Force IAM-only (no ACLs) on GCS |
π§ DevOps
| Format | Ecosystem | Example |
|---|---|---|
| Docker | Containers | us-docker.pkg.dev/proj/repo/img:tag |
| Maven / Gradle | Java | Java libraries and apps |
| npm | Node.js | JavaScript packages |
| pip (PyPI) | Python | Python packages |
| Go | Go modules | Go dependencies |
| Apt / Yum | OS packages | Debian / RPM packages |
| Feature | Terraform Recommended | Deployment Manager |
|---|---|---|
| Language | HCL (HashiCorp) | YAML + Jinja/Python |
| Multi-cloud | β (AWS, Azure, GCP, +1000 providers) | GCP only |
| State | Remote (GCS bucket) or Terraform Cloud | Google-managed |
| Modules | Rich registry + custom modules | Templates |
| Community | Massive ecosystem | Limited |
| Plan/Preview | terraform plan (diff before apply) | Preview API |
| Status | Actively developed | Maintenance mode |
Config Connector: ideal if you already run GKE and prefer GitOps workflows.
π‘ Operations (Observability)
| Type | Source | Details |
|---|---|---|
| Platform Logs | GCP services | Auto-generated (GCE, GKE, Cloud SQLβ¦) |
| User Logs | Your applications | Stdout/stderr, logging client libraries |
| Audit Logs | Admin + Data Access | Who did what, when, where |
| Access Transparency | Google staff | When Google accesses your data |
Admin Activity audit logs: always on, free, 400-day retention. Data Access: must enable, chargeable.
ποΈ Management
IAM policies + org policies inherit downward. A policy set at the org level applies to every resource below it.
| Category | Service | Type | Use Case |
|---|---|---|---|
| Compute | Compute Engine | IaaS (VMs) | Custom VMs, lift-and-shift, HPC |
| Cloud Functions | FaaS (Serverless) | Event-driven functions, webhooks | |
| Cloud Run | CaaS (Serverless) | Containerized APIs, microservices | |
| App Engine | PaaS | Full web apps, rapid deployment | |
| GKE | CaaS (Managed K8s) | Complex platforms, multi-service orchestration | |
| Storage & DB | Cloud Storage (GCS) | Object Storage | Files, backups, data lake, static hosting |
| Cloud SQL | Managed RDBMS | MySQL, PostgreSQL, SQL Server workloads | |
| Cloud Spanner | Global RDBMS | Global apps, finance, 99.999% SLA | |
| Firestore | NoSQL Document | Mobile/web apps, real-time sync | |
| Cloud Bigtable | NoSQL Wide-column | IoT, time-series, analytics (petabyte-scale) | |
| Memorystore | In-memory | Caching, sessions, leaderboards | |
| AlloyDB | Managed PostgreSQL | High-perf OLTP + OLAP, AI workloads | |
| Data & Analytics | BigQuery | Data Warehouse | SQL analytics, ML, petabyte-scale queries |
| Pub/Sub | Messaging | Event streaming, decoupling, fan-out | |
| Dataflow | Stream/Batch (Beam) | ETL pipelines, real-time processing | |
| Dataproc | Managed Spark/Hadoop | Existing Spark jobs, big data processing | |
| Cloud Composer | Workflow (Airflow) | DAG orchestration, batch scheduling | |
| Looker / Looker Studio | BI / Dashboards | Enterprise BI, self-service dashboards | |
| AI / ML | Vertex AI | ML Platform | Train, deploy, manage ML models (AutoML + custom) |
| Pre-trained AI APIs | AI APIs | Vision, NLP, Speech, Translation, no ML skills | |
| Gemini | Foundation Model | Multimodal GenAI, chat, code, analysis | |
| Security | IAM | Access Control | Who can do what on which resource |
| Service Accounts | Machine Identity | Identity for apps, VMs, CI/CD | |
| KMS + Secret Manager | Key / Secret Mgmt | Encryption keys, API secrets, certs | |
| Security Command Center | Security Posture | Vulnerabilities, threats, compliance | |
| Org Policy + VPC-SC | Governance | Guardrails, data exfiltration prevention | |
| DevOps | Cloud Build | CI/CD | Build, test, deploy automation |
| Artifact Registry | Package Repository | Docker images, npm, pip, Maven packages | |
| Cloud Deploy | Continuous Delivery | Progressive rollout to GKE / Cloud Run | |
| Terraform / Config Connector | IaC | Provision infrastructure as code | |
| Operations | Cloud Monitoring | Metrics + Alerts | Dashboards, SLOs, uptime checks, alerts |
| Cloud Logging | Log Management | Ingest, search, route, analyze logs | |
| Trace / Profiler / Error Reporting | APM | Distributed tracing, profiling, error tracking | |
| Networking | VPC | Virtual Network | Isolated network, subnets, firewall rules |
| Cloud Load Balancing | Load Balancer | Global/regional L4/L7 traffic distribution | |
| Cloud CDN | CDN | Cache content at Google edge locations | |
| Cloud DNS | DNS | Managed authoritative DNS | |
| Cloud Interconnect / VPN | Hybrid Connectivity | Connect on-prem to GCP (dedicated or VPN) | |
| Management | Resource Hierarchy | Organization | Org β Folders β Projects β Resources |
| Billing | Cost Management | Budgets, alerts, cost optimization | |
| Active Assist / Recommender | Optimization | Right-sizing, idle cleanup, security fixes |