Data Engineering Fundamentals · Data Engineering Foundations
22 cards
Batch, Streaming, and Latency
-
Quick check
A job is handed yesterday's finished order file and asked to summarize it. What makes that input bounded?
AThe source will keep sending records for as long as the ordering service runs
That describes an unbounded source: it is the case in which the job can never see a complete set.
BA broker retains the whole event history, so no record can ever be lost in transit
Durable retention is about not losing data; it says nothing about whether the collection has an end.
CThe set of records is finite, so the job can read all of it and then finish
Right. A bounded input has an identifiable end, so the job can process the collected set and complete.
3 / 22
-
Quick check
Why do most aggregations over an unbounded stream need a window?
AA window carves a finite group out of a source that keeps receiving records
Right. The full stream has no final element, so the window supplies the finite scope that grouping and emission need.
BA window guarantees that records turn up in exact event-time order, none late
Windows decide grouping, not arrival: late and out-of-order events remain entirely possible.
CA window removes the need to keep any state while the aggregation is running
Open windows still hold their running results in state until they close and emit.
5 / 22
-
Quick check
A pipeline reports a very high records-per-second rate, yet each event is minutes old by the time its result appears. What does that show?
AThroughput measures when an event happened; latency measures if a source ends
Occurrence time and boundedness are different concepts entirely; neither is what these two measures report.
BThroughput is a rate of completed work, while latency is the delay for one item
Right. One is a rate and the other is a delay, so a high rate can coexist with a long queue.
CHigh throughput guarantees millisecond delay for every event, whatever the backlog
A backlog can grow while throughput stays high, if arrivals are faster still than completions.
8 / 22
-
Keep your progress in the app
That’s 3 of 9 quick checks. In the app they stay answered, and every lesson remembers where you left off.
-
Quick check
A fraud check must react within seconds, traffic arrives continuously, and bursts must not lose events. Which design fits, and what does it cost?
AA nightly batch over the finished day, which is cheaper and simpler to recover
A nightly job answers long after the reaction window has passed, whatever its cost advantage.
BA streaming consumer with no durable buffer, as low latency prevents any bursts
Low latency does not stop bursts from arriving; without durable buffering, a burst is exactly what loses events.
CA monitored streaming pipeline with durable buffering, recovery state, and scaling
Right. Streaming cuts the delay, and the price is continuously operated state, recovery, and monitoring.
11 / 22
-
Quick check
A sale is made at 10:00 and, after a retry, the pipeline handles it at 10:07. Which value is the event time?
A10:07, because that is the moment a worker actually processed the record
That is the processing time: the pipeline's own clock, not the event's.
B10:00, because that is when the event occurred in the producing domain
Right. Event time belongs to the event itself, while processing time belongs to the stage handling it.
CThe moment the consumer last wrote a checkpoint for the partition
A checkpoint records how far processing has progressed; it is not the business timestamp of a sale.
13 / 22
-
Quick check
Events can arrive ten minutes late, the report must group them by when they happened, and early figures may be revised. Which design fits?
AEvent-time windows with a watermark that tolerates the required lateness
Right. Event time preserves the business period, and the watermark sets how long out-of-order arrivals are accepted.
BProcessing-time windows, assuming arrival order matches when events occurred
Arrival order does not match occurrence order here: that assumption is exactly what ten-minute lateness breaks.
CThe batch schedule time, discarding the timestamp each event carries
Discarding the event's own timestamp throws away the only thing that can group records by when they happened.
15 / 22
-
Quick check
A consumer fails after doing the work but before recording its progress, under at-least-once delivery. What follows?
AThe uncertain work is retried, so an input whose effect already landed may repeat
Right. At-least-once favours avoiding loss by retrying, so the earlier attempt may already have taken effect.
BThe broker declines to redeliver it, so that record drops from the result
Refusing to redeliver is at-most-once behaviour, which trades duplicates for the risk of loss.
CThe pipeline discards every record arriving after the current watermark
Watermarks govern how long a window waits for late data; they are unrelated to redelivery after a failure.
17 / 22
-
Quick check
A billing sink may have its micro-batch retried by the connector, and a lost bill is worse than a repeated attempt. Which write design is safest?
ASwitch off redelivery and accept losing any record whose outcome was uncertain
That trades the duplicate risk for exactly the loss the requirement rules out.
BKeep at-least-once delivery and insert a fresh billing row on every single retry
Retrying without an idempotent write is what turns one bill into two.
CKeep at-least-once delivery with stable bill keys and an idempotent merge write
Right. Retrying limits loss, and stable keys with idempotent merges keep repeated attempts from duplicating a bill.
20 / 22
-
Quick check
Which pairing of choice and reason holds up?
AStreaming suits bounded history, since a finite set has to be processed as it arrives
A bounded, finished set is the batch case; nothing about it requires continuous handling.
BStreaming when delay destroys a result's value, batch when volume efficiency wins
Right. The decision follows how quickly the answer loses its worth, not the tool's reputation.
CBatch whenever duplicates are possible, since only batch writes can be made idempotent
Idempotency is a property of the sink and its keys, not something only batch jobs can have.
22 / 22
-
9 quick checks · then the test
In the app, finishing the quick checks opens this lesson’s 10-question test, and the ones you miss come back exactly when you’re about to forget them.
The whole course, on your phone
Lessons you can read, audio you can listen to on the way to work, and practice that remembers what you got wrong.