Skip to content
LakeBench
ProblemsCommunityPricing
Sign inStart practicing
Back
  1. System Design

System design interview

Schema Evolution Without Downtime

MediumPro55 min read

Evolve schemas safely: registry compatibility, explicit columns (no SELECT *), Delta mergeSchema.

system-designschema-evolutionschema-registrycompatibility

Interview room

Design schema evolution with registry compatibility, explicit columns (no SELECT *), and deliberate lake evolution without downtime.

Basics

Schemas are producer/consumer contracts. Compatibility modes: backward, forward, full. Expand/contract for safe change. SELECT * couples you to upstream whims. Blind mergeSchema can accept junk columns.

Prompt

Compatible producer changes, tolerant consumers, storage evolution, CI gates, multi-consumer reality.

Good

Registry mode named; expand/contract; dual fields for renames; explicit projections; support windows.

Clarify/scope

Format choice, approvers, consumer count, lake format. Out of scope: rewriting company to one stack Monday.

Scoring lens: Schema Evolution Without Downtime

Interviewers reward incident-first teaching, a clear control loop, and named owners. Tool logos without that loop score poorly.

Weak vs strong answers on Schema Evolution Without Downtime

Weak: list products. Strong: tell the failure story, define the mechanism, draw the path, state rollout and monitors.

Scope control

Say what is out of scope for v1. Come back only if follow-ups demand it. This is a seniority signal for Schema Evolution Without Downtime.

Clarifying then committing

Ask a few high-use questions about SLAs, owners, and scale, then sketch. Endless questions without a diagram look evasive.

Compatibility matrix on the board

Add optional field: usually OK. Add required without default: break. In-place rename: break. Delete while readers exist: break. Write this matrix before debating tools.

Dual-write operations

During rename windows, monitor both fields for null rates and mismatch rates. Alert if amount_usd is null while amt is present after the dual-write deploy. Migration is a data problem, not only a schema problem.

Consumer EOL playbook

Publish EOL date, list catalog consumers, page lagging owners weekly, then remove. Support windows without inventory are theater.

Interview framing detail 1

For lb-sd-26, spend the first minutes making the problem concrete: who gets hurt when this fails, what SLA is implied, and what is explicitly out of scope. Then teach the prerequisite concept before proposing boxes. A candidate who names vendors first usually loses the plot. Write two clarifying questions on the board and answer them with assumptions if the interviewer shrugs. Keep the first diagram small enough to redraw when a follow-up changes a constraint.

Interview framing detail 2

For lb-sd-26, spend the first minutes making the problem concrete: who gets hurt when this fails, what SLA is implied, and what is explicitly out of scope. Then teach the prerequisite concept before proposing boxes. A candidate who names vendors first usually loses the plot. Write two clarifying questions on the board and answer them with assumptions if the interviewer shrugs. Keep the first diagram small enough to redraw when a follow-up changes a constraint.

Interview framing detail 3

For lb-sd-26, spend the first minutes making the problem concrete: who gets hurt when this fails, what SLA is implied, and what is explicitly out of scope. Then teach the prerequisite concept before proposing boxes. A candidate who names vendors first usually loses the plot. Write two clarifying questions on the board and answer them with assumptions if the interviewer shrugs. Keep the first diagram small enough to redraw when a follow-up changes a constraint.

Interview framing detail 4

For lb-sd-26, spend the first minutes making the problem concrete: who gets hurt when this fails, what SLA is implied, and what is explicitly out of scope. Then teach the prerequisite concept before proposing boxes. A candidate who names vendors first usually loses the plot. Write two clarifying questions on the board and answer them with assumptions if the interviewer shrugs. Keep the first diagram small enough to redraw when a follow-up changes a constraint.

Interview framing detail 5

For lb-sd-26, spend the first minutes making the problem concrete: who gets hurt when this fails, what SLA is implied, and what is explicitly out of scope. Then teach the prerequisite concept before proposing boxes. A candidate who names vendors first usually loses the plot. Write two clarifying questions on the board and answer them with assumptions if the interviewer shrugs. Keep the first diagram small enough to redraw when a follow-up changes a constraint.