Skip to main content
InterviewHubPRO
Section Overview
Q21

Question 21 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

42%
SRE & Observability (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

How do you implement Canary Deployments with Automated Rollbacks?

senior LevelKubernetes

In Simple Words: Replaces risky all-at-once releases:

  1. Deploy new version to a small subset of instances (e.g. 5% of traffic).
  2. The Canary analyzer (e.g. Argo Rollouts or Flagger) continuously queries Prometheus SLIs:
    • If HTTP 5xx error rate > 0.5% or p99 latency > 300ms:
    • Immediately triggers automated rollback to previous version, limiting blast radius to only 5% of users for under 60 seconds!
  3. If SLIs remain green, traffic automatically scales up: 20% -> 50% -> 100%.