Apache Kafka Quiz

Apache Kafka Quiz Question and Answers

The __________ allows an application to subscribe to one or more topics and process the stream of records produced to them.

  • Streams API
  • Consumer API
  • Producer API
  • Connector API

_______ are servers that replicate a partition log regardless of their role as leader or follower?

  • Followers
  • Leaders
  • Replicas
  • ISRs

Kafka stores metadata of basic information about Topics, Brokers and consumer offsets in ________

  • Zookeeper ensemble
  • Broker
  • Consumer
  • Kafka Cluster

"isr" is the set of "in-sync" replicas.

  • False
  • True

Each __________ acts as a leader for some of its partitions and a follower for others so load is well balanced within the cluster.

  • Topic
  • Kafka Server
  • Producer
  • Consumer

A _________ subscribes to a topic and consumes published messages by pulling data from the brokers.

  • Consumer group
  • Follower
  • Producer
  • Consumer

_________ keeps track of topics, its partitions and replicas, who is the preferred leader and what configuration overrides are set for each topic.

  • Leader
  • Zookeeper
  • Master
  • None

Kafka Streams has no external dependencies on systems other than Apache Kafka itself.

  • False
  • True

Point out the wrong statement :

  • Messages are persisted on disk and replicated within the cluster to prevent data loss.
  • Kafka is designed to allow a single cluster to serve as the central data backbone for a large organization.
  • A single Kafka broker can handle hundreds of megabytes of reads and writes per second from thousands of clients.
  • The Kafka cluster does not retain all published messages.

Banking industry can leverage Kafka Streams for detecting fraudulent transactions.

  • True
  • False

The _________ allows building and running reusable producers or consumers that connect Kafka topics to existing applications or data systems.

  • Consumer API
  • Producer API
  • Streams API
  • Connector API

Sink processor does not have any upstream processors.

  • True
  • False

A consumer cannot reset to an older offset to reprocess data from the past or skip ahead to the most recent record and start consuming from now.

  • False
  • True

In a cluster Kafka can work without Zookeeper?

  • False
  • True

Kafka only provides a total order over records within a partition, not between different partitions in a topic.

  • False
  • True

What is the default retention period for a Kafka topic ?

  • 7 hours
  • 1 hour
  • 1 day
  • 7 days

Which API supports managing and inspecting topics, brokers and other kafka objects?

  • Connect API
  • Producer API
  • AdminClient API
  • Streams API

A _____ is the primary abstraction in Kafka Streams, and represents an unbounded and continuously updating data set.

  • Stream
  • Stream Processor
  • Topic partition
  • Topic

Each record consists of a key, a value, and a ________.

  • data
  • header
  • timestamp
  • map

Which messaging semantics do Kafka use to handle failure to any broker in cluster?

  • retries
  • acks
  • key.serializer
  • bootstrap.servers