The Google Cloud outage of 2025
medium 30 minOn June 12, 2025 a policy record with blank fields was copied to every Google Cloud region within seconds.
See it run
Replay the crash and the herd, then the repaired design. Three regions stand for all.
Operations
The failure
One record, every region, from Google's incident report.
Step 1 of 7
Two weeks before
New quota checks run in no region, because no policy uses them.
Step 1: Two weeks before
insert(policy) # blank fieldsreplicate_everywhere(policy) # seconds# in each region:p = table.read(policy_id)limit = p.limit.value # null pointer# crash, restart, read again- Shows
- Crash loop
- Costs
- API requests fail
The regions are separate. The record is not.
In the real world
The same the google cloud outage of 2025 doing real jobs. Pick one and step through it.
Minutes since the start, from the report.
Step 1 of 4
2 minutes
Engineers triage. All regions fail in the same way.
Step 1: 2 minutes
Common mistakes
The bugs interviewers watch for, with the fix beside each.
Global data in seconds
criticalThe borders of regions do not stop a record.
Wrongreplicate(policy, all_regions)Rightfor group in groups: apply(policy, group); wait_and_check(group)Using an optional field without a check
criticalBlank values arrive one day.
Wronglimit = policy.limit.valueRightlimit = policy.limit.value if policy.limit else last_goodRestart without a random wait
majorAll tasks meet at the database.
Wrongwhile not load(): passRightwhile not load(): sleep(random(0, window)); window *= 2New path without a flag
majorIt can only be on everywhere or off everywhere.
Wrongrun_new_checks(policy)Rightif flag("new_checks", project): run_new_checks(policy)
Interview tips
How to explain it
- Code staged, data not.
- Blank fields, null pointer, crash loop.
- Switch in 40 minutes, then a herd.
Numbers worth knowing
- May 29 and June 12, 2025.
- 2, 10, 25, 40 minutes.
- About 2 h 40 min in us-central1.
FLAG
- Flags off, limited steps.
- Absent values handled.
- Gradual restart.
Do not say
- The network failed.
- All machines stopped.
- Fail open always.