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

📚 Interview question

What does service ownership mean in a microservices organisation? Explain "you build it, you run it", on-call, per-service SLOs and error budgets, and the role of a platform team, and tell me how you would set this up for a company moving from a central ops team.

Service ownership in microservices: you build it, you run it, sustainable on-call, SLIs, SLOs and error budgets per service, service catalogues, and platform teams providing paved roads, plus a transition plan from central operations.

Senior Architecture Advanced distributed-systems microservices on-call platform-engineering service-ownership slo

🎯 Key points

  • Every service has exactly one owning team, recorded in a service catalogue (e.g. Backstage)
  • You build it, you run it: the owning team deploys, monitors and is paged for its service
  • SLI = good events / valid events, e.g. non-5xx responses under 300 ms / all requests (excluding health checks and 4xx caused by clients)
  • SLO sets the target over a window, e.g. 99.9% over 28 days; error budget = 1 − SLO, and spending it fast triggers reliability work over features
  • Sustainable on-call: rotation of 6–8 people, alerts on multi-window SLO burn rate with severities (page vs ticket), runbooks, blameless reviews
  • Platform team provides paved roads: templates, pipelines, observability, Kubernetes or Container Apps, so product teams don't rebuild infrastructure
  • Ownership is a culture change: leadership backs the error-budget policy and gives teams authority to prioritise reliability
  • Transition in steps: shadow on-call, reverse shadow, then full ownership; don't hand over pagers without dashboards and runbooks

⏱ 30-second answer

Service ownership means each service has one team that builds, deploys, runs and is paged for it: "you build it, you run it". That team defines SLIs (what users feel: availability, latency) and SLOs (e.g. 99.9% of requests succeed under 300 ms over 28 days); the error budget (the 0.1%) decides when reliability work beats features. On-call must be sustainable: enough people, alerts on SLO burn rate rather than CPU, runbooks and blameless reviews. A platform team builds the paved road (templates, pipelines, observability, hosting) so product teams don't each reinvent it. The trade-off: ownership speeds up fixes and improves quality, but needs investment in tooling and people before you hand over the pager.

🗣 Full answer (senior)

How I would answer this in an interview

"Service ownership means there's no ambiguity about who a service belongs to: one team builds it, deploys it, watches it and gets paged when it breaks. That's 'you build it, you run it'. It matters in microservices because there are too many services for a central ops team to understand, and because the people who wrote the code fix it fastest and have the strongest incentive to make it reliable.

For example, at [company] we moved from a central ops team that received every alert to team ownership for [N] services. I [helped design / led] it in three steps. First, every service got an owner in a service catalogue with its dashboard, runbook and SLOs. Second, each team defined SLIs from the user's point of view, availability and p95 latency of their main endpoints, and SLOs like 99.9% over 28 days, and we replaced CPU alerts with burn-rate alerts on the error budget. Third, teams shadowed ops on-call for [a month] before taking the pager. The result was [mean time to restore down from X to Y] and [far fewer pages], because alerts became actionable.

The other half is the platform team. If every product team has to build its own pipelines, logging and Kubernetes manifests, ownership becomes a tax. A platform team provides the paved road: a service template with OpenTelemetry, health checks and dashboards built in, standard pipelines, and the hosting platform, offered as a product, not as a ticket queue. The mistake I see is handing teams the pager without dashboards, runbooks or authority to prioritise reliability work. Ownership without the error-budget policy to back it up is just blame."


SLI, SLO, SLA, error budget

Term Meaning Example
SLI A measured ratio of good events % of POST /orders returning non-5xx within 300 ms
SLO Internal target for the SLI over a window 99.9% over 28 days
Error budget 1 − SLO 0.1% ≈ 40 minutes of full outage per 28 days
SLA External contract with penalties 99.5% monthly, service credits

SLOs should be stricter than SLAs so you get warning before you breach a contract.

Error budget policy (agreed with product owners)

Budget state Action
Healthy Ship features normally
Burning fast (e.g. 2% in 1 hour) Page on-call
Over 50% spent mid-window Prioritise reliability items, slow risky releases
Exhausted Feature freeze for that service except fixes, until back within SLO

What the owning team has and what the platform team gives

Owning team Platform team
Code, backlog, SLOs, alerts, runbooks, on-call Service template, CI/CD, hosting (AKS / Container Apps), observability stack
Deployments and rollbacks Secrets and identity patterns (Key Vault, managed identity)
Post-incident reviews and actions Golden paths, docs, self-service, support
Cost of its service Cost visibility and guardrails

Production example

After moving [24] services to team ownership with burn-rate alerting, pages per week dropped from ~60 (mostly CPU and disk noise) to ~8 actionable ones, and median time to restore fell from ~70 to ~20 minutes because the paged engineer knew the code.

🔍 What the interviewer is checking

Checks whether the candidate understands the organisational and operational side of microservices, not just the code.

Green flags

  • One owning team per service, recorded somewhere
  • Defines SLIs, SLOs and error budgets correctly with numbers
  • Burn-rate alerting and sustainable on-call
  • Platform team as a product providing paved roads
  • A phased transition plan

Red flags

  • Confuses SLO and SLA, or targets 100%
  • "Developers just get paged" with no tooling or policy
  • Alerting on CPU as the main signal

📚 Learn in depth

1. Why ownership follows from microservices

The point of microservices is that teams change and release independently. That only works if the same team also handles the consequences. If a central ops team runs everything, every incident needs a hand-off, and the people with the knowledge aren't the people with the pager.

Central ops                         Team ownership
-----------                         --------------
Alert -> Ops (doesn't know code)    Alert -> owning team on-call
      -> ticket -> dev team                -> fix, roll back or mitigate
      -> back-and-forth                    -> blameless review -> backlog
MTTR: hours                         MTTR: minutes

2. Measuring what users feel

SLIs are ratios: good events / valid events. Good SLIs for an API:

  • Availability: non-5xx responses / all responses.
  • Latency: responses under a threshold / all responses.
  • For async work: messages processed within N minutes / all messages.

In .NET, ASP.NET Core emits http.server.request.duration through OpenTelemetry metrics, so you can compute these in Azure Monitor (Application Insights), Prometheus or Grafana without custom code.

3. Burn-rate alerting

Alerting on CPU or on any single 5xx creates noise. Alert on how fast the error budget is being spent:

SLO 99.9% over 28 days -> budget 0.1%
Burn rate 14.4 for 1 hour  -> 2% of budget gone -> page now
Burn rate 6 for 6 hours    -> 5% of budget gone -> page
Burn rate 1 for 3 days     -> 10% of budget gone -> ticket, not a page

Multi-window, multi-burn-rate alerts (from the Google SRE workbook) catch both sudden outages and slow leaks while staying quiet otherwise.

4. Sustainable on-call

  • Rotation large enough that each person is on call roughly one week in 6–8; small teams share a rotation across related services.
  • Every alert links to a runbook and a dashboard.
  • Pages outside hours are compensated per the employment agreement or award; track pages per shift and treat more than ~2 per shift as a defect.
  • Blameless post-incident reviews with tracked actions.

5. The service catalogue

A catalogue (Backstage, Port, or a well-kept repo of YAML files) records for each service: owner team, on-call rotation, repo, dashboards, SLOs, dependencies, data classification (useful for Privacy Act and Notifiable Data Breaches assessments) and lifecycle state. Without it, ownership decays as people move.

6. Platform teams

In Team Topologies terms, product teams are stream-aligned, and a platform team reduces their cognitive load. The platform is a product: it has users (other teams), a roadmap and documentation. Typical paved road for .NET: a dotnet new template with OpenTelemetry, health checks and resilience defaults; standard pipelines; container hosting; dashboards and SLO templates created automatically.

7. Transition plan

  1. Catalogue every service and assign owners (orphans go to a named team).
  2. Build dashboards and runbooks with ops, define SLIs and SLOs.
  3. Shadow on-call: the team gets the same pages as ops.
  4. Reverse shadow: the team is primary, ops is backup.
  5. Full ownership; ops becomes platform or SRE enablement.
  6. Agree the error-budget policy with product leadership before step 5.

Try it yourself

  1. Compute availability and latency SLIs for one endpoint from http.server.request.duration in Application Insights or Prometheus.
  2. Write a burn-rate alert for a 99.9% SLO with 1-hour and 6-hour windows.
  3. Draft a catalogue entry (YAML) for one service with owner, SLOs, dependencies and data classification.
  4. Review the last month's pages: how many were actionable?

💻 Code

A service template default: OpenTelemetry metrics for SLIs, health endpoints, and a catalogue entry.

// Program.cs in the platform's service template: every service gets SLI metrics and health checks by default.
using OpenTelemetry.Metrics;
using OpenTelemetry.Trace;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddOpenTelemetry()
    .ConfigureResource(r => r.AddService(builder.Environment.ApplicationName))
    .WithMetrics(m => m
        .AddAspNetCoreInstrumentation()   // http.server.request.duration -> availability and latency SLIs
        .AddHttpClientInstrumentation()
        .AddRuntimeInstrumentation())
    .WithTracing(t => t.AddAspNetCoreInstrumentation().AddHttpClientInstrumentation())
    .UseAzureMonitor();                   // Azure.Monitor.OpenTelemetry.AspNetCore

builder.Services.AddHealthChecks();

var app = builder.Build();
app.MapHealthChecks("/health/live", new() { Predicate = _ => false }); // process is up
app.MapHealthChecks("/health/ready");                                  // can serve traffic
app.Run();
# catalog-info.yaml (Backstage): ownership and SLOs live next to the code.
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: orders-api
  annotations:
    pagerduty.com/service-id: PXXXXXX
  tags: [dotnet, personal-information]
spec:
  type: service
  lifecycle: production
  owner: team-checkout
  dependsOn: [component:payments-api, resource:orders-sql]
  # SLOs documented here and implemented as burn-rate alerts:
  # availability 99.9% / 28d on POST /orders; latency 99% < 300 ms / 28d

⚠ Common mistakes

  • Mistake: Handing teams the pager without dashboards, runbooks or training. Why it is wrong: burnout and slow incidents. Instead: shadow and reverse-shadow phases, runbooks per alert.
  • Mistake: Alerting on CPU, memory or every exception. Why it is wrong: noise that trains people to ignore pages. Instead: SLO burn-rate alerts on user-visible symptoms.
  • Mistake: SLOs of 100% or copied from the SLA. Why it is wrong: no budget for change, and no early warning. Instead: an SLO users actually need, stricter than the SLA.
  • Mistake: Error budgets without a policy product owners agreed to. Why it is wrong: the budget is spent and features still win. Instead: written policy signed off by product leadership.
  • Mistake: Shared ownership ("the backend team owns everything"). Why it is wrong: nobody feels responsible. Instead: one named team per service in a catalogue.
  • Mistake: Platform team as a ticket queue. Why it is wrong: becomes a bottleneck like the old ops team. Instead: self-service paved roads treated as a product.
  • Mistake: On-call rotations of two or three people. Why it is wrong: unsustainable and a key-person risk. Instead: pool related services into a rotation of 6–8.

🏛 Senior insight: trade-offs

Ownership is a socio-technical change: the technical parts (SLOs, alerts, templates) are easy; the hard parts are culture and authority. Teams must feel the service is theirs, which only happens if leadership lets them spend time on reliability, backs the error-budget policy when a deadline looms, and runs blameless reviews so people report problems instead of hiding them. A senior engineer frames it in business outcomes: faster restore, fewer customer-visible incidents, and teams that can release independently, and expects the culture shift to take several quarters.

Model When it fits Cost When not to
Central ops runs everything Few services, stable, low change rate Slow hand-offs, low dev accountability Many services, frequent releases
You build it, you run it Microservices with stable teams On-call load, tooling investment Teams too small for a rotation
SRE team + product teams Very high reliability needs, scale Specialist hiring Small organisations
Platform team + ownership 5+ product teams A team building internal products 1–2 teams (use a managed platform instead)

Measure: MTTR, pages per shift, percentage of actionable pages, SLO attainment, and deployment frequency.

🔗 Follow-ups the interviewer may ask

  1. When: Candidate mentions team boundaries matching service boundaries Why: Checks they connect ownership with how boundaries are drawn.
    How to answer

    Start from business capabilities (ordering, pricing, payments, fulfilment) and bounded contexts, the areas where a word like "Order" has one consistent meaning. A good boundary has one owner for its data and one owning team, and by Conway's law it should match how teams communicate. Test a proposed boundary with real change history and call flows: most features should change one service, and a user request should need few synchronous hops. Wrong boundaries show up as changes that always span services, chatty calls and shared tables. The trade-off: smaller services give more autonomy but more coordination, so start coarse and split when the seam is proven.

  2. When: Candidate mentions SLOs Why: Checks they can turn an SLO into a working decision rule.
    How to answer

    The error budget is 1 − SLO over the window: a 99.9% availability SLO over 28 days allows 0.1% bad requests, about 40 minutes of full outage. It turns reliability into a number engineering and product both spend.

    • Measure continuously from the SLI and alert on burn rate (fast burn pages, slow burn tickets).
    • The remaining budget drives release strategy: plenty left means normal cadence and experiments; past ~50% spent mid-window means smaller canaries, more gating and reliability work first.
    • A written policy agreed with product owners says what happens when it is exhausted: freeze risky feature releases for that service until it is back within SLO.

    The trade-off: too tight an SLO stalls delivery, too loose hides real user pain, so revisit the SLO against user feedback.

  3. When: Candidate mentions health checks in the service template Why: Checks they design readiness and liveness so they don't cause cascading outages.
    How to answer

    Mostly no. Readiness should say whether this instance can serve traffic: started, warmed up, not shutting down. If it checks a shared database or another service, one dependency outage marks every pod unready, discovery removes them all, and a partial outage (some endpoints still worked, cached reads still worked) becomes a total one.

    • Check local prerequisites; handle dependency failures in the request path with timeouts, circuit breakers and fallbacks.
    • Exceptions: a dependency that belongs to this instance only (a sidecar, a per-pod cache warm-up), or a prerequisite without which the instance can serve nothing at all and the failure is instance-specific.
    • Liveness is narrower still: only a stuck process.

    The trade-off is against the SLO: serving degraded responses usually costs less error budget than having zero ready pods.

🛠 Real-world problems: how you handle them

Moving from a central ops team to team ownership
Situation
A [fintech] with [24] .NET services on AKS and a central ops team of [4] receiving every alert; [5] product teams released [weekly].
Signals
About 60 pages per week, mostly CPU and disk warnings; median time to restore ~70 minutes because ops escalated to developers; incidents repeated because fixes never reached team backlogs; ops staff burnout and attrition.
Investigation
Reviewed three months of pages: under 15% were actionable; mapped every service to a team and found [5] with no clear owner; measured where incident time went (most in hand-offs).
Resolution
Built a Backstage catalogue with owners; the platform team created a service template with OpenTelemetry and SLO dashboards; each team defined SLIs/SLOs and burn-rate alerts; a month of shadow on-call then reverse shadow; error-budget policy agreed with product leadership.
Prevention
Quarterly SLO reviews; pages-per-shift tracked as a health metric; blameless reviews with actions tracked in team backlogs; new services can't go to production without a catalogue entry and SLOs.

How to tell it (STAR)

**S:** At [company], [four] ops engineers received every alert for [24] services, most pages were noise, and incidents took over an hour because of hand-offs. **T:** I was asked to [help design / lead] a move to team ownership. **A:** We put every service in a catalogue with an owner, defined SLOs per service from user-facing metrics, replaced CPU alerts with burn-rate alerts, and had teams shadow ops before taking the pager. I also worked with product owners on an error-budget policy so reliability work got priority when budgets burned. **R:** Pages dropped from [~60] to [~8] a week, median restore time went from [~70] to [~20] minutes, and the ops team moved into a platform role.

More in Microservices

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me