Back to course home
0% completed
Vote For New Content
Quiz: Kafka
Test your knowledge of Kafka by completing this quiz.
In Kafka, messages are published to
Choose all correct options
A category
A topic
A subject
A Domain
Once a message is written to Kafka, it can be changed:
A
Only by the producer who initially wrote it
B
By any producer
C
Never
D
By the controller broker
How many brokers will be marked as leaders of a partition?
Choose all correct options
Zero
One
Five
All in-sync replicas (ISR)
What is the default partition strategy for producers without using a key?
Choose all correct options
Round-robin
Broker with the lowest load is preferred
Partition with the lowest write load is preferred
Partition with the lowest read load is preferred
Within a partition, a message is uniquely identified by its
Choose all correct options
Offset
Key
ID
Timestamp
Can two consumers from two different consumer groups consume the same message?
Choose all correct options
Yes
No
Which of the following statement is true about a Kafka topic?
Choose all correct options
Only a single producer can publish messages to a topic.
Only a single consumer can subscribe to the messages of a topic.
A consumer can insert a message into any offset within a topic.
Multiple consumers can subscribe to the messages written to a topic.
Test your knowledge of Kafka by completing this quiz.
| * Does each consumer group have its own offset for every partition of a topic?
Choose all correct options
A) Yes
B) No
Which statement about consumer groups is not true?
Choose all correct options
Each partition of a topic can be assigned to only one consumer in a
consumer group.
Different partitions of a topic can be assigned to a consumer in a
consumer group.
If a consumer stops, Kafka spreads its partitions across the remaining
consumer in the same consumer group.
Within a consumer group, Kafka ensures that each consumer receives at
least one partition of a topic.
What is the optimum number of consumers within a consumer group?
Choose all correct options
Greater than the number of partitions of the topic they are consuming
Equal to the number of partitions of the topic they are consuming
Less than the number of partitions of the topic they are consuming
Does Kafka guarantee that messages with the same 'key' are written to the same partition?
Choose all correct options
Yes
No
Kafka can use the following criteria to delete old messages. Select all that apply.
Choose all correct options
Time-based limits
Size-based limits
Key-based limits
Compaction
.....
.....
.....
Like the course? Get enrolled and start learning!
On this page