CCDAK practice question 22 of 25

What Java library is KSQL based on?

Full set: 150 questions
Answer options
A: Kafka Streams Correct answer
B: REST Proxy
C: Schema Registry
D: Kafka Connect
Correct Answer:
A. Kafka Streams
Explanation

ksqlDB (formerly KSQL) is a streaming database built to simplify the creation of stream processing applications. It is fundamentally based on the Kafka Streams library. When a user submits a SQL query to ksqlDB, it compiles that query into a Kafka Streams topology. This topology is then executed to process data streams in real-time. By building on Kafka Streams, ksqlDB inherits its powerful stream processing capabilities, including stateful operations like aggregations and joins, as well as its elasticity, scalability, and fault tolerance. The primary role of ksqlDB is to provide a higher-level, declarative SQL interface over the programmatic Kafka Streams API.

Why Incorrect

B. REST Proxy: This component provides a RESTful API for interacting with a Kafka cluster, it is not a stream processing engine.
C. Schema Registry: This is a centralized repository for managing and validating data schemas; it does not execute processing logic.
D. Kafka Connect: This is a framework for data integration, used to stream data between Kafka and external systems, not for processing data within Kafka.

References

1. Confluent Documentation, "ksqlDB and Kafka Streams": "ksqlDB is built on Kafka Streams, a robust stream processing library that is part of Apache Kafka®. A ksqlDB application is a Kafka Streams application. When you run a SQL query in ksqlDB, ksqlDB builds a Kafka Streams application from the query."

Source: Confluent, Inc. (2023). ksqlDB and Kafka Streams. Confluent Documentation. Retrieved from https://docs.ksqldb.io/en/latest/concepts/ksqldb-and-kafka-streams/

2. Confluent Developer, "What is ksqlDB?": "ksqlDB is built on Kafka Streams—a popular library for building streaming applications on top of Kafka. It allows you to leverage the full power of Kafka Streams through a simple and familiar SQL interface."

Source: Confluent, Inc. (2023). What is ksqlDB?. Confluent Developer. Retrieved from https://developer.confluent.io/what-is-ksqldb/

3. Book: Kafka: The Definitive Guide, 2nd Edition: "ksqlDB is a streaming database built on top of Kafka Streams. It provides a SQL-like interface for querying, transforming, and analyzing data in Kafka topics."

Source: Shapira, G., Narkhede, N., & Palino, T. (2021). Kafka: The Definitive Guide (2nd ed.). O'Reilly Media, Inc. Chapter 12, "ksqlDB and Kafka Streams", Introduction.

Scroll to Top