- by x32x01 ||
If production goes down right now, what's the first thing you should do?
Most developers will say: "Check the logs and find the root cause."
Sounds reasonable, right? But Google's Site Reliability Engineering (SRE) guidance challenges that instinct.
Your first priority isn't finding the bug. It's restoring the service.
Why? Because while you're investigating the root cause, your customers are still experiencing an outage. Finding the problem doesn't help them if the system is still down.
Here's the right approach. 🚨
Depending on the situation:
You'll need this information later to understand what happened.
Also, keep your team informed:
A good starting point is the most recent change:
A good postmortem should explain:
The goal is to understand what allowed the failure to happen and prevent similar incidents in the future.
The interviewer wants to know whether you understand production responsibilities.
A strong answer demonstrates that you:
Remember: In production, restoring the service comes before finding someone or something to blame.
Most developers will say: "Check the logs and find the root cause."
Sounds reasonable, right? But Google's Site Reliability Engineering (SRE) guidance challenges that instinct.
Your first priority isn't finding the bug. It's restoring the service.
Why? Because while you're investigating the root cause, your customers are still experiencing an outage. Finding the problem doesn't help them if the system is still down.
Here's the right approach. 🚨
1. Restore the Service First
Focus on getting production back online, even if you don't know exactly what caused the outage.Depending on the situation:
- 🔄 Recent deployment? Roll back to the last known good version.
- 🚩 New feature causing issues? Disable it using a feature flag.
- 🖥️ One cluster is down? Redirect traffic to healthy clusters.
- 📈 System overloaded? Disable nonessential workloads to reduce pressure.
2. Preserve Evidence and Communicate
Before making changes that could destroy useful evidence, capture relevant logs, metrics, and system state.You'll need this information later to understand what happened.
Also, keep your team informed:
- Explain what you know.
- Share what you're doing.
- Assign clear responsibilities.
- Avoid having multiple engineers make conflicting changes.
3. Find the Root Cause
Once the service is stable again, start investigating.A good starting point is the most recent change:
- Code deployments.
- Configuration changes.
- Infrastructure updates.
- Traffic or workload changes.
4. Write a Blameless Postmortem
After resolving the incident, document what happened.A good postmortem should explain:
- What happened?
- What caused the incident?
- How was it detected?
- How was service restored?
- What can prevent it from happening again?
The goal is to understand what allowed the failure to happen and prevent similar incidents in the future.
💡 What's the Interviewer Really Looking For?
This question isn't just testing your debugging skills.The interviewer wants to know whether you understand production responsibilities.
A strong answer demonstrates that you:
- Prioritize customer impact over debugging.
- Know how to mitigate an outage quickly.
- Understand incident communication.
- Can investigate root causes after recovery.
- Believe in blameless postmortems.
Remember: In production, restoring the service comes before finding someone or something to blame.