Basic Interview Questions
What is the GCP resource hierarchy?
Organization → folders → projects → resources. Every resource belongs to exactly one project; IAM policies and organization policies set at a higher level are inherited by everything below.
Region vs zone?
A region is a geographic area (e.g. asia-south1, Mumbai) made of three or more zones. A zone is an isolated deployment area (data centre) inside a region. Spread workloads across zones for high availability and across regions for disaster recovery.
What is IAM?
Identity and Access Management decides who (user, group, service account) can do what (role = collection of permissions) on which resource. Best practice: predefined narrow roles, granted to groups, at the lowest resource level (least privilege).
What is a service account?
An identity for applications and workloads rather than people. Attach it to Cloud Run, VMs or GKE workloads so code gets credentials automatically; avoid downloaded JSON keys.
Name GCP compute options.
| Service | Model |
|---|---|
| Compute Engine | virtual machines (IaaS) |
| GKE | managed Kubernetes |
| Cloud Run | serverless containers |
| Cloud Run functions | serverless functions |
| App Engine | platform as a service |