Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

Data Pipelines with Databricks

Keep the version that actually came last at the source

Coding challenges

The pump reappears after deletion

File replay is fixed, but different files contain out-of-order changes for the same pump.

BOTIE

Stored state says P7 was deleted at sequence 9. The next file carries an active P7 at sequence 8. What has the broken machine forgotten?
The inputs we are comparing

Stored current state including tombstones

Delete follows an update

  1. pump
    P7
    seq
    8
    deleted
    false
    value
    22

An older update follows a retained deletion

  1. pump
    P7
    seq
    9
    deleted
    true
    value
    null

Arriving change records

Delete follows an update

  1. pump
    P7
    seq
    9
    deleted
    true
    value
    null
  2. pump
    P7
    seq
    5
    deleted
    false
    value
    17

An older update follows a retained deletion

  1. pump
    P7
    seq
    8
    deleted
    false
    value
    22

Entity key field

Same in both cases

pump
Result for delete follows an update
[]
Choose an explanation to test
Another entity changes while an old pump update returns

This check uses the pieces from “Preserve deletion evidence through the merge”.

BOTIE

A is already deleted at sequence 6. Ignore its incoming sequence 5 update while accepting B at sequence 2.
Stored current state including tombstones
  1. pump
    A
    seq
    6
    deleted
    true
    value
    null
Arriving change records
  1. pump
    A
    seq
    5
    deleted
    false
    value
    1
  2. pump
    B
    seq
    2
    deleted
    false
    value
    8
Entity key field
pump

Use a number, text, or an array matching the requested result. A named result uses field names, such as {"count": 2}. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.

Build a construction in the workspace above first. This case will test those pieces.

Which source guarantee would allow your system to retire an old tombstone safely?

Retain ordering evidence for as long as older messages can arrive.

The source supplies a comparable sequence within each pump’s history. This local merge retains logical deletion records; connecting a real CDC source, committing Delta transactions and fulfilling physical-deletion requirements are separate work.

Continue the courseA Quality Check Needs a Decision About Failure →