Quick revision
The short answer
We would treat slow-burn limits, such as transaction ID wraparound age, integer key exhaustion, disk growth and certificate expiry, as a tracked risk register with named owners, backed by fleet-wide automated checks with thresholds far below the hard limit and reviewed in regular operations reviews. Practised runbooks and game days make the emergency path familiar, design standards such as bigint keys, partitioning and transaction limits remove the risk at the source, and incentives give teams time for preventive work and celebrate near misses, not only outage response.
What to remember
In this answer, we saw that slow-burn limits such as wraparound age, int4 key exhaustion, disk growth and certificate expiry slip through because they grow slowly, fail totally and cross team boundaries. We give them a home in a risk register with owners and thresholds far from the limit, automate fleet-wide checks reviewed in regular operations reviews, practise runbooks in game days, remove risks at the source with standards like bigint keys, partitioning and transaction limits, and set incentives that make preventive work and near misses visible.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
We would treat slow-burn limits, such as transaction ID wraparound age, integer key exhaustion, disk growth and certificate expiry, as a tracked risk register with named owners, backed by fleet-wide automated checks with thresholds far below the hard limit and reviewed in regular operations reviews. Practised runbooks and game days make the emergency path familiar, design standards such as bigint keys, partitioning and transaction limits remove the risk at the source, and incentives give teams time for preventive work and celebrate near misses, not only outage response.
Why this question is asked
Most outages are sudden, but some of the worst ones are built over years. A database that stops accepting writes because of transaction ID wraparound, an orders table whose int primary key runs out at 2,147,483,647, a certificate that expires on a Sunday: each was visible on a graph long before it struck. The problem is not technical knowledge; it is that nobody was responsible for looking. Interviewers ask this leadership question to see how we build a system of attention across an organisation. In this answer, we will see why these risks slip through, build a register with owners, automate the checks, practise the response, design the risks away, and set incentives.
1Why Slow Risks Slip Through
A slow risk has three properties that defeat ordinary operations. It grows over months or years, so no single day looks alarming. It has a hard limit, after which the failure is total rather than gradual: writes stop, inserts fail, connections are rejected. And it usually crosses team boundaries, because the database is run by one team, the schema owned by another, and the traffic grown by a third.
Incident processes are built for things that are already broken, and service dashboards for things that change within hours. So a wraparound age climbing by 20 million a day falls between the two. Our job as leaders is to give these risks a home.
2A Risk Register With Owners
We start with a short register of known slow-burn limits that apply across the company, each with a measurable signal, a hard limit, a warning threshold far from that limit, and an owner. Owning a risk means watching it and making sure it is addressed, not fixing every instance personally.
| Risk | Signal | Warn at | Owner |
|---|---|---|---|
| xid wraparound | age(datfrozenxid) | 500 million of about 2 billion | database platform |
| int4 key exhaustion | max(id) or sequence value / 2,147,483,647 | 50 percent | schema owner team |
| Disk growth | days until full at current growth | under 60 days | infrastructure |
| Certificate expiry | days to expiry | under 30 days | security platform |
| Replication slot WAL | retained WAL per slot | over 50 GB | database platform |
Notice the threshold column: each is set where we still have weeks or months to respond calmly, not where the problem is already urgent.
3Fleet-Wide Automated Checks
A register is useless if someone must remember to look. So every risk becomes an automated check that runs against the whole fleet, every database, every certificate, every volume, and reports by owner. For PostgreSQL that means queries like the ones below run on every cluster daily, with results stored so we can see the trend, not just today's value.
- Daily automated check across the fleet
- Above warning threshold?YesCreate a dated ticket for the ownerNoStore the value for trends
- Projected hard-limit date within 6 months?YesEscalate in the operations reviewNoOwner plans normally
- Plan done and verifiedclose the risk item
4 steps in order. Play them, or step through them one at a time.
The results feed a monthly operations review where each owner reports on their risks. A risk trending towards its threshold gets a dated plan, and the review tracks that plan to completion. Projecting the date of the hard limit from the trend makes the conversation concrete: 'at current growth, orders.id runs out in 11 months'.
4Practise the Emergency Before It Happens
Even with good monitoring, one day a risk will reach the emergency zone, perhaps on a system acquired in a merger. So each register entry has a runbook, and we run game days where a team works through it on a realistic non-production setup: a database pushed to high wraparound age with a blocking prepared transaction, or a table whose sequence is about to run out. People who have done it once, calmly, perform far better in a real incident.
5Design Standards That Remove the Risk
The best risk is the one that cannot happen. So we add design standards: bigint for all new primary keys and sequences, which makes key exhaustion practically impossible; partitioning for tables expected to pass a set size, so vacuum and freezing work on small pieces; limits on long transactions through timeouts; automatic certificate renewal; and alerts created automatically when a new database or volume is provisioned. These standards go into templates and schema review, so new systems are safe by default.
6Incentives: Make Prevention Visible
Engineering organisations tend to reward the heroes of an outage and ignore the person who quietly prevented one. If that continues, preventive work never wins a prioritisation meeting. So we reserve capacity for it, for example a fixed share of platform team time, and we report near misses in the same forum as incidents: 'the int key on payments would have run out in March; it was migrated in October'. That makes the value of the work visible to leaders who never saw an outage.
7Follow-up questions
How would you justify this work to leaders who see no current incident?
With dates and costs rather than abstractions. I would show the trend and the projected date of the hard limit, an estimate of the impact if it hits, for example all checkout writes stopped for several hours, and examples of public outages caused by the same pattern at other companies. Then I would compare that with the cost of prevention, often a few engineer-weeks. Framing it as insurance with a known expiry date is usually persuasive, and reporting near misses afterwards builds trust for the next request.
Who should own a risk that spans teams, like int key exhaustion?
The team that owns the schema owns the fix, because only they can change the column and the application code. The platform team owns the detection and the standard. The register records both, so a ticket always has someone who can act on it.
How many risks belong in the register?
Few, perhaps ten to twenty, each with a hard limit and a clear signal. A register of hundreds becomes noise. Risks without a hard limit belong in normal capacity planning.
8Conclusion
In this answer, we saw that slow-burn limits such as wraparound age, int4 key exhaustion, disk growth and certificate expiry slip through because they grow slowly, fail totally and cross team boundaries. We give them a home in a risk register with owners and thresholds far from the limit, automate fleet-wide checks reviewed in regular operations reviews, practise runbooks in game days, remove risks at the source with standards like bigint keys, partitioning and transaction limits, and set incentives that make preventive work and near misses visible.
Open with
I would treat this as a class of risk, not a one-off. Wraparound, int4 primary keys running out, disks filling, certificates expiring all share the same shape: they grow slowly, they have a hard limit where the failure is total, and they fall between teams.
Then, if they want more
So first I would create a small risk register of these slow-burn limits, each with a signal, a warning threshold well before the hard limit, like 500 million for wraparound age, and a named owner.
Second, I would make sure every item is an automated check across the whole fleet, not something people remember to look at, with trends stored so we can project the date the limit would be reached, and reviewed in a monthly operations review where owners report on their risks.
Third, every item gets a runbook, and we practise them in game days, so the emergency procedure is familiar. Fourth, I would use design standards to remove risks at the source: bigint keys by default, partitioning for big tables, limits on long transactions, automatic certificate renewal.
And finally I would fix incentives: reserve platform time for preventive work and report near misses alongside incidents, so leaders see the value of problems that never happened.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- PostgreSQL documentation
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "A well-known outage pattern is a PostgreSQL database stopping writes because of...": https://scrivio-interview-library.netlify.app/databases/postgresql/29ea8e975b/