Service accounts, keys, and impersonation
A service account is dual-natured — both a principal that holds roles and a resource that others can be granted access to act as — and a key file is the risky option, not the default one.
Speaker notes
- A service account is simultaneously a principal (it can be granted roles) and a resource (IAM policies attach to it, controlling who can act as it) — granting the service account a role and granting a human roles/iam.serviceAccountUser on it are two completely separate bindings.
- A service account key is a downloadable JSON file that authenticates indefinitely from anywhere until explicitly revoked — no built-in expiration, fully portable if leaked, and invisible misuse looks identical to legitimate use. Treat any committed key as compromised immediately, not just deleted from the commit.
- Impersonation is the default for any human occasionally needing to act as a service account: a short-lived token (one hour default) generated on demand, every event logged in Cloud Audit Logs — strictly better security posture than a key file, with zero legitimate human use case a key file covers that impersonation doesn't.
Deck map
01
GCP foundations in one line
02
How the ACE exam maps to this course
03
GCP's geography and the project as the unit of isolation
04
Organization, folders, and projects
05
Org policies and how inheritance works
06
Labels, network tags, and resource manager tags
07
Billing accounts, budgets, and cost control
08
gcloud CLI, Cloud Shell, and client libraries
09
Terraform on GCP and the end of Deployment Manager
10
Gemini CLI, Cloud Assist, and Application Design Center
11
Principals, roles, bindings, and policies
12
Primitive, predefined, custom roles, and IAM conditions
13
Service accounts, keys, and impersonation
14
Workload Identity Federation
15
Break-glass access and IAM auditing
16
Choosing a machine family: E2, N4, C4
17
Disks, OS Login, and VM Manager
18
Spot VMs and managed instance groups
19
Autoscaling policies, health checks, GPUs and TPUs
20
GKE Autopilot vs Standard vs the 2026 hybrid option
21
Node pools and pod autoscaling
22
Cloud Run revisions, traffic splitting, and functions
23
Choosing between GKE, Cloud Run, and Compute Engine
24
Cloud Storage classes and lifecycle management
25
Choosing a managed database
26
The managed database lineup
27
Connection pooling, read replicas, and Pub/Sub
28
Backup, regional failover, and CMEK
29
VPC networks, subnets, and Shared VPC
30
Firewall rules, tags, and Cloud NAT
31
Load balancers, Cloud DNS, and Cloud CDN
32
VPN, Interconnect, and private access
33
How a request actually reaches shipment-api
34
Cloud Monitoring: metrics, dashboards, alerts
35
Cloud Logging: router, buckets, and audit logs
36
Trace, Profiler, Error Reporting, and Managed Prometheus
37
How the five Cloud Operations products fit together
38
Readiness checklist