Projects, IAM, regions, and billing
GCP · 13 questions
Short notes
Key idea
Everything in Google Cloud lives in a project, which holds resources, billing and permissions. IAM decides who can do what. Regions decide where data and compute physically sit.
Syntax
- Hierarchy: organisation → folders → projects → resources.
- IAM binding: a principal (user, group, service account) + a role + a resource.
- Roles: basic (Owner/Editor/Viewer, too broad), predefined (
roles/bigquery.dataViewer), custom. - Service accounts: identities for programs, not people.
- Region (asia-south1 = Mumbai) vs zone (asia-south1-a) vs multi-region (US, EU).
- Billing: a billing account linked to projects; budgets and alerts.
gcloud config set project my-project
gcloud projects add-iam-policy-binding my-project --member=user:a@x.com --role=roles/bigquery.user
Example
A pipeline's service account gets bigquery.dataEditor on one dataset and storage.objectViewer on one bucket, nothing more. Analysts get bigquery.dataViewer and bigquery.jobUser.
Traps
- Granting Owner or Editor "to make it work" is the most common security mistake.
- Downloading service account keys; prefer workload identity or impersonation.
- Data in different regions can't always be joined, and moving it costs money.
- Set a budget alert on day one.
Want the full lesson with step-by-step examples, a project and a certificate? GCP course, ₹120 →
Questions
5 free questions- Question 1easy
In Google Cloud's resource hierarchy, what sits directly above a BigQuery dataset?
- Question 2medium
A pipeline only needs to read files from one bucket. Which grant follows least privilege?
- Question 3medium
Who should a scheduled production pipeline run as?
- Question 4medium
A query joins a dataset in
asia-south1with one inUS. What happens? - Question 5easy
You grant a group BigQuery Data Viewer on a folder. Which resources does it apply to?
Projects, IAM, regions, and billing
Projects, IAM, regions, and billing
Projects, IAM, regions, and billing
Projects, IAM, regions, and billing
Projects, IAM, regions, and billing
8 more questions on this topic, with hints, and tests
Sign up free for 21 days of every question and test.