Quick revision
The short answer
Acknowledge the alert and say in the incident channel that you are investigating, then check whether the errors started with your deploy, and if they did, roll back straight away rather than trying to fix forward. Escalate early if the impact is large or you are unsure, post short status updates with the impact and next steps, and keep notes of times and actions for the postmortem.
What to remember
In this answer, we walked through the first 15 minutes after our deploy broke the payment API. We acknowledged the alert and announced the investigation, checked whether errors began with the deploy, rolled back instead of fixing forward, watching for migrations that make rollback unsafe, escalated early when impact was large or we were unsure, posted short updates with impact and next steps, and kept timestamped notes for the postmortem.
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.
Acknowledge the alert and say in the incident channel that you are investigating, then check whether the errors started with your deploy, and if they did, roll back straight away rather than trying to fix forward. Escalate early if the impact is large or you are unsure, post short status updates with the impact and next steps, and keep notes of times and actions for the postmortem.
Why this question is asked
Payment errors are among the most expensive incidents a company can have: every minute means lost revenue and frustrated customers, and possibly duplicate or missing charges. When the cause is our own deploy, the pressure is personal too, and that is when people make the classic mistakes: staying silent, trying a quick fix in production, or waiting too long to ask for help. Interviewers ask this to see whether a developer has calm, practical incident habits. In this answer, we will go through the first 15 minutes minute by minute: acknowledging, confirming the cause, rolling back, escalating, communicating and keeping notes.
1Minutes 0 to 2: Acknowledge and Announce
The first action is to acknowledge the alert in the paging tool, so others know someone is on it and the alert does not escalate automatically to the next person. The second is a short message in the incident channel. It does not need answers yet; it needs to tell people that someone is working on it and where updates will appear.
Notice that the message already mentions our deploy. Being open about it immediately saves everyone time, since anyone else investigating would find it anyway. In a blameless culture, the deploy is just a fact on the timeline.
2Minutes 2 to 6: Did It Start With My Deploy?
Next, we compare the error graph with the deploy time. Most dashboards can overlay deployment markers on metrics. If errors were flat before 09:36 and jumped right after the new version took traffic, the deploy is the prime suspect. We check quickly that nothing else changed at the same time, such as a database failover, a config change or a dependency outage, by looking at the change log and the status of the payment provider.
We also take one quick look at the error logs, to see the type of error, for example a NullPointerException in the new refund code or a 401 from the payment provider. We do not try to fully understand the bug yet. The goal of this step is only to decide whether rolling back is likely to help.
- Acknowledge alert, post in channelminute 0 to 2
- Errors started with my deploy?YesRoll back nowNoEscalate and investigate other changes
- Roll back to previous versionminute 6 to 10
- Large impact or unsure?YesPage incident commander or team leadNoContinue, keep posting
- Status update: impact and next stepevery 10 to 15 minutes
- Notes with timestampsfor the postmortem
6 steps in order. Play them, or step through them one at a time.
3Minutes 6 to 10: Roll Back, Do Not Fix Forward
If the deploy is the likely cause, we roll back to the previous version immediately. A rollback is a known, tested state; a quick fix written under pressure is a new, untested change to a payment system. Even if we can see the bug and believe it is a one-line fix, the safe order is: restore service first, fix later.
There is a catch: a rollback is only safe if the new version did not make a change the old version cannot handle, such as a database migration that dropped or renamed a column. If our deploy included a migration, we check this before rolling back, and if in doubt, that is a reason to escalate at once. Teams avoid this trap by making migrations backward compatible, so the previous version always works with the new schema.
4Escalating Early
We escalate as soon as either condition is true: the impact is large, for example a significant share of payments failing, or we are unsure what is happening or what to do. Escalating means paging the incident commander, the team lead or a more experienced engineer, according to the team's process. Escalating early is never a failure; a payment outage handled by two people for ten minutes is far better than one handled alone for an hour.
If the rollback did not fix the errors, that is also a reason to escalate immediately, because our main theory was wrong and the incident may have a different cause.
5Communicating With Short Status Updates
While we work, other people need to know what is happening: support staff answering customers, product managers, perhaps other teams whose services depend on payments. So we post short updates on a predictable rhythm, every ten to fifteen minutes or when something important changes, with the impact, what we are doing and when the next update will come.
Notice that the second update already mentions the follow-up for customers. For payments, recovery is not only about the error rate; failed or partial transactions may need to be identified and fixed.
6Keeping Notes for the Postmortem
Finally, from the first minute we keep brief notes with timestamps: when the alert fired, when we acknowledged it, what we checked, when we rolled back, when errors returned to normal. The incident channel itself becomes much of this record if we post our actions there. These notes are the timeline for the postmortem, where the team will look at how the faulty change got through review, tests and the deploy process, and how detection and rollback could be faster. Notes written at the time are far more accurate than memories reconstructed the next day.
7Follow-up questions
Why not fix forward if the bug is obvious?
Because a fix written under pressure skips the usual review and testing, and a mistake in it extends the outage of a payment system. Rolling back restores a known good state in minutes. Once service is stable, we fix the bug properly and redeploy through the normal process.
What if I cannot roll back because of a database migration?
We escalate immediately and consider other options, such as turning off the new feature with a feature flag, if one exists, or deploying a minimal fix with a second reviewer. This situation is why migrations should be backward compatible, so the previous version can always run.
Should I tell people it was my deploy?
Yes, immediately. It helps everyone focus on the likely cause, and in a blameless incident culture the deploy is simply part of the timeline. Hiding it delays recovery and damages trust far more than the original mistake.
8Conclusion
In this answer, we walked through the first 15 minutes after our deploy broke the payment API. We acknowledged the alert and announced the investigation, checked whether errors began with the deploy, rolled back instead of fixing forward, watching for migrations that make rollback unsafe, escalated early when impact was large or we were unsure, posted short updates with impact and next steps, and kept timestamped notes for the postmortem.
Open with
First I'd acknowledge the alert so it doesn't escalate automatically, and post in the incident channel that I'm investigating, mentioning straight away that I deployed payment-api a few minutes before the errors started, with when the next update will come.
Then, if they want more
Then I'd check whether the errors line up with my deploy, comparing the error graph with the deploy marker and quickly checking that nothing else changed, like a database failover or a provider outage.
If it's my deploy, I'd roll back immediately rather than try a quick fix, because a rollback restores a known good state, and an untested fix on a payment system can make it worse. The one thing I'd check first is whether my release included a database migration the old version can't handle.
I'd escalate early, paging the incident commander or my lead, if a big share of payments is failing, if I'm unsure, or if the rollback doesn't help.
Throughout, I'd post short updates every ten or fifteen minutes with impact, action and next update time, and once errors are back to baseline I'd flag the payments that failed during the window so support can follow up. And I'd keep timestamped notes of everything I did, which become the timeline for the postmortem.
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 official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
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 "You are on call and a deploy you made caused errors in the payment API. What do you do...": https://scrivio-interview-library.netlify.app/architecture/technical-leadership/c79919432d/