What Is Canary Deployment?
A canary deployment is a release strategy that rolls out changes to a small subset of users or servers first, monitors for issues, and gradually expands to the full user base only after confirming stability.
Free to start · 7-day trial on paid plans
In Depth
The name comes from the "canary in the coal mine" practice. In a canary deployment, the new version is deployed alongside the stable version. A load balancer or traffic router directs a small percentage (typically 1-5%) of traffic to the canary. If error rates, latency, or business metrics remain healthy, traffic is gradually shifted (10%, 25%, 50%, 100%). If anomalies are detected, traffic is immediately routed back to the stable version.
Canary deployments require robust observability. You need real-time dashboards comparing canary metrics against the baseline: HTTP error rates, response latency percentiles (p50, p95, p99), CPU/memory usage, and business KPIs (conversion rate, cart abandonment). Automated analysis can even trigger rollback without human intervention when metrics exceed thresholds.
From a QA perspective, canary deployments are a shift-right testing technique. They expose code to real traffic patterns that synthetic tests cannot replicate. The QA role shifts from "certify before release" to "monitor and validate during release," requiring skills in observability tooling, metric interpretation, and incident response.
Why Interviewers Ask About This
Interviewers ask about canary deployments to assess your understanding of modern deployment strategies and how QA fits into continuous delivery. It shows DevOps fluency.
Example Scenario
A new search algorithm is deployed as a canary to 2% of traffic. After 30 minutes, the dashboard shows that p95 latency is 40% higher than the baseline. The on-call engineer triggers a rollback. Post-mortem reveals a missing database index. After adding the index, the next canary deployment shows latency within normal range and is promoted to 100%.
Interview Tip
Explain the canary process step by step: deploy to a small percentage, monitor key metrics, expand gradually, and roll back if needed. Mention the metrics you would watch.
Related Terms
Explore related glossary terms to deepen your understanding.
Related Resources
Dive deeper with these related interview prep pages.
Ready to Ace Your QA Interview?
Practice explaining canary deployment and other key concepts with our AI interviewer.
Join 1,200+ QA engineers already practicing with AssertHired.
Start Your Free QA InterviewFree to start · 7-day trial on paid plans