SpinTheMic
Pro

Interview practice question

Streaming from Kafka to Delta

Data Engineering · Spark · Intermediate

Design a Spark Structured Streaming job that reads events from Kafka and writes them to a Delta table.

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • readStream from Kafka with subscribe and startingOffsets.
  • Parse the value with from_json and a defined schema.
  • writeStream to Delta with a checkpoint location.
  • Choose a trigger based on latency and cost.
  • Monitor lag, batch duration and failures.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics