Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
Observability & productionSeniorOccasionalScenario

How would you verify a canary deployment when failures may be intermittent?

Answer

Define canary success and rollback signals before rollout, covering user outcomes, errors, latency, saturation and business invariants rather than deployment status alone. Compare the canary with a valid control over enough traffic and time to expose intermittent behavior, segmenting by version, region, tenant and dependency while correlating logs, metrics and traces. Automate rollback for clear safety thresholds and preserve evidence for ambiguous cases so low-frequency harm is not averaged away.

Strong answer includes

  • defines outcome-based success and rollback signals in advance
  • uses a comparable control and meaningful observation window
  • segments and correlates telemetry to expose intermittent failures

Practical example

For example, a canary release of a payment service looks healthy on aggregate error rate (0.1%), but segmenting by region reveals a 4% error rate specifically for transactions from one payment provider used mostly in a single country, which was being averaged away by the much larger healthy traffic from other regions. The team's pre-defined rollback rule triggers on any per-segment error rate above 1%, so the canary is automatically rolled back before it reaches full rollout, rather than being judged 'healthy' from the blended number.

#observability#deployment#canary#production

Sources

Google SRE booksGoogle · Reliability, SLOs, monitoring, incidents and resilienceOpenTelemetry conceptsOpenTelemetry · Traces, metrics, logs, context propagation and instrumentationDORA research programGoogle Cloud · Software delivery performance (current five-metric model) and organizational capabilities