Unit 5: Spark Streaming with Apache Kafka - Subjective Questions

INT315 — Cluster Computing • Practice Questions with Detailed Answers

20 questions

1

Define Apache Kafka and explain its importance in cluster computing and real-time data processing.

2

Explain the fundamental Kafka concepts of message, topic, partition, offset, broker, producer, and consumer.

3

Describe the architecture of an Apache Kafka cluster with reference to brokers, topics, partitions, leaders, followers, and metadata management.

4

Explain Kafka partitioning and discuss how it affects scalability, ordering, and parallelism.

5

Discuss replication and fault tolerance in Apache Kafka. What are the roles of partition leaders, followers, and in-sync replicas?

6

Describe the major steps required to install and configure a basic Apache Kafka cluster.

7

Explain the important Kafka broker configuration parameters that should be considered during installation.

8

Explain the producer messaging model in Apache Kafka, including record creation, serialization, partition selection, batching, and acknowledgements.

9

Describe the Kafka consumer messaging model and explain offset management.

10

What is a Kafka consumer group? Explain partition assignment, parallel consumption, and rebalancing.

11

Distinguish between at-most-once, at-least-once, and exactly-once processing semantics in a Kafka-based pipeline.

12

Explain how Apache Kafka can be integrated with Apache Spark Structured Streaming.

13

Write and explain a Spark Structured Streaming workflow that reads records from a Kafka topic and writes processed output to another Kafka topic.

14

Compare Spark's older DStream-based Kafka integration with Spark Structured Streaming integration.

15

Describe a complete Kafka-Spark streaming pipeline from data generation to final storage and visualization.

16

What are ingestion patterns in Kafka? Explain common patterns used to bring data into a Kafka-based streaming system.

17

Compare push-based and pull-based ingestion patterns in the context of Apache Kafka.

18

Explain backpressure, consumer lag, and throughput in a Kafka-Spark pipeline. How can performance bottlenecks be addressed?

19

Explain the roles of checkpointing and offset tracking in the fault recovery of Spark Structured Streaming applications connected to Kafka.

20

Discuss the security, monitoring, and reliability practices required for a production Kafka-Spark streaming pipeline.