Tổng quan & Khái niệm cốt lõiOverview & Core Concepts
Thuộc bộ tài liệu Cloud knowledge base — GCP deep dive. Bổ sung cho DevOps Roadmap.
Tổng quan
Google Cloud Platform (GCP) là public cloud của Google, chạy trên chính hạ tầng đứng sau Google Search, Gmail, YouTube và Maps. Với một DevOps engineer đến từ AWS hay Azure, hai thay đổi tư duy lớn nhất là: GCP xem nhiều dịch vụ cốt lõi là global thay vì regional, và mọi thứ bạn tạo ra đều nằm trong một resource hierarchy (phân cấp tài nguyên) nghiêm ngặt (Organization → Folders → Projects → resources) — điểm neo duy nhất cho IAM, billing và policy.
Trang này là tấm bản đồ toàn cảnh: mạng vật lý của Google được bố trí thế nào, phân cấp logic hoạt động ra sao, bạn trả tiền kiểu gì, truy cập bằng cách nào, và ranh giới trách nhiệm chung nằm ở đâu. Trang IAM và Networking sẽ đào sâu vào hai chủ đề bạn đụng tới mỗi ngày.
Kiến thức nền tảng
Hạ tầng toàn cầu: region, zone và edge
GCP được dựng từ ba tầng vật lý:
| Tầng | Là gì | Phạm vi | Ví dụ |
|---|---|---|---|
| Region | Một khu vực địa lý độc lập | Vùng cô lập | us-central1 (Iowa), europe-west1 (Bỉ), asia-southeast1 (Singapore) |
| Zone | Một khu triển khai trong region (đại khái một hoặc một cụm datacenter) | Failure domain (miền lỗi) | us-central1-a, us-central1-b |
| Edge / POP | Points of Presence trên mạng toàn cầu của Google để cache và ingress | Global (180+ vị trí) | Dùng bởi Cloud CDN, Global Load Balancing, Premium Tier networking |
Điểm mấu chốt:
- Mỗi region có 3 zone trở lên. Zone là đơn vị cô lập lỗi — sự cố một zone không được kéo sập zone khác. Trải instance qua nhiều zone để có high availability; trải qua nhiều region để disaster recovery và tuân thủ data residency.
- Các zone trong cùng region nối với nhau bằng link độ trễ thấp, băng thông cao (thường round-trip dưới 1ms), nên kiến trúc multi-zone vừa rẻ vừa nhanh — replication đồng bộ giữa các zone là khả thi.
- Google vận hành một mạng backbone toàn cầu riêng. Với Premium Tier (mặc định), traffic vào/ra tại edge POP gần người dùng nhất và đi trên backbone của Google suốt chặng. Standard Tier đẩy traffic ra internet công cộng ngay tại region nguồn — rẻ hơn nhưng chậm và kém tin cậy hơn.
Ánh xạ tên gọi AWS ↔ GCP:
| Khái niệm | AWS | GCP |
|---|---|---|
| Khu vực địa lý | Region | Region |
| Nhóm datacenter cô lập | Availability Zone (AZ) | Zone |
| Vị trí cache biên | CloudFront edge | Edge POP / Cloud CDN |
| Mạng ảo | VPC (regional) | VPC (global) |
| Object storage | S3 | Cloud Storage (GCS) |
| Máy ảo | EC2 | Compute Engine |
| Managed Kubernetes | EKS | GKE |
| Ranh giới tài khoản | Account | Project |
| Nhóm tổ chức | Organizational Unit (OU) | Folder |
Resource hierarchy (phân cấp tài nguyên)
Mọi thứ bạn tạo trong GCP đều nằm trong một cây. Cây này không phải để trang trí — IAM policy và Organization Policy được thừa kế xuống dưới, còn billing thì gom lên trên.
Organization (công ty bạn, gắn với domain Cloud Identity / Workspace)
└── Folder (ví dụ "Engineering")
└── Folder (ví dụ "Team-Payments")
└── Project (ví dụ "payments-prod")
└── Resources (VM, bucket, GKE cluster, Pub/Sub topic…)
- Organization node — gốc cây. Tự động tạo khi bạn gắn tài khoản Google Workspace hay Cloud Identity. Sở hữu org policy mặc định và IAM policy cấp cao nhất. Mỗi domain đúng một cái.
- Folders — lớp gom nhóm tùy chọn cho phòng ban, team hoặc môi trường. Folder có thể lồng nhau (tối đa 10 tầng). Đây là nơi tự nhiên để đặt IAM và org policy cần cascade xuống nhiều project.
- Projects — đơn vị nền tảng. Mọi resource thuộc đúng một project. Project
là ranh giới cho billing, API được bật, quota và IAM. Một project có ba định
danh:
- Project ID — duy nhất toàn cầu, do người dùng chọn, bất biến (ví dụ
payments-prod-4821). - Project number — duy nhất toàn cầu, số nguyên do Google gán.
- Project name — nhãn hiển thị, có thể đổi.
- Project ID — duy nhất toàn cầu, do người dùng chọn, bất biến (ví dụ
- Resources — những thứ thực sự (VM, bucket, topic). Chúng thừa kế IAM policy hiệu lực của project.
Project & billing account
Billing tách rời khỏi phân cấp: Billing Account là một đối tượng riêng mà project được liên kết tới.
- Một billing account có thể trả tiền cho nhiều project; một project liên kết với đúng một billing account tại một thời điểm.
- Billing account thuộc sở hữu ở cấp Organization và có IAM role riêng
(
roles/billing.admin,roles/billing.user). - Dùng label (
env=prod,team=payments,cost-center=1234) trên resource cùng với billing export sang BigQuery để phân tích chi phí chi tiết và showback. - Đặt budget và alert theo billing account hoặc theo project — alert kích hoạt theo chi tiêu thực tế hoặc dự báo, và có thể trigger Pub/Sub để phản ứng tự động.
Khái niệm chính
Global vs regional vs zonal
Biết phạm vi của một resource cho bạn biết failure domain của nó và cách tham chiếu tới nó.
| Phạm vi | Ý nghĩa | Ví dụ |
|---|---|---|
| Global | Không gắn với region nào; một thực thể phục vụ khắp nơi | VPC network, firewall rule, route, Global HTTP(S) Load Balancer, Cloud DNS, IAM, image, snapshot |
| Regional | Sống trong một region, trải các zone của region đó | Subnet, regional MIG, regional persistent disk, Cloud SQL, regional GKE, regional load balancer |
| Zonal | Sống trong một zone duy nhất | VM Compute Engine, zonal persistent disk, zonal GKE node, zonal MIG |
Hệ quả thực tế: VPC là global, nhưng subnet của nó là regional. Bạn tạo một VPC và thêm một subnet cho mỗi region khi cần — rất khác AWS, nơi VPC gắn cứng với một region và muốn nối liên region phải peering.
Trách nhiệm chung (và shared fate)
Google bảo vệ hạ tầng cloud; bạn bảo vệ những gì bạn đặt lên đó. Ranh giới dịch chuyển theo mô hình dịch vụ:
| Lớp | IaaS (Compute Engine) | Managed (Cloud SQL, GKE) | Serverless (Cloud Run, Functions) |
|---|---|---|---|
| Vật lý / phần cứng | |||
| Hạ tầng mạng | |||
| Host OS / hypervisor | |||
| Vá guest OS | Bạn | ||
| Runtime / middleware | Bạn | Chia sẻ | |
| Code ứng dụng | Bạn | Bạn | Bạn |
| Dữ liệu & kiểm soát truy cập (IAM) | Bạn | Bạn | Bạn |
IAM, phân loại dữ liệu và quản lý truy cập luôn là của bạn, bất kể dịch vụ nào. Google còn công bố mô hình Shared Fate — đi xa hơn ranh giới bằng cách cung cấp secure default, blueprint (ví dụ security foundations blueprint) và guardrail để “con đường lát sẵn” cũng chính là con đường an toàn.
Google Cloud Architecture Framework
Bản tương đương của AWS Well-Architected Framework. Sáu trụ cột để đánh giá mọi thiết kế:
- Operational excellence — tự động hóa, observability, ứng cứu sự cố.
- Security, privacy & compliance — least privilege, phòng thủ theo tầng.
- Reliability — SLO, dự phòng qua zone/region, suy giảm nhẹ nhàng.
- Cost optimization — right-sizing, discount, lifecycle policy.
- Performance optimization — tài nguyên phù hợp, caching, tầm phủ toàn cầu.
- Sustainability — chọn region theo mức carbon.
Các cách truy cập GCP
| Cách | Là gì | Khi nào dùng |
|---|---|---|
| Cloud Console | Giao diện web (console.cloud.google.com) | Khám phá, thay đổi lẻ, dashboard |
| gcloud CLI | Công cụ dòng lệnh (thuộc Cloud SDK) | Scripting, automation, CI/CD |
| Cloud Shell | VM trên trình duyệt cài sẵn SDK, home 5 GB lưu bền | Quản trị nhanh không cần cài local |
| Client libraries | SDK bản ngữ (Go, Python, Java, Node, …) | Code ứng dụng gọi API GCP |
| REST / gRPC APIs | Endpoint HTTP/gRPC nền tảng | Tooling tùy biến, ngôn ngữ chưa hỗ trợ |
| Terraform / Config Connector | Infrastructure as Code | Hạ tầng tái lập, có review |
Thiết lập gcloud cơ bản:
gcloud auth login # credential người dùng
gcloud config set project payments-prod # project mặc định cho lệnh
gcloud config set compute/region us-central1
gcloud config set compute/zone us-central1-a
# Named configuration cho phép đổi ngữ cảnh (prod / dev)
gcloud config configurations create prod
gcloud config configurations activate prod
gcloud config configurations list
Kiến thức nền về giá
Giá của GCP nổi tiếng vì các discount tự động, chi tiết:
- Tính tiền theo giây — Compute Engine, GKE và Dataproc tính theo giây (tối thiểu 1 phút). Không làm tròn lên giờ.
- Sustained-use discount (SUD) — discount tự động trên Compute Engine khi một VM (thuộc một số family) chạy phần lớn tháng (giảm tới ~30% nếu dùng cả tháng). Không cam kết, không cần thao tác.
- Committed-use discount (CUD) — cam kết dùng 1 hoặc 3 năm để giảm ~37–70%. Hai kiểu: resource-based (số vCPU/RAM cụ thể trong một region) và spend-based (một số tiền/giờ, ví dụ cho Cloud Run / GKE Autopilot).
- Preemptible / Spot VM — VM giảm sâu (60–91%) mà Google có thể thu hồi với báo trước 30 giây. Spot là mô hình mới không giới hạn 24 giờ. Lý tưởng cho batch chịu lỗi, CI, rendering.
- Free tier — bộ tài nguyên luôn miễn phí (ví dụ 1 VM
e2-micro/tháng ở một số region US, 5 GB Cloud Storage, lượng lớn lời gọi Cloud Functions) cộng credit dùng thử $300 / 90 ngày cho tài khoản mới.
Ước lượng trước khi build bằng Google Cloud Pricing Calculator.
Organization Policy (giới thiệu)
Khác với IAM. IAM kiểm soát ai được làm gì; Organization Policy Service kiểm soát cái gì được phép tồn tại và tồn tại thế nào, như những guardrail đặt ở cấp org/folder/project và thừa kế xuống dưới.
Các constraint thường gặp:
compute.vmExternalIpAccess— hạn chế VM nào được có public IP.iam.disableServiceAccountKeyCreation— chặn tạo SA key sống lâu.gcp.resourceLocations— chỉ cho tạo resource ở các region được duyệt.compute.requireOsLogin— bắt buộc OS Login cho SSH.iam.allowedPolicyMemberDomains(domain-restricted sharing) — chặn chia sẻ ra ngoài org.
Chúng được thực thi cả với Project Owner, nên là một control tuân thủ rất mạnh. Xem trang IAM để biết chi tiết.
Best Practices
- Thiết kế phân cấp trước khi mở rộng. Dùng folder theo phòng ban và project
riêng cho từng môi trường (
app-dev,app-staging,app-prod). Đặt IAM và org policy cao trong cây để cascade — dễ hơn nhiều so với sửa lại về sau. - Một workload/môi trường cho một project. Project là blast radius của IAM, quota và billing. Cô lập chúng giới hạn thiệt hại khi sai sót hoặc bị xâm nhập và làm cost attribution cực dễ.
- Không bao giờ dùng role
Ownercấp org cho việc hằng ngày. Để dành cho break-glass; hãy cấp predefined role least-privilege (xem trang IAM). - Bật org policy từ ngày đầu. Tối thiểu: chặn tạo SA key, hạn chế external
IP, và ghim
resourceLocationsvào các region tuân thủ — guardrail rẻ tiền ngăn được sai lầm đắt giá. - Gắn label cho mọi thứ. Bắt buộc label
env,team,cost-center; không có chúng thì không thể phân tích chi phí hay bảo mật một cách nghiêm túc. - Export billing sang BigQuery và đặt budget kèm alert. Phát hiện chi tiêu thất thoát sớm; dựng dashboard showback/chargeback từ export.
- Dùng committed-use discount cho tải nền ổn định và để sustained-use discount lo phần còn lại — rồi thêm Spot VM cho công suất co giãn/batch.
- Ưu tiên Spot VM cho mọi thứ chịu lỗi (CI runner, batch, dev). Tiết kiệm lớn và rủi ro thu hồi quản lý được bằng retry và MIG.
- Chọn region có chủ đích theo latency, data residency/compliance, chi phí (giá khác nhau theo region) và mức carbon — đừng chỉ dùng “mặc định”.
- Thiết kế chịu lỗi zone theo mặc định. Trải qua ≥2 zone; dùng regional managed instance group và regional persistent disk cho dịch vụ stateful.
- Quản lý hạ tầng bằng code (Terraform + Config Connector). Click console không mở rộng được, không review được, và drift âm thầm.
- Dùng named
gcloudconfiguration (hoặc service account riêng) để tách bạch ngữ cảnh prod và non-prod, tránh tai nạn “nhầm project”. - Dùng Architecture Framework làm checklist review cho mọi thiết kế đáng kể; nó bắt được các lỗ hổng reliability và chi phí trước khi launch.
- Bật Cloud Asset Inventory và Security Command Center để có bản ghi liên tục, truy vấn được về những gì đang tồn tại và trạng thái bảo mật của chúng.
- Dùng một project “seed”/bootstrap chuyên biệt, khóa chặt cho automation cấp org (Terraform state, org policy) để cấu hình nền không lẫn với workload.
Tài liệu tham khảo
- Google Cloud documentation home
- Geography and regions
- Resource hierarchy
- Global, regional, and zonal resources
- Shared responsibility and shared fate
- Google Cloud Architecture Framework
- gcloud CLI overview
- Compute Engine pricing (SUD/CUD)
- Committed use discounts
- Spot VMs
- Free tier
- Pricing calculator
- Organization Policy Service
- Cloud Foundation Fabric (reference blueprints)
Part of the Cloud knowledge base — GCP deep dive. Complements DevOps Roadmap.
Overview
Google Cloud Platform (GCP) is Google’s public cloud, running on the same infrastructure that powers Google Search, Gmail, YouTube, and Maps. For a DevOps engineer arriving from AWS or Azure, the two biggest mental shifts are that GCP treats many core services as global rather than regional, and that everything you create lives inside a strict resource hierarchy (Organization → Folders → Projects → resources) that is the single anchor point for IAM, billing, and policy.
This page is the map of the territory: how Google’s physical network is laid out, how the logical hierarchy works, how you pay, how you access things, and where the shared-responsibility line sits. The IAM and Networking pages go deep on the two topics you will touch every single day.
Fundamentals
Global infrastructure: regions, zones, and edge
GCP is built from three physical tiers:
| Tier | What it is | Scope | Example |
|---|---|---|---|
| Region | An independent geographic area | Isolated area | us-central1 (Iowa), europe-west1 (Belgium), asia-southeast1 (Singapore) |
| Zone | A deployment area within a region (roughly a datacenter or cluster of them) | Failure domain | us-central1-a, us-central1-b |
| Edge / POP | Points of Presence on Google’s global network for caching and ingress | Global (180+ locations) | Used by Cloud CDN, Global Load Balancing, Premium Tier networking |
Key facts:
- A region has 3 or more zones. Zones are the unit of failure isolation — a zonal outage should not take down other zones. Spread instances across zones for high availability; spread across regions for disaster recovery and data residency.
- Zones inside a region are connected by low-latency, high-bandwidth links (typically sub-millisecond round-trips), so multi-zone architectures are cheap and fast — synchronous replication across zones is practical.
- Google runs a private global backbone network. With Premium Tier networking (the default), traffic enters/exits at the edge POP closest to the user and rides Google’s backbone the whole way. Standard Tier hands traffic to the public internet at the source region — cheaper but slower and less reliable.
AWS ↔ GCP equivalents (naming):
| Concept | AWS | GCP |
|---|---|---|
| Geographic area | Region | Region |
| Isolated datacenter group | Availability Zone (AZ) | Zone |
| Edge cache location | CloudFront edge | Edge POP / Cloud CDN |
| Virtual network | Regional VPC | Global VPC |
| Object storage | S3 | Cloud Storage (GCS) |
| Virtual machine | EC2 | Compute Engine |
| Managed Kubernetes | EKS | GKE |
| Account boundary | Account | Project |
| Org grouping | Organizational Unit (OU) | Folder |
The resource hierarchy
Everything you create in GCP lives in a tree. This tree is not cosmetic — IAM policies and Organization Policies are inherited down it, and billing rolls up it.
Organization (your company, tied to a Cloud Identity / Workspace domain)
└── Folder (e.g. "Engineering")
└── Folder (e.g. "Team-Payments")
└── Project (e.g. "payments-prod")
└── Resources (VMs, buckets, GKE clusters, Pub/Sub topics…)
- Organization node — the root. Created automatically when you associate a Google Workspace or Cloud Identity account. Owns default org policies and the top-level IAM policy. There is exactly one per domain.
- Folders — optional grouping layer for departments, teams, or environments. Folders can nest (up to 10 levels deep). This is the natural place to apply IAM and org policies that should cascade to many projects.
- Projects — the fundamental unit. Every resource belongs to exactly one
project. A project is the boundary for billing, enabled APIs, quotas, and IAM.
A project has three identifiers:
- Project ID — globally unique, user-chosen, immutable (e.g.
payments-prod-4821). - Project number — globally unique, Google-assigned integer.
- Project name — a mutable display label.
- Project ID — globally unique, user-chosen, immutable (e.g.
- Resources — the actual things (a VM, a bucket, a topic). They inherit the effective IAM policy of their project.
Projects & billing accounts
Billing is decoupled from the hierarchy: a Billing Account is a separate object that projects are linked to.
- One billing account can pay for many projects; a project links to exactly one billing account at a time.
- Billing accounts are owned at the Organization level and have their own IAM
roles (
roles/billing.admin,roles/billing.user). - Use labels (
env=prod,team=payments,cost-center=1234) on resources plus billing export to BigQuery for granular cost analysis and showback. - Set budgets and alerts per billing account or per project — alerts fire on actual or forecasted spend, and can trigger Pub/Sub for automated responses.
Key Concepts
Global vs regional vs zonal resources
Knowing a resource’s scope tells you its failure domain and how you reference it.
| Scope | Meaning | Examples |
|---|---|---|
| Global | Not tied to any region; one instance serves everywhere | VPC network, firewall rules, routes, Global HTTP(S) Load Balancer, Cloud DNS, IAM, images, snapshots |
| Regional | Lives in one region, spans that region’s zones | Subnets, regional MIGs, regional persistent disks, Cloud SQL, regional GKE, regional load balancers |
| Zonal | Lives in a single zone | Compute Engine VM, zonal persistent disk, zonal GKE node, zonal MIG |
Practical implication: a VPC is global, but its subnets are regional. You create one VPC and add a subnet per region as needed — very different from AWS, where a VPC is bound to one region and cross-region connectivity needs peering.
Shared responsibility (and shared fate)
Google secures the cloud; you secure what you put in it. The line moves with the service model:
| Layer | IaaS (Compute Engine) | Managed (Cloud SQL, GKE) | Serverless (Cloud Run, Functions) |
|---|---|---|---|
| Physical / hardware | |||
| Network infra | |||
| Host OS / hypervisor | |||
| Guest OS patching | You | ||
| Runtime / middleware | You | Shared | |
| App code | You | You | You |
| Data & access control (IAM) | You | You | You |
IAM, data classification, and access management are always yours, regardless of service. Google also publishes a Shared Fate model — going beyond the line by providing secure defaults, blueprints (e.g. the security foundations blueprint), and guardrails so the paved path is the secure path.
Google Cloud Architecture Framework
Google’s equivalent of the AWS Well-Architected Framework. Six pillars to evaluate any design against:
- Operational excellence — automation, observability, incident response.
- Security, privacy & compliance — least privilege, defense in depth.
- Reliability — SLOs, redundancy across zones/regions, graceful degradation.
- Cost optimization — right-sizing, discounts, lifecycle policies.
- Performance optimization — appropriate resources, caching, global reach.
- Sustainability — carbon-aware region selection.
Ways to access GCP
| Method | What it is | When to use |
|---|---|---|
| Cloud Console | Web UI (console.cloud.google.com) | Exploration, one-off changes, dashboards |
| gcloud CLI | Command-line tool (part of the Cloud SDK) | Scripting, automation, CI/CD |
| Cloud Shell | Browser-based VM with SDK pre-installed, 5 GB persistent home | Quick admin without local setup |
| Client libraries | Idiomatic SDKs (Go, Python, Java, Node, …) | Application code calling GCP APIs |
| REST / gRPC APIs | The underlying HTTP/gRPC endpoints | Custom tooling, unsupported languages |
| Terraform / Config Connector | Infrastructure as Code | Reproducible, reviewed infra |
Basic gcloud setup:
gcloud auth login # user credentials
gcloud config set project payments-prod # default project for commands
gcloud config set compute/region us-central1
gcloud config set compute/zone us-central1-a
# Named configurations let you switch contexts (prod / dev)
gcloud config configurations create prod
gcloud config configurations activate prod
gcloud config configurations list
Pricing fundamentals
GCP’s pricing is known for granular, automatic discounts:
- Per-second billing — Compute Engine, GKE, and Dataproc bill by the second (with a 1-minute minimum). No rounding up to the hour.
- Sustained-use discounts (SUD) — automatic discounts on Compute Engine when a VM (of certain families) runs for a large fraction of the month (up to ~30% off for full-month usage). No commitment, no action needed.
- Committed-use discounts (CUD) — commit to 1 or 3 years of usage for ~37–70% off. Two flavors: resource-based (specific vCPU/RAM in a region) and spend-based (a dollar amount per hour, e.g. for Cloud Run / GKE Autopilot).
- Preemptible / Spot VMs — deeply discounted (60–91% off) VMs Google can reclaim with 30 seconds’ notice. Spot is the newer model with no 24-hour cap. Ideal for fault-tolerant batch, CI, and rendering.
- Free tier — a set of always-free resources (e.g. 1
e2-microVM/month in select US regions, 5 GB Cloud Storage, generous Cloud Functions invocations) plus a $300 / 90-day free trial credit for new accounts.
Estimate before you build with the Google Cloud Pricing Calculator.
Organization Policies (intro)
Distinct from IAM. IAM controls who can do what; the Organization Policy Service controls what is allowed to exist and how, as guardrails set at org/folder/project level and inherited down.
Common constraints:
compute.vmExternalIpAccess— restrict which VMs may have public IPs.iam.disableServiceAccountKeyCreation— block long-lived SA keys.gcp.resourceLocations— restrict resource creation to approved regions.compute.requireOsLogin— enforce OS Login for SSH.iam.allowedPolicyMemberDomains(domain-restricted sharing) — block sharing outside your org.
These are enforced even against Project Owners, which makes them a strong compliance control. See the IAM page for details.
Best Practices
- Model your hierarchy before scaling. Use folders per department and
separate projects per environment (
app-dev,app-staging,app-prod). Apply IAM and org policy high in the tree so it cascades — far easier than retrofitting later. - One workload/environment per project. Projects are the blast radius for IAM, quotas, and billing. Isolating them limits the damage of a mistake or compromise and makes cost attribution trivial.
- Never use the org-level
Ownerrole for daily work. Reserve it for break-glass; grant least-privilege predefined roles instead (see IAM page). - Turn on org policies from day one. At minimum disable SA key creation,
restrict external IPs, and pin
resourceLocationsto your compliance regions — cheap guardrails that prevent expensive mistakes. - Label everything. Enforce
env,team, andcost-centerlabels; you cannot do meaningful cost or security analysis without them. - Export billing to BigQuery and set budgets with alerts. Detect runaway spend early; build showback/chargeback dashboards from the export.
- Use committed-use discounts for steady baseline load and let sustained-use discounts cover the rest — then add Spot VMs for elastic/batch capacity.
- Prefer Spot VMs for anything fault-tolerant (CI runners, batch, dev). The savings are large and the reclaim risk is manageable with retries and MIGs.
- Choose regions deliberately for latency, data residency/compliance, cost (prices vary by region), and carbon footprint — not just “the default”.
- Design for zone failure by default. Spread across ≥2 zones; use regional managed instance groups and regional persistent disks for stateful services.
- Manage infrastructure as code (Terraform + Config Connector). Console clicks don’t scale, aren’t reviewable, and drift silently.
- Use named
gcloudconfigurations (or separate service accounts) to keep prod and non-prod contexts firmly separated and avoid “wrong project” accidents. - Adopt the Architecture Framework as a review checklist for every non-trivial design; it catches reliability and cost gaps before launch.
- Enable Cloud Asset Inventory and Security Command Center to keep a continuous, queryable record of what exists and its security posture.
- Use a dedicated, locked-down “seed”/bootstrap project for org-level automation (Terraform state, org policies) so foundational config is not tangled with workloads.
References
- Google Cloud documentation home
- Geography and regions
- Resource hierarchy
- Global, regional, and zonal resources
- Shared responsibility and shared fate
- Google Cloud Architecture Framework
- gcloud CLI overview
- Compute Engine pricing (SUD/CUD)
- Committed use discounts
- Spot VMs
- Free tier
- Pricing calculator
- Organization Policy Service
- Cloud Foundation Fabric (reference blueprints)