Kafka interview questions and answers

Kafka interview questions and answers(MCQ): Test Your Knowledge!

 

Which of the following is not a valid Kafka consumer group protocol?
RANGE
RoundRobin
Sticky
Eager
Which of the following is NOT a recommended approach for reducing Kafka\'s disk usage?
Decreasing replication factor
Compressing messages
Reducing retention period
Deleting unused topics
What is the purpose of the __consumer_offsets_changelog_changelog topic?
To track changes in consumer offsets changelog
To store actual messages
To handle authentication
To create new topics
What is the purpose of the max.poll.records configuration in Kafka consumers?
To set the maximum number of records returned in a single call to poll()
To set the maximum number of poll calls
To set the maximum number of records per partition
To set the maximum number of records per topic
What are the key components of Kafka?
Topics and Queues
Producers and Consumers
Partitions and Brokers
Both B and C
What is the main difference between Kafka and Apache Ignite?
Kafka is a messaging system, Ignite is an in-memory computing platform
Kafka is newer
Ignite doesn\\\'t support streaming
Kafka doesn\\\'t support distributed computing
What is the purpose of the log.cleaner.threads configuration in Kafka?
To set the number of threads to use for log cleaning
To set the number of cleaner I/O threads
To set the number of background threads
To set the number of compaction threads
What is the role of a Kafka Streams state store changelog topic retention?
To limit the size of state store backups
To encrypt state data
To improve read performance
To handle authentication
What does a Kafka topic\\\'s replication factor determine?
Number of copies of each partition
Number of consumers that can read from the topic
Number of producers that can write to the topic
Maximum size of the topic
How can you monitor the performance of a Kafka cluster?
Using JMX metrics
Only through log files
By manually checking each broker
Performance monitoring is not possible
Which Kafka protocol is used for communication between Kafka Connect workers?
Kafka Connect Protocol
Worker Coordination Protocol
Distributed Mode Protocol
Connect Cluster Protocol
How does Kafka handle data stream denormalization with custom serdes and Protobuf schemas?
Using Kafka Streams API
Automatically in brokers
Only in producers
Not supported
What is the purpose of the fetch.min.bytes configuration property in OpenSearch consumer?
To reduce the number of fetch requests by setting a minimum amount of data to fetch
To set the maximum message size
To control the number of consumers in a group
To manage the replication factor
What is the purpose of setting up OpenSearch on Docker for Apache Kafka?
To enable efficient searching and analytics on Kafka data
To manage Kafka brokers
To produce messages to Kafka
To handle consumer group rebalancing
Which Kafka API is used for implementing custom metrics reporters?
Metrics Reporter API
Monitoring API
JMX API
Metrics API
How can you use Kafka Streams to implement stateful aggregations?
Using state stores and the Aggregator API
Kafka Streams doesn\\\'t support stateful operations
Only through external databases
By writing custom punctuators
How does Kafka handle data stream transformations with custom key-value transformers?
Using Kafka Streams API
Automatically in brokers
Only in producers
Not supported
What is the purpose of the \\\"delivery.timeout.ms\\\" configuration property in Kafka Producer API?
To set the maximum time to wait for a send to complete
To control the producer batch size
To set the acknowledgment level
To limit the number of in-flight requests
What are some examples of data that are transferred through Apache Kafka?
Logs
Metrics
Clickstream data
All of the above
Which of the following is not a valid Kafka log cleanup policy?
delete
compact
delete,compact
archive
What is the role of the Kafka consumer\\\'s commitSync() and commitAsync() methods?
To consume messages
To produce messages
To commit consumer offsets synchronously and asynchronously
To manage brokers
What is the purpose of the log.retention.hours configuration in Kafka?
To set how long Kafka will retain log segments
To set the log compaction interval
To set the log cleanup interval
To set the maximum log size
Which of the following is not a key component of Kafka?
Topics
Partitions
Brokers
Tables
What\\\'s an advanced configuration option for Kafka brokers?
log.retention.bytes
topic.name
consumer.group.id
producer.batch.size
Which compression algorithm is NOT supported by Kafka out of the box?
gzip
snappy
lz4
bzip2
Score: 0/25