Skip to content
$ lynuxpro
← Google Cloud (GCP)

LESSON 1 OF 23 · BEGINNER · 10 MIN

GCP overview

Free previewLesson 1 of the 2 free lessons in this Pro course.Unlock all 23

HOW IT WORKSFrom organization to a running resource

Organizationexample.com
1/5

Your company is the organization at the top.

In simple words

  • Google Cloud (GCP): Google's cloud platform for servers, storage, data, AI and more.
  • Region / zone: a region is a geographic area. A zone is a separate data centre inside it.
  • Resource hierarchy: organization, then folders, then projects, then resources. Settings flow down the tree.

Big picture

Google Cloud Platform (GCP) is a set of services you rent from Google. Instead of buying servers, you ask for a virtual machine, a database or a message queue, use it, and pay for what you use. Think of it like a power company: you do not build a power plant, you plug in and get a bill.

Google runs the same kind of systems for Search, Gmail and YouTube. GCP lets you use that same global network and those same building blocks.

The map: regions, zones and edge

TermPlain wordsExample
RegionA place in the world with several data centerseurope-west1 (Belgium), us-central1 (Iowa)
ZoneOne data center area inside a region. It can fail on its owneurope-west1-b
Multi-regionA big area made of several regions, used by some servicesEU, US
Edge locationA small site close to users that caches contentused by Cloud CDN

Rule of thumb: put your app in two or more zones so one broken zone does not stop you. Put it in the region closest to your users, and check the price, because regions differ.

The service groups

You will meet the same groups again and again:

GroupWhat it is forMain services
ComputeRun codeCompute Engine (VMs), GKE (Kubernetes), Cloud Run (containers)
StorageKeep files and disksCloud Storage, Persistent Disk, Filestore
DatabasesKeep structured dataCloud SQL, Spanner, Firestore, Bigtable
NetworkingConnect thingsVPC, Load Balancing, Cloud DNS, Cloud CDN
Data and AIAnalyse dataBigQuery, Pub/Sub, Dataflow, Vertex AI
OperationsSee what is happeningCloud Monitoring, Cloud Logging
SecurityProtect thingsIAM, Secret Manager, Security Command Center

How you talk to GCP

There are four ways, and they all call the same API:

  1. Console: the website at console.cloud.google.com. Good for learning and looking around.
  2. gcloud CLI: a command-line tool. Good for scripts and daily work (lesson 3).
  3. Client libraries: code in Python, Go, Java and more.
  4. Infrastructure as code: tools such as Terraform (lesson 19).

The resource hierarchy in one picture

Everything you create lives inside a project. Projects sit inside optional folders, and folders sit inside an organization. Lesson 2 explains this in detail, and lesson 21 shows how big companies design it.

Organization  (example.com) └── Folder  (production)      └── Project  (shop-prod-123)           └── Resources  (VMs, buckets, databases...)
OUTPUTterminalutf-8 · 4L

Shared responsibility

Google protects the data centers, the hardware and the base services. You protect your data, who can access it, and how you set up each service. A bucket left public is your mistake, not Google's.

Free tier and credits

New accounts usually get free trial credit, and some products have an "Always Free" amount each month (for example a small VM and some storage). The exact amounts change, so check the current pricing page before you rely on them. Always set a budget alert (lesson 20) so a forgotten resource does not surprise you.

Your first look

After you install the CLI (lesson 3), these commands show where you are:

gcloud config listgcloud compute regions list --filter="name~europe" --format="value(name)"
SHELLbashutf-8 · 2L
[core]account = ana@example.comproject = shop-dev-123europe-central2europe-north1europe-southwest1europe-west1europe-west10
OUTPUTterminalutf-8 · 8L

Pick the right compute service

A very common first question is where to run code. This table gives a first answer:

You haveStart with
A container that serves web requestsCloud Run (lesson 12)
A full Kubernetes setup or many servicesGKE (lesson 11)
Software that needs a whole machine, or a lift-and-shiftCompute Engine (lesson 4)
A small piece of code that reacts to an eventCloud Run functions (lesson 13)

Common mistakes

  • Creating everything in one project. A mistake in "test" can then break "production".
  • Choosing a far-away region and wondering why the app is slow.
  • Running in one zone only, then having an outage when the zone has trouble.
  • Forgetting to turn off trial resources and getting a bill.
  • Confusing a project name (a label you can change) with the project ID (unique, cannot change).

Summary

  • GCP rents you building blocks: compute, storage, databases, networking, data and security.
  • Regions hold zones. Use two or more zones for anything important.
  • Everything lives in a project, inside folders and an organization.
  • You can use the console, the gcloud CLI, code, or Terraform.
  • Set a budget alert on day one.

CHECK YOUR UNDERSTANDING

3 quick questions

  1. 1. What is the difference between a region and a zone?

  2. 2. Where do all GCP resources live?

  3. 3. You want a container that serves web requests and scales to zero. Which service fits best?