Prepstellar

Data Engineering Fundamentals · Practice set 2 of 5

Batch, Streaming, and Latency: 10 practice questions

10 questions · Untimed · Free

10 free Data Engineering Fundamentals practice questions on Batch, Streaming, and Latency, with an explanation for every answer. Untimed. The full mock exam and the timed version are in the app.

Set 2 · Batch, Streaming, and Latency · 10 questions Read the lesson
  1. Question 1 of 10

    What makes a batch dataset bounded?

    1. AIt continues receiving events for as long as the source runs
    2. BIt emits each result before any later record can arrive
    3. CIt has a finite set of records for the job to process
    4. DIt requires a broker to retain an indefinite event history
    Show the answer

    A bounded input has an identifiable end, allowing the job to process the collected set and finish.

    Next → 1 / 10
  2. Question 2 of 10

    What does event time represent?

    1. AWhen the event occurred in the producing domain
    2. BWhen a consumer last updated its checkpoint directory
    3. CWhen the current batch job was originally scheduled
    4. DWhen a pipeline worker began processing the event
    Show the answer

    Event time belongs to the event itself, while processing time belongs to a stage handling that event.

    Next → 2 / 10
  3. Question 3 of 10

    What property makes a sink idempotent?

    1. AThe sink changes event time to the current processing time
    2. BThe sink discards each first delivery and stores only retries
    3. CRepeating the same input leaves the same business result
    4. DEvery retry creates a second independent business record
    Show the answer

    Idempotent handling makes uncertain retries safe because applying the same event again does not duplicate its business effect.

    Next → 3 / 10
  4. Question 4 of 10

    Why does an unbounded stream need windows for many aggregations?

    1. AA window creates a finite group from a source that keeps receiving records
    2. BA window converts event time into a permanent batch schedule
    3. CA window guarantees that records arrive in exact event-time order without late arrivals
    4. DA window removes the need to retain state for every aggregation
    Show the answer

    The full stream has no final element, so a window supplies a logical finite scope for grouping and emission.

    Next → 4 / 10
  5. Question 5 of 10

    Which statement correctly separates latency from throughput?

    1. AThroughput measures event occurrence time while latency measures source boundedness
    2. BA pipeline may process many records per second while individual records still wait in a queue
    3. CLow latency guarantees that the system handles the largest possible total volume
    4. DHigh throughput guarantees that every event has millisecond end-to-end latency under any backlog
    Show the answer

    Throughput is a rate of completed work, whereas latency is delay for an item or result; one does not determine the other.

    Next → 5 / 10
  6. Keep the ones you got wrong

    In the app, every question you miss comes back exactly when you’re about to forget it.

  7. Question 6 of 10

    What duplicate risk accompanies at-least-once delivery?

    1. AThe consumer replaces event timestamps with batch-window boundaries
    2. BA retry can apply an input whose earlier outcome was uncertain
    3. CThe broker refuses to redeliver an input after a failed consumer
    4. DThe pipeline drops every record that arrives after a watermark
    Show the answer

    At-least-once favors avoiding loss by retrying, so the sink must tolerate the possibility that the earlier attempt actually took effect.

    Next → 6 / 10
  8. Question 7 of 10

    Which tradeoff generally distinguishes streaming from scheduled batch processing?

    1. AStreaming reduces response delay but adds continuously operated state and recovery complexity
    2. BStreaming increases response delay while eliminating producer and consumer services
    3. CStreaming accepts only finite datasets but removes all monitoring needs
    4. DStreaming processes historical batches only and cannot update results incrementally
    Show the answer

    Continuous low-latency processing needs brokers, consumers, state, fault tolerance, and monitoring, while batch can wait and operate on a completed set.

    Next → 7 / 10
  9. Question 8 of 10

    A fraud service must react within seconds, traffic arrives continuously, and occasional bursts must not lose events. Which design best fits?

    1. AA streaming consumer without durable buffering because low latency prevents traffic bursts
    2. BA weekly full-history batch with high throughput and no event-time handling
    3. CA nightly batch that scans the complete day after the reaction window has passed
    4. DA monitored streaming pipeline with durable buffering, recovery state, and scalable consumers
    Show the answer

    The continuous source and response deadline require streaming, while durable buffering, state, and scaling address burst and loss constraints.

    Next → 8 / 10
  10. Question 9 of 10

    Events can arrive ten minutes late, reports must group them by when they happened, and early results may be revised. Which clock and policy should drive aggregation?

    1. AUse event-time windows with a watermark that tolerates the required lateness
    2. BUse processing-time windows and assume arrival order matches occurrence order
    3. CUse the batch schedule time and discard every timestamp carried by an event
    4. DUse checkpoint write time as the business timestamp for each reported record
    Show the answer

    Event time preserves the intended business period, while the watermark defines how long the state accepts out-of-order arrivals before finalization.

    Next → 9 / 10
  11. Question 10 of 10

    A sink writes billing records, the streaming connector may retry a micro-batch, and lost bills are less acceptable than repeated delivery attempts. Which write design is safest?

    1. AReplace each bill's event time with retry time and keep every repeated row
    2. BUse at-least-once delivery with stable billing keys and idempotent merge behavior
    3. CUse at-least-once delivery and insert a fresh billing row for every retry
    4. DDisable redelivery and accept losing any record whose first outcome is uncertain
    Show the answer

    Retrying reduces loss exposure, and stable keys plus idempotent writes keep repeated attempts from creating duplicate bills.

    Next → 10 / 10
  12. You’ve finished this set

    That’s 10 questions on Batch, Streaming, and Latency. In the app 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.