Noos
PT EN
RAN-DBDEA-00031
Ranvier · DBDEA

Exam DBDEA Topics: ingestion Difficulty: medium

A junior engineer tries to start an incremental read of a Kafka topic called orders on a Confluent cluster: ```python df = (spark.read .format("confluent") .option("bootstrap", "broker1:9092") .option("topic", "orders") .load()) ``` The call fails immediately. Which correction correctly starts the streaming read so that the JSON message bodies can be parsed into a Delta table?

Options (Reading Mode) Click to filter discussion →
  1. A. Use spark.readStream.format("kafka") with kafka.bootstrap.servers and subscribe set to "orders"; parse the binary columns downstream
  2. B. Keep spark.read and just change the format to "kafka"; batch reads automatically become incremental once the result is written to a Delta table
  3. C. Use spark.readStream.format("cloudFiles") with cloudFiles.format set to "kafka" so that Auto Loader discovers new messages as they arrive
  4. D. Use spark.readStream.format("jdbc") with the broker URL, because Kafka exposes a JDBC interface for external consumers
Reveal answer

Correct answer: Use spark.readStream.format("kafka") with kafka.bootstrap.servers and subscribe set to "orders"; parse the binary columns downstream

Reference: https://docs.databricks.com/aws/en/connect/streaming/kafka/

02 — The Myelin Layer · Canonical Discussion

Where the exam tries to trick you — and how those who passed solved it.

0 Passed

contributed to this question

Answer Distractor Matrix Click an option to filter or open its dissection.
✦ Consolidated Synthesis (Wiki) rev. #1 (baseline) · CC BY-SA 4.0
Start synthesis for this question →

No community synthesis consolidated for this question yet. Below is the verifiable official starting point — if you passed the exam, open the option dissection.

Official Answer (A): Use spark.readStream.format("kafka") with kafka.bootstrap.servers and subscribe set to "orders"; parse the binary columns downstream

Ranvier · DBDEA

Contribute to this Question

Your contribution builds your Orbital Sheath

Peer contributions

No public contribution yet. Be the first who passed to explain why the distractors trick candidates — your contribution builds your Orbital Sheath.