Technical Leadership and Influence Questions
Leading through technical depth and credibility: setting technical direction, making high-stakes architecture and design trade-offs, and driving strategic influence across engineering without necessarily managing people. Covers earning trust through hands-on expertise, leading complex or greenfield initiatives, and elevating a team's technical bar. The staff-plus IC leadership track.
Walk me through how you'd lead a large-scale migration of an existing system, for example a monolith to microservices, across many teams and over an extended timeline. How do you decompose it into shippable pieces, and how do you decide what gets migrated first?
Sample Answer
Direct answer
Decompose by consumer dependency, not by internal code structure: the sequencing question is which piece can be extracted with the fewest teams needing to change anything on day one, not which piece is architecturally cleanest to pull out. Before committing to a multi-year effort at all, get an explicit answer to whether incremental refactoring or wrapping the existing system buys most of the benefit for a fraction of the cost, because a full rewrite into microservices is not always the right call even when the monolith is genuinely a problem.
Structured elaboration
- Decide the type of change first. There are three real options for a system that is slowing delivery: refactor it in place, wrap it behind a stable interface (the strangler pattern: new functionality goes to new services, old functionality routes to the existing system until it is incrementally replaced), or fully replace it. Full replacement is usually the most expensive and riskiest option and should be the fallback once the first two are ruled out for a documented reason, such as the existing system's internals being unsafe to touch, not merely unpleasant to touch.
- Decompose along consumer boundaries. Map every internal and external consumer (which teams, which APIs, which downstream jobs) before deciding what extracts first. A domain with few consumers and low criticality, notifications, say, is a safer first extraction than the domain most core to the business, even if the core domain is more architecturally interesting, because the first extraction is also where you prove out the migration mechanics (deployment pipeline, dual-write pattern, rollback path) with limited blast radius.
- Keep both systems correct simultaneously during the transition, using change-data-capture (CDC, a mechanism that streams row-level database changes as they happen) to replicate data into the new service asynchronously at first, moving to a stricter consistency guarantee only where eventual consistency is genuinely unacceptable, such as financial balances, not most read-heavy views.
- Maintain an explicit contract with consumers: versioned, documented APIs, a deprecation timeline for the old path, and adapters for consumers who cannot move immediately, rather than letting the two systems drift silently out of sync.
- Gate promotion between phases on real numbers, not on calendar time: replication lag under a stated bound, error rate under a stated bound, and a minimum share of traffic or consumers actually cut over, so "next phase" is a decision, not a default.
flowchart LR
A[Map consumers and criticality] --> B[Choose refactor, wrap, or replace]
B --> C[Extract lowest-risk domain first]
C --> D[Dual-write plus CDC sync]
D --> E{Gates met: lag, errors, adoption}
E -- no --> D
E -- yes --> F[Cut traffic to new service]
F --> G[Next domain by consumer risk]
G --> H[Decommission old path]
Worked example
Picture a migration triggered by an acquisition: two companies' data platforms need to become one, with well over a hundred consuming teams and thousands of downstream API clients between them, some internal, some external. Rather than a single cutover, the first extraction is the lowest-risk shared domain, say a reference-data service used read-only by most teams, validated with change-data-capture and shadow traffic before anything routes to it live. Each subsequent domain is chosen by consumer criticality, not architectural neatness, until the last of the five original business units still reading from the legacy warehouse migrates off and it can finally be decommissioned. For at least one domain along the way, the honest answer to "should this be a service migration at all" is no: a batch reporting job moving to a streaming architecture only pays for its added operational complexity if the business genuinely needs sub-hour freshness, and where it does not, refactoring the batch job in place is the right call, not migrating it because the rest of the platform is migrating.
Trade-offs and pitfalls
Big-bang cutovers fail because the blast radius of a mistake is the whole system at once; the strangler pattern trades that for a longer timeline and the real cost of running two systems and a synchronization layer simultaneously, which itself needs monitoring and can become a permanent fixture if nobody owns retiring it. The second common failure is sequencing by architectural interest rather than consumer risk, extracting the domain engineers find most interesting first and leaving the actual blockers to team velocity for last. The third is skipping the refactor-or-wrap option entirely because a full rewrite is the more exciting project to propose, when the organization may not need to pay for one.
Design a rollback strategy for a risky cross-service deployment, for example one that touches payments and can't be uniformly rolled back because traffic is already split across old and new paths. What does the plan need beyond the technical rollback steps themselves?
Sample Answer
Direct answer
When a deployment cannot be rolled back uniformly because traffic is already split across old and new paths, the rollback plan has to be a data-and-transaction plan, not just a code-revert plan: you need a way to make in-flight and already-committed work safe under both versions simultaneously, and a clear rule for when partial rollback is the right call instead of forward-fixing.
Structured elaboration
- Segment rollback by cohort, not globally. Route traffic by user or request cohort behind a flag so the affected slice can be pulled back without touching everyone, and so rollback for a stateless read path and rollback for an in-flight payment can be different operations executed independently.
- Make every payment-affecting operation idempotent (repeating the same operation produces the same result, so a request retried or replayed across old and new code paths cannot get applied twice) and log intent before executing it. Without this, a rollback that re-routes retries to the old path can double-charge or double-refund.
- Use compensating transactions, not raw reverts, for anything already committed. Once money has moved, the deployment cannot be undone and have the transaction un-happen; you issue an offsetting transaction, a refund or a ledger adjustment, with its own audit trail, and durably record intent before the compensating action fires so a crash mid-compensation does not leave the ledger ambiguous.
- Reconcile continuously, and design for detecting silent divergence, not just hard failures. A dedicated reconciliation job comparing the old and new paths' view of the same data catches the case where both paths "succeed" but disagree, which is more dangerous than an outright error because nothing alerts on it by default.
- Freeze the affected surface during rollback, not just the deployment. New transactions above a risk threshold get held for manual review, and finance is looped in explicitly, because the code being rolled back does not mean the financial state is correct until reconciliation confirms it.
Worked example
A payments team ships a change to checkout that also touches profile data and a recommendations service, and roughly a third of traffic is already on the new path when a defect surfaces. Rolling every user back to the old path is not clean: some in-flight orders exist only in the new path's data shape. The response is cohort-scoped: new sessions get routed back to the old path immediately, which is cheap and low-risk; in-flight sessions on the new path are drained rather than force-migrated mid-transaction, using idempotency keys so a retried payment request cannot double-charge regardless of which path handles it. A reconciliation job compares the ledger state written by both paths over the rollback window and flags mismatches for manual review rather than assuming no logged errors means no problem. The honest outcome is that a handful of transactions land in a manual-review queue rather than resolving automatically, and that is the correct outcome, not a gap in the plan: automatically "fixing" an ambiguous financial state is worse than a human checking it.
Trade-offs and pitfalls
The same shape of problem shows up outside payments, and the specific mechanism has to change with it: a model that starts producing harmful output needs a fast output-level kill switch, suppress or fall back, not a slow code rollback, and a core authentication-flow change needs explicit handling of sessions and tokens issued under the new path, because rolling back the code does not retroactively fix a token a user already holds. The main pitfall across all of these is treating the code rollback as the whole plan; teams that only rehearse the deploy-revert step get surprised by the state left behind. The second is over-relying on idempotency without testing it under real concurrency and retries; idempotency keys that were implemented but never load-tested against actual retry storms are a common source of a plan that worked in the tabletop drill but not in the incident.
What belongs in a written record of a technical decision so that someone who wasn't in the room can understand the reasoning six months later? Walk through the sections you would insist on, and what you'd do differently for a decision you expect to be reversed.
Sample Answer
Direct answer
A written decision record needs enough context, alternatives, and reasoning that someone with none of the meeting-room context can reconstruct why the choice was made, not just what was chosen. For a decision I expect to be reversed, I keep the record deliberately lighter and add one thing most templates skip: an explicit trigger for when to revisit it, so it doesn't quietly calcify into a permanent decision nobody re-examines.
The sections I insist on
- Context: the problem and constraints as they were understood at the time, written for someone who wasn't there. This is the section people skip and the one that makes the record useless six months later without it.
- Decision: one clear, unambiguous statement of what was chosen.
- Alternatives considered, with why they were rejected: not just a list of options, but the specific reason each one lost, so a future reader doesn't have to independently re-litigate an option that was already ruled out for a reason still worth knowing.
- Consequences and known trade-offs: what got worse to get this benefit, stated honestly.
- Owner and reviewers: who's accountable for the decision and who signed off, since "who do I ask" is usually the first question a future reader has.
- Status and review date: whether it's active, superseded, or up for reconsideration, and when.
What changes for a decision I expect to be reversed
I keep it short (a couple hundred words, not a multi-page document) because a heavy record for a decision I already expect to revisit is wasted effort and discourages anyone from actually updating it later. I set an explicit review trigger up front, either a date or a concrete condition ("revisit once traffic on the new path exceeds X" or "revisit at next quarter's planning"), rather than leaving "temporary" as an implicit, unenforced label. And I mark the status plainly as provisional in the document itself, so a future reader doesn't mistake a stopgap for a considered, permanent architecture choice, which is exactly how temporary decisions quietly outlive their justification.
Making sure the record actually gets used
Writing the document isn't the same as the decision being understood. I circulate it to the teams it affects before treating it as final, not just after, and I link it from the code or infrastructure it governs so someone hits it while doing the work, not only while searching a wiki. For an organization with no existing practice, I'd introduce it on the highest-friction decision available (the one that generated the most Slack debate recently), because a record that resolves a real, felt disagreement earns buy-in faster than a template introduced in the abstract ever does.
Worked example
A team needed to decide whether a new internal feature flag should default to on or off during rollout, a decision genuinely likely to be revisited within weeks as usage data came in. The record was short: two to three hundred words covering the specific rollout risk, the two options (default-on with a kill switch vs. default-off with opt-in), the choice (default-off, opt-in, given the blast radius of the affected workflow), and an explicit trigger to revisit once a defined fraction of eligible users had opted in or two weeks had passed, whichever came first. That review date is what separated it from silently becoming the permanent behavior nobody remembered to reconsider.
Trade-offs and pitfalls
- Writing the context section as if the reader shares your assumptions. The point of the record is that they don't; skipping context is the single most common way these documents fail their actual purpose.
- Listing alternatives without saying why they lost. A bare list invites a future reader to re-argue an option that was already ruled out, wasting the exact effort the record was meant to save.
- No review trigger on a decision meant to be temporary. Without one, "temporary" decisions are the ones most likely to still be running in production two years later, unexamined.
- Treating the record as done once it's written. A decision record nobody reads or links to provides none of its intended value; distribution is part of the job, not an afterthought.
Your team is deciding whether to extend an existing monolith with a new capability or extract it into its own service. Walk through the checklist you would use to decide, and how you would handle a standardize-on-one-framework-org-wide versus let-teams-choose question that comes up in the same conversation.
Sample Answer
Direct answer
I'd score the extract-vs-extend question on a small set of concrete criteria (coupling, team ownership boundaries, independent-deploy need, and operational readiness) rather than defaulting to "microservices are more scalable," because most of the real cost of extraction is operational, not architectural. The standardize-vs-let-teams-choose question uses the same underlying test: how expensive is it to reverse or replace later, and is the inconsistency it prevents actually expensive.
Extend vs. extract: the checklist
- Bounded responsibility: does the new capability have a clean seam, or does it need constant, chatty access to the monolith's data?
- Deploy cadence: does it need to ship independently of the rest of the system, or is coupling to the monolith's release cycle fine?
- Operational readiness: does the team have the on-call capacity and tooling to run a new deployable, with its own monitoring, alerting, and incident path?
- Data ownership and migration cost: can the new capability own its data cleanly, or does splitting it out mean a real data migration with its own risk?
- Failure isolation value: does keeping this inside the monolith mean one bug can take down unrelated functionality?
I weight operational readiness and deploy cadence heaviest, because the two failure modes I've seen most often are extracting a service the team isn't staffed to run, and extending the monolith with something that should have shipped on its own schedule and now can't. If bounded responsibility and deploy-cadence needs are both high, I favor extraction, using an incremental cutover (the strangler pattern: route a growing slice of traffic to the new service while the old code path shrinks, rather than a big-bang rewrite) so the migration itself stays reversible. If operational readiness is the gap, I don't block extraction outright, I make closing that gap a precondition (on-call rotation, dashboards, a runbook) before we cut over.
Standardize on one framework vs. let teams choose
This is the same reversibility question aimed at organizational choice instead of a single service boundary. Standardizing has a real cost (teams lose the tool best-suited to their specific problem) and a real benefit (shared tooling, easier cross-team hiring and code review, one thing to patch and upgrade). I ask two questions: how expensive is inconsistency actually, and how expensive is switching later.
If the framework choice affects things multiple teams depend on jointly (a shared processing framework everyone's pipelines run on, a shared metrics layer everyone queries), fragmentation compounds: every new hire has to learn N different stacks, and cross-team debugging gets harder with each addition. That favors standardizing on one, with an documented exception process for a team with a genuinely different workload. If the choice is mostly local to one team's problem, I default to letting teams choose and only intervene if the fragmentation later becomes an actual, not hypothetical, cost.
The same tension shows up in adjacent forms: a single canonical metrics layer versus team-specific derived metrics is the same standardize-vs-federate question wearing a BI hat. The criteria don't change: how much cross-team cost does divergence create, and how reversible is the standardization if it turns out wrong.
Worked example
A team is deciding whether to extract a notification-sending capability from a monolith. Bounded responsibility scores high (it already has a clean interface), deploy cadence scores high (product wants to ship new notification channels weekly, independent of the monolith's release train), but operational readiness scores low (the team has never run a standalone service with its own on-call). I recommended extraction, gated on standing up basic operational readiness first: a minimal runbook, alerting on delivery failure rate, and a two-sprint pilot behind a feature flag before the old code path was removed, so if operational gaps surfaced, we could route back to the monolith path without a second migration.
Trade-offs and pitfalls
- Extracting because "microservices scale better," without checking who runs it. The most common failure is an architecturally clean extraction nobody was staffed to operate.
- Standardizing everything to avoid any inconsistency. Not all inconsistency is expensive; forcing one framework onto a team with a genuinely different workload trades a small fragmentation cost for a real productivity loss.
- Treating the extraction as one-way. Keeping the old code path alive during a phased cutover is what makes the decision cheap to reverse; deleting it early removes that safety net for no benefit.
- Skipping the pilot. A two-or-three-sprint pilot with real traffic surfaces operational gaps a design review can't.
A production incident happened because a team skipped a documented rollback step and the change stayed live, making recovery harder. As the engineer leading the response, how do you handle the recovery itself, and what do you change afterward so it doesn't happen again?
Sample Answer
Direct answer
The recovery and the prevention are two different problems: recovery is about restoring safety in real time, using compensating steps if the clean rollback opportunity has already passed, while prevention is about making the skipped step structurally hard to skip again, not about writing a stricter policy that says not to skip it.
Structured elaboration
- Stabilize first, investigate after. In the moment, the priority is getting the system back to a safe state, via compensating changes if the original rollback path is no longer clean, not by forcing a rollback that is now riskier than staying and fixing forward. Root-cause work waits until stability is restored.
- Run the review blameless but specific. Start with a plain factual timeline (what changed, who was involved, what the alerts showed, what mitigation was tried and when) before any discussion of what should have happened differently. Starting with why someone skipped the step short-circuits the investigation into individual blame before the systemic contributors are even on the table.
- Separate the latent condition from the active slip. The person skipping the step is the active trigger; the latent conditions are what made skipping possible and unnoticed, an unclear or untested runbook, no automated enforcement of the required step, no alert that would have caught the incomplete rollback on its own. Fixing only the active trigger, retraining the person or writing a sterner policy, leaves the latent conditions in place for the next person under the same pressure.
- Make the fix structural, not procedural, wherever possible. A checklist that can be silently skipped is weaker than a deployment gate that mechanically requires the step to complete before the change is considered done, or an automated alert that detects an incomplete rollback on its own rather than depending on someone noticing.
- Assign every remediation a specific owner and a verification method, not just a due date. Updating the runbook is not done until someone has actually walked through it in a rehearsal and confirmed it works under pressure, not just that the document was edited.
Worked example
A team's deploy causes a regression, the documented rollback step gets skipped under time pressure, and the change stays live, extending the outage. Recovery: rather than forcing the now-risky rollback, the on-call team makes the current state safe first, a targeted fix or a feature-flag disable that does not require replaying the skipped step, and confirms user impact has stopped before anything else happens. The review afterward establishes the timeline first, then surfaces that the rollback step was skipped not out of carelessness but because the runbook described it in a way that was easy to misread under pressure, and there was no automated check that would have caught an incomplete rollback on its own. The fixes that come out of it are structural: the deployment tool is changed so the rollback step is enforced rather than optional, the pipeline will not mark the deploy as rolled back until the step's postcondition is actually verified, and a monitor is added that specifically detects a rollback initiated but not completed, rather than relying on the on-call engineer to notice. Each fix gets an owner and is verified with an actual rehearsal, a scheduled drill that exercises the new gate, before the review is considered closed, not just marked done in a tracker.
Trade-offs and pitfalls
Blameless framing can tip into avoiding accountability entirely if it is not paired with real, tracked remediation: no blame has to mean the process gets fixed, not that nothing changes. The opposite failure is over-correcting into heavy process, an approval gate added at every step, that slows every future deploy to prevent a low-frequency failure, which teams then find ways to route around under pressure, recreating the same latent condition in a new form. The third is closing the review once the runbook is updated without verifying the automated gate actually catches the failure mode in a drill: a fix that was never rehearsed is a hypothesis, not a confirmed fix.
Unlock Full Question Bank
Get access to all 40 Technical Leadership and Influence interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.