Search Your Question...!

Kafka MCQ's

1. A hashing-based Partitioner takes ___ and generates a hash to locate which partition the message should go

   View Answer   

   Partition Key



2. Banking industry can leverage Kafka Streams for detecting fraudulent transactions.

   View Answer   

   True



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

   View Answer   

   acks



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

   View Answer   

   True



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

   View Answer   

   Offset



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

   View Answer   

   Connector API



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

   View Answer   

   Kafka Server



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

   View Answer   

   True



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

   View Answer   

   True



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

   View Answer   

   timestamp



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

   View Answer   

   True



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

   View Answer   

   Topic



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

   View Answer   

   Kafka is designed to allow a single cluster to serve as the central data backbone for a large organization.



14. Kafka Streams supports both stateful and stateless operations.

   View Answer   

   True



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

   View Answer   

   acks



16. Kafka can be used for which of the following :
a)Stream Processing
b) Log Aggregation
c) All the options
d)Website Activity Tracking

   View Answer   

    All the options



17. Kafka stores metadata of basic information about Topics, Brokers and consumer offsets in :

   View Answer   

   Zookeeper ensemble



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

   View Answer   

   True



19. _ data retention makes Kafka a durable system.

   View Answer   

   Disk-based



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

   View Answer   

   The Kafka cluster does not retain all published messages.



21. Which of the following statement is incorrect ?
a)Kafka lets scale processing and is also multisubscriber.
b) Queue based system lets scale processing but is not multisubscriber.
c)In Queue based messaging system message ordering is lost during parallel processing.
d)A traditional queue based messaging system lets scale processing and is also multisubscriber.

   View Answer   

   A traditional queue based messaging system lets scale processing and is also multisubscriber.



No comments:

Post a Comment