LEARN. PRACTICE. EXPLAIN.
Learning paths & interview practiceP
← Build a health-probe & rollout controller
BUILD → VERIFY → EXPLAIN · STEP 4 OF 6

Enforce canary compatibility and rollout gates

Halt or roll back releases when schema compatibility or SLO metrics fail.

UNDERSTAND

Bring these concepts with you

BUILD

Your implementation

  1. Implement evaluateCanaryRollout(baseline, canary, policy).
  2. Return 'rollback' immediately if canary.schemaCompatible is false or error/p95 thresholds are breached.
  3. Return 'hold' if sample count is below policy.minRequests, and 'promote' only when all checks pass.
export function evaluateCanaryRollout(baseline, canary, policy) {
  // Return { action: 'promote' | 'hold' | 'rollback', reasons }
}
Need a hint?
  • Evaluate compatibility and regression failures before sample sufficiency—do not wait for 100 errors if schema compatibility is already broken.
  • Compare canary error rate against both policy.maxErrorRate and baseline rate + policy.maxDelta.

Saved on this device · 0 / 6000 · Do not include passwords or private data.

VERIFY

Acceptance checks

From the folder containing your downloaded files, run:

node checks.mjs ./starter.mjs 4

This runs checks up to this step. Earlier steps must work first. Mark each result only after checking your implementation; the website does not run or grade it.

Record your attempt to enable the checklist and reference comparison.

Compare with the reference

Attempt the step first, then compare decisions and behavior. There can be more than one correct implementation.

EXPLAIN

Your interviewer asks

When is rolling back a bad container image unsafe, and what do you do instead?

Say your answer aloud, then record the trade-offs and evidence in your notes above.

LOCAL VOICE REHEARSAL

Rehearse your step walkthrough aloud

Target pacing: 02:00 · Stays in this browser only; never uploaded.

00:00/ 02:00
AlifBay Prep