Exam Questions Flashcards
A consumer is configured with enable.auto.commit=false. What happens when close() is called on the consumer object?
A rebalance in the consumer group will happen immediately
What happens when broker.rack configuration is provided in broker configuration in Kafka cluster?
Replicas for a partition are spread across different racks
You want to send a message of size 3 MB to a topic with default message size configuration. How does KafkaProducer handle large messages?
MessageSizeTooLarge exception will be thrown, KafkaProducer will not retry and return exception immediately
What exceptions may be caught by the producer sending data to Kafka?
SerializationException
BufferExhaustedException
What Kafka Streams operators are stateless?
map, filter, flatMap, branch, groupBy
what happens if you write the following code in your producer?
Producer.send(producerRecord).get()
Throughput will be decreased because .get() will wait for a reply from Kafka.
Can you change number of partitions after the topic is created? T/F
Yes, but you can only increase the number of partitions but not reduce it.
What’s the default size of a log segment, eg. log.segment.bytes
1 GB
In a KafkaProducer program our send() was configured with a callback onCompletion. The send was called and the callback parameters has RecordMetadata object that was null. What does this tell us about send method?
Object metadata being null means there was an error during send
Where does Kafka Connector for Filestream Source track its offset?
Local File
Which of the following defines map operation correctly from a Streaming Application perspective
Creates a new KStream by transforming each element in the current stream into a different element in the new stream
Which of the following defines flatMap operation correctly from a Streaming Application perspective?
Takes one record and produces zero, one, or more records. You can modify the record keys and values, including their types.
What is Transactional Coordinator in Kafka?
A special module on any Broker
How to implement authentication in Kafka?
Using Kerberos
Which of the below is not supported by Kafka?
(A)
Data in motion encryption
(B)
Data at rest encryption
(C)LUKS encryption
(D)
Kerberos with LDAP authentication
Data at rest encryption
What’s the default path of log4j.properties?
/etc/kafka