Apache Kafka 96 Fundamentals Questions Containing Answers
What amount of time is data kept for a partition (default)? - ️️one week Once data is written to a partition can it be changed? - ️️no it is immutable Is data randomly assigned to a partition when there is a key provided? - ️️no What are brokers identified with? - ️️An integer After connecting to any broker (bootstrap broker) will you be connected to the entire cluster? - ️️yes How many brokers can be a leader for a given partition? - ️️one What will other brokers do for the data that are not the leaders? - ️️They will synchronize the data (ISR in-sync replicas) What is acks=0? - ️️Producer won't wait for acknowledgment (possible data loss) What is acks=1? - ️️Producer will wait for a leader acknowledgment (limited data loss) What is acks=all? - ️️Leader + replicas acknowledgment (no data loss) If the key=null, how is the data sent two 3 brokers in a cluster? - ️️Round robin, 101, 102 then 103 What is a key? - ️️A key is basically sent if you need message ordering for a specific field (exp: truck_id) What are consumers? - ️️Consumers read data from a topic (identified by a name). Consumers know which broker to read from. In case of broker failures, consumers know how to recover. Data is read in order within each partitions. What are consumer groups? - ️️Consumers read data in consumer groups. Each consumer within a group reads from exclusive partitions. If you have more consumers then partitions, some consumers will be inactive. (Consumers will automatically use a GroupCoordinator and a ConsumerCoordinator to assign a consumers to a partition. Consumer groups what if there is more consumers than partitions? - ️️The number of consumers in a consumer group must be the same as the number of partitions in a topic so they become inactive until there is an another available partition.
Written for
- Institution
- Apache Kafka
- Course
- Apache Kafka
Document information
- Uploaded on
- July 5, 2024
- Number of pages
- 11
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
apache kafka 96 fundamentals