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

๐Ÿ“š Interview question

Your incident is mitigated and the head of product asks, "How bad was it?" How do you measure the blast radius: which users, customers or tenants, transactions and money, and data were affected? How do you work it out quickly and reliably from telemetry and the database, and what changes when personal data might be involved?

Measuring incident blast radius: affected users, customers, requests, revenue and data, using SLI telemetry, KQL and database queries, quick estimates versus exact figures, and Notifiable Data Breaches assessment when personal data is involved.

Mid-Level Theory Intermediate blast-radius incident-response kql privacy-act production rca

๐ŸŽฏ Key points

  • Dimensions: time window, users/customers, requests/transactions, money, data integrity, data exposure
  • Quick estimate first (minutes, with a range), exact numbers later (hours to days); depth scales with severity and incident type
  • Impact window from SLI telemetry, not from when the incident was declared
  • Distinct affected users via KQL dcount on user_AuthenticatedId or a customer id, sum(ItemCount) for sampling
  • Database and provider reconciliation for wrong or missing data, not just failed requests
  • Personal data: Notifiable Data Breaches assessment under the Privacy Act 1988, 30-day limit
  • Plain-language statement for leadership with assumptions and confidence; never under- or over-state exposure

โฑ 30-second answer

Blast radius is the impact across several dimensions: the time window, who was affected (users, customers, tenants, regions), what failed (requests, orders, payments), money, and data, both corrupted and exposed. I give a quick estimate with a range within the hour from telemetry, then exact numbers later. The impact window comes from SLI telemetry, and distinct affected users from request telemetry keyed on an authenticated user or customer id, using KQL in Application Insights. Failed requests aren't the whole story, so I reconcile the database for duplicates, missing or wrong records. If personal data may have been exposed, the clock starts on a Notifiable Data Breaches assessment under the Privacy Act 1988 (30 days at most). The trade-off: speed versus precision, so I always state assumptions and confidence.

๐Ÿ—ฃ Full answer (senior)

How I would answer this in an interview

"I answer 'how bad was it?' along a few dimensions, because a single number misleads. How long: the impact window from the SLI, not from when we declared the incident. Who: how many distinct users or customers, and whether it was everyone or one region, plan or tenant. What: requests failed, orders not placed, payments double-charged. Money: lost or refundable revenue and SLA credits. And data: was anything corrupted, lost, or exposed to someone who shouldn't see it? The data questions are the ones that can turn a bad afternoon into a regulatory event.

I work in two passes. Within the first hour I give a range, clearly labelled as an estimate: 'about 3,000 to 4,000 customers saw failed checkouts over 42 minutes, no evidence of data exposure so far'. I get that from Application Insights: failed requests grouped by the authenticated user id or a customer id I put on the telemetry, across the impact window. Then over the next day I get exact figures by reconciling against the source of truth: comparing payment provider records to our orders table, finding duplicate or orphaned rows, and checking audit logs for who accessed what. Sampling, retries and anonymous traffic all distort telemetry, so the final numbers come from the database and the provider, not the dashboard.

The mistake I see is reporting failed requests as the blast radius. Retries inflate it, and silent damage like duplicate charges or records written wrongly doesn't show up as errors at all. If personal information might have been seen by the wrong person, I bring in privacy straight away, because under the Notifiable Data Breaches scheme we have to assess a suspected eligible breach promptly, within 30 days. A good blast radius answer always comes with its assumptions."


The dimensions

Dimension Question Source
Time When did impact start and end? SLI / AppRequests failure rate
Users / customers How many distinct, which segments? Request telemetry with user_AuthenticatedId or a custom customer.id
Transactions How many orders, payments, messages affected? Orders table, queue dead-letter counts
Money Lost revenue, refunds, SLA credits Average order value ร— failed orders, provider reports, contracts
Data integrity Duplicates, lost writes, wrong values? Reconciliation queries, outbox, provider records
Data exposure Who saw what they shouldn't? Audit logs, access logs, response telemetry

Estimate versus exact

Quick estimate Exact figure
When Within an hour Within days
Source Telemetry, sampled Database, provider, audit logs
Form Range with confidence Number with method
Audience Incident updates, leadership RCA, customers, regulator

Personal data

Situation What happens
No personal data involved Normal RCA
Personal data possibly exposed Notify privacy officer; assess under the NDB scheme within 30 days
Eligible data breach (likely serious harm) Notify the OAIC and affected individuals as soon as practicable

Production example

A caching bug served one customer's order history to another for 26 minutes. Failed-request metrics showed nothing, because every response was a 200. Joining response telemetry (the requested customer id versus the authenticated user) found 214 cross-customer responses affecting 187 people, which went to the privacy officer for an NDB assessment within the day rather than surfacing weeks later from a complaint.

๐Ÿ” What the interviewer is checking

Checks whether the candidate can quantify impact across dimensions, distinguish estimates from facts, and recognise data exposure and its obligations.

Green flags

  • Lists several dimensions, including silent data damage and exposure
  • Gives an estimate fast with a range, then exact numbers from the source of truth
  • Knows to count distinct users and mentions sampling
  • Mentions the NDB scheme or privacy officer when personal data is involved

Red flags

  • "Number of 500 errors" as the whole answer
  • No way to identify affected customers
  • Treats a data leak as a normal bug with no notification process

๐Ÿ“š Learn in depth

1. Why one number is never enough

Impact has independent axes. A 2-hour outage of an admin screen and a 2-minute leak of customer data have very different severities. Breaking blast radius into dimensions forces the question everyone forgets: did anything go wrong silently?

              loud failures              silent failures
         (errors, timeouts, 5xx)   (wrong data, duplicates, exposure)
               |                            |
          telemetry finds them      only reconciliation and audit find them

2. Getting the window and users from telemetry

Only attribute requests to users if you put the identity on telemetry. In ASP.NET Core with Application Insights, user_AuthenticatedId is set when you call TelemetryClient.Context.User.AuthenticatedUserId or use a telemetry initialiser; with OpenTelemetry, add an attribute such as enduser.id or a custom customer.id (hashed if you prefer not to store raw ids).

let start = datetime(2026-05-12 03:10);
let stop  = datetime(2026-05-12 03:52);
AppRequests
| where TimeGenerated between (start .. stop)
| where Name startswith "POST /checkout"
| summarize failed = countif(Success == false), total = count(),
            affectedUsers = dcountif(UserAuthenticatedId, Success == false)
            by bin(TimeGenerated, 5m)

dcount is an approximation (HyperLogLog), fine for an estimate; exact counts come later from the database. Account for sampling: Application Insights sampling keeps ItemCount, so use sum(ItemCount) rather than count() for request totals.

3. Reconciliation for silent damage

payment provider records  <-- compare -->  Orders table
     paid, no order    = lost order (refund or create)
     order, not paid   = unpaid order (cancel or chase)
     two charges        = duplicate (refund)

This is a SQL job against the source of truth plus the provider's export, and it is the number that goes to finance and customers.

4. Exposure and the NDB scheme

Under the Privacy Act 1988, an eligible data breach is unauthorised access to, disclosure or loss of personal information likely to result in serious harm, which remedial action hasn't prevented. If an entity suspects one, it must take reasonable steps to assess it within 30 days, and notify the OAIC and affected people as soon as practicable once it believes one has occurred. Engineers supply the facts: what fields, how many people, which recipients, and whether remedial action (for example deleting a cached response) removed the risk.

5. Communicating uncertainty

Every number carries its method: "187 people (exact, from audit join), 214 responses" or "3,000โ€“4,000 customers (estimate, sampled telemetry, excludes anonymous sessions)". Leadership can act on a range; they can't act on silence while you wait for precision.

Try it yourself

  1. Check whether your service sets an authenticated user or customer id on request telemetry; if not, add one in a test app.
  2. Run the KQL above for a past error spike and compare count() with sum(ItemCount) to see the effect of sampling.
  3. Write a reconciliation query between a payments table and an orders table in a local database with seeded mismatches.
  4. List which endpoints in your service return personal information and whether you could tell who received it during a given hour.
  5. Draft a one-paragraph blast radius statement for a past incident with ranges and stated assumptions.

๐Ÿ’ป Code

Two pieces: putting a customer id on telemetry so blast radius can be measured later, and a reconciliation query for silent damage.

// Program.cs: tag every request activity with the customer id (hashed) so incidents can
// be scoped to distinct customers with KQL or any OpenTelemetry backend.
using System.Diagnostics;
using System.Security.Claims;
using System.Security.Cryptography;
using System.Text;

var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();

app.Use(async (context, next) =>
{
    var customerId = context.User.FindFirstValue("customer_id");
    if (customerId is not null && Activity.Current is { } activity)
    {
        // Hash rather than raw id: enough to count and join, less sensitive in telemetry.
        var hash = Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(customerId)))[..16];
        activity.SetTag("customer.id_hash", hash);
    }
    await next(context);
});

app.MapPost("/checkout", () => Results.Ok());
app.Run();
-- Reconcile provider payments with orders for the impact window (exact blast radius)
DECLARE @start datetime2 = '2026-05-12T03:10:00', @stop datetime2 = '2026-05-12T03:52:00';

SELECT p.ProviderPaymentId, p.CustomerId, p.Amount,
       CASE WHEN o.OrderId IS NULL THEN 'Paid, no order'
            WHEN dup.Charges > 1     THEN 'Duplicate charge'
       END AS Problem
FROM dbo.ProviderPayments AS p
LEFT JOIN dbo.Orders AS o ON o.ProviderPaymentId = p.ProviderPaymentId
CROSS APPLY (SELECT COUNT(*) AS Charges
             FROM dbo.ProviderPayments AS p2
             WHERE p2.IdempotencyKey = p.IdempotencyKey) AS dup
WHERE p.CreatedAt BETWEEN @start AND @stop
  AND (o.OrderId IS NULL OR dup.Charges > 1);

โš  Common mistakes

  • Mistake: Reporting failed requests as the number of affected customers. Why it is wrong: Retries inflate it and one customer may fail many times. Instead: Count distinct users or customers from telemetry that carries an identity.
  • Mistake: Ignoring sampling. Why it is wrong: count() on sampled Application Insights data undercounts. Instead: Use sum(ItemCount) and confirm exact numbers from the database.
  • Mistake: Only looking for errors. Why it is wrong: Duplicates, wrong data and data exposure return 200 OK. Instead: Reconcile against the source of truth and check audit logs.
  • Mistake: Waiting for exact numbers before saying anything. Why it is wrong: Leaders and support need to act now. Instead: Give a range with confidence and assumptions, then refine.
  • Mistake: Taking the window from when the incident was declared. Why it is wrong: It hides the detection gap and undercounts impact. Instead: Use the SLI to find the real start and end.
  • Mistake: Treating possible personal data exposure as a normal bug. Why it is wrong: The NDB scheme requires a prompt assessment, within 30 days. Instead: Involve the privacy officer as soon as exposure is possible.
  • Mistake: Telling leadership "no data was exposed" before checking. Why it is wrong: A confident early statement that later proves false damages trust with executives, customers and the OAIC, and can shape a wrong notification decision. Instead: Say what is known, what is still being checked and when the next update comes.
  • Mistake: Giving non-technical stakeholders raw metrics. Why it is wrong: "2.1% 5xx for 42 minutes" doesn't tell a product head or privacy officer who was hurt or what to do. Instead: Translate into customers affected, money, data fields and recommended actions.
  • Mistake: Not putting customer identity on telemetry at all. Why it is wrong: You can't scope impact when it matters. Instead: Add a (hashed) customer or tenant id to request telemetry ahead of time.

๐Ÿ› Senior insight: trade-offs

A senior prepares for blast radius before the incident: identities on telemetry, audit logs for sensitive reads, idempotency keys that make duplicates findable, and a reconciliation query ready to run. Without those, the honest answer to "how bad was it?" is "we don't know", which is worse than any number.

The depth of the work scales with the incident: a short availability blip on a read-only endpoint needs a window and a distinct-user count; anything that wrote data needs reconciliation; anything that could have shown personal information needs audit analysis and the privacy officer. I make the data exposure question explicit in every Sev 1 and Sev 2, even when it seems irrelevant, because caching, authorisation and serialisation bugs leak data while returning 200s, and the 30-day NDB assessment clock doesn't wait for the RCA meeting.

Approach When it fits Cost When not to
Telemetry estimate (KQL, dcount) First hour, incident updates Minutes Customer refunds or regulator reports
Database and provider reconciliation Money or data integrity affected Hours, needs idempotency keys Pure availability incidents with no writes
Audit log analysis Possible exposure of personal data Hours, needs audit logging in place No sensitive data in scope

๐Ÿ”— Follow-ups the interviewer may ask

  1. When: Candidate links blast radius to severity Why: Checks they use impact to set severity and response consistently.
    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.

  2. When: Candidate mentions SLIs and the impact window Why: Checks they understand SLIs, SLOs and error budgets behind the measurement.
    How to answer

    An SLI is a measurement of user experience expressed as a ratio of good events to valid events, for example requests to /api/orders answered in under 300 ms with a non-5xx status รท all requests. An SLO is the internal target for that SLI over a rolling window, such as 99% over 28 days. An SLA is the external contract with financial penalties, deliberately looser than the SLO (say 99.5% vs 99.9%) so you breach the SLO first.

    To turn a latency percentile into an SLO, rephrase it as a threshold ratio: "99% of requests complete in under 300 ms", computed from the ASP.NET Core http.server.request.duration histogram buckets, not by averaging p99s. The error budget is 1 โˆ’ SLO: at 99.9% over 30 days that is about 43 minutes or 0.1% of requests. When the budget is spent, risky releases pause and reliability work takes priority. The trade-off: each extra nine costs far more engineering and infrastructure.

  3. When: Candidate mentions personal data exposure Why: Checks they know Australian privacy obligations and the engineer's role in them.
    How to answer

    Contain first: disable the feature or purge the cache. Tell the privacy officer straight away and follow the organisation's data breach response plan. Under the Privacy Act 1988 NDB scheme, a suspected eligible breach must be assessed within 30 days; if it is likely to cause serious harm and remedial action hasn't removed the risk, notify the OAIC and affected individuals as soon as practicable. Engineers provide the facts: which fields, how many people, which recipients, the time window, and evidence from audit and response logs. Document every step and decision, and preserve evidence: don't delete logs. Failing to assess or notify is an interference with privacy, and serious interferences can attract large civil penalties since the 2022 amendments.

๐Ÿ›  Real-world problems: how you handle them

Caching bug shows order history to the wrong customers
Situation
A customer portal for [company] cached order history responses keyed only by order list page, not by customer, after a [performance change]. For 26 minutes some customers saw another customer's recent orders, including names and delivery addresses. Stakes: personal information under the Privacy Act.
Signals
No error alerts (all 200 OK); two customer complaints via support saying they saw someone else's orders; a sudden jump in cache hit ratio after the release.
Investigation
Rolled back and purged the cache; found the cache key in the release diff; joined response telemetry (requested customer id hash in the response vs authenticated customer id hash) in Log Analytics to find cross-customer responses; checked the audit log for the exact records returned; computed distinct affected customers and recipients.
Resolution
Immediate: rollback and cache purge stopped the exposure. Then exact blast radius: 214 cross-customer responses, 187 customers' data shown to 160 others, fields limited to name, address and order items. Facts handed to the privacy officer for an NDB assessment the same day.
Prevention
Cache keys must include the authorisation scope (enforced by a helper and a code review checklist item); an integration test that two users never get each other's cached response; audit logging of sensitive reads kept for [N] days; blast radius checklist added to the incident template.

How to tell it (STAR)

**S:** At [company] a release changed how we cached order history, and two customers told support they could see someone else's orders. There were no errors, everything was a 200. **T:** After mitigating, I had to tell leadership and our privacy officer exactly how bad it was. **A:** I rolled back and purged the cache, then joined our response telemetry and audit logs to find every response where the customer in the data didn't match the signed-in customer, and counted distinct people affected and the fields shown. **R:** Within [six] hours we had exact figures, 187 customers across 214 responses, so the privacy team could do the NDB assessment immediately, and we added a cache-key rule and a test so it can't recur.

โ†ฉ Usually asked after

More in RCA

Last updated 23 Nov 2026.

๐ŸŒ Sangam's Webring

โช Previous ๐Ÿ  Main Next โฉ
๐Ÿ’ฌ Chat with me