Bird
0
0

You want to implement exactly-once processing semantics in a Kappa architecture using Kafka and Spark Structured Streaming. Which combination is correct?

hard📝 Application Q9 of 15
Hadoop - Modern Data Architecture with Hadoop

You want to implement exactly-once processing semantics in a Kappa architecture using Kafka and Spark Structured Streaming. Which combination is correct?

AEnable Kafka transactions and use checkpointing in Spark
BDisable checkpointing and rely on Kafka offsets only
CUse batch processing with Kafka for exactly-once
DUse Spark streaming without checkpointing for speed
Step-by-Step Solution
Solution:
  1. Step 1: Understand exactly-once semantics requirements

    Exactly-once requires Kafka transactions and Spark checkpointing to track progress.
  2. Step 2: Evaluate options

    Disabling checkpointing or batch processing breaks exactly-once guarantees.
  3. Final Answer:

    Enable Kafka transactions and use checkpointing in Spark -> Option A
  4. Quick Check:

    Exactly-once = Kafka transactions + Spark checkpointing [OK]
Quick Trick: Transactions + checkpointing = exactly-once [OK]
Common Mistakes:
  • Ignoring checkpointing importance
  • Thinking batch processing ensures exactly-once in Kappa
  • Disabling checkpointing for performance

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Hadoop Quizzes