Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

What is the default retention period for a Kafka topic ?

Answer»

What is the DEFAULT retention period for a Kafka topic ?
CHOOSE the correct option from below list
(1)1 day
(2)7 days
(3)7 hours
(4)1 hour

Answer:-(2)7 days

2.

Kafka cluster can enforce quota on requests to control the broker resources used by clients.

Answer» KAFKA cluster can enforce QUOTA on REQUESTS to control the broker resources used by clients.
Choose the CORRECT option from below list
(1)False
(2)True

Answer:-(2)True
3.

Based on the classification of messages Kafka categorizes messages into

Answer» BASED on the classification of messages KAFKA categorizes messages into
Choose the correct option from below list
(1)Messages
(2)Topics
(3)PARTITIONS
(4)Chunks

Answer:-(2)Topics
4.

Kafka Streams supports exactly-once processing semantics.

Answer» KAFKA Streams SUPPORTS exactly-once processing semantics.
Choose the correct option from below LIST
(1)False
(2)True

Answer:-(2)True
5.

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

Answer»

When a consumer subscribe to a topic, KAFKA provides the current offset of the topic to :
Choose the CORRECT OPTION from below list
(1)Consumer
(2)None of the options
(3)Both Consumer and ZOOKEEPER ensemble
(4)Zookeeper ensemble

Answer:-(3)Both Consumer and Zookeeper ensemble

6.

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

Answer»

__________ is the SUBSET of the REPLICAS list that is currently alive and caught-up to the LEADER.
Choose the CORRECT option from below list
(1)In-sync replicas
(2)Leader
(3)Replicas
(4)Follower

Answer:-(1)In-sync replicas

7.

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

Answer»

A _______ is a structured commit LOG to which records are appended continually.
Choose the correct option from below list
(1)producer
(2)log FILE
(3)TOPIC
(4)topic partition

Answer:-(4)topic partition

8.

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

Answer»

Each record in the partition is assigned a SEQUENTIAL ID called as the _______.
Choose the correct option from below list
(1)offset
(2)primary key
(3)None of the OPTIONS
(4)row key

Answer:-(1)offset

9.

In Kafka, the communication between the clients and servers is done with _______ Protocol.

Answer»

In Kafka, the communication between the clients and servers is done with _______ Protocol.
Choose the correct OPTION from below LIST
(1)IP
(2)HTTP
(3)TCP
(4)SMTP

Answer:-(3)TCP

10.

For stream processing, Kafka provides which of the following ?

Answer»

For stream processing, KAFKA provides which of the FOLLOWING ?
Choose the correct option from below list
(1)STREAMS API
(2)Spark Streaming
(3)All the OPTIONS
(4)Streaming API

Answer:-(1)Streams API

11.

The _________ is one of the brokers and is responsible for maintaining the leader/follower relationship for all the part

Answer»

The _________ is ONE of the brokers and is responsible for maintaining the leader/follower relationship for all the partitions.
Choose the correct OPTION from below list
(1)Master
(2)Controller
(3)None
(4)MAIN server

Answer:-(2)Controller

12.

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 on

Answer»

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.
Choose the correct OPTION from below list
(1)Streams API
(2)Consumer API
(3)CONNECTOR API
(4)Producer API

Answer:-(1)Streams API

13.

Kafka streams does not support interactive queries to unify the worlds of streams and databases.

Answer» KAFKA STREAMS does not support interactive queries to unify the WORLDS of streams and databases.
Choose the correct option from below list
(1)TRUE
(2)False

Answer:-(2)False
14.

Which configuration in Producer API controls the criteria under which requests are considered complete?

Answer»

Which configuration in Producer API CONTROLS the criteria under which requests are considered COMPLETE?
Choose the correct option from below list
(1)key.serializer
(2)bootstrap.servers
(3)RETRIES
(4)acks

Answer:-(4)acks

15.

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

Answer» KAFKA is RUN as a cluster comprised of one or more servers each of which is called
Choose the CORRECT OPTION from below LIST
(1)Leader
(2)Replica
(3)Broker
(4)Main server

Answer:-(3)Broker
16.

Which one functions as a messaging system?

Answer»

Which one functions as a messaging SYSTEM?
Choose the CORRECT option from below LIST
(1)Solr
(2)CASSANDRA
(3)Kafka
(4)Oozie

Answer:-(3)Kafka

17.

Source Processor does not have any downstream processors.

Answer»

Source PROCESSOR does not have any downstream processors.
Choose the correct OPTION from below LIST
(1)True
(2)False

Answer:-(2)False

18.

Banking industry can leverage Kafka Streams for detecting fraudulent transactions.

Answer»

Banking industry can LEVERAGE Kafka Streams for DETECTING fraudulent transactions.
Choose the CORRECT option from below list
(1)True
(2)False

Answer:-(1)True

19.

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

Answer»

A _________ in Kafka reads streams of DATA from input TOPICS, PROCESSES this data and PRODUCES continual streams of data to output topics.
Choose the correct option from below list
(1)Stream processor
(2)Consumer
(3)Consumer group
(4)Producer

Answer:-(1)Stream processor

20.

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

Answer» KAFKA supports both 'queuing MODEL' and 'publish-subscribe' model?
Choose the correct option from below LIST
(1)False
(2)TRUE

Answer:-(2)True
21.

If the retention policy is set to two days, then for the two days after a record is published, it is available for consu

Answer»

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.
Choose the correct OPTION from below list
(1)True
(2)False

Answer:-(1)True

22.

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

Answer»

Which is the node responsible for all reads and writes for the GIVEN partition ?
Choose the correct OPTION from below LIST
(1)Producer
(2)Leader
(3)Follower
(4)Consumer

Answer:-(2)Leader

23.

Each message published to a topic is delivered to _______ within each subscribing consumer group.

Answer»

Each message published to a topic is DELIVERED to _______ within each subscribing consumer group.
Choose the correct option from below list
(1)all consumer instances
(2)ONE consumer instance
(3)ZERO consumer instances
(4)MULTIPLE consumer instances

Answer:-(2)one consumer instance

24.

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

Answer»

__________keeps track of topics, its partitions and replicas, who is the preferred LEADER and what CONFIGURATION overrides are SET for each topic.
Choose the correct option from below list
(1)ZOOKEEPER
(2)None
(3)Leader
(4)Master

Answer:-(1)Zookeeper

25.

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

Answer» KAFKA Streams EMPLOYS one-record-at-a-time PROCESSING to achieve millisecond processing latency
Choose the CORRECT option from below LIST
(1)False
(2)True

Answer:-(2)True
26.

Kafka also provides better ordering guarantees than a traditional messaging system using ________.

Answer»

Kafka ALSO PROVIDES better ORDERING guarantees than a TRADITIONAL messaging system using ________.
Choose the correct option from below list
(1)Streams API
(2)counters
(3)ROUND robin
(4)topic partitions.

Answer:-(4)topic partitions.

27.

A ________ is a logical abstraction for stream processing code.

Answer»

A ________ is a logical ABSTRACTION for stream processing code.
Choose the correct option from below LIST
(1)PROCESSOR TOPOLOGY
(2)Processor
(3)Stream
(4)All the options

Answer:-(1)Processor Topology

28.

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

Answer»

Each record consists of a KEY, a value, and a ________.
Choose the CORRECT option from below LIST
(1)TIMESTAMP
(2)header
(3)map
(4)data

Answer:-(1)timestamp

29.

Which service monitors Cluster membership ?

Answer»

Which service monitors Cluster membership ?
Choose the correct option from below LIST
(1)Hadoop
(2)CLIENT
(3)Zookeeper
(4)Application Master

Answer:-(3)Zookeeper

30.

How are messages stored in topic partitions ?

Answer»

How are MESSAGES stored in topic partitions ?
Choose the correct option from below list
(1)ordered but MUTABLE
(2)NONE of the options
(3)unordered
(4)immutable ordered SEQUENCE

Answer:-(4)immutable ordered sequence

31.

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

Answer»

The only metadata RETAINED on a per-consumer BASIS is the offset or position of that consumer in the log.
Choose the CORRECT option from below list
(1)TRUE
(2)False

Answer:-(1)True

32.

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

Answer»

Which processor sends any received records from its UPSTREAM PROCESSORS to a specified Kafka topic ?
Choose the correct OPTION from below list
(1)Sink
(2)Intermediate
(3)All the OPTIONS
(4)Source

Answer:-(1)Sink

33.

Kafka can be used for which of the following :

Answer»

Kafka can be used for which of the following :
Choose the correct option from below LIST
(1)Log Aggregation
(2)All the OPTIONS
(3)STREAM PROCESSING
(4)Website ACTIVITY Tracking

Answer:-(2)All the options

34.

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

Answer»

Each __________ acts as a leader for some of its partitions and a follower for OTHERS so load is WELL balanced within the cluster.
Choose the correct option from below list
(1)Producer
(2)Topic
(3)Consumer
(4)Kafka SERVER

Answer:-(4)Kafka Server

35.

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

Answer»

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
Choose the correct OPTION from below list
(1)Queuing model
(2)Publish-Subscribe model

Answer:-(1)Queuing model

36.

A configurable ________ can be set to retain all published

Answer»

A CONFIGURABLE ________ can be set to retain all published records in KAFKA irrespective of whether they have been consumed or not.
Choose the correct OPTION from below list
(1)timeout
(2)All the OPTIONS
(3)INTERVAL
(4)retention period

Answer:-(4)retention period