To prevent network-induced duplicates when producing to Kafka, I should use
Answer : B
Producer idempotence helps prevent the network introduced duplicates. More details herehttps://cwiki.apache.org/confluence/display/KAFKA/Idempotent+Producer
How often is log compaction evaluated?
Answer : B
Log compaction is evaluated every time a segment is closed. It will be triggered if enough data is 'dirty' (see dirty ratio config)
A topic receives all the orders for the products that are available on a commerce site. Two applications want to process all the messages independently - order fulfilment and monitoring. The topic has 4 partitions, how would you organise the consumers for optimal performance and resource usage?
Answer : C
two partitions groups - one for each application so that all messages are delivered to both the application. 4 consumers in each as there are 4 partitions of the topic, and you cannot have more consumers per groups than the number of partitions (otherwise they will be inactive and wasting resources)
Where are the ACLs stored in a Kafka cluster by default?
Answer : A
ACLs are stored in Zookeeper node /kafka-acls/ by default.
A consumer wants to read messages from a specific partition of a topic. How can this be achieved?
What is not a valid authentication mechanism in Kafka?
Answer : C
Learn more about security herehttps://kafka.apache.org/documentation/#security
What happens if you write the following code in your producer? producer.send(producerRecord).get()
Answer : B
Using Future.get() to wait for a reply from Kafka will limit throughput.