Question 1
Which command shows partitions without a leader for a topic?
Correct Answer:
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --unavailable-partitions
Explanation:
You’re being tested on how to identify partitions that currently have no leader. In Kafka, every partition normally has a leader broker that handles all reads and writes for that partition. If that leader broker goes down or is in the middle of a leader election, the partition temporarily has no leader and is considered unavailable. The kafka-topics.sh tool can surface this state when you describe a topic and request the partitions that are unavailable. The flag to include those partitions is --unavailable-partitions. To get this information, you connect to the cluster state (in this setup via Zookeeper) and run the command with --zookeeper, along with --describe and --unavailable-partitions. This combination will list partitions that currently lack a leader. Using bootstrap-server mode can behave differently for this particular flag in some environments, so the Zookeeper-based approach gives the reliable output for showing partitions without a leader.
Question 2
In Avro schema evolution, removing or adding a field that has a default value is classified as which type?
Correct Answer:
Full
Explanation:
In Avro schema evolution, full compatibility means both backward and forward compatibility hold: data written with the old schema can be read with the new schema, and data written with the new schema can be read with the old one. If you add or remove a field and give that field a default value, you preserve both directions. Adding a field with a default means old data (which doesn’t have that field) can be read by the new schema—the missing field is filled in with its default. Removing a field while keeping a sensible default for that field in the context of evolution allows older data to be read by the new schema and keeps newer data readable by older schemas, because differences in fields are either ignored or provided by defaults. This dual-direction compatibility is why the change is considered full compatibility.
Question 3
In a ZooKeeper-based Kafka cluster, what type of metadata resides in ZooKeeper, and where is this metadata stored under KRaft?
Correct Answer:
Cluster membership and some configuration metadata; under KRaft, metadata lives in Kafka's own log and is managed by brokers.
Explanation:
The main idea is how metadata is stored and who manages it. In a ZooKeeper-based Kafka cluster, ZooKeeper holds the cluster’s basic structural metadata—primarily which brokers are part of the cluster (cluster membership) and certain topic/partition configuration information. It does not hold the actual topic data or the consumer offsets, which are managed by Kafka itself. When moving to KRaft, that metadata responsibility shifts into Kafka’s own system. The metadata is stored in Kafka’s internal metadata log, replicated across the cluster using the Raft protocol, and managed by the brokers acting as the metadata quorum. There’s no separate ZooKeeper involved for cluster metadata in this setup. So, ZooKeeper houses the membership and related configuration data, while under KRaft, the metadata lives in Kafka’s own log on the brokers.
Question 4
What is a major change with KRaft in terms of ZooKeeper usage?
Correct Answer:
KRaft eliminates ZooKeeper and stores metadata within Kafka via an internal controller quorum.
Explanation:
The change being tested is that KRaft removes the need for ZooKeeper by letting Kafka manage its own cluster metadata inside the Kafka system itself. In KRaft, a built-in controller quorum, powered by the Raft protocol, runs within the Kafka brokers and stores all metadata there, rather than relying on an external ZooKeeper service. This makes the cluster self-contained and eliminates ZooKeeper entirely. That’s why the best answer states that ZooKeeper is eliminated and metadata is stored within Kafka via an internal controller quorum. The other options either keep ZooKeeper, suggest an external database, or describe a ZooKeeperless setup without mentioning that the metadata is stored inside Kafka, which is the key distinction of KRaft.
Question 5
Which port is used by followers to connect to the active leader?
Correct Answer:
Leader port
Explanation:
In a system that uses a leader-follower replication model, the followers stay in sync by connecting to the current active leader to fetch and apply updates. This replication traffic happens over a dedicated port on the leader that is intended for inter-broker communication. That port is what followers use to establish the replication session and receive new log entries from the leader, keeping the follower replicas up to date. The client port is reserved for end-user clients (producers and consumers) to connect to brokers, not for replication between brokers. The election port is only involved during the process of electing a new leader and isn’t used for ongoing replication once leadership is established. The data port isn’t a standard term used for this purpose in the typical replication SAMPLEsetup. Therefore, the port used by followers to connect to the active leader is the Leader port.
Question 1
Exam overview

About this Exam

Prepare with the CCDAK Apache Kafka Practice Test practice quiz. This question bank includes 10 questions covering leader, topic, default, kafka, and metadata. Use it to review important concepts, identify knowledge gaps, and build confidence for the related exam, course, or assessment.

More details

Additional Information

CCDAK Apache Kafka Practice Test

This practice set contains 10 questions from the matching question bank and focuses on leader, topic, default, kafka, and metadata. Work through each question carefully, review the provided solutions, and revisit topics that need more study before your next attempt.

This is an independent study resource intended for practice and review; it is not an official examination or an endorsement by any organization named in the title.

Quiz information

Frequently Asked Questions

The complete question count is available after full access is unlocked.
No fixed duration is currently configured for this quiz.
Question explanations are included where they are available in the quiz content, helping you review the reasoning after answering.
Yes. You can retake the practice test again as you continue studying during your available access period.
After your access is confirmed, you can continue into the complete practice exam from this quiz flow.
Unless explicitly stated otherwise, this page provides independent practice material for study and exam preparation and is not the official examination itself.
Keep studying

Related Questions