Search GimmeJob

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

Which risks and test oracles matter most for service metrics when failures are intermittent?

Answer

Prioritize the risks that could invalidate the user or business outcome before tracing a user-visible symptom through telemetry to the responsible change and dependency. Focus on service metrics when failures are intermittent. Use service-level objectives, known test events and correlated logs, metrics and traces as the oracle. Cover signal correctness, context propagation, sampling, alert routing, rollout and recovery. Keep data and dependencies controlled enough to reproduce failures. Release only when a responder can detect, scope and diagnose the failure within the agreed operational target.

Strong answer includes

  • explicit risk and test oracle for service metrics
  • tests telemetry as product behavior
  • prefers actionable symptom-based alerts
  • measurable evidence and residual-risk statement

Practical example

An intermittent 2% error rate could mean many different things: one flaky dependency, a race condition under load, or a slow memory leak that only shows up after hours of uptime. The tester prioritizes the risk that the metric is being averaged over too long a window to reveal any of these, and first checks whether per-minute granularity metrics exist before investigating root causes.

#observability#production#sre#service-metrics

Sources

OpenTelemetry conceptsOpenTelemetry · Traces, metrics, logs, context propagation and instrumentationPrometheus alerting practicesPrometheus · Symptom-based actionable alerts, metamonitoring and noise reduction