You are on page 1of 5

In Kafka, the communication between the clients and servers is done with -----

Protocol.

TCP--correct

Based on the classification of messages Kafka categorizes messages into

Topics--correct

Which one functions as a messaging system?

Kafka--correct

The _ is one of the brokers and is responsible for maintaining the leader/follower
relationship for all the partitions.

Controller--correct

How are messages stored in topic partitions ?

immutable ordered sequence--correct

Which service monitors Cluster membership ?

Zookeeper--correct

Each record in the partition is assigned a sequential id called as the _.

offset--correct

Kafka is run as a cluster comprised of one or more servers each of which is


called :

Broker--correct

A _ is a structured commit log to which records are appended continually.

topic partition--correct

Which of the following is incorrect ?

Kafka cluster retains all published messages.--correct

Which is the node responsible for all reads and writes for the given partition ?

Leader--correct

__ is the subset of the replicas list that is currently alive and caught-up to the
leader.

In-sync replicas--correct

Which concept of Kafka helps scale processing and multi-subscription.

Consumer Group--correct

Kafka also provides better ordering guarantees than a traditional messaging system
using .
topic partitions.--correct

A configurable can be set to retain all published records in Kafka irrespective of


whether they have been consumed or not.

retention period--correct

If multiple consumers subscribed for a topic and each belong to different Consumer
Group, the messages of the topic will be consumed by all consumers. This is:

Publish-Subscribe model--correct

If only one 'Consumer Group' subscribed for a topic and there are lots of consumers
in this Consumer Group, messages of the topic will be evenly load balanced between
consumers of the consumer group. This is :

Queuing model--correct

When a consumer subscribe to a topic, kafka provides the current offset of the
topic to :

Both Consumer and Zookeeper ensemble--correct

If the retention policy is set to two days, then for the two days after a record is
published, it is available for consumption, after which it will be discarded to
free up space.

True--correct

Kafka supports both 'queuing model' and 'publish-subscribe' model?

True--correct

Which processor sends any received records from its upstream processors to a
specified Kafka topic ?

Sink--correct

Source Processor does not have any downstream processors.

False--correct

A _ in Kafka reads streams of data from input topics, processes this data and
produces continual streams of data to output topics.

Stream processor--correct

Graph of stream processors (nodes) that are connected by streams (edges) is


called ?

Processor Topology--correct

A is a logical abstraction for stream processing code.


]
Processor Topology--correct

Kafka Streams supports exactly-once processing semantics.


True--correct

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

True

Kafka Streams supports both stateful and stateless operations.

False--correct

Which method of Kafka Consumer class is used to manually assign a list of


partitions to a consumer

assign()--correct

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

Consumer

The allows an application to publish a stream of records to one or more Kafka


topics.

Streams API

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

Topic

For stream processing, Kafka provides which of the following ?

Streams API

What is the default retention period for a Kafka topic ?

7 days--correct

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

Zookeeper

Banking industry can leverage Kafka Streams for detecting fraudulent transactions.

True--correct

Kafka Streams employs one-record-at-a-time processing to achieve millisecond


processing latency

True

Kafka can be used for which of the following :


All the options--correct

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

Streams API

The only metadata retained on a per-consumer basis is the offset or position of


that consumer in the log.

True

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

Leaders

The _ allows an application to act as a stream processor, consuming an input stream


from one or more topics and producing an output stream to one or more output
topics.

Producer API

Kafka provides better ordering guarantees than a traditional messaging system using
topic partitions.

True

Which one below is not a parameter to the Kafka cluster.ProducerRecord class


constructor ?

Offset--correct

Producers can also send messages to a partition of their choice.

true

It is possible to delete a Kafka topic.

True--correct

A hashing-based Partitioner takes ___ and generates a hash to locate which


partition the message should go

Partition Key

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

AdminClient API--correct

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

Connector API--correct

Which is the correct order of steps to create a simple messaging system in Kafka?
i.Step1. Start the ZooKeeper server. ii.Step 2: Start the kafka server. iii.Step3:
Create a topic. iv.Step 4:Run the producer and send some messages. v. Step 5: Start
the consumer and see the messages send from producer.

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

Consumer API--correct

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

True---correct

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

Kafka Server

Each message published to a topic is delivered to _ within each subscribing


consumer group.

one consumer instance--correct

In a cluster Kafka can work without Zookeeper

False--correct

The only metadata retained on a per-consumer basis is the position of the consumer
in the log, called :

Offset

You might also like