📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

Walk me through a major production incident you handled, from the first alert to the postmortem. What was the impact, how did you work out what was wrong, what did you do to mitigate it, how did you communicate, and what changed afterwards?

Covers how to tell a major-incident story end to end: detection, triage and severity, roles and communication, investigation with telemetry, mitigation, root cause and contributing factors, corrective actions, and the measurable result, structured with STAR.

Senior RealWorldScenario Advanced azure incident-response observability postmortem production-incident star-method

🎯 Key points

  • Clear STAR structure: situation and stakes, your role, actions, measurable result
  • Impact in numbers: users, duration, error rate, SLO budget or revenue
  • How it was detected and how long detection took
  • Triage: severity, roles (IC, comms), stakeholder updates
  • Investigation with named tools: Application Insights/KQL, traces, dotnet-counters/dump, Query Store
  • Mitigation first (rollback, flag, failover), then root cause
  • Contributing factors and system-level corrective actions, tracked to done
  • What you personally did and what you'd do differently

⏱ 30-second answer

Pick a real incident where you played a clear role, and tell it in STAR order in about two minutes. Situation: the system, scale and impact in numbers (users, minutes, error rate). Task: your role — responder, incident commander, or the person who found the cause. Action: how it was detected, how you triaged and set severity, how you mitigated first (rollback, flag, failover), how you investigated with named tools (Application Insights and KQL, distributed traces, dotnet-counters, Query Store), and how you communicated. Result: time to mitigate, what the contributing factors were and which system changes came out of the postmortem, with a number that shows it worked.

The trade-off interviewers listen for: you restored service before chasing the root cause, and you fixed the system rather than blaming a person.

🗣 Full answer (senior)

How I would answer this in an interview

"The one I'd talk about is [a Friday-evening outage of our order processing service at company X]. Situation: we run [around 20] .NET services on AKS in Australia East, taking [about 2,000] orders an hour at peak. At [6:40 pm] the SLO burn-rate alert for checkout fired: the failure rate had gone from [0.2%] to [18%], and p95 latency from [300 ms] to [9 seconds]. Task: I was [the primary on-call], so I acknowledged, declared a Sev 1 and, because it clearly needed more than one person, asked [our EM] to be incident commander so I could focus on the technical side.

Action: first question was what changed. No deploy since the morning, but the dashboard showed Azure SQL DTU at 100% and the connection count at its limit. In Application Insights the end-to-end transaction view showed requests spending seconds waiting on one query in the inventory service. Query Store showed that query's plan had changed at [6:35 pm] after a statistics update — a classic parameter-sensitive plan regression. To mitigate, I forced the previous plan in Query Store, and to buy time while it took effect we turned off the 'stock level on product page' feature flag, which ran the same query at high volume. Failures were back under [0.5%] within [12] minutes of the page. The IC posted status updates every 15 minutes and kept support briefed.

Result: total customer impact was [23] minutes and about [600] failed orders, most of which customers retried. In the blameless postmortem we found three contributing factors: the query was sensitive to parameter values, nothing alerted on plan changes, and the feature flag existed but wasn't in the runbook. We fixed the query and index, turned on automatic plan correction, added the flag to the runbook, and added a Query Store regression check to our weekly review. We haven't had a plan-regression outage since. What I'd do differently: declare the IC role even faster — I lost a few minutes doing comms myself at the start."


What a strong story contains

Element What to say Why it matters
Stakes Users, revenue, time of day, scale Shows you understand business impact
Detection Which alert, how quickly Shows observability maturity
Your role Responder, IC, comms, investigator Interviewers assess you, not the team
Triage Severity, roles, updates Shows calm process under pressure
Investigation Named tools and the clue that cracked it Proves hands-on depth
Mitigation The lever and why it was safe Shows priorities: customers first
Root cause Contributing factors, not a person Shows blameless thinking
Result Numbers and the lasting change Shows learning and impact
Reflection What you'd do differently Shows self-awareness

Choosing the incident

Pick Avoid
One where you made decisions One where you watched
A real customer impact with numbers 'The build broke'
A technical clue you found Stories that blame a colleague or vendor
Lasting system changes 'We hotfixed it and moved on'

Have two ready: one where you led, one where you found the technical cause. Interviewers often ask for a second.

Production example

In the example above, time to detect was about [5] minutes, time to mitigate [12] minutes, and the corrective actions took [three] sprints. The burn-rate alert, the Query Store plan history and the end-to-end transaction view were the three pieces of observability that made the fast mitigation possible.

🔍 What the interviewer is checking

Checks real production experience: calm, structured response, hands-on investigation, customer-first priorities, clear communication and lasting improvement.

Green flags

  • Clear STAR structure with numbers
  • Clear personal role and decisions
  • Mitigation before root cause, with a reason the mitigation was safe
  • Specific tools and the clue that cracked it
  • Blameless contributing factors and system-level actions; honest reflection

Red flags

  • Vague, team-only story with no personal role
  • Blames people or vendors
  • No mitigation step; debugged in production for hours while customers failed
  • No follow-up changes or no measurable result

📚 Learn in depth

1. Why interviewers ask this

A major-incident story tests many things in two minutes: technical depth, calm under pressure, communication, ownership, priorities and learning. It is also hard to fake — follow-up questions quickly reveal whether you were really there.

2. The shape of the story

S: system + scale + impact in numbers           (15-20 s)
T: your role                                    (5-10 s)
A: detect -> triage -> mitigate -> investigate -> communicate   (60-75 s)
R: numbers + contributing factors + lasting change + reflection (20-30 s)

Keep the action section in time order and say 'I' for what you did and 'we' only for team actions.

3. The technical middle: show the clue

The most convincing part is the specific evidence that led you to the cause. Have the queries ready to describe:

// Which dependency got slow?
dependencies
| where timestamp between (datetime(2026-11-20 07:30) .. datetime(2026-11-20 08:30))
| summarize p95 = percentile(duration, 95), calls = count() by target, name, bin(timestamp, 5m)
| order by p95 desc
-- Query Store: did the plan change for the slow query?
SELECT q.query_id, p.plan_id, rs.last_execution_time, rs.avg_duration / 1000.0 AS avg_ms
FROM sys.query_store_query AS q
JOIN sys.query_store_plan AS p ON p.query_id = q.query_id
JOIN sys.query_store_runtime_stats AS rs ON rs.plan_id = p.plan_id
WHERE q.query_id = 4711
ORDER BY rs.last_execution_time DESC;

-- Mitigation: force the last known good plan
EXEC sp_query_store_force_plan @query_id = 4711, @plan_id = 12;

Other common clues: a dotnet-counters view showing ThreadPool queue growth (sync-over-async), a memory dump showing a leak, a trace showing the missing span where context was lost, a deploy annotation lining up with the error spike.

4. Communication is part of the answer

Say who you told and how often: status page, support, executives, other teams. If personal data was involved, mention the Notifiable Data Breaches assessment.

5. The ending

Finish with contributing factors, the system changes and a number that proves they worked (no repeats, faster detection, lower time to mitigate), then one honest reflection.

6. Handling the follow-ups

Expect: 'What would you do differently?', 'How did you know the mitigation was safe?', 'Who did you have to convince?', 'What if rollback hadn't worked?'. Prepare a one-sentence answer for each.

Try it yourself

  1. Write your best incident in STAR form; read it aloud and time it (aim for 2 minutes).
  2. Fill in the 'What a strong story contains' table for your incident; fix any missing row.
  3. Write the KQL or SQL you actually used (or would use) to find the cause.
  4. Ask a colleague to ask three follow-up questions and practise answering in under 30 seconds each.
  5. Prepare a second story where your role was different (lead versus investigator).

💻 Code

The kind of fix that comes out of a plan-regression incident: make the query less sensitive to parameter values and add a regression check. The EF Core query before and after:

namespace Inventory;

using Microsoft.EntityFrameworkCore;

public sealed record StockLevel(int ProductId, int Available);

public sealed class StockQueries(InventoryDbContext db)
{
    // Before: one cached plan for every warehouse. When statistics changed, SQL Server
    // compiled a plan for a tiny warehouse and reused it for the largest one -> scans, 9 s p95.
    public Task<List<StockLevel>> BeforeAsync(int warehouseId, CancellationToken ct) =>
        db.Stock
          .Where(s => s.WarehouseId == warehouseId)
          .Select(s => new StockLevel(s.ProductId, s.OnHand - s.Reserved))
          .ToListAsync(ct);

    // After: a covering index (in the migration) plus OPTION (RECOMPILE) for this skewed query,
    // so each execution gets a plan for its own parameter value. Costs ~1-2 ms CPU per compile,
    // which is acceptable at this call rate; measured before shipping.
    public Task<List<StockLevel>> AfterAsync(int warehouseId, CancellationToken ct) =>
        db.Database
          .SqlQuery<StockLevel>($"""
              SELECT ProductId, OnHand - Reserved AS Available
              FROM dbo.Stock
              WHERE WarehouseId = {warehouseId}
              OPTION (RECOMPILE)
              """)
          .ToListAsync(ct);
}

public sealed class InventoryDbContext(DbContextOptions<InventoryDbContext> options) : DbContext(options)
{
    public DbSet<StockRow> Stock => Set<StockRow>();
}

public sealed class StockRow
{
    public int Id { get; set; }
    public int WarehouseId { get; set; }
    public int ProductId { get; set; }
    public int OnHand { get; set; }
    public int Reserved { get; set; }
}

The prevention side — automatic plan correction so SQL Server reverts regressed plans on its own:

ALTER DATABASE CURRENT SET AUTOMATIC_TUNING (FORCE_LAST_GOOD_PLAN = ON);

-- Weekly check: queries whose recent duration regressed most
SELECT TOP (10) q.query_id, MAX(rs.avg_duration) / 1000.0 AS worst_avg_ms
FROM sys.query_store_runtime_stats AS rs
JOIN sys.query_store_plan AS p ON p.plan_id = rs.plan_id
JOIN sys.query_store_query AS q ON q.query_id = p.query_id
WHERE rs.last_execution_time > DATEADD(day, -7, SYSUTCDATETIME())
GROUP BY q.query_id
ORDER BY worst_avg_ms DESC;

⚠ Common mistakes

  • Mistake: Telling the team's story with no clear personal role. Why it is wrong: The interviewer is hiring you and can't assess what you did. Instead: State your role and use 'I' for your actions.
  • Mistake: No numbers. Why it is wrong: 'It was a big outage' gives no sense of scale or result. Instead: Users, minutes, error rate, failed orders, time to mitigate.
  • Mistake: Jumping to the root cause and skipping mitigation. Why it is wrong: It suggests you'd debug while customers fail. Instead: Show you restored service first.
  • Mistake: Blaming a colleague, another team or the vendor. Why it is wrong: It's a red flag for culture fit and misses the system lesson. Instead: Describe contributing factors and what your team changed.
  • Mistake: Vague tooling ('we checked the logs'). Why it is wrong: It sounds second-hand. Instead: Name the tool and the clue: Query Store showed a plan change at 6:35 pm.
  • Mistake: Rambling for five minutes. Why it is wrong: The interviewer loses the thread and can't ask follow-ups. Instead: Two minutes in STAR order, then let them dig.
  • Mistake: No reflection. Why it is wrong: Misses the learning signal. Instead: One honest 'what I'd do differently'.
  • Mistake: Inventing or exaggerating details. Why it is wrong: Follow-up questions expose it fast. Instead: Tell a real incident accurately, even a smaller one.

🏛 Senior insight: trade-offs

At senior level the story should show three things beyond technical skill: judgement (the safest effective mitigation, chosen fast), leadership (setting up roles and communication, or working well inside them) and learning (system changes that measurably reduced risk). The best stories also show the observability that made it possible — or the gap that slowed you down and how you closed it.

Story type When it fits Strength Risk
You led as IC Applying for senior/lead roles Leadership, communication Can sound non-technical; add the key clue
You found the technical cause Strong hands-on roles Depth, tooling Can miss process and comms; mention them
You caused it When you have a strong learning story Honesty, ownership Must end with system changes, not self-blame
A near miss you caught Little major-incident experience Proactive detection Lower stakes; quantify what was avoided

🔗 Follow-ups the interviewer may ask

  1. When: Candidate describes the mitigation they chose. Why: Checks the judgement behind picking a mitigation and its risks.
    How to answer

    Every minute of an outage costs customers, revenue and trust — for a busy checkout that can be thousands of dollars a minute — while the root cause can be found later from preserved telemetry. So responders ask "what changed?" and reach for the fastest, safest, reversible lever: roll back the release (an App Service slot swap or a previous container image), turn off the feature flag, scale out if it's genuinely capacity, fail over to Australia Southeast if a region is impaired, or shed load with rate limiting to protect the critical path.

    Good mitigation is rehearsed (a rollback you've never practised is a new risk), done one change at a time and verified against the SLIs. The trade-off is speed versus evidence: grab the evidence first when it costs seconds (a memory dump, a log export, a note of the deploy id), because a restart or rollback can destroy what explains the cause — but never delay mitigation by minutes to do it.

  2. When: Candidate mentions declaring a severity or an incident commander. Why: Checks understanding of severity and incident roles.
    How to answer

    Severity describes customer and business impact, not the technical cause: how many users, which function (checkout versus a report), whether data or security is at risk, and whether it is getting worse. Teams write down 3–5 levels with examples — a Sev 1 is 'checkout down for everyone' or 'personal data exposed', a Sev 3 is 'one admin report is slow'. Severity then decides who is paged, which roles are filled and how often you communicate.

    For anything Sev 2 or above, one person becomes the incident commander (IC): they own decisions, roles and communication, and deliberately don't debug. An ops lead investigates, a comms lead updates stakeholders, a scribe keeps the timeline. Rule of thumb: declare high and downgrade — the cost of over-staffing for 20 minutes is small compared with an under-staffed outage.

  3. When: Candidate says the dashboard showed where the problem was. Why: Checks whether the candidate can design observability that supports fast diagnosis.
    How to answer

    An incident dashboard must answer three questions in the first screen: are users hurting, since when, and where. So the top row is SLO status and error budget, then RED for the service (rate, 5xx ratio, p50/p95/p99) with the SLO threshold drawn on the panels. The next row is RED for each dependency (database, downstream APIs, queues) so you can see where the fault starts. Below that, USE panels for the runtime, pods and database, collapsed by default.

    Every time series carries deploy and feature-flag annotations, because most incidents follow a change, and panels link to traces and logs filtered to the same service and time window. One template as code with service and region variables serves every service.

    The trade-off: fewer panels make it faster to read, but you need drill-down paths for the detail you removed.

🛠 Real-world problems: how you handle them

SQL plan regression takes down checkout on a Friday evening
Situation
[An e-commerce platform] with [around 20] .NET 10 services on AKS in Australia East and Azure SQL [Business Critical]. Peak of [about 2,000] orders an hour; the incident started at [6:40 pm on a Friday].
Signals
SLO burn-rate alert on checkout availability (failure rate [0.2%] → [18%]); p95 latency [300 ms] → [9 s]; Azure SQL DTU at 100% and connection count at the limit; support tickets rising; no deploy that day.
Investigation
Application Insights end-to-end transaction view and the `dependencies` table showed time spent in one inventory query. Query Store showed a new plan for that query compiled at [6:35 pm] after an automatic statistics update, with a scan instead of a seek. dotnet-counters on the inventory pods showed a growing ThreadPool queue waiting on SQL, confirming the app tier was not the bottleneck.
Resolution
Immediate: forced the previous plan with `sp_query_store_force_plan` and turned off the stock-level feature flag that called the query at high volume; failures under [0.5%] within [12] minutes. Long term: covering index and a query change for the skewed parameter, automatic plan correction (FORCE_LAST_GOOD_PLAN) turned on, flag added to the runbook.
Prevention
Weekly Query Store regression review; alert on Azure SQL DTU and on plan changes for top queries; load test with production-like data skew; runbook updated with the flag and plan-forcing steps.

How to tell it (STAR)

**S:** At [company], on a Friday evening at peak, our checkout failure rate jumped to [18%] and p95 hit [9 seconds] with no deploy that day. **T:** I was [primary on-call]; I declared a Sev 1 and asked [our EM] to be incident commander so I could investigate. **A:** The transaction view in Application Insights pointed at one inventory query, and Query Store showed its plan had changed five minutes before the alert. I forced the previous plan and turned off the stock-level feature flag that hammered the same query. **R:** Failures were back under [0.5%] within [12] minutes, impact was [23] minutes in total, and after the postmortem we turned on automatic plan correction and fixed the query — we haven't had a plan-regression outage since.

↩ Usually asked after

More in Incident Response

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me