Build fluency in the vocabulary of splitting a topic into ordered, independently scalable partitions.
0 / 5 completed
1 / 5
At standup, a dev mentions a Kafka topic split into several ordered logs distributed across different brokers, so the topic's overall throughput can scale beyond what a single log could handle. What is each of these ordered logs called?
A partition is one of the ordered logs a Kafka topic is split into, with each partition distributed across the cluster's brokers, letting the topic's overall throughput scale by adding more partitions and brokers rather than being limited to a single log's capacity. A consumer group describes a set of consumers sharing the work of reading a topic, which is a related but distinct concept from the topic's own partitioning. This partitioning is the foundational mechanism behind how Kafka achieves horizontal scalability for a single topic.
2 / 5
During a design review, the team picks a partition key, like a customer ID, ensuring every event for the same customer always lands in the same partition and is therefore processed in order relative to each other. Which capability does this key choice provide?
This partition key choice provides guaranteed per-key ordering, since Kafka only guarantees ordering within a single partition, meaning every event that hashes to the same partition, like every event for the same customer ID, is processed in the order it was produced relative to the other events for that same key. Kafka does not guarantee ordering across the entire topic, since different partitions can be consumed independently and in parallel. This is why picking a partition key that groups related events together is essential whenever relative ordering between those specific events actually matters.
3 / 5
In a code review, a dev notices a low-cardinality partition key, like a boolean 'isPremium' flag, is being used to route events, so nearly all traffic lands in just two of the topic's many partitions. What does this represent?
This is a hot partition problem caused by a low-cardinality key that fails to spread traffic evenly, since a boolean flag only has two possible values and therefore can only ever route events into at most two of the topic's partitions, no matter how many partitions the topic actually has. A consumer group rebalance is a different concept about consumers shifting which partitions they're assigned to. This hot-partition issue leaves most of the topic's partitions, and the brokers hosting them, sitting idle while a couple of partitions bear nearly all the load.
4 / 5
An incident report shows one partition's consumer lagged further and further behind while every other partition's consumer stayed caught up, because a low-cardinality partition key concentrated the vast majority of events onto that single partition. What practice would prevent this?
Choosing a higher-cardinality partition key distributes events more evenly across all of the topic's partitions, since a key with many more possible distinct values naturally spreads traffic instead of concentrating it onto just one or two partitions. Continuing to use the same low-cardinality key regardless of the resulting imbalance is exactly what caused one partition's consumer to fall further and further behind in this incident. This higher-cardinality key selection is the standard fix once a hot partition has been identified as the cause of an uneven consumer lag.
5 / 5
During a PR review, a teammate asks why the team deliberately picks a partition key based on customer ID instead of just letting Kafka round-robin every event across partitions with no key at all. What is the reasoning?
Round-robin assignment with no key spreads load very evenly across partitions but gives up any ordering guarantee between related events, since two events for the same customer could land on entirely different partitions and be processed out of order relative to each other. Keying by customer ID sacrifices some of that perfectly even load balancing, since a few customers might generate disproportionately more events than others, in exchange for guaranteeing every event for the same customer lands in the same partition and stays in order. The tradeoff is exactly this: pick a key when relative ordering matters, and accept the risk of a hot partition if that key's value distribution turns out to be uneven.
What does the "Kafka Partitioning Vocabulary" vocabulary exercise cover?
This exercise tests real IT vocabulary related to kafka partitioning vocabulary through 5 multiple-choice questions, each built from realistic workplace sentences rather than abstract definitions.
Is this vocabulary exercise free to use?
Yes. Every exercise on CoderSlingo, including this one, is completely free — no account, sign-up, or payment required.
How many questions does this exercise have?
This exercise has 5 questions. Each one shows a real-world sentence or scenario with multiple-choice options and an explanation once you answer.
What happens after I answer a question?
You'll see immediate feedback showing whether your answer was correct, along with a short explanation of why — then a button to move to the next question, and a full results screen at the end.
Can I retry the exercise if I get questions wrong?
Yes. Once you reach the results screen, click "Try again" to reset your answers and go through the exercise from the start as many times as you like.
Do I need to create an account to take this exercise?
No account is needed. Your answers are scored in your browser during the session — nothing is saved to a server, so you can jump straight in.
Is my progress saved if I leave the page?
No — progress within an exercise resets if you navigate away or reload. Each exercise is short enough to complete in a few minutes in one sitting.
Are these vocabulary exercises connected to other topics?
Yes — this module shares real-world context with 17 other vocabulary modules. See "Related vocabulary" below to keep building a connected skill set.
How is this different from reading a glossary or blog article?
Exercises like this one are active recall drills — you have to choose the correct term or phrasing yourself, which builds retention faster than passively reading a definition.
Where can I find more vocabulary exercises?
Browse the full Vocabulary exercises hub for hundreds of modules covering Agile, DevOps, security, databases, architecture, and more — organised by IT role and skill.