FreeExam

Analytics engineer: Incremental Models and Backfills

Original technical interview practice in ordered changes, checkpoint recovery, dependency-driven repair, consistent backfills, partition ownership, and incremental/full parity.

These prompts are original practice. They are not questions from a named employer or a live hiring loop.

  1. 1.For one entity, a source declares larger sequence numbers authoritative. Change 12 sets value 7; a delayed change 11 later delivers value 4. The target currently stores sequence 12. What should a sequence-aware current-state apply do?

    Show answer and explanation
    1. Retain sequence 12 and value 7
    2. Replace it with sequence 11 because it arrived last
    3. Delete the entity because delivery was reordered
    4. Add the values and store 11

    Answer: Retain sequence 12 and value 7

    Delivery order differs from the declared authority order. Applying a change only when its source sequence is newer prevents an older delayed update from overwriting accepted state. Equal-sequence conflicts need a separate explicit policy.

  2. 2.An entity is deleted at source sequence 20. A delayed upsert at sequence 19 arrives after its target row was physically removed. Why retain a deletion/version marker for the applicable replay horizon?

    Show answer and explanation
    1. To infer the original payload without retaining it
    2. To make every future upsert invalid regardless of sequence
    3. To reject the older upsert instead of resurrecting deleted state
    4. To count the deleted row as permanently active

    Answer: To reject the older upsert instead of resurrecting deleted state

    Without the accepted deletion position, an absent target row can look new to a stale upsert. A tombstone or equivalent version ledger preserves ordering evidence. Its retention must match the replay/late-delivery contract and allow legitimately newer activity.

  3. 3.A source sorts a stable snapshot by (updated_at,id). Rows (10,a) and (10,b) are distinct. A page ends after (10,a). What cursor predicate continues without losing b?

    Show answer and explanation
    1. updated_at>10 only
    2. id>'a' regardless of updated_at
    3. updated_at>=10 with no tie handling or deduplication
    4. updated_at>10 OR (updated_at=10 AND id>'a')

    Answer: updated_at>10 OR (updated_at=10 AND id>'a')

    The lexicographic continuation includes later timestamps and later IDs at the same timestamp. A timestamp-only strict cutoff skips tied rows. This cursor also assumes the stated stable snapshot and matching total ordering.

  4. 4.Two independent source partitions have offsets P=100 and Q=20. A pipeline stores only scalar MAX(offset)=100 and resumes both partitions above 100. What did that checkpoint lose?

    Show answer and explanation
    1. Only Q’s final row count, while resumption remains correct
    2. Only the largest offset, which was not retained
    3. Only the order in which the partition names were printed
    4. The separate progress position for Q

    Answer: The separate progress position for Q

    Offsets are comparable within their declared partition scope. A maximum across independent partitions does not encode each partition's consumed prefix. Correct resumption needs the appropriate position vector or a genuinely global ordering contract.

  5. 5.One source transaction has three related changes at positions 41,42,43. A pipeline publishes the first two and labels checkpoint 42 a complete transactional snapshot. What requirement is violated?

    Show answer and explanation
    1. Only the rule for displaying the checkpoint as a timestamp
    2. The declared source transaction boundary
    3. Only a freshness objective unrelated to transaction completeness
    4. Only the physical ordering of target columns

    Answer: The declared source transaction boundary

    If consumers require a complete source-transaction state, a publication cannot expose a partial transaction as complete. The apply/checkpoint boundary must respect the source contract or clearly expose a weaker consistency model.

  6. 6.A worker commits target changes, then crashes before saving its source checkpoint. On restart it rereads the same changes. What sink behavior is needed for a correct replay?

    Show answer and explanation
    1. The checkpoint must advance before any sink work begins
    2. Repeated application leaves the same intended logical state
    3. The source automatically deletes changes after the sink write
    4. Every reread appends another copy of each target row

    Answer: Repeated application leaves the same intended logical state

    This failure ordering creates at-least-once application attempts. Stable identities/version-aware state replacement or another suitable deduplication design must make repeated application safe. A successful sink write alone does not mean the checkpoint was recorded.

  7. 7.A worker saves source checkpoint 80, then crashes before writing changes through 80 to the target. It resumes after 80. What can happen?

    Show answer and explanation
    1. The target reconstructs all skipped payloads from the checkpoint number
    2. Acknowledged changes are skipped by recovery
    3. The changes are necessarily replayed twice
    4. The crash automatically rolls back the external checkpoint

    Answer: Acknowledged changes are skipped by recovery

    Advancing progress ahead of durable output creates a loss window. The checkpoint and corresponding target state need an appropriate atomic commit, recoverable write protocol, or equivalent mechanism that prevents claiming unapplied progress.

  8. 8.A system advertises exactly-once results because the broker delivers each message once to a worker. Target writes and source acknowledgments are separate, and either can fail. What must still be established?

    Show answer and explanation
    1. Only a unique process identifier for each delivery attempt
    2. Only the broker’s ordinary successful-delivery counter
    3. Only one worker’s normal-run latency without failures
    4. End-to-end effects and recovery across both commit boundaries

    Answer: End-to-end effects and recovery across both commit boundaries

    Delivery behavior at one component does not prove exactly-once logical effects across an external sink. Correctness depends on durable state, atomicity/idempotence, checkpointing, and replay behavior across the actual failure boundaries.

  9. 9.A source restarts its sequence at zero after an epoch change. Target state records old epoch A, sequence 900; new epoch B emits sequence 1. What comparison context is required?

    Show answer and explanation
    1. The source epoch/order contract as well as sequence
    2. Only delivery time, replacing declared source authority
    3. Only the maximum amount in each after-image
    4. Only integer sequence, so B=1 must be stale forever

    Answer: The source epoch/order contract as well as sequence

    Sequence numbers need their declared identity scope. Comparing numbers from different epochs as one uninterrupted stream can reject new state or accept stale state. Epoch transition and ordering semantics must be explicit.

  10. 10.Change position 70 corrects an event whose business event time is a year old. The pipeline reads only events with event_time later than its previous maximum. Which incremental boundary would capture this correction under a complete change-log contract?

    Show answer and explanation
    1. Only the target's maximum business event time
    2. The old business event time alone
    3. The new source change position
    4. The report's current display date

    Answer: The new source change position

    Mutation order and business occurrence time serve different purposes. A complete change log can expose a new correction to old business data. A cutoff based only on business time omits that mutation despite its new source position.

  11. 11.A delete message provides only entity key K. A daily aggregate must remove K's prior contribution, including its old day and amount. What additional state is needed?

    Show answer and explanation
    1. The prior contribution or equivalent recoverable before-state
    2. Only a count of delete messages received in this batch
    3. Only the delete message’s arrival time
    4. Only the daily aggregate’s latest grand total

    Answer: The prior contribution or equivalent recoverable before-state

    A key-only tombstone identifies what disappeared but not its old grouping or numeric contribution. Retained keyed state, before-images, or a suitable historical lookup is needed to retract or recompute affected results correctly.

  12. 12.A patch event omits phone and explicitly sets nickname to NULL. Its contract says omitted fields are unchanged. What apply behavior follows?

    Show answer and explanation
    1. Keep both fields
    2. Clear both fields
    3. Keep phone; clear nickname
    4. Clear phone; keep nickname

    Answer: Keep phone; clear nickname

    Missing and explicitly null are different patch operations under the stated contract. Treating the event as a full replacement loses unchanged fields; dropping NULL assignments fails to apply an intended clear.

  13. 13.An incremental extract contains only changed customers. Customer X does not appear in this batch. May an anti-join delete X from the target merely because it is absent?

    Show answer and explanation
    1. No; explicit delete events can never remove customers either
    2. No; absence from a change batch is not a deletion signal
    3. Yes; every extract is implicitly a complete snapshot
    4. Yes; target keys must equal each individual delta batch

    Answer: No; absence from a change batch is not a deletion signal

    A delta extract is not a full enumeration. Absence alone says nothing about unchanged entities. Delete inference needs an authoritative complete snapshot for the relevant scope or explicit change semantics.

  14. 14.A snapshot manifest declares partition P complete and authoritative, with zero rows. A replace-partition job skips all empty inputs. What stale-state risk follows?

    Show answer and explanation
    1. The empty snapshot necessarily means the source failed
    2. P is correctly empty because skipping always deletes rows
    3. Every other partition must be cleared as well
    4. Old P rows remain despite the authoritative empty replacement

    Answer: Old P rows remain despite the authoritative empty replacement

    A complete empty replacement is meaningful data. Skipping it preserves rows that should disappear. The protocol must distinguish authoritative emptiness from missing, failed, or incomplete extraction before replacing the owned partition.

  15. 15.An entity's group changes from North to South, with amount 8 unchanged. A recompute plan includes only groups present in its after-image. Which affected group is missing?

    Show answer and explanation
    1. North, whose prior contribution must be removed
    2. South, because before-images alone identify all affected groups
    3. No group, because unchanged amount means unchanged aggregation
    4. Only an unrelated group whose amount is also eight

    Answer: North, whose prior contribution must be removed

    Updates can remove an old contribution and add a new one. The affected-group set must include before- and after-image dependencies. Rebuilding only the destination leaves the old group's aggregate stale.

  16. 16.An event correction changes its business day from D1 to D3. Partitioned facts are replaced only for the new day D3. What repair scope is incomplete?

    Show answer and explanation
    1. Only D2, the date between them
    2. No partition, because the event key stayed fixed
    3. Every date before D1 by definition
    4. The old partition D1 as well as new D3

    Answer: The old partition D1 as well as new D3

    The corrected event must leave its old partition and enter its new one. An unchanged business key does not make a partition move local to the destination. Both ownership scopes must be repaired or updated atomically as appropriate.

  17. 17.A materialized model retains only Eligible rows. Source key K changes from Eligible to Ineligible. The worker filters changes to Eligible before applying its merge. What happens to K's old target row?

    Show answer and explanation
    1. It can remain stale because the exclusion transition was discarded
    2. Its key necessarily changes to NULL
    3. It is automatically removed by the input filter
    4. It must become eligible again

    Answer: It can remain stale because the exclusion transition was discarded

    A filtered model needs deletion/retraction when previously included entities leave its predicate. Filtering out the new state before deriving that action hides the change that should remove the existing row.

  18. 18.A conversion-rate table corrects the rate for currency C on day D. Facts are unchanged but translated amounts depend on that rate. Which fact keys require reconsideration?

    Show answer and explanation
    1. Only facts whose original currency was already the target currency
    2. Only the corrected row in the rate table
    3. Only facts inserted after the correction arrived
    4. Facts using C and the affected rate date/rule

    Answer: Facts using C and the affected rate date/rule

    Dependency-driven invalidation follows the rate lookup actually used by each fact. An unchanged fact row may have changed derived output. The affected set can be narrower than a full rebuild while still including all dependent historical facts.

  19. 19.A classification correction changes the valid interval [10,20) for customer K. Facts use customer and event-time as-of attribution. Which facts are candidates for reattribution?

    Show answer and explanation
    1. Every customer’s facts merely ingested during the correction run
    2. K's facts with ingestion_time in [10,20)
    3. K's facts with event_time at or after 20
    4. K's facts with event_time in [10,20)

    Answer: K's facts with event_time in [10,20)

    The dependency uses the customer's valid-time interval, not the correction's arrival time. Historical fact rows can change without new fact mutations. The exact candidate set follows the key and interval semantics of the join.

  20. 20.An inner-joined model materializes orders with an active supplier. A supplier changes Active→Inactive while its orders do not change. A job processes only changed order keys. What output can remain wrong?

    Show answer and explanation
    1. Only the supplier table’s display label
    2. Only orders for suppliers whose status stayed active
    3. Previously materialized orders for that supplier
    4. Only newly inserted supplier keys

    Answer: Previously materialized orders for that supplier

    A derived join depends on both inputs. A right-side predicate change can remove output rows for unchanged left-side keys. Invalidation must propagate through that relationship rather than watch only the fact table.

  21. 21.A left-joined model materializes unmatched readings with region=NULL. A previously missing sensor dimension row arrives. No readings change. What dependency action is needed?

    Show answer and explanation
    1. Delete every reading whose derived region is NULL
    2. Leave all old reading results unchanged because their source rows did not change
    3. Assign the new region to all NULL-region readings regardless of key
    4. Recompute readings whose sensor key can now match

    Answer: Recompute readings whose sensor key can now match

    A new right-side match changes derived values on existing left rows. The affected lookup key provides a bounded repair set. NULL output alone is not enough to identify which readings depend on this new dimension row.

  22. 22.Group G had two source rows; both are deleted. A recomputation query groups remaining rows and therefore emits no G row. The sink only upserts returned groups. What remains unresolved?

    Show answer and explanation
    1. Treating an absent recompute row as a successful upsert of zero
    2. Appending another zero-free copy of all remaining groups
    3. Removing the obsolete target group G
    4. Retaining G’s previous total as the current authoritative value

    Answer: Removing the obsolete target group G

    No output row is not automatically a sink delete. Affected-group replacement must explicitly remove obsolete results or replace the complete owned group scope, including groups that become empty.

  23. 23.A retained group count is 7. One existing row moves out of the group and two distinct new rows enter. What count delta and new count follow?

    Show answer and explanation
    1. +2; new count 9
    2. +1; new count 8
    3. −1; new count 6
    4. +3; new count 10

    Answer: +1; new count 8

    The before-contribution removal is −1 and the two insertions contribute +2. Net delta is +1, producing eight. Counting only positive after-images misses retractions.

  24. 24.A current-state amount changes from 4 to 9 while staying in the same aggregate group. Its old contribution is already included in total 20. What updated total follows?

    Show answer and explanation
    1. 25
    2. 29
    3. 33
    4. 16

    Answer: 25

    The change contributes 9−4=5, so the new total is 20+5=25. Adding the after-value alone would count the old contribution twice.

  25. 25.A delta table contains signed changes +3 and −3 for the same group. A job runs DISTINCT on just the group key before applying amounts, retaining an arbitrary row. What property does it lose?

    Show answer and explanation
    1. The full net contribution, which is zero here
    2. Only input order, since any one delta equals the group’s net change
    3. Only the distinction between two numerically identical contributions
    4. Only the need to select a numeric storage type

    Answer: The full net contribution, which is zero here

    Multiple legitimate changes can share a grouping key. Deduplication must use the intended change identity/version, not collapse all contributions by destination key. The two supplied deltas cancel only when both are retained.

  26. 26.A group's mean state is sum=20, non-NULL count=4. An existing NULL becomes 8. What updated state and mean follow?

    Show answer and explanation
    1. sum=28, count=4, mean=7
    2. sum=8, count=1, mean=8
    3. sum=28, count=5, mean=5.6
    4. sum=20, count=5, mean=4

    Answer: sum=28, count=5, mean=5.6

    The old NULL contributed neither value nor included count. Its new non-NULL value adds eight and one. Updating sum without the matching count changes the mean's population semantics.

  27. 27.A distinct-audience table keeps reference counts per person. Person U is supported by three retained events; one event is deleted. What audience-state update is correct?

    Show answer and explanation
    1. Remove U immediately when one event is deleted
    2. Reduce U's support to two and keep U present
    3. Keep support at three because the final distinct count is unchanged
    4. Increase U's support to four and keep U present

    Answer: Reduce U's support to two and keep U present

    A deletion changes support even when the final distinct cardinality stays constant. Maintaining that support is necessary for later deletions to detect when the last contributing event disappears.

  28. 28.A materialized semi-join includes an order if at least one valid approval exists. An order has two valid approvals; one is revoked. What output membership follows?

    Show answer and explanation
    1. Keep the order because one valid approval remains
    2. Keep it only if the revoked approval arrived first
    3. Remove the order because any revocation negates existence
    4. Duplicate the order because two approvals once existed

    Answer: Keep the order because one valid approval remains

    Existence semantics depend on whether any qualifying match remains. Correct incremental maintenance must account for remaining support, rather than treat every right-side deletion as removal of the left-side result.

  29. 29.A daily output at day d sums input days d−2 through d inclusive. An input correction occurs at day 10. Which output days can it affect?

    Show answer and explanation
    1. Every day before 10
    2. 8,9,10
    3. 10,11,12
    4. 10 only

    Answer: 10,11,12

    Day ten belongs to a three-day trailing window ending at ten, eleven, or twelve. Dependency direction matters: a correction propagates to later window endpoints, not merely to the input's own partition.

  30. 30.An output is a cumulative sum through each day. A day-10 input is corrected. There are outputs through day 30. Which existing output days can change?

    Show answer and explanation
    1. 10 through 30
    2. Only day 10
    3. Only days 1 through 9
    4. Only day 30

    Answer: 10 through 30

    Every cumulative result ending on or after the changed input includes that contribution. A fixed short lookback is insufficient unless it covers the entire affected suffix or a suitable correction-state method updates it.

  31. 31.An ordered series has events at times 1 and 10. Each row stores the preceding event time via LAG. A late event at time 5 is inserted. Which existing row's stored LAG changes?

    Show answer and explanation
    1. The row at time 10
    2. Both existing rows must have LAG=5
    3. The row at time 1
    4. Neither existing row

    Answer: The row at time 10

    After insertion, time ten's predecessor is five instead of one. Time one's predecessor is unchanged. Incremental repair must include affected neighboring rows, not only the newly inserted row.

  32. 32.A materialized leaderboard stores ordinal positions for scores 90,80,70. A new score 85 is inserted. Which old scores' positions change?

    Show answer and explanation
    1. 80 and 70
    2. 90 only
    3. All old positions remain unchanged
    4. 85 only, because it is the only new row

    Answer: 80 and 70

    The inserted score takes position two. Old scores eighty and seventy move to positions three and four, while ninety remains first. Ranking dependencies can affect unchanged source rows.

  33. 33.Sessions split when consecutive event gaps exceed 30 minutes. Existing events at 0 and 50 form two sessions. A late event at 25 arrives. What repair is required?

    Show answer and explanation
    1. Create a third session without revisiting either old session
    2. Delete the event at 25 because it changes session membership
    3. Reconcile both prior sessions into one under this rule
    4. Keep two sessions because their old IDs are immutable business truth

    Answer: Reconcile both prior sessions into one under this rule

    The new consecutive gaps are twenty-five and twenty-five, so the combined sequence is one session. Late bridging events can change membership and identifiers beyond one inserted row; output repair must handle the old session results too.

  34. 34.A correction splits customer K's dimension interval [0,30) into [0,10) and [10,30), changing the attribute only in the latter. Facts occur at times 5,10,29,30. Which facts lie in the changed interval?

    Show answer and explanation
    1. Those at 29 and 30
    2. Those at 5 and 10
    3. Those at 10 and 29
    4. All four facts

    Answer: Those at 10 and 29

    The interval is inclusive at ten and exclusive at thirty. Candidate fact reattribution follows that exact valid-time range and customer key. Boundary handling must agree between dependency discovery and the recomputed as-of join.

  35. 35.A hierarchy materialization stores each employee's top-level division. A manager moves to another division while descendant employee rows stay unchanged. What invalidation scope can be needed?

    Show answer and explanation
    1. The manager and affected descendants
    2. Only descendants with new source rows
    3. Only the former division’s top-level record
    4. Only the directly changed manager

    Answer: The manager and affected descendants

    Derived ancestor attributes propagate through descendant dependencies. Unchanged leaf rows may have changed outputs. The affected closure follows the hierarchy relation and the exact derived fields rather than just the directly mutated record.

  36. 36.A transform graph has A→B, B→C, A→D, and X→Y, where arrows point to consumers. A changes and all listed consumers materialize their inputs. Which downstream models require consideration?

    Show answer and explanation
    1. B,C,D
    2. B,D only
    3. Every model including unrelated X and Y
    4. C,Y only

    Answer: B,C,D

    Invalidation follows transitive consumer dependencies, so C is affected through B. The unrelated branch has no stated dependency. Actual rebuild strategy may vary, but direct-child selection alone misses necessary downstream work.

  37. 37.An incremental recursive computation repeatedly derives new reachable keys until none are added. A worker stops after two rounds solely to save time. What correctness condition has it omitted?

    Show answer and explanation
    1. Whether the required fixed point was reached
    2. Only whether two workers used the same round numbers
    3. Only the numeric representation of the round counter
    4. Only the order in which already discovered keys are printed

    Answer: Whether the required fixed point was reached

    A bounded round count is not a completeness argument unless the problem supplies a matching bound. This monotone finite-key reachability procedure should stop when its worklist is empty or another justified completion condition holds.

  38. 38.A pipeline reprocesses the last seven business days. The source permits corrections to records of any age, with no complete change feed. Can seven-day replay alone establish parity with a full recomputation?

    Show answer and explanation
    1. Yes; the maximum event date summarizes all historical mutations
    2. Yes; unchanged target row count proves all older payloads are current
    3. Yes; any fixed recent-time window covers arbitrary-age updates
    4. No; valid older corrections can lie outside that range

    Answer: No; valid older corrections can lie outside that range

    A replay window needs a source/change dependency bound or another detection and repair mechanism. No finite recent-business-time window covers arbitrary historical mutations under the stated contract.

  39. 39.A contract bounds delivery delay to two days after each mutation, but mutations may affect arbitrarily old business events. Which replay boundary is justified by that delivery bound alone?

    Show answer and explanation
    1. A two-day business-event-time bound on every correction
    2. A two-day maximum age of every affected fact
    3. Equality of business time, mutation time, and delivery time
    4. A mutation/delivery-time bound, not an event-age bound

    Answer: A mutation/delivery-time bound, not an event-age bound

    Bounded transport delay and bounded age of corrected business data are different statements. A recent mutation may refer to a very old event. Extraction and repair scopes must use the applicable clock and dependency semantics.

  40. 40.A saved log checkpoint is 50, but the source has already discarded all log entries through 80. The pipeline needs every change after 50. What recovery issue exists?

    Show answer and explanation
    1. A valid empty interval because the source no longer retains it
    2. A missing change-log interval requiring an authoritative recovery path
    3. Only excess old logs that can be ignored safely
    4. A complete prefix through 80 despite unapplied missing changes

    Answer: A missing change-log interval requiring an authoritative recovery path

    Retention loss breaks the promised contiguous replay. A consistent rebootstrap, retained archive, or equivalent authoritative recovery is needed; silently advancing the cursor hides potentially unapplied changes.

  41. 41.Changes 101 and 103 are applied, but change 102 is unresolved. The source requires a contiguous acknowledged prefix. What maximum safe checkpoint follows if 100 was previously complete?

    Show answer and explanation
    1. 103
    2. 1000
    3. 101
    4. 102

    Answer: 101

    Applied maximum and complete prefix are different. The unresolved gap prevents acknowledgment through 102 or 103. The later applied change may need replay-safe handling while the checkpoint remains at the completed prefix.

  42. 42.A source supports a snapshot tied to change-log position S. A bootstrap reads that snapshot and then replays committed changes strictly after S. What makes the handoff defensible?

    Show answer and explanation
    1. Only the fact that extraction finished before capture
    2. The snapshot and log share the same consistency boundary
    3. Only the worker’s clock time at snapshot completion
    4. Only equal row counts before and after snapshot extraction

    Answer: The snapshot and log share the same consistency boundary

    A coordinated snapshot position defines which effects are already represented and where replay begins. An arbitrary wall-clock cutoff does not necessarily partition source transactions without gaps or duplicates.

  43. 43.A bootstrap first reads an uncoordinated current snapshot, then starts capturing changes. A row changes between those actions. What can be missing?

    Show answer and explanation
    1. Only an extra copy of every unchanged snapshot row
    2. Only a duplicate output filename
    3. The intervening mutation from both retained inputs
    4. No change, because sequential jobs imply a source transaction

    Answer: The intervening mutation from both retained inputs

    A mutation can happen after its row was read but before change capture begins. A coordinated source snapshot/log boundary or another proven reconciliation protocol is needed to close that gap.

  44. 44.A backfill candidate for key K represents source version 10. Live processing has already applied version 12. A backfill worker blindly upserts its candidate into the live target. What can it do?

    Show answer and explanation
    1. Advance the target automatically to version 13
    2. Prove that the live worker processed the wrong key
    3. Overwrite newer state with the older version 10
    4. Leave version 12 unchanged merely because it is newer

    Answer: Overwrite newer state with the older version 10

    A slower historical computation can race with newer live output. Version checks, isolated candidates with a correct catch-up/cutover protocol, or another ordering mechanism must prevent stale backfill writes from overwriting accepted newer state.

  45. 45.A candidate starts from a snapshot at position 100 and is caught up through 150. At cutover, the required source boundary is 170. What replay interval still needs application for that boundary?

    Show answer and explanation
    1. Positions greater than 150 through 170 inclusive
    2. Positions greater than 170 only
    3. Positions greater than 100 through 150 only
    4. No interval because the original snapshot was consistent

    Answer: Positions greater than 150 through 170 inclusive

    Consistency at the initial snapshot does not make the candidate current forever. Its catch-up position must cover the selected cutover boundary, with source transaction rules and any concurrent-writer coordination respected.

  46. 46.A backfill has a backlog of 100 changes. It applies 30 changes/minute while the source creates 40/minute indefinitely. Can this fixed-capacity catch-up reach the moving live head?

    Show answer and explanation
    1. Yes; after 100/30 minutes regardless of new arrivals
    2. Yes; any positive apply rate eventually reaches the head
    3. No; backlog grows by 10 changes/minute
    4. No; the backlog must decrease by 70 per minute

    Answer: No; backlog grows by 10 changes/minute

    Catch-up needs capacity relative to arrival rate, not only a finite initial backlog. With the stated rates, arrivals exceed service. A bounded cutover, more capacity, or another valid handoff strategy is needed.

  47. 47.A source transaction starts at wall-clock 10, commits at 30, and receives commit position 200. A capture job filters transactions by start_time>20. What can it omit from a committed-change replay?

    Show answer and explanation
    1. Only transactions committed before wall-clock 10
    2. The transaction committed at position 200
    3. No transaction, because start order and commit order are identical
    4. Only rolled-back transactions, with no committed-data risk

    Answer: The transaction committed at position 200

    Long-running transactions can begin before a time cutoff and commit afterward. A committed-change protocol must use the source's actual transaction/order boundary rather than assume start timestamps identify the required commit suffix.

  48. 48.A candidate is validated with transformation version V1, then published after its logic is silently changed to V2 without recomputation. What provenance is inconsistent?

    Show answer and explanation
    1. Only the candidate’s human-readable label
    2. Only the order in which source files are stored
    3. Only the worker’s output directory name
    4. The validated input/logic context and the published output claim

    Answer: The validated input/logic context and the published output claim

    A candidate represents particular inputs and transformation semantics. Validation evidence for V1 does not establish correctness of a V2 claim. Freeze or explicitly version the relevant context and recompute/revalidate when it changes.

  49. 49.A source transaction moves 5 units from account A to B. An extractor reads A before the transaction and B after it, then treats both as one coherent snapshot. What anomaly is possible?

    Show answer and explanation
    1. Only a different physical order of the same coherent rows
    2. Counting the transferred units twice
    3. A guarantee of an unchanged combined balance
    4. A requirement that both accounts have identical keys

    Answer: Counting the transferred units twice

    The read can combine A's pre-transfer amount with B's post-transfer amount. Independent extracts need a source-consistent boundary when cross-table invariants require one coherent state.

  50. 50.A backfill reads uncommitted source rows and publishes them. The source transaction later rolls back. What can the target contain?

    Show answer and explanation
    1. Only committed changes guaranteed to appear in later replay
    2. Only harmless duplicate copies of committed rows
    3. A transactionally consistent newer source snapshot
    4. Effects that never became committed source state

    Answer: Effects that never became committed source state

    Reading uncommitted data can expose dirty state. Publication does not make those source effects real. The extraction isolation and snapshot/log protocol must match the correctness contract.

  51. 51.Partition P currently has rows a,b,c. A delta extract contains only corrected row a. A job overwrites the entire partition with that delta. What happens?

    Show answer and explanation
    1. Unchanged b and c are lost
    2. The overwrite reconstructs b and c from their absent keys
    3. Only a is updated while b and c remain automatically
    4. The partition must become empty

    Answer: Unchanged b and c are lost

    Partition replacement requires a complete authoritative result for the owned partition, not just changed rows. A delta can drive targeted maintenance or identify partitions for full reconstruction, but cannot stand in for their complete contents.

  52. 52.A job deletes a live partition and inserts its replacement in two separately visible commits. Readers query between them. What can they observe?

    Show answer and explanation
    1. An atomic snapshot guaranteed by the job's shared name
    2. Only the new complete partition
    3. Only the old complete partition
    4. A transient missing partition

    Answer: A transient missing partition

    Correct individual statements do not make a multi-statement replacement atomic. A transaction, versioned publication, or suitable table-swap mechanism is needed if readers require the old or new complete result.

  53. 53.A partition key is local business date. The timezone rule for one site is corrected, moving some events across midnight. What scope needs repair?

    Show answer and explanation
    1. Both old and newly assigned date partitions for affected events
    2. Only partitions holding newly created event IDs
    3. Only the latest ingestion-date partition
    4. No partition because the raw UTC instants stayed fixed

    Answer: Both old and newly assigned date partitions for affected events

    Partition ownership depends on the transformation as well as raw timestamps. A timezone rule change can move existing events between business dates. Repair needs old and new scope, including removal of obsolete placement.

  54. 54.A target has rows whose partition key is NULL. A replacement job runs WHERE partition_key = NULL to delete them in ordinary SQL. What does that predicate fail to select?

    Show answer and explanation
    1. The NULL-keyed rows it intended to replace
    2. Exactly one arbitrary NULL-keyed row
    3. Every non-NULL row only
    4. All target rows because NULL matches every value

    Answer: The NULL-keyed rows it intended to replace

    Ordinary equality to NULL evaluates to UNKNOWN, which WHERE does not retain. A NULL-aware partition predicate or an explicit normalized ownership scheme is needed to replace that scope correctly.

  55. 55.A merge uses ordinary equality on a nullable business key. A source row and target row both have key NULL. Under ordinary SQL equality, can that comparison identify them as a match?

    Show answer and explanation
    1. Yes; a merge always overrides SQL equality semantics
    2. No; NULL=NULL is UNKNOWN rather than TRUE
    3. Yes; all NULL keys form one guaranteed business entity
    4. No; all non-NULL keys also fail equality

    Answer: No; NULL=NULL is UNKNOWN rather than TRUE

    The match predicate must implement the intended identity contract. Required keys, an explicit null-safe comparison, or another justified scheme can be appropriate; merely declaring a merge key does not make NULL an equal stable identity.

  56. 56.Workers A and B both read aggregate total 10. A computes +2 and writes 12; B computes +3 from its earlier read and writes 13. What total and problem follow?

    Show answer and explanation
    1. 13 instead of 15; a lost update
    2. 12 instead of 13; subtraction of B's delta
    3. 25; both complete totals are necessarily appended
    4. 15 automatically; last write always adds both deltas

    Answer: 13 instead of 15; a lost update

    Read-modify-write without suitable coordination can overwrite a concurrent contribution. Atomic delta application, correct version checks/retry, or another appropriate serialization scheme must preserve both accepted updates.

  57. 57.A worker reads row version 5 and prepares version 6. Another worker commits version 7 first. What does a conditional update requiring current_version=5 achieve?

    Show answer and explanation
    1. Rewinds version 7 to the worker’s earlier version 5
    2. Accepts version 6 solely because the worker started first
    3. Merges all field conflicts without an explicit rule
    4. Rejects the stale write rather than overwrite version 7

    Answer: Rejects the stale write rather than overwrite version 7

    The condition detects that the assumed base state changed. Rejection requires a valid retry/recompute/conflict policy; it does not itself establish which candidate is authoritative or automatically merge their effects.

  58. 58.Worker A's lease expires and B acquires a new lease, but A keeps running after a pause. Why can a monotonically increasing fencing token be needed at the write boundary?

    Show answer and explanation
    1. To reject writes from the superseded lease holder
    2. To replace all business keys with worker IDs
    3. To physically stop every paused worker at lease expiry
    4. To make conflicting writes commute without checking ownership

    Answer: To reject writes from the superseded lease holder

    Lease expiry does not physically stop a paused worker from resuming. A resource that checks the current fencing generation can reject stale ownership. A lease timestamp alone is insufficient if old writers can still mutate the target.

  59. 59.A target update and its checkpoint use the same database transaction, which commits atomically. What failure window does that coupling remove?

    Show answer and explanation
    1. Any source retention gap before extraction begins
    2. Any incorrect transformation of a valid input row
    3. Any omission in the extracted source interval
    4. A committed checkpoint without its corresponding target update

    Answer: A committed checkpoint without its corresponding target update

    Atomic coupling prevents those two writes from becoming separately committed states. It does not prove extraction completeness, correct logic, or end-to-end properties outside that transaction's scope.

  60. 60.Two complete candidate releases were built from active generation 8. One publishes generation 9. What should a compare-and-swap publication using expected generation 8 do for the other candidate?

    Show answer and explanation
    1. Reject its stale activation attempt
    2. Silently overwrite generation 9
    3. Rename its old base to 9 without reviewing dependencies
    4. Publish both as the same immutable release

    Answer: Reject its stale activation attempt

    The expected generation protects the observed base from concurrent replacement. A stale candidate must be reconciled/rebuilt or otherwise reviewed against the new state; changing only its label does not incorporate intervening work.

  61. 61.After a stale candidate fails publication, an operator changes only its base-generation field to the newest number. Its contents still omit another worker's accepted additions. What problem remains?

    Show answer and explanation
    1. The new generation number automatically merges omitted additions
    2. Only the spelling of its release identifier
    3. The candidate still represents obsolete content
    4. Only the candidate’s original creation time needs changing

    Answer: The candidate still represents obsolete content

    Concurrency metadata is evidence about a computation's actual base, not a way to upgrade old data by relabeling it. Restaging/reconciliation must preserve relevant accepted changes and revalidate the resulting candidate.

  62. 62.An incremental job writes a table and sends a notification through a separate nontransactional service. It retries after an unknown notification outcome. What table-level idempotence alone does not establish?

    Show answer and explanation
    1. The number of rows in the retained table
    2. Stable keyed table contents under replay
    3. The ability to reread source changes
    4. Exactly-once notification effects

    Answer: Exactly-once notification effects

    External effects have their own failure and deduplication boundaries. Table replacement can be idempotent while notifications repeat or are lost. An appropriate outbox/deduplication or recovery protocol needs a separately justified effect contract.

  63. 63.A cleanup worker identifies an unused candidate. Before deletion, another process makes that candidate active. What guard is needed when reclaiming its data?

    Show answer and explanation
    1. Assume publication cannot reference any candidate after cleanup starts
    2. Use only the candidate’s age at the first scan
    3. Use only the initial list of unused candidate IDs
    4. Recheck/protect active references under a race-safe retention protocol

    Answer: Recheck/protect active references under a race-safe retention protocol

    Liveness can change after a cleanup snapshot. Reclamation must not delete payloads needed by an active or otherwise retained release. Reference protection, grace periods with valid reader assumptions, or another coordinated mechanism is necessary.

  64. 64.A rollback restores target data through source position 100 but leaves the consumer checkpoint at 150. The consumer resumes strictly after its checkpoint. What recovery inconsistency results?

    Show answer and explanation
    1. The target advances to 150 because its label changed
    2. Those changes are automatically replayed despite the checkpoint
    3. Only duplicate data, with no possibility of omissions
    4. Changes 101 through 150 may remain absent from the restored target

    Answer: Changes 101 through 150 may remain absent from the restored target

    Data and progress must describe compatible recovery state. Restoring an older target without adjusting or otherwise reconciling replay position can skip changes that the restored snapshot no longer contains.

  65. 65.New logic changes the interpretation of an existing field for all years. An operator deploys it but processes only tomorrow's new rows, then claims historical parity under the new definition. What is missing?

    Show answer and explanation
    1. Only a new display name on the old materialization
    2. Only a larger checkpoint number
    3. A guarantee that code deployment rewrites stored rows automatically
    4. Recomputation or a proven repair of affected historical output

    Answer: Recomputation or a proven repair of affected historical output

    Changing a transformation does not retroactively change persisted output. Dependency analysis must identify history affected by the semantic change, followed by a justified repair/rebuild and validation under the new definition.

  66. 66.A backfill receipt records only finished_at and row count. The source snapshot, code version, and mapping configuration can all change later. What evidence is missing for reproducibility?

    Show answer and explanation
    1. Only a shorter human-readable job name
    2. Only one additional check of the same final row count
    3. Only a sorted copy of the same completion log
    4. The actual input and transformation/configuration versions

    Answer: The actual input and transformation/configuration versions

    Reproducing a result requires the relevant retained inputs and semantics, including external mappings/configuration. A completion timestamp and count do not uniquely identify the computation or prove equal payloads.

  67. 67.A model derives age using the current clock during each replay. The same source checkpoint is processed on different days. What must be specified for reproducible replay?

    Show answer and explanation
    1. A guarantee that equal source inputs always produce equal ages
    2. Only a stable source row ID
    3. Only the worker's retry count
    4. A defined evaluation-time context or explicitly time-varying contract

    Answer: A defined evaluation-time context or explicitly time-varying contract

    The clock is an additional input. Reproducibility needs a fixed/as-of evaluation context, or the model must explicitly promise time-varying results and maintain them accordingly. A source checkpoint alone does not freeze wall-clock-dependent semantics.

  68. 68.A backfill samples rows using a seeded random generator in scan order. Parallelism changes that scan order on replay. Why can the selected business keys differ despite the same seed?

    Show answer and explanation
    1. A fixed seed preserves business-key membership under every scan order
    2. A seed defines row identity independently of the sampling procedure
    3. Random draws attach to different rows when order changes
    4. Parallel workers necessarily mutate the source keys

    Answer: Random draws attach to different rows when order changes

    A seed fixes the pseudorandom draw sequence, not its assignment to arbitrarily ordered rows. A stable key-based sampling rule or a defined stable ordering can supply the needed repeatability under the intended sampling contract.

  69. 69.A pipeline's only maintenance operation is append. The source may update or delete previously emitted entities. What source/output property would be needed to justify append-only maintenance without another repair mechanism?

    Show answer and explanation
    1. All entity keys use one common physical storage type
    2. Previously emitted contributions remain immutable and valid
    3. The maximum event timestamp increases on every run
    4. Batches remain smaller than the retained target table

    Answer: Previously emitted contributions remain immutable and valid

    Append-only maintenance cannot retract or replace arbitrary old effects. Its correctness needs an append-compatible contract or another explicit correction mechanism. File format and batch size do not establish immutability.

  70. 70.Complete snapshots at the same defined grain have old keys {a,b} and new keys {b,c}. Counts are both two. What key-level reconciliation follows?

    Show answer and explanation
    1. Delete b and retain a
    2. Delete a, retain/update b, insert c
    3. No changes because the counts match
    4. Insert a and delete c

    Answer: Delete a, retain/update b, insert c

    Equal counts do not establish identity equality. The old-minus-new set identifies a, and new-minus-old identifies c. Payload updates for shared b require their own comparison under the snapshot contract.

  71. 71.A backfill compares only COUNT and SUM(value). Old values are [1,4,7], new values [2,3,7], with distinct stable row keys. What can those checks miss?

    Show answer and explanation
    1. Only the physical scan order of identical keyed payloads
    2. Changed row payloads despite count 3 and sum 12 on both sides
    3. A difference in count, although both contain three values
    4. A difference in sum, although both totals are twelve

    Answer: Changed row payloads despite count 3 and sum 12 on both sides

    Aggregate invariants are useful but incomplete equality checks. Different keyed payloads can share both a count and sum. Validation should discriminate the expected row-level transformation and relevant grouping scopes.

  72. 72.A full comparison joins reference and candidate by key, then selects WHERE ref.value<>candidate.value. A shared key has ref.value=NULL and candidate.value=5 in ordinary SQL. What mismatch can be missed?

    Show answer and explanation
    1. No difference, because NULL equals 5
    2. The NULL-to-5 payload change
    3. Only a change from 5 to 6
    4. Every non-NULL difference

    Answer: The NULL-to-5 payload change

    The inequality evaluates to UNKNOWN when one operand is NULL, so WHERE omits it. Exact parity requires a suitable null-safe comparison and explicit missing-key handling, not ordinary inequality alone.

  73. 73.A day-10 correction affects trailing-window outputs on days 10,11,12. Validation checks only output keys equal to changed source day 10. What scope is missing?

    Show answer and explanation
    1. Only the physical target table name
    2. Only unrelated input days before the changed day
    3. The other affected output days 11 and 12
    4. No scope, because every output key must equal an input change key

    Answer: The other affected output days 11 and 12

    Validation must cover the derived affected-output set. Input-change scope can differ from output repair scope for windows, joins, rankings, and other dependencies. Checking only directly changed source keys can miss stale derived rows.

  74. 74.Incremental and full-reference jobs use the same faulty helper that drops boundary timestamp 10. Their outputs match exactly. What does their agreement alone fail to establish?

    Show answer and explanation
    1. The ability to compare keyed results
    2. That the two output payloads agree
    3. Correctness of the shared boundary rule
    4. That both jobs executed the shared helper

    Answer: Correctness of the shared boundary rule

    A differential oracle can share defects with the implementation. Independent boundary fixtures and separately justified expectations are needed to detect common-mode errors, especially for the dependency/extraction rules being tested.

  75. 75.A candidate represents source position 100. A reference full rebuild reads live source through 120 while updates continue. Their outputs differ. What must be aligned before attributing differences to incremental logic?

    Show answer and explanation
    1. Only the physical row display order
    2. Only the number of execution threads regardless of input state
    3. The authoritative input snapshot/change boundary and semantics
    4. Only the worker machine’s hostname

    Answer: The authoritative input snapshot/change boundary and semantics

    Different valid input states can produce different outputs under correct logic. A meaningful incremental-versus-full comparison needs compatible source state, transformation version, configuration, and evaluation context.

  76. 76.Two extraction chunks each pass a local uniqueness check on entity key. Key K occurs once in each chunk, but the output contract requires one current row per entity. What test scope is still needed?

    Show answer and explanation
    1. Uniqueness across the combined output
    2. Only another check inside the first chunk
    3. Only equality of the two chunk row counts
    4. Only different filenames for the duplicate keys’ chunks

    Answer: Uniqueness across the combined output

    Local uniqueness does not imply global uniqueness when key domains overlap. Partitioning by a proven disjoint key ownership scheme or validating/merging the complete output must enforce the actual contracted grain.

  77. 77.A live, uncoordinated keyset scan has already passed key m. A new row with key b is inserted, and no change feed or rescan captures it. What can the scan miss?

    Show answer and explanation
    1. Only keys greater than m
    2. The newly inserted row b behind its cursor
    3. Only a duplicate copy of the previously read key m
    4. No row, because keyset continuation provides snapshot isolation

    Answer: The newly inserted row b behind its cursor

    A cursor controls continuation but does not freeze a changing source. Keyset pagination avoids some offset issues yet still needs a snapshot/change handoff or another completeness protocol for concurrent mutations behind the cursor.

  78. 78.Rows ordered a,b,c,d are read with OFFSET paging. Page one returns a,b. Before page two, a is deleted. The next query uses OFFSET 2. What row can be skipped?

    Show answer and explanation
    1. c
    2. d
    3. b
    4. a

    Answer: c

    The remaining order is b,c,d. OFFSET 2 now starts at d, so c is missed. A stable snapshot or suitable cursor/protocol is needed; offset numbers alone do not preserve row identity across mutations.

  79. 79.A backfill covers [0,30) using half-open chunks [0,10), [10,20), [20,30). Which chunk owns an event at time 10?

    Show answer and explanation
    1. Only [0,10)
    2. Both the first and second chunks
    3. Only [10,20)
    4. No chunk

    Answer: Only [10,20)

    Consistent half-open boundaries include the lower bound and exclude the upper bound. Timestamp ten is included once in the second chunk. Extraction, replacement, and resume manifests must use the same ownership convention.

  80. 80.In a supplied timezone calendar, one local day lasts 23 elapsed hours. A job defines local-day partitions by adding exactly 24 elapsed hours to each prior boundary. What assumption fails?

    Show answer and explanation
    1. Half-open intervals may have unequal elapsed lengths
    2. Adjacent calendar partitions share a boundary instant
    3. UTC timestamps can be mapped to local calendar dates
    4. Local calendar days always have fixed 24-hour duration

    Answer: Local calendar days always have fixed 24-hour duration

    Calendar arithmetic and elapsed-duration arithmetic are different. The supplied calendar has a shorter day, so boundaries need the intended timezone/calendar rule rather than a fixed 24-hour increment.

  81. 81.Ten backfill partitions have equal row counts, but one has a many-match join that dominates work. Scheduling assumes equal row count means equal cost. What can result?

    Show answer and explanation
    1. Proof that the source has duplicate business keys
    2. Proof that the joining operation is semantically incorrect
    3. Equal completion time implied solely by equal input counts
    4. A skewed critical path despite equal input counts

    Answer: A skewed critical path despite equal input counts

    Cost can depend on join expansion, data distribution, state, and downstream work rather than input count alone. Partition sizing and scheduling should account for observed workload while preserving correctness and ownership boundaries.

  82. 82.A consumer needs retained source logs while a backfill runs. Its projected catch-up time exceeds the remaining retention window. What constraint needs resolution?

    Show answer and explanation
    1. A guarantee that slow consumers extend retention automatically
    2. Replay data may expire before recovery can consume it
    3. A valid reason to acknowledge unprocessed changes as complete
    4. Only the output filename convention

    Answer: Replay data may expire before recovery can consume it

    Capacity and retention jointly constrain a recoverable handoff. More retention, retained capture, sufficient catch-up capacity, or another authoritative bootstrap plan is needed before the required change interval disappears.

  83. 83.A scheduler stores chunk status Started before work. The worker crashes before committing its replacement. Resume logic treats every Started chunk as complete. What evidence should completion depend on?

    Show answer and explanation
    1. Only an attempt counter greater than zero
    2. Only the worker’s start timestamp
    3. A durable successful-output/commit receipt under the job protocol
    4. Only the chunk ID’s presence in the queue

    Answer: A durable successful-output/commit receipt under the job protocol

    An attempt record proves work began, not that its output committed. Resume state must distinguish pending/in-progress attempts from durable completion and handle uncertain outcomes through a recoverable, replay-safe protocol.

  84. 84.A chunk commits target rows and its completion marker in one database transaction. Its final statement fails, and the transaction is rolled back. What should recovery conclude from the absence of both committed rows and marker?

    Show answer and explanation
    1. The completion marker should be invented without rerunning the chunk
    2. The chunk has no committed effect and remains eligible for a replay-safe retry
    3. The chunk is complete because its first statement executed
    4. The failed final statement commits all preceding statements automatically

    Answer: The chunk has no committed effect and remains eligible for a replay-safe retry

    Atomic rollback removes the transaction’s effects, including its completion marker. Recovery should use durable outcome evidence rather than individual statement attempts. A retry still needs the job’s ordinary replay and ownership safeguards.

  85. 85.Two messages claim the same authoritative (epoch,sequence,key) but contain different after-values. A consumer normally treats equal versions as harmless duplicates. What issue must it surface?

    Show answer and explanation
    1. A harmless retry because equal versions prove equal payloads
    2. A newer change determined by the larger after-value
    3. A conflicting duplicate under the source identity contract
    4. A valid overwrite determined solely by later network arrival

    Answer: A conflicting duplicate under the source identity contract

    An identity/version contract should define one accepted change or an explicit conflict rule. Equal positions with different payloads are not automatically equivalent retries. Detecting/quarantining the inconsistency avoids arbitrary state selected by delivery order.

  86. 86.A retry assigns target IDs with a fresh random generator even though the source business keys are unchanged. The sink appends by those new IDs. Why can repeated replay duplicate logical entities?

    Show answer and explanation
    1. The source keys become different merely because the target IDs changed
    2. Every append is idempotent if IDs are unique physically
    3. Target identity changes on each attempt
    4. Random IDs automatically deduplicate the same business entity

    Answer: Target identity changes on each attempt

    Physical uniqueness of each newly generated ID does not preserve logical identity across attempts. A stable source-to-target identity mapping or appropriate business-key/version enforcement is needed for the intended replay semantics.

  87. 87.Archived payload version V1 lacks field x. New payload version V2 includes x, but no historical value or valid default is known. A replay fills all V1 x values with zero and calls them recovered truth. What is unsupported?

    Show answer and explanation
    1. That payload version metadata can select different parsers
    2. That the invented default reconstructs missing historical facts
    3. That zero is representable in the new column
    4. That the old payload lacks x

    Answer: That the invented default reconstructs missing historical facts

    Schema compatibility does not create missing historical information. A documented unknown/default meaning, authoritative enrichment, or revised claim is needed. Parser upgrades should respect the original payload version and available evidence.

  88. 88.Archived amounts are integer cents in V1 and integer whole currency units in V2. A replay parses both as whole units using the newest schema. A V1 value 125 is read as 125 instead of 1.25. What context is missing?

    Show answer and explanation
    1. Only the newest column display name
    2. The payload's original unit/schema version
    3. A guarantee that integer storage fixes business units
    4. Only an additional decimal place on 125

    Answer: The payload's original unit/schema version

    Historical interpretation depends on the source schema and units at emission. A current parser can silently rescale old values incorrectly. Version-aware decoding must preserve meaning before transformations or cross-version comparisons.

  89. 89.A deduplication key is entity_id. The source sends distinct legitimate updates for the same entity at sequences 5 and 6. A job keeps the first entity occurrence forever. What valid information does it discard?

    Show answer and explanation
    1. Only changes to different entity IDs
    2. Only duplicate transport deliveries of sequence 5
    3. Only physically identical copies of the first payload
    4. Later changes to the same entity

    Answer: Later changes to the same entity

    Entity identity and change identity serve different purposes. Deduplicating an immutable change stream should distinguish retries of one change from new mutations of an existing entity. Current-state maintenance must honor accepted version ordering.

  90. 90.A batch changes status A→B→C for one entity. The output contract requires only current final status at the batch boundary, and no intermediate-state metrics. When can retaining just the authoritative final after-state be sufficient?

    Show answer and explanation
    1. Whenever any output also needs every transition counted
    2. When ordering, deletions, and all needed final-state dependencies are preserved
    3. Whenever arrival order replaces source order for every entity
    4. Whenever only positive after-values are retained regardless of deletes

    Answer: When ordering, deletions, and all needed final-state dependencies are preserved

    Coalescing can be valid for a final-state output under a suitable contract. It must not be generalized to history or path-dependent measures, and it must retain enough old/final dependency information to repair derived results correctly.

  91. 91.An entity changes A→B→A within a batch. A final-state table has no net status change. A separate metric counts transitions into B. What does dropping the batch because final state is unchanged lose?

    Show answer and explanation
    1. A guarantee that the B state never occurred
    2. One qualifying transition into B
    3. No information for either output contract
    4. Two final-state A rows by definition

    Answer: One qualifying transition into B

    Final-state equality does not imply an empty event history. Transition-count and other path-dependent outputs need the relevant ordered mutations even when a current-state materialization would end where it started.

  92. 92.A source permits a business-key rename oldK→newK. The consumer receives both names but upserts only newK. What target action can be missing?

    Show answer and explanation
    1. Removing or reconciling the oldK identity under the rename contract
    2. Replacing the numeric source checkpoint with oldK
    3. Deleting all keys that sort before newK
    4. Keeping both keys active as two entities under every rename

    Answer: Removing or reconciling the oldK identity under the rename contract

    A key change can move identity rather than create an additional entity. Maintenance needs the declared rename semantics and both old/new scopes, including dependent references. Upserting only the new name can leave an obsolete duplicate behind.

  93. 93.A join initially has no matching rows for key K. One R row and one S row for K are both inserted in the same batch. Maintenance computes only ΔR⋈oldS plus oldR⋈ΔS. What term is missing?

    Show answer and explanation
    1. Only oldR⋈oldS, which was empty
    2. ΔR⋈ΔS, producing the new match
    3. No term; simultaneous new rows cannot match
    4. A second copy of ΔR⋈oldS

    Answer: ΔR⋈ΔS, producing the new match

    Both new rows are absent from the old inputs, so neither supplied term sees their pair. Join-delta formulas must account for cross-delta interactions under the chosen batch/order semantics, without double-counting them.

  94. 94.For insert-only join changes, a job computes ΔR⋈newS plus newR⋈ΔS. Each side adds one matching row K and old inputs are empty. What happens to the new pair?

    Show answer and explanation
    1. It produces no result because old inputs are empty
    2. It is counted once automatically
    3. It is counted twice unless the overlap is corrected
    4. It is omitted from both terms

    Answer: It is counted twice unless the overlap is corrected

    Each term includes the same new/new pair. One consistent expansion is ΔR⋈oldS + oldR⋈ΔS + ΔR⋈ΔS. Mixing new-state terms needs an explicit correction to avoid double-counting shared cross-delta effects.

  95. 95.A reference output contains two identical-valued rows; a candidate contains one. Validation uses ordinary set-style EXCEPT in both directions on those values. What can it miss?

    Show answer and explanation
    1. Every difference between unequal non-NULL values
    2. A row-multiplicity mismatch
    3. A requirement that all SQL outputs are sets without duplicates
    4. A difference in the distinct value sets

    Answer: A row-multiplicity mismatch

    Set difference removes duplicate multiplicity. Bag-sensitive parity needs keys, grouped multiplicity comparison, or another appropriate method. Matching distinct rows does not prove the contracted row counts or grain match.

  96. 96.A change ledger enforces a unique immutable change ID and records accepted effects in the same transaction. The exact same change is replayed. What condition makes ignoring its second ledger insert defensible?

    Show answer and explanation
    1. Only that both attempts affect the same group key
    2. Only that the retry arrived later than the first attempt
    3. That any different payload sharing the ID is automatically equivalent
    4. The existing ID proves the same accepted payload/effect under the protocol

    Answer: The existing ID proves the same accepted payload/effect under the protocol

    A stable change identity can support replay deduplication when payload consistency and atomic effect recording are enforced. A uniqueness conflict alone is not enough if identities collide, payloads conflict, or the original effect never committed.

  97. 97.A sink applies UPDATE total=total+5 to a unique group row. It retries the same source change twice without a change ledger or version guard. Starting from 10, what can result?

    Show answer and explanation
    1. 20 instead of the intended 15
    2. 5 because the delta replaces the total
    3. 15 because a unique group row makes addition idempotent
    4. 10 because all retries are ignored automatically

    Answer: 20 instead of the intended 15

    Uniqueness of the aggregate row does not deduplicate its updates. The same accepted change adds five twice. Replay safety needs effect identity, suitable state replacement/versioning, or another valid protocol beyond the row's primary key.

  98. 98.An input range uses source positions (100,200], but a receipt records only business dates, which can contain many later corrections. Why is that insufficient to resume this exact range?

    Show answer and explanation
    1. A date range reconstructs the exact original mutation interval
    2. Business dates totally order every source commit
    3. The receipt does not identify the claimed change-position boundary
    4. Only changing field names makes the receipt resumable

    Answer: The receipt does not identify the claimed change-position boundary

    Business-time grouping and source mutation positions are different coordinates. A recoverable range receipt should identify its actual source boundary, input snapshot/version, output ownership, and committed status under the protocol.

  99. 99.A backfill must preserve an existing model while testing new logic. A candidate table is built separately but a shared mutable mapping table changes mid-run. What isolation gap remains?

    Show answer and explanation
    1. The candidate's dependent mapping input is not frozen or versioned
    2. Separate output destinations automatically freeze all shared inputs
    3. Only the candidate table’s physical name
    4. Only the number of rows in the final mapping table

    Answer: The candidate's dependent mapping input is not frozen or versioned

    Output isolation does not automatically provide a consistent input/configuration snapshot. Reproducible candidates need the relevant dependencies captured or versioned, not merely a new destination table name.

  100. 100.A published model's key set and grand total match a full reference, but two regional contributions are swapped. What validation scope would discriminate this error?

    Show answer and explanation
    1. Only counting the number of output columns
    2. Only confirming that both processes exit successfully
    3. Keyed payload and appropriate regional/group-level reconciliation
    4. Only repeating the same grand-total check

    Answer: Keyed payload and appropriate regional/group-level reconciliation

    Coarse invariants can hide misattribution. Validation should reflect the model's grain, dimensions, values, and relevant downstream claims. Matching totals does not establish that each contribution belongs to the right entity or group.

  101. 101.A team claims incremental/full parity for every supported change. Tests cover insertions only, while the source also supports updates, deletes, key moves, and out-of-order replay. What evidence is still needed?

    Show answer and explanation
    1. Only more insertion examples with different numbers
    2. Those mutation/recovery cases and their affected-output semantics
    3. A rule that successful inserts imply all other operations are correct
    4. Only a faster execution of the existing insertion tests

    Answer: Those mutation/recovery cases and their affected-output semantics

    Different change types exercise different retractions, dependencies, ordering, and failure paths. A broad parity claim needs discriminating fixtures and invariants for the supported contract, rather than extrapolating from append-only success.