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

📚 Interview question

How would you run a percentage rollout of a risky change and decide, with data, whether to go to the next step or roll it back?

Mid-Level Theory Intermediate canary-analysis feature-flags production progressive-delivery slo

🎯 Key points

  • Success and rollback criteria (SLIs, thresholds, minimum sample) agreed before the first step
  • Targeting filter or hashed user id keeps cohorts sticky, like a controlled A/B experiment
  • Telemetry tagged with the flag variant (Application Insights custom dimension / OpenTelemetry attribute)
  • Compare treatment vs control in the same time window, not against last week
  • Steps 1% → 10% → 50% → 100%, each held through a peak period
  • Automated gate (alert or canary analysis) or runbook-driven rollback on SLO breach

⏱ 30-second answer

Treat each step as a controlled experiment. Before starting, agree the promotion and rollback criteria: the SLIs for the affected endpoints (error ratio, p95 latency, one business metric such as checkout conversion), the thresholds and the minimum sample size. Use a targeting filter (hashed user id) so users stay in their cohort, and tag telemetry with the flag variant (an Application Insights custom dimension or OpenTelemetry attribute) so a KQL query or dashboard compares the new cohort against the control cohort in the same time window. Step 1% → 10% → 50% → 100%, holding each step through a peak period. If the treatment cohort is worse beyond the threshold, turn the flag off, automatically from an alert or by runbook. The trade-off: small steps are safe but need longer holds to gather enough traffic to be significant.

🔍 What the interviewer is checking

Checks they can define promotion criteria against SLOs and compare cohorts with data rather than gut feel.

Green flags

  • Criteria and thresholds written down before the rollout starts
  • Sticky cohorts and telemetry split by flag variant
  • Compares treatment with control in the same window
  • A fast, rehearsed rollback path

Red flags

  • "We watch the dashboard and see if it looks fine"
  • Compares against yesterday's numbers, so traffic changes hide the effect
  • No rollback threshold until something breaks

↩ Usually asked after

More in Production Tools

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me