Release Management and Change Control Questions
Planning and governing releases: release cadence and trains, release versioning (semantic versioning, tagging, hotfix and release branches), approval gates and sign-off, go/no-go and launch-readiness decisions, release checklists, change freezes, risk-tiered change classification and pre-approved changes, change advisory and emergency-change workflows with audit trails and compliance evidence, release communication, gating releases on reliability budget, and coordinating a release across multiple services or teams, including breaking interface or schema changes with consumer deprecation timelines. The concern is the process and governance of releasing production changes, not how a deployment is executed, how pipelines are built, or how release health is measured after shipping.
A complex feature is ready but one internal process behind it is still manual, for example reconciliation by an operations team. How do you decide whether it can ship, what service levels do you set for the manual steps, and how do you tell sales and customers?
Sample Answer
Direct answer
Ship it if the manual step has a hard capacity ceiling you will not exceed, a bounded and detectable error cost, an owner, a dated plan to automate, and an honest description to customers. Do not ship if the manual step moves money or data where an error cannot be detected, or if expected volume exceeds what the people doing it can handle with room to spare. Set service levels on the manual step the way you would for any service: a target time to complete, a percentage that must meet it, a backlog limit that pauses new sign-ups, and a named owner. Tell sales what they may and may not promise, and tell customers the outcome and the timing, not the internal mechanism.
A service level here is a measurable promise about how fast or how reliably the work is done, for example "95 percent of reconciliations complete within one business day". Reconciliation is checking that two records of the same money or items agree.
Step 1: decide whether it can ship (five checks)
| Check | Ship when | Do not ship when |
|---|---|---|
| Capacity (utilisation, meaning the share of the team's available time that the forecast work uses) | Forecast manual work uses 60 percent or less of the team's time set aside for it | Forecast is near or above 100 percent |
| Error cost | A mistake is small, found within a day, and fixable | A mistake moves money wrongly or breaches a rule and is found late |
| Control | The step produces a record someone can audit | The step leaves no evidence |
| Reversibility | You can cap or pause the feature for new customers | Once enabled, customers depend on it and you cannot slow intake |
| Exit | There is an owner, a date and a trigger for automation | "We will automate later" with no owner |
Capacity arithmetic (assumed numbers)
Assumptions: at full launch the forecast is 40 reconciliations per day; each takes 15 minutes by hand; the operations team sets aside 2 people for 5 hours each per day for this work.
- Capacity: 2×5×60=600 minutes per day.
- Forecast demand: 40×15=600 minutes per day, so utilisation is 600/600=100%.
- At 100 percent any bad day (illness, a slow case) grows a backlog that never drains. Target 60 percent (a common planning rule of thumb, not a law; use a lower figure when the work is more variable): 600×0.60=360 minutes.
- Daily cap: 360/15=24 reconciliations per day, which is 60 percent of the forecast of 40.
Decision: the uncapped forecast of 100 percent fails the capacity check, so do not ship at full volume. Ship to a limited set of customers sized to about 24 reconciliations a day, which is 60 percent utilisation, and widen as capacity or automation grows.
Step 2: service levels for the manual steps
- Time target and share: for example 95 percent completed within 1 business day and every one within 3 business days, with the clock counted in business hours so weekends do not count against a promise nobody can staff.
- Internal target stricter than the customer promise: the team aims for 4 staffed hours internally while customers are told "usually by the end of the next business day, and always within 3 business days", so there is slack. The 4 hours comes from the step 1 numbers: at the cap of 24 items a day, a full queue of 24 holds 24×15=360 minutes of work; two people share it, so the last item waits 360/2=180 minutes (3 hours) and then takes its own 15 minutes, which is 3.25 hours, under 4. Against the customer promise the margin is wide: the team has 600 minutes a day set aside and the capped load uses 360, so 240 minutes a day are spare for slow cases.
- Backlog limit as a circuit breaker (an automatic switch that stops new work when a limit is crossed): if the queue exceeds 24 items, which is one day of planned work at the 60 percent cap from step 1 (full capacity would be 40, and a queue of 40 means a whole day is already lost), new customer enablement (switching the feature on for another customer) pauses automatically and the owner is notified. Intake (new customers or new items arriving) resumes when the queue is back under the limit.
- Quality target: a percentage of reconciliations checked by a second person, and a count of corrections per week.
- Coverage and owner: a named lead, a deputy, and holiday cover. A service level without cover is a wish.
- Visibility: a daily count of items waiting, oldest item age, and completions, shown to product, support and sales.
Step 3: tell sales and customers
Sales get a one-page sheet: what is manual, the time promise they may repeat, what they must not say ("instant", "real-time", "fully automated"), which customers are eligible while intake is capped, and where to send exceptions. Do not let a contract promise a faster time than the customer-facing promise; the stricter internal target stays internal, because it is the slack that protects the promise.
Customers hear the outcome and the time in plain words: "Your reconciliation report is usually ready by the end of the next business day, and always within 3 business days." Say it is a managed process if asked; do not invent technical detail; say how to reach support if a result is late. Early access wording ("available to a first group of customers") is honest when intake is capped.
Step 4: the exit from manual work
Payback for automation: with manual work of 24×15=360 minutes =6 hours per day and 5 working days, that is 30 hours per week. Suppose building the automation takes 30 engineer-days at 8 hours, 30×8=240 hours, and it needs 2 hours per week of upkeep. The net weekly saving is 30−2=28 hours, so break-even is 240/28≈8.6 weeks. Ignoring upkeep would give 240/30=8 weeks, which overstates the payoff.
Set the automation trigger in advance, for example "when weekly manual hours pass 30 or the backlog limit trips twice in a month".
Common mistakes
- Setting a service level the team cannot staff.
- Hiding the manual step from sales so they promise real-time results.
- Treating "manual for now" as free: the cost is people's time, error risk and a slower launch of the next feature.
- No stop condition, so the temporary process becomes permanent.
You believe a high-profile release should slip by two weeks because of reliability and quality problems. How do you present that to product and executive stakeholders, including the risks, the revised timeline, customer impact and contingencies?
Sample Answer
The idea in plain words
A slip is moving a release date later. Recommending one is a request for a decision, not an apology. Executives and product leaders do not need to hear that engineering is worried. They need a decision framed as a comparison: what happens to the business if we ship on the planned date, what happens if we move the date, and what evidence separates the two. The strongest version of this conversation puts the decision and the new date on the first line, then backs it with measured facts, a priced comparison, dated checkpoints so the slip cannot grow silently, and a fallback if the new date also looks shaky.
Step 1: Build the case before the meeting
Collect evidence in three groups, and mark each item as measured or estimated.
| Group | What to bring | Example of a measured fact |
|---|---|---|
| Reliability | Load and soak test (running the system at load for hours to expose slow leaks) results against the service-level objective (SLO, the reliability target the business has agreed to, such as "99.9% of checkouts succeed") | Failure rate at expected peak load |
| Quality | Open defects ranked by user impact, and the escape trend (how many defects are found late, by testers or customers, versus early; a rising late share means the testing is missing things) | Count of priority-1 (P1) defects, meaning a defect that blocks a core user journey |
| Delivery | Fix capacity: how many of the open items can run in parallel, and what each needs | Days of work per item, who owns it |
Then name the specific exit criteria the release failed and would need to pass. "Not ready" is an opinion. "Checkout fails 2.4% of requests at planned peak, against a target below 0.1%" is a fact the audience can argue with on its merits.
Step 2: Present in this order
- The ask, first. "I recommend moving the launch from Tuesday 3 November to Tuesday 17 November 2026. I need agreement today."
- Why, in two or three facts. Only the failed criteria, not every defect.
- The comparison. Ship on time versus slip, in business terms: money, customers, reputation, with the assumptions visible.
- The revised timeline with dated checkpoints and what is decided at each.
- Customer impact of each path and the message to customers and partners.
- Contingencies: what happens if the checkpoints are missed, and how risk is contained if the decision is to ship anyway. A go/no-go is the final meeting where a yes or no is decided against the written criteria.
- What you need from them: a decision, and any dependencies they can unblock (people, approvals, partner dates).
Worked example (every input below is an assumption for illustration)
Planned launch: Tuesday 3 November 2026. Assume the meeting is held on Monday 2 November, the last working day before the launch, so "today" in the ask is the day before the original date, and the team starts fixing on the morning of 3 November (day 0 in the timeline below). A two-week slip means Tuesday 17 November 2026: 14 calendar days, which is 10 working days (Wed 4 to Fri 6 = 3; Mon 9 to Fri 13 = 5; Mon 16 and Tue 17 = 2; 3 + 5 + 2 = 10).
Assumed evidence. The load test at the expected peak shows 2.4% of checkout requests failing against a target below 0.1%. There are 14 open P1 defects, 6 of them on the payment path. The team estimates the fixes and a repeat of the load test fit in 10 working days.
Pricing the choice. Two estimates are needed, and both are judgment calls, not measurements:
- Cost of a major launch incident: USD 400,000 (refunds, support load, engineering time, make-good credits, meaning credits given to affected customers as compensation). This is the same for both paths.
- Probability of a major incident if shipped now: 0.35. After the slip and fixes: 0.08.
- Cost of the delay itself: USD 90,000 (re-planned marketing spend and deferred revenue).
Where the probabilities come from. A team gets such numbers from its own history, not from a feeling. Assume that of the last 20 launches that went out with failed exit criteria, 7 had a major incident, so 7/20=0.35, and that of the last 25 launches that met every exit criterion, 2 did, so 2/25=0.08. Those samples are small, so present each as a rough value with a plausible range, not as a precise odds. The comparison below uses the expected loss: the probability of the bad outcome times its cost, which is the average cost per launch if you could repeat this same decision many times. A single launch either has the incident (400,000) or does not (0), so 140,000 is not a bill you will receive, it is the fair price of the risk.
Ship on timeSlip=0.35×400,000=140,000=90,000+0.08×400,000=90,000+32,000=122,000On these inputs the slip is cheaper by 140,000−122,000=18,000 USD in expected loss. That is a narrow margin, and the honest presentation says so. The more useful number is the break-even probability: how wrong could the shipped-now estimate be before the decision flips? Hold the slip path fixed at 122,000 (it already includes its own 0.08 risk), then ask what incident probability p for shipping now would make shipping cost exactly that much.
p×400,000=122,000⇒p=0.305Dividing, p=122,000/400,000=0.305. Our estimate for shipping now is 0.35, which is above 0.305, so the slip wins; if the executive believes the shipped-now probability is below 0.305, shipping wins on these numbers. That turns the argument from "engineering is nervous" into "do you believe the odds are under 30%, given a 2.4% failure rate at peak?" The 400,000 does not include brand damage and lost trust, which are real costs of an incident. Shipping now is the path with the higher incident probability, so leaving them out makes shipping look cheaper than it is and the slip look more expensive than it is, which means the true margin favours the slip by more than 18,000.
Revised timeline with decisions at each date.
| Date | Working day | What happens | Decision |
|---|---|---|---|
| Mon 2 Nov | before day 0 | Meeting: slip agreed, new date announced to the team | New date set |
| Tue 3 Nov | 0 | Original launch date passes with no launch; fix work starts | Owners named for the 14 P1 defects |
| Tue 10 Nov | 5 | Zero P1 defects on the payment path, repeat load test scheduled | On track, or escalate for people |
| Fri 13 Nov | 8 | Fixes merged, soak test started | Stop accepting non-fix changes |
| Mon 16 Nov | 9 | Final go/no-go against the written criteria | Go, or invoke the fallback |
| Tue 17 Nov | 10 | Release |
Customer impact. If you ship on time, the risk falls on customers: failed payments for roughly 1 in 40 requests at peak (2.4% is 1 in about 41.7), which is a visible failure. If you slip, the cost falls on customers who were promised the date. Say who they are (for example, a partner with a joint announcement) and give them the new date and what they get, in the same message, before they hear it second hand. An illustrative message: "We are moving the launch from 3 November to 17 November 2026 so that checkout is reliable at peak load. Your order and account are unaffected. Everyone who pre-registered keeps their early-access terms. We will confirm the date again on 16 November."
Contingencies, agreed in the same meeting:
- If the 10 November checkpoint fails, escalate for named extra people immediately rather than waiting for 16 November.
- If the 16 November go/no-go fails, do not slip in open-ended steps. Choose one pre-agreed fallback: release behind a feature flag (a switch that turns the feature on or off without a deploy) to 5% of users, or release the reliable subset and defer the rest.
- If the date is moved a second time, the next conversation is held with the same evidence table, not a new story.
How to handle the pushback you will get
- "Can we ship and fix forward?" (Shipping now and repairing problems in production afterwards.) Answer with the break-even number and the user-visible failure, and offer the flagged 5% launch as the middle path.
- "Can you add people?" Ask which of the 14 items can run in parallel and which are sequential. Extra people help only on the parallel ones.
- "Why two weeks and not one?" Show the work: fix time plus a full repeat load test plus a soak. A date you cannot defend will slip again.
Common mistakes
- Opening with the problems list instead of the decision.
- Presenting a probability as a fact instead of a labelled estimate with a break-even point.
- Giving a slip without checkpoints, which leaves executives to assume it may grow.
- Hiding the customer message until the end.
Design release orchestration for a system of 100 interdependent services owned by many teams. How do you handle sequencing, contracts and versioning, failure containment and ownership of the release?
Sample Answer
The idea in plain words
Release orchestration is the machinery and rules that decide in what order changes reach production when many services depend on each other. With 100 services and many teams, the design goal is to need orchestration as rarely as possible. If every service can be released independently, because its changes are backward compatible with what its neighbours expect, then most releases need no coordination at all. Orchestration is then reserved for the small share of changes that really cross services, such as a breaking API change. If you remember three controls, make them these: backward-compatible contracts checked by consumer-driven tests, expand then contract for the rare breaking change, and a per-service canary with the owning team's own rollback. The other items below (flags, blast-radius limits, circuit breakers, the error-budget gate, the global pause) support those three. The four things the question asks about, sequencing, contracts and versioning, failure containment and ownership, are all ways of making that true.
Why not release everything together
Suppose each service's release succeeds on its own with probability 0.98, and failures are independent (an assumption; real failures correlate, which makes the picture worse, not better). A coordinated release of all 100 services succeeds only if all 100 do:
0.98100≈0.1326So about 13.3% of the time everything works, and 86.7% of the time at least one service fails and the group must decide whether to roll back everything. Released independently, the same 100 releases fail about 100 x 0.02 = 2 times on average, and each failure is rolled back by one team without involving the other 99. The probabilities are illustrative; the shape (a product over many services versus an independent failure per service) is the point.
Contracts and versioning
A contract is the agreed shape of the interface between a provider service and its consumers: fields, types, error codes, timing behaviour. Release design depends on it.
- Backward compatibility as the rule. A change is backward compatible when consumers written against the old version keep working unchanged. Adding an optional
currencyfield to an/ordersresponse is compatible, because old consumers ignore a field they never read. Renamingtotaltoamountis not, because a consumer readingtotalnow gets nothing. A provider may add optional fields and new endpoints; it may not remove or change the meaning of existing ones within a major version. Semantic versioning (MAJOR.MINOR.PATCH, where a MAJOR increase signals a breaking change) makes the signal explicit. - Consumer-driven contract tests. Each consumer publishes the calls it relies on as automated tests (written by the consumer team, encoding exactly what it needs from the provider); the provider's pipeline runs them before merge. A provider cannot ship a change that breaks a registered consumer.
- Expand then contract (also called parallel change). To make a breaking change, first expand: the provider supports old and new together. Then consumers migrate at their own pace. Finally contract: the provider removes the old form only after telemetry (measurements the running system reports about itself, such as which fields callers still read) shows zero remaining use. Traced on the rename above: the provider is at 2.4.1 returning
total. Expand: 2.5.0 returns bothtotalandamount(a minor bump, since nothing breaks). Consumers switch toamountover the following weeks, each in its own release. When telemetry shows no caller has readtotalfor a full cycle, contract: 3.0.0 returns onlyamount(a major bump), and 2.x stays supported for the 90-day window below so a late consumer is not stranded. Policy example (an assumption to set per organisation): the provider supports the current and previous major version for at least 90 days. - A service catalogue with a dependency graph built from the code registry and from real traffic data (tracing, which records the path of each request across services), so "who depends on me" is a query, not a meeting.
- Cycle detection in the pipeline (checking that no service depends on itself through a loop). A cycle means two services cannot be ordered, so it must be broken with an interface or event first.
Sequencing: only when a change is truly cross-service
For a breaking change that needs ordering, treat the services as a graph and release in layers. Worked example with seven services, where an arrow means "depends on":
| Service | Depends on |
|---|---|
| ledger | nothing |
| catalog | nothing |
| payments | ledger |
| inventory | catalog |
| orders | payments, inventory |
| web | orders |
| notifications | orders |
Layers (a service goes in the first layer after all its providers): layer 0 is ledger and catalog; layer 1 is payments and inventory; layer 2 is orders; layer 3 is web and notifications. That is four layers for seven services.
- Expanding a capability goes provider first: layer 0, then 1, 2, 3. Each layer ships only after the previous layer's change is live and healthy.
- Contracting (removing the old form) goes the other way: layer 3 stops using it first, and layer 0 removes it last.
Services in the same layer have no dependency on each other for this change, so they can ship in parallel. With 100 services, the number of layers equals the length of the longest dependency chain, which is far smaller than 100.
Failure containment
- Per-service canary (releasing to a small share of traffic first) with automatic rollback on error-rate or latency thresholds.
- Feature flags (switches that turn a feature on or off without a deploy) so deploying code and exposing behaviour are separate steps; a cross-service rollout becomes a sequence of flag flips.
- Blast-radius limits (blast radius is how much a bad change can damage). A cap on how many services may be mid-rollout at once (for example 5), and a rule that two directly dependent services do not change in the same window unless they are in the same coordinated change.
- Runtime protections. Timeouts, retries with limits, and circuit breakers (a switch that stops calling a failing dependency) so one bad release does not cascade (one failure causing the next dependents to fail, and so on).
- Error-budget gate. A service that has used up its error budget (the amount of unreliability its service-level objective, a reliability target such as 99.9 percent of requests succeeding, allows) may release only fixes, not features.
- A global pause that any release owner on call can trigger when several things fail at once.
Ownership
| Role | Owns |
|---|---|
| Service team | Its code, its contract tests, its canary and rollback, its release go/no-go |
| Platform or release engineering team | The pipeline templates, the dependency graph, the policy checks, the tooling for coordinated changes |
| A named change owner for each coordinated change | The sequence, the communication, and the decision to pause; this is one person per change, not a committee |
| Architecture or API governance group | Versioning policy and approval of breaking changes |
Rule: the team that owns a service always owns its rollback, even during a coordinated change. The change owner can pause the sequence but does not push buttons in someone else's service.
A group of services that must change together
The 100-service model assumes each service can ship alone. A batch pipeline whose stages share data does not fit that assumption, so it needs a different unit of release. Some groups cannot be released independently. Consider a nightly analytics job made of 10 stages (services) sharing data schemas, where a run must not mix old and new logic. The answer is to make the run the unit of release:
- Each run reads a manifest at start, a small record naming the version of every stage and schema for that run. The manifest changes between runs, never during one.
- Schemas change by expanding first: new fields are added, and readers tolerate both forms.
- Stages write to a staging area, and results are published in one atomic step (all or nothing, nothing half-visible) only when all 10 stages finish. This gives all-or-nothing behaviour without a distributed transaction (a single transaction spanning several services or databases, which is slow and hard to make reliable).
- If any stage fails, the staged output is discarded and the run repeats on the old manifest.
With 10 stages each succeeding with probability 0.98 (independent, an assumption), a run completes first time with probability 0.98^10, about 0.8171, so roughly 18.3% of runs repeat. That is the cost of the guarantee, and it is cheap compared with partial results in shared tables.
Common mistakes
- Building a heavy central release train (a fixed schedule on which all services ship together) for all 100 services instead of making most releases independent.
- Contract tests that exist but are optional, or consumers that are not registered.
- Removing the old API version based on a date rather than on zero observed use.
- A coordinated-change owner who is a committee, so nobody can pause.
You are launching a new payments flow. Build the pre-release checklist covering security and compliance, fraud, testing, observability, rollback planning, support readiness and sign-offs, and say what exit criteria must be met for each item.
Sample Answer
The idea in plain words
A pre-release checklist is a list of things that must be true before a change reaches customers. For a payments flow, the checklist differs from an ordinary feature checklist in one way: mistakes move money, and money movement is hard to undo and visible to banks, regulators and customers. So each item needs an exit criterion, a statement that is either met or not met and is backed by evidence someone can open. "Security reviewed" is not an exit criterion. "No open high-severity findings, review record linked" is. The checklist has seven areas: security and compliance, fraud, testing, observability, rollback planning, support readiness and sign-offs. Nineteen rows is a lot for a first launch, so four are marked non-negotiable in the table and come first: the idempotency test, the in-flight rollback test, the log scan and the reconciliation match. Each protects against an error that costs real money or exposes card data; the rest can carry an owner, a date and a cap on launch traffic if they slip.
The checklist
| Area | Item | Exit criterion (evidence required) |
|---|---|---|
| Security and compliance | Card data scope | Written decision on whether card numbers touch our systems. If the processor's hosted form or tokenization (swapping the card number for a meaningless stand-in token that is useless to a thief) keeps them out, there is a diagram showing it. If card data is stored, processed or transmitted, the Payment Card Industry Data Security Standard (PCI DSS) applies and the compliance owner confirms the applicable assessment |
| Threat model and testing | Threat model (a written list of who might attack the flow, how, and what stops them) reviewed; zero open high-severity findings; medium findings have owner and date; penetration test (authorised attackers try to break in, and report what worked) report attached | |
| Secrets and logs (non-negotiable) | API keys for the processor held in a secrets manager (a service that stores credentials and hands them to the application at run time), not in code; a scan of test logs for 16-digit card numbers that pass the Luhn check (the checksum card numbers satisfy) returns 0 matches (the scan program is shown after the reconciliation example) | |
| Strong authentication | Where a regulation such as the EU's PSD2 requires strong customer authentication (an extra check such as a bank app approval) for card payments, the flow triggers it; compliance confirms the exemptions used (exemptions are cases such as low-value payments where the rules allow the extra check to be skipped) | |
| Fraud | Rules and limits | Velocity limits (maximum attempts per card, device or account per hour) set and tested; replayed known-bad patterns are blocked in test |
| Review and response | Manual review queue staffed; chargeback (a customer disputing a charge with their bank) handling process exists; chargeback and fraud-rate alerts configured with agreed thresholds | |
| Testing | Functional matrix | Tests against the processor's test environment pass for: approve, decline, insufficient funds, timeout, authentication challenge, full refund, partial refund, duplicate submit |
| Idempotency (non-negotiable) | Replaying the same request with the same idempotency key (a token the client sends so the server recognises a retry) produces exactly one charge | |
| Test transactions and reconciliation (non-negotiable) | A run of real-format test transactions against the processor matches our ledger (our own record of every payment) line by line and in total (worked example below) | |
| Load | Load test at the expected peak plus headroom (the team agrees the multiple, for example 2 times) meets latency and error targets (headroom is the spare capacity above the expected peak) | |
| Observability | Dashboards and alerts | Success rate, latency, duplicates and reconciliation mismatches are charted; each alert has been fired in test and links to a runbook |
| Traceability | One payment can be followed by a single identifier from the app through the processor call to the ledger | |
| Rollback planning | Switch | A feature flag (a switch that disables the flow without a deploy) turns the flow off; the test record shows it works under load |
| In-flight payments (non-negotiable) | Rolling back with 50 test payments mid-flight (started but not yet finished when the switch is thrown) leaves 0 in an unknown state: each ends captured (the money is taken) or voided (the authorisation is cancelled and nothing is taken) | |
| Data compatibility | The previous version reads data written by the new one (checked by running the old build against the new data) | |
| Support readiness | Playbook | Replies prepared for "charged twice", "payment failed", "where is my refund"; escalation path to engineering and to the processor named |
| People | Support staff trained and a live walkthrough completed; refund authority limits written down; status page text prepared | |
| Sign-offs | Who | Engineering, product, security, compliance or legal, finance, fraud and support each sign |
| Rule | Each sign-off links to its evidence. A conditional sign-off names an owner and a date and is visible on the launch record. No sign-off by proxy |
That is 19 rows across the seven areas. The exit criteria deliberately mix thresholds, counts and artifacts, because some risks (a log leak) are checked by a search returning zero, and others (compliance scope) by a named person confirming in writing.
Worked example: test transactions and reconciliation
Reconciliation is comparing our record of payments (the ledger) with the processor's settlement report (settlement is the processor paying out the collected money; the report is the file listing what they will pay out). Suppose a test run of 1,000 transactions totalling 52,340.00 in our ledger. Assume a fee schedule for the test of 2% of the amount plus 0.25 per transaction (an invented schedule, not any real processor's pricing).
percentage feesper-transaction feestotal feesexpected payout=0.02×52,340.00=1,046.80=1,000×0.25=250.00=1,046.80+250.00=1,296.80=52,340.00−1,296.80=51,043.20Exit criteria: the processor report lists 1,000 transactions, each matched to a ledger entry by identifier; the unmatched count is 0; the payout equals 51,043.20. If the report shows 51,000.20, the totals differ by 43.00 (51,043.20 - 51,000.20). The total mismatch alone does not tell you which transaction is wrong. Line-by-line matching finds, for example, one 43.00 refund the ledger missed. This is why the criterion requires both a per-transaction match and a total. A total can match while two errors cancel each other out.
What the log scan and the idempotency replay look like
Two of the non-negotiable exit criteria are checked by a result a stranger can read in seconds. The log scan finds 16-digit runs and keeps only those that pass the Luhn checksum, so ordinary 16-digit order numbers do not raise false alarms. The idempotency replay sends five requests carrying the same key and counts the charges actually executed, once with no key check and once with the key check. Run with Python 3.12, the program prints:
import re
def luhn_ok(digits: str) -> bool:
total = 0
for i, ch in enumerate(reversed(digits)):
d = int(ch)
if i % 2 == 1:
d *= 2
if d > 9:
d -= 9
total += d
return total % 10 == 0
log_lines = [
"2026-03-01T10:00:01Z INFO order=1234567890123456 status=created",
"2026-03-01T10:00:02Z ERROR charge failed for card 4111111111111111",
"2026-03-01T10:00:03Z INFO request_id=9f3c2ab1 amount=42.00",
]
hits = []
for n, line in enumerate(log_lines, start=1):
for m in re.finditer(r"\b\d{16}\b", line):
if luhn_ok(m.group()):
hits.append((n, m.group()[:4] + "..." + m.group()[-4:]))
print("matches:", hits)
# Idempotency replay: five requests carrying the same key must execute exactly one charge.
def run_requests(keys, use_key_check):
executed = [] # every charge actually sent to the processor
seen = set()
for key in keys:
if use_key_check and key in seen:
continue # a retry: recognised, no second charge
seen.add(key)
executed.append(42.00)
return len(executed)
same_key = ["key-001"] * 5
print("five requests, no key check:", run_requests(same_key, False), "charges")
print("five requests, same key:", run_requests(same_key, True), "charge")
print("two different keys:", run_requests(["key-001", "key-002"], True), "charges")
assert run_requests(same_key, True) == 1
Output:
matches: [(2, '4111...1111')]
five requests, no key check: 5 charges
five requests, same key: 1 charge
two different keys: 2 charges
Read-out: line 1 of the log holds a 16-digit order number that fails the checksum, so it is not reported; line 2 holds 4111111111111111, a widely used example card number that passes, so the scan reports line 2 with the middle digits masked. The exit criterion "0 matches" is therefore not met until that log statement is fixed. In the replay, the same 5 requests execute 5 charges when nothing checks the key and 1 charge when the key is checked, and two different keys still execute 2 charges, so the check removes retries without blocking real payments. If the key check were deleted, the assertion would fail with a count of 5. The in-memory set stands in for the real payment store, where the key is stored with a unique constraint.
Judgment
I would treat the sign-offs as the last item, not the first, because they are only meaningful when the evidence exists. The items I would never waive are the idempotency test, the rollback of in-flight payments, the log scan and the reconciliation match, since each protects against an error that costs real money or exposes card data. I would allow a conditional sign-off on medium-severity items, with an owner, a date and a cap on launch traffic.
Common mistakes
- Writing items as activities ("do a security review") instead of states ("zero open high findings").
- Testing only the happy path and forgetting timeouts, partial refunds and duplicates.
- Reconciling totals but not individual lines.
- Letting a late sign-off happen verbally with no link to evidence.
A fix requires changing an interface contract that 20 internal services depend on. How do you coordinate the release so consumers are not broken: compatibility approach, deprecation timeline, tracking consumer migration, and finding dependencies nobody documented?
Sample Answer
The idea in plain words
Never change a shared contract in place. Add the new shape beside the old one, move consumers over at their own pace with a deadline, measure who has moved, and remove the old shape only when the data says nobody uses it. This is the expand/contract pattern (also called parallel change): expand the interface to support both old and new, migrate callers, then contract by removing the old. With 20 consumers owned by other teams, the hard parts are not technical: they are knowing who the consumers really are, giving them a believable timeline, and keeping the deadline credible.
A contract here means the agreed shape and meaning of an API, event or schema that other services rely on. For example, the old contract returns {"id": "o-1", "price": 19.99}; the fix needs the new contract {"id": "o-1", "amount": {"value": 19.99, "currency": "USD"}}, where price becomes a nested amount.value. Changing price in place would break every consumer that reads it. A consumer is a service that calls or reads it; the provider owns it.
Step 1: a change proposal and impact analysis
Before writing code, publish a short written proposal (an RFC, a request for comments) in the shared place where all teams look. Contents:
- What changes and why the fix needs it (including whether the old behaviour is a bug that consumers now depend on; see Hyrum's Law below).
- The new contract and the compatibility approach.
- Impact analysis: the list of known consumers (from the registry), the discovered consumers (Step 4), and for each: owner, how they use it, risk level, and expected migration effort.
- For schema migrations that span services: the order of steps (expand the schema, dual-write, backfill, switch reads, stop old writes, contract) and which team does what. In a tiny example with a table of 1,000,000 orders: expand adds a new column
amount_value; dual-write makes every new or changed order write bothpriceandamount_value; backfill copiespriceintoamount_valuefor the 1,000,000 existing rows, in batches of 10,000 (100 batches) so the database is not overloaded; then readers switch toamount_value; then the old writes topricestop; and finally contract dropsprice. - Timeline, rollback plan, and who decides on exceptions.
Review it with the consumer owners, not just the provider team. Hyrum's Law says that with enough users, every observable behaviour of an interface will be depended on by somebody, whatever the documentation says, so "undocumented" is not the same as "unused".
Step 2: choose the compatibility approach
| Approach | Use when | Cost |
|---|---|---|
| Additive change in place (new optional field, tolerant readers: consumers that ignore fields they do not know) | The change can be purely additive | Lowest. Requires consumers to ignore unknown fields |
| Versioned side-by-side (v1 and v2 endpoints, or a new event type) | The meaning or shape changes | You run both for the migration period |
| Compatibility shim (a small adapter in which the provider translates new to old for stragglers) | A few consumers cannot move before the deadline | Extra code that needs its own sunset date |
| Flag per consumer (provider behaves differently by caller identity) | A bug fix changes behaviour | Per-caller state to track and clean up |
My default: versioned side-by-side, with the old version frozen (bug fixes for security only), plus a shim only if a specific consumer has a documented reason. Never make an existing field stricter in place.
Step 3: the deprecation timeline
Illustrative schedule (calendar weeks from the proposal):
| Week | Milestone |
|---|---|
| 0 | Proposal published; consumer owners named |
| 2 | New version live, old version unchanged; migration guide, test environment and example code available |
| 2 to 7 | Migration window; deprecation notices on responses from the old version; weekly burn-down (a count of consumers still to migrate, falling toward zero) shared |
| 8 | Brownout 1: the old version fails for a short, announced period to flush out missed callers |
| 10 | Brownout 2: longer; last chance to find hidden callers |
| 12 | Sunset (the date the old version is switched off): old version removed once the exit criteria below hold |
12 weeks is 84 days. The length should come from the slowest realistic consumer, including any batch job on a long cycle.
Exit criteria for removal (all required): zero calls to the old version from identified consumers for a period that covers the longest known job cycle, every consumer owner confirmed in writing, and the brownouts passed with no surprises. Check that the timeline fits: the longest known cycle is a monthly job (about 30 days), so the zero-call stretch must be at least 30 days. The migration window ends at week 7, which leaves weeks 7 to 12, or 5×7=35 days, with no calls to the old version, longer than 30 days. A monthly job that had not moved would have called the old version at some point in that stretch and been seen, and the brownouts at weeks 8 and 10 fall inside it to flush out the rest. A quarterly job would need a longer timeline or a scheduled test run. A deadline can move only by a written decision from a named person with a new date, so it does not drift.
Step 4: finding dependencies nobody documented
Use several sources, because each misses something:
- Caller identity in telemetry. Require a client identifier on every request (a header or a credential), then count distinct callers in access logs, gateway logs or the service mesh (an infrastructure layer that proxies service-to-service calls and can log each one) over a window long enough to catch monthly and quarter-end jobs.
- Distributed traces (records that follow one request across the services it touches) and network flow logs (records of which host connected to which, and when) to find callers that do not send an identifier.
- Code search across all repositories for the endpoint path, the client library, the event name or the schema field.
- Schema and event registry subscriptions, and database grants for shared tables.
- Ask the teams, and cross-check against a list of owners of batch jobs and dashboards.
- Brownouts, as above. They find the callers that logs missed or that only run rarely.
Worked example (assumed numbers): the registry lists 16 consumers. Ninety days of gateway logs show 20 distinct caller identities, so 4 consumers were undocumented. Two of the 4 are monthly reporting jobs which a 30-day window could have missed, which is why the window matters.
Step 5: track migration
One table, reviewed weekly, with a named owner for each consumer:
| Consumer | Owner | Status | Share of calls on old version | Blocker |
|---|
Two numbers drive it: consumers migrated out of 20, and share of traffic still on the old version. They can disagree: one large consumer can be 80% of traffic while being 1 of 20 services. Report both. Escalate to the consumer's manager when a consumer has made no progress for two review cycles; the escalation is about a deadline, not blame.
Steps 1 to 5 are the core for any engineer who owns or consumes a shared contract. Steps 6 and 7 add what QA owns and what a team with machine-learning or reporting consumers must also do; a backend developer can read them as the questions to ask those teams.
Step 6: QA orchestration for a coordinated expand/contract migration
When a feature needs several services to migrate together, QA owns the test matrix across old and new versions at each step:
- Consumer-driven contract tests: each consumer publishes the expectations it relies on (for example "
amount.valueis a number"); the provider's build runs them. - A version-pair matrix (provider old or new, consumer old or new) in an integration environment, covering the mixed states that will exist during the migration.
- End-to-end checks of the feature after each step, and a data check after backfills (row counts and sampled values agree between old and new).
Step 7: notifying model and data consumers
When shared feature code changes (for example, a function that computes the inputs to machine-learning models, or a shared table's column logic), the consumers are often models and dashboards, and their breakage is silent: a model keeps running but with shifted inputs. Treat them as consumers with owners (the lineage records, the record of which inputs and which job runs produced each output, tell you who they are):
- Version the shared code and publish a change log with the exact definition change.
- Publish a diff of the outputs on a sample before the switch: the distribution of the changed feature, old versus new.
- Notify every model and dashboard owner from the lineage records, and require each to validate (re-evaluate or retrain, as needed) before they move to the new version.
- Keep the old version available in parallel until each owner confirms.
Common mistakes
- Trusting the documented consumer list.
- A 30-day log window for a service with quarterly consumers.
- A deadline with no brownouts and no named person who can extend it.
- Making the migration the consumers' emergency instead of agreeing the timeline with them.
Unlock Full Question Bank
Get access to all 16 Release Management and Change Control interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.