How would you resume a paginated ingestion job safely after a crash?
Understand the idea, explain it in your own words and use the rubric to find your next learning gap.
The idea behind the question
Fetching pages and processing records are different progress boundaries. Resume state must describe completed work without skipping failures or duplicating harmful effects.
A process stores the next-page cursor before all records from the current page have been indexed, then crashes.
A practical way to learn it
Draw the fetch, index and checkpoint sequence. Inject a crash after each step and state which records are replayed.
Open online notepadThe related tool opens separately; your interview answer stays here. Written practice is self-guided, without automatic code grading.
Build an explanation you understand
- State what the concept does in plain language.
- Apply it to the example and make your assumptions explicit.
- Explain a trade-off, failure case and how you would test it.
- Distinguish your actual experience from a proposed approach.
How would you explain it?
Single-question timers reset on refresh. Full mock sessions can resume from this browser.
Strengthen your explanation
Compare reasoning, not identical wording. Reference answers describe a possible approach; replace hypothetical statements with truthful details from your own work.
One way to answer
I would use stable source IDs and record which source version has been successfully processed. I would persist a checkpoint only after the corresponding work is durable, with idempotent upserts or deduplication to make replay safe. I would inspect whether cursors expire and whether the source can change while paging. A retry should not silently skip a failed record because its page was already marked complete. I would keep a bounded error queue and test crashes between fetch, processing and checkpoint writes. A cursor alone does not establish exactly-once processing.
What a strong explanation should cover
Tick only the points your own answer addresses. This is self-assessment, not AI scoring.
0 / 3 points self-reportedWatch out for
- Advancing a cursor before the page's records have been durably handled.
Now go one level deeper
- What if a cursor expires overnight?
- What if an updated document reuses the same source ID?
Further reading
Further-reading links support learning; the reference is Sukoaa-authored, not an official employer answer key.