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

📚 Interview question

You're a staff engineer for a platform of about 40 .NET services owned by eight teams. Each team fixes its own incidents, yet similar outages keep happening across the platform. How would you reduce recurrence at the platform level? Talk about finding patterns across incidents, resilience reviews, shared guard rails, chaos experiments and game days, and how you'd measure whether it's working.

Covers reducing incident recurrence across many teams: a shared incident taxonomy and thematic analysis of postmortems, choosing systemic fixes (paved roads, shared resilience defaults, platform guard rails), resilience and production readiness reviews, chaos experiments and game days (Azure Chaos Studio), governance without bottlenecks, and platform-level reliability metrics.

Staff / Architect Architecture Expert chaos-engineering incident-analysis platform-engineering production reliability resilience

🎯 Key points

  • Shared incident taxonomy (trigger, failure mode, contributing factors, detection) so incidents across teams can be compared
  • Quarterly thematic review: cluster postmortems, find the top 3–5 recurring failure modes by impact
  • Fix classes of problems with paved roads: ServiceDefaults with resilience handlers, health checks, ValidateOnStart, standard SLO dashboards and burn-rate alerts
  • Guard rails in the pipeline and platform: policy as code, migration checks, canary with automatic rollback
  • Resilience reviews for tier-1 services: dependency maps and failure mode analysis, tied to production readiness
  • Chaos experiments and game days with a hypothesis, limited blast radius and abort conditions (Azure Chaos Studio, Polly chaos strategies)
  • Co-create standards with teams through a reliability guild and ADRs; feed each quarter's incidents back into them; track adoption on a scorecard
  • Measure: repeat-incident rate, impact per failure mode, MTTD/MTTR, error budget burn, action completion

⏱ 30-second answer

Recurrence across a platform is a pattern problem, not a per-incident problem. I'd first give every team a shared incident taxonomy (trigger, failure mode, contributing factors, detection) so we can run a quarterly thematic review across all postmortems and find the top recurring failure modes by impact: missing timeouts, unvalidated config, unsafe migrations, and so on.

Then I fix classes of problems once, with the teams rather than at them: a paved road service template with resilience defaults, health checks, standard SLO alerts and startup validation; guard rails in the pipeline (policy checks, canary with automatic rollback); and resilience reviews for critical services. Chaos experiments and game days (for example with Azure Chaos Studio) test that the fixes work, with a hypothesis, limited blast radius and abort conditions. The next quarter's incidents feed back into the standards, and I measure the repeat-incident rate and impact per failure mode. The trade-off: platform standards take adoption effort and slow teams down if imposed rather than made easy.

🗣 Full answer (senior)

How I would answer this in an interview

"When eight teams each fix their own incidents, every postmortem can be excellent and the platform still doesn't improve, because nobody's looking across them. Team A adds a timeout to their HTTP client; teams B to H still have the 100-second default. So the first thing I'd do is make incidents comparable: a small shared taxonomy in the postmortem template — trigger, failure mode, contributing factors, how it was detected — and then, every quarter, cluster the postmortems by failure mode and rank the clusters by customer impact. That tells you where platform-level work pays off.

For example, at [company] we did this across [about 60] postmortems from [a year]. [Over a third] traced back to three failure modes: outbound calls with no timeouts or circuit breakers, configuration errors only discovered at runtime, and database migrations that locked tables. Instead of asking every team to fix these separately, we [built / extended] the shared service template so new and migrated services got AddStandardResilienceHandler, options validation with ValidateOnStart, and health checks by default; we added a pipeline check that flagged migrations creating locking operations on large tables; and we ran a game day each quarter where we injected latency into a dependency in staging with [Azure Chaos Studio] to confirm the defaults worked. [Over the next year incidents from those three failure modes dropped by about 70%], and the repeat-incident rate went from [around 30% to under 10%].

The mistake I see is trying to fix recurrence with a review board that every change has to pass. That just creates a queue. I'd rather make the safe path the easy path, and use reviews and chaos experiments to find the gaps it doesn't cover."


From incidents to platform work

Step Output Owner
Shared taxonomy in postmortem template Comparable incidents across teams Reliability guild
Quarterly thematic review Top 3–5 failure modes ranked by impact Staff engineer + team leads
Choose systemic fixes Paved road changes, guard rails, standards Platform team + guild
Roll out Template updates, pipeline checks, migration guides Platform team; teams adopt
Verify Game days, chaos experiments, scorecard Teams, with platform support
Measure Repeat rate, incidents per failure mode Staff engineer reports quarterly

Common recurring failure modes and the class fix

Failure mode Per-team fix Platform fix
Outbound calls hang Add a timeout to one client AddStandardResilienceHandler in the template; analyser or test flagging raw HttpClient
Config errors at runtime Fix the key ValidateDataAnnotations().ValidateOnStart() by default; staging slot smoke test gate
Locking migrations Rerun at night Pipeline check on migration SQL; expand/contract guide
Bad deploy reaches everyone Roll back Canary with automatic rollback on SLI
Silent failures Add an alert Standard SLO dashboards and burn-rate alerts per service
Expired certificates/secrets Renew Managed identities; Key Vault expiry alerts platform-wide

Resilience review for a critical service

Question Evidence
What are its dependencies and what happens when each fails? Dependency map, failure mode table
Timeouts, retries, circuit breakers configured? Code and config
Can it degrade instead of fail? Fallbacks, feature flags
How do we detect and roll back? SLO alerts, deployment strategy
When was failure last tested? Game day or chaos experiment results

Production example

Across [40] services, the template and pipeline guard rails reached [32] services within [two quarters]; quarterly game days found [five] gaps before customers did (including a fallback that had never worked), and Sev 1/2 incidents fell from [about 14 to 6] a quarter.

🔍 What the interviewer is checking

Checks whether the candidate can think at platform scale: turn many teams' incidents into a few systemic fixes, use chaos engineering safely and measure the effect, and above all lead through influence (shared data, easy defaults, co-created standards) rather than authority and compliance gates.

Green flags

  • Proposes a shared taxonomy and thematic analysis across postmortems
  • Fixes classes of problems through templates, defaults and guard rails
  • Involves teams in setting standards and feeds incidents back into them
  • Describes chaos experiments with a hypothesis, blast radius and abort conditions
  • Measures repeat-incident rate and impact by failure mode

Red flags

  • "Each team should just do better postmortems"
  • A central approval board or mandate as the main mechanism
  • Chaos engineering as randomly breaking production
  • No way to tell whether it worked

📚 Learn in depth

1. Why per-team learning doesn't add up

Each postmortem asks "what went wrong in our service?". Platform-level recurrence needs a different question: "what keeps going wrong across services?". Without a shared language, incidents can't be compared, and the same weakness is rediscovered by each team.

 team A incident -> team A fix
 team B incident -> team B fix        (same failure mode, 8 separate fixes,
 team C incident -> team C fix         services 9-40 still exposed)
          \         |         /
           thematic review
                 |
           one platform fix -> every service

2. A shared incident taxonomy

Keep it small enough that teams fill it in honestly:

  • Trigger: deploy, config change, dependency failure, traffic spike, data, infrastructure, expiry.
  • Failure mode: hang/timeout, crash, data corruption, resource exhaustion, wrong result, security.
  • Contributing factors: tags like no-timeout, no-config-validation, migration-lock, missing-alert.
  • Detection: alert, customer report, internal user, by chance; and time to detect.

Store it as structured fields (an incident tool, a Jira or Azure Boards work item type, or a database) so it can be queried.

3. Thematic analysis

Every quarter, export incidents and group by contributing factor and failure mode, weighted by impact (customer minutes, revenue, error budget). Look for clusters, not single incidents. Bring the result to team leads with a proposal: "these three themes caused 38% of customer impact; here's the platform fix for each".

4. Paved roads and guard rails

The most effective systemic fixes eliminate the hazard or make the safe choice the default:

  • Service template (a dotnet new template or a shared Directory.Build.props and ServiceDefaults project, as .NET Aspire does) with OpenTelemetry, health checks, resilience handlers and options validation wired in.
  • Pipeline guard rails: policy checks (Azure Policy, OPA/Conftest on Kubernetes manifests), migration checks, required canary stages.
  • Platform defaults: managed identities instead of secrets, Key Vault expiry alerts, pod disruption budgets, resource limits.

Guard rails beat review gates: they scale and don't create queues.

5. Chaos engineering and game days

Chaos engineering is running controlled experiments to test a hypothesis about how the system behaves under failure:

1. Steady state: define normal (e.g. checkout success > 99.5%, p95 < 400 ms)
2. Hypothesis: "if the inventory API adds 3 s latency, checkout still succeeds via fallback"
3. Inject: latency, faults, pod kills, zone outage (Azure Chaos Studio, Chaos Mesh, Simmy for Polly)
4. Limit blast radius: staging first, then a small % in production, with abort conditions
5. Observe and learn: fix gaps, re-run

Azure Chaos Studio provides service-direct faults (for example Cosmos DB failover, AKS faults via Chaos Mesh, NSG rules to cut network access) and agent-based faults on VMs, with experiments defined as resources. Polly v8's chaos strategies (formerly the Simmy project) let you inject faults in-process through the same resilience pipeline. A game day is a scheduled, people-focused exercise: the team practises responding to an injected failure, testing runbooks, alerts and communication as well as the code.

6. Governance without bottlenecks

A reliability guild of one engineer per team sets standards, written as short ADRs, and maintains a service scorecard (SLOs defined, resilience defaults on, runbooks linked, last game day). Scorecards make adoption visible without a gate. Resilience reviews are reserved for tier-1 services and major changes, aligned with the production readiness review.

7. Measuring whether it works

  • Repeat-incident rate: share of incidents whose contributing factor appeared in an earlier incident.
  • Incidents and impact per failure mode over time.
  • MTTD / MTTR across services.
  • Error budget burn for tier-1 services.
  • Guard rail adoption from the scorecard, and postmortem action completion.

Try it yourself

  1. Tag your last 20 postmortems with trigger, failure mode and contributing factors; find the top three clusters.
  2. Write a ServiceDefaults project that adds OpenTelemetry, health checks, AddStandardResilienceHandler and options validation, and apply it to one service.
  3. Use Polly's chaos strategies to inject latency into a dependency in a local test and check the fallback.
  4. Design a game day: hypothesis, steady state, fault, blast radius, abort conditions, roles.
  5. Build a simple scorecard (spreadsheet or dashboard) for ten services.

💻 Code

The shared defaults every service in the paved road gets, in the style of .NET Aspire's ServiceDefaults project:

namespace Platform.ServiceDefaults;

using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Options;
using OpenTelemetry.Metrics;
using OpenTelemetry.Trace;

public static class ServiceDefaultsExtensions
{
    public static IHostApplicationBuilder AddPlatformDefaults(this IHostApplicationBuilder builder)
    {
        // Every outbound HttpClient gets timeouts, retries with jitter, and a circuit breaker.
        // This one line removed the most common recurring failure mode in our incident review.
        builder.Services.ConfigureHttpClientDefaults(http => http.AddStandardResilienceHandler());

        // Liveness vs readiness so Kubernetes doesn't restart pods for a slow dependency.
        builder.Services.AddHealthChecks();

        // OpenTelemetry traces and metrics exported via OTLP (Azure Monitor or Grafana),
        // so every service gets the same SLO dashboards and burn-rate alerts.
        builder.Services.AddOpenTelemetry()
            .WithTracing(t => t.AddAspNetCoreInstrumentation().AddHttpClientInstrumentation().AddOtlpExporter())
            .WithMetrics(m => m.AddAspNetCoreInstrumentation().AddRuntimeInstrumentation().AddOtlpExporter());

        return builder;
    }

    // Teams call this for each options class: bad config fails the deployment, not the 2 am request.
    public static OptionsBuilder<T> AddValidatedOptions<T>(this IHostApplicationBuilder builder, string section)
        where T : class =>
        builder.Services.AddOptions<T>()
            .Bind(builder.Configuration.GetSection(section))
            .ValidateDataAnnotations()
            .ValidateOnStart();
}

A test injecting latency with Polly's chaos strategy (Polly 8.3+) to check that a dependency's timeout and fallback work:

using Polly;
using Polly.Simmy;
using Polly.Simmy.Latency;

var pipeline = new ResiliencePipelineBuilder<string>()
    .AddFallback(new() { FallbackAction = _ => Outcome.FromResultAsValueTask("cached-stock-level") })
    .AddTimeout(TimeSpan.FromSeconds(1))
    .AddChaosLatency(new ChaosLatencyStrategyOptions { InjectionRate = 1.0, Latency = TimeSpan.FromSeconds(3) })
    .Build();

var result = await pipeline.ExecuteAsync(async ct => { await Task.Delay(10, ct); return "live-stock-level"; });
// Hypothesis: injected 3 s latency trips the 1 s timeout and we serve the fallback.
Console.WriteLine(result); // cached-stock-level

The package references:

dotnet add package Microsoft.Extensions.Http.Resilience
dotnet add package OpenTelemetry.Extensions.Hosting
dotnet add package OpenTelemetry.Instrumentation.AspNetCore
dotnet add package OpenTelemetry.Instrumentation.Http
dotnet add package OpenTelemetry.Instrumentation.Runtime
dotnet add package OpenTelemetry.Exporter.OpenTelemetryProtocol
dotnet add package Polly.Core

⚠ Common mistakes

  • Mistake: Treating every incident as a one-off owned by one team. Why it is wrong: The same failure mode recurs in every other service. Instead: A shared taxonomy and a quarterly thematic review across all postmortems.
  • Mistake: Making a central review board the main mechanism, approving every change. Why it is wrong: It becomes a bottleneck, teams route around it, and it doesn't scale to 40 services. Instead: Automate what can be checked (guard rails run in seconds in the pipeline and give teams the same feedback every time), and keep human review for what can't be automated: tier-1 services, new architectures and major changes. The two complement each other; guard rails just take the repetitive checks off reviewers.
  • Mistake: Writing standards nobody adopts, or writing them without the teams. Why it is wrong: A wiki page doesn't change code, and standards imposed from outside often don't fit real services. Instead: Draft standards with the reliability guild, put them in the template and pipeline, allow documented exceptions, and track adoption on a scorecard.
  • Mistake: Starting chaos experiments in production with no hypothesis or abort conditions. Why it is wrong: It causes real incidents and destroys trust in the practice. Instead: Staging first, a clear hypothesis, small blast radius, abort conditions, everyone informed.
  • Mistake: Counting incidents only. Why it is wrong: Better detection can raise counts while impact falls. Instead: Measure impact per failure mode, repeat rate, MTTR and error budget burn.
  • Mistake: Fixing symptoms in each team rather than the class of problem. Why it is wrong: Eight teams add eight different timeouts and the ninth forgets. Instead: Make the safe default part of the platform.
  • Mistake: Game days that only test the code. Why it is wrong: Alerts, runbooks, access and communication are often what fails. Instead: Include the people side: who is paged, which runbook, how comms go.

🏛 Senior insight: trade-offs

At staff level the job is leverage: one change that protects forty services is worth more than forty excellent postmortems. That means investing in comparable data (taxonomy), picking the few failure modes that cause most impact, and fixing them in the platform so teams get them for free. Influence comes from making the safe path easy and adoption visible, not from approval rights.

Know the limits: standards that don't fit a service's needs get bypassed, so leave escape hatches with a documented reason, and don't chase every theme; the long tail is better handled by teams themselves.

Lever When it fits Cost When not
Paved road template / ServiceDefaults Many similar services Building and maintaining the template Very diverse stacks with few shared patterns
Pipeline guard rails Failure modes detectable before deploy False positives, pipeline time Problems only visible at runtime
Resilience reviews Tier-1 services, major changes Senior time per review Every small change (bottleneck)
Chaos experiments Mature observability, known steady state Setup, risk if done poorly No SLOs or alerts yet: you won't see the effect
Game days Testing people, runbooks and comms Half a day per team per quarter Teams already overloaded with incidents: fix basics first

🔗 Follow-ups the interviewer may ask

  1. When: Candidate mentions chaos experiments or game days. Why: Checks practical knowledge of testing distributed systems and running chaos experiments safely.
    How to answer

    I test a distributed system in layers. Each service gets component tests with its own real dependencies in containers (Testcontainers: SQL Server, Service Bus emulator, Redis) and fakes for other services; contract tests cover the seams between services. A handful of critical journeys run end to end with .NET Aspire's testing host (DistributedApplicationTestingBuilder). Because the system is eventually consistent, assertions poll with a deadline instead of sleeping, and I test duplicate and out-of-order messages. I inject faults deliberately: WireMock.Net delays, Polly v8 chaos strategies. But real scale, network and configuration only exist in production, so I also test in production: synthetic checks, canaries, feature flags, SLO alerts, and chaos experiments with a hypothesis, a small blast radius and an abort switch. The trade-off: no single environment proves everything; confidence comes from combining layers.

  2. When: Candidate mentions resilience reviews or tier-1 services. Why: Checks how resilience reviews connect to production readiness before go-live.
    How to answer

    A service is production ready when the team can detect, diagnose and recover from failure without the people who wrote it in the room. My checklist covers: observability (OpenTelemetry metrics, traces and logs, a dashboard, agreed SLOs); alerting and on-call (burn-rate alerts with owners and runbooks, a trained rotation); resilience (timeouts, retries and circuit breakers on every dependency, degradation, correct liveness and readiness probes, graceful shutdown); capacity (load tested to twice the expected peak, autoscaling and quotas); deployment (progressive rollout and a tested rollback, backward-compatible migrations); security and data (managed identity, Key Vault, data classification under the Privacy Act, backups with a tested restore).

    I run it as a review with evidence, not ticks, scaled to the service's criticality. The trade-off is launch speed versus avoidable 3 am incidents.

  3. When: Candidate mentions postmortem actions or action completion. Why: Checks the candidate can make postmortem actions stick at team level too.
    How to answer

    Actions stick when they are few, specific, owned and tracked like features, with someone checking on them. I sort them into four kinds: the immediate fix (already done to stop the bleeding), the long-term fix for the root cause, preventive actions that remove the class of failure, and detection and monitoring improvements that shrink the next incident whatever causes it. Each gets one owner, a due date and a ticket in the team's normal backlog, and a regular review (fortnightly, with the engineering manager) where overdue items are re-committed, re-scoped or explicitly accepted as risk. I prefer mechanisms over intentions: ValidateOnStart(), a pipeline gate, a Roslyn analyser or an alert, not "be more careful". Prioritisation uses the error budget policy. Finally I verify each action with a test, a game day or the metric moving, and watch trends like time to detect, MTTR and repeat incidents. The trade-off: fewer actions means some risks are accepted, so I record those explicitly.

🛠 Real-world problems: how you handle them

The same three failure modes across 40 services
Situation
[A fintech / retail platform] with [about 40] .NET services on [AKS and App Service] in Australia East, owned by [eight] teams. [14] Sev 1/2 incidents a quarter despite good per-team postmortems.
Signals
Postmortems repeatedly mentioning missing timeouts, runtime config errors and locking migrations; repeat-incident rate around [30%]; error budgets exhausted for [three] tier-1 services; on-call fatigue in surveys.
Investigation
I tagged [about 60] postmortems from the past year with trigger, failure mode and contributing factors, then grouped them weighted by customer minutes. Three themes accounted for [38%] of impact. Code search across repositories confirmed [most] services used raw `HttpClient` with default timeouts and [few] validated options at startup.
Resolution
Immediate: a platform advisory with the three themes and a short fix guide for each. Longer term: a `ServiceDefaults` package with `AddStandardResilienceHandler`, health checks, OpenTelemetry and `ValidateOnStart` helpers; a pipeline check on EF Core migration SQL for locking operations; canary releases with automatic rollback on the SLI; quarterly game days using Azure Chaos Studio and Polly chaos strategies in staging.
Prevention
Shared taxonomy fields in the postmortem template; a quarterly thematic review; a service scorecard tracked by the reliability guild; resilience reviews for tier-1 services tied to production readiness.

How to tell it (STAR)

**S:** At [company], [eight] teams ran [about 40] services and each wrote good postmortems, but we still had [around 14] serious incidents a quarter, many of them repeats. **T:** As [staff engineer], I wanted to cut recurrence across the platform, not team by team. **A:** I tagged a year of postmortems with a shared taxonomy, found three failure modes behind [38%] of the impact, and fixed them in the platform: a ServiceDefaults package with resilience and config validation built in, a migration check in the pipeline, canary rollbacks, and quarterly game days to prove it worked. **R:** Within [a year], incidents from those failure modes dropped about [70%], serious incidents went from [14 to 6] a quarter, and the repeat rate fell from [30% to under 10%].

↩ Usually asked after

More in Senior Responsibilities

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me