WorksheetsConfluent Hub 4
Total questions: 12
Worksheet time: 6mins
What is Confluent Kafka primarily used for?
Image processing
Real-time data streaming
File storage
Web hosting
What does a Kafka Producer do?
Reads messages from a topic
Deletes old messages
Writes messages to a topic
Balances partitions
What is the role of a Kafka Consumer?
Writes data to topics
Reads data from topics
Creates partitions
Manages brokers
What is a Kafka Broker?
A consumer group leader
A server that stores topic data
A producer that sends messages
A partitioning algorithm
How many Confluent Kafka brokers do we have in our bank?
1
3
6
9
In Kafka, what does acks=all mean for a producer?
No acknowledgments are needed
Only the leader must acknowledge
All in-sync replicas must acknowledge
The consumer must acknowledge
What does the batch.size parameter control in a Kafka Producer?
The maximum size of a topic
The maximum number of records per partition
The maximum amount of data (in bytes) that can be batched before sending to a broker
The number of retries before failure
What does the linger.ms parameter do?
The delay before retrying a failed request
The delay before sending a batch, allowing more records to accumulate
The maximum time a consumer waits for data
The time Kafka keeps messages before deletion
If enable.auto.commit is set to false, what must the application do?
Restart the consumer after each poll
Manually commit offsets in code
Set auto.offset.reset=latest
Increase batch.size
Which partition assignment strategy does a Kafka consumer use by default?
Round Robin Assignment
Range Assignment
Sticky Assignor
Hash Partitioning
What does auto.offset.reset=earliest mean?
Start reading from the latest messages only
Start reading from the beginning of the partition if no valid offset is found
Discard all records and start fresh
Throw an error if no offset exists
How can a bank use Confluent Kafka effectively?
To stream real-time credit card transactions for fraud detection
To store scanned copies of customer IDs in PDF format
To send monthly account statements via email
To keep historical loan records in cold storage
