Home / Confluent Certified Developer for Apache Kafka (CCDAK) / Mock exam
Confluent Certified Developer for Apache Kafka (CCDAK) Exam-style mock test

Confluent CCDAK Apache Kafka Developer Practice Exams|Practice test

Full explanations Exam format Pass line 70%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Kafka Fundamentals, Architecture, and Topics and Partitions
A B2B SaaS invoicing platform runs a Kafka cluster of five brokers. The platform team wants to understand which broker is responsible for handling metadata about topics and for assigning partition leadership across the cluster. Which statement best describes how this responsibility is handled?
✓A single broker is elected as the cluster controller and it manages partition leader elections and cluster-wide metadata.
Correct. One broker acts as the controller, responsible for leader elections and managing cluster metadata.
・Every broker independently elects partition leaders for all topics, so leadership decisions are made redundantly across all five brokers at once.
Incorrect. Leadership is not elected redundantly by every broker; a single controller coordinates leader assignment.
・The producers in the invoicing application elect the partition leaders directly before sending each record batch to the cluster.
Incorrect. Producers do not elect partition leaders; they discover the current leader via metadata from the cluster.
・The controller role rotates to a new broker on every single produce request to spread the metadata load evenly.
Incorrect. The controller is a stable elected role, not one that rotates on each produce request.
Explanation
Exactly one broker in a cluster serves as the controller, handling partition leader elections and cluster metadata management, while the other brokers serve partitions.
Example2 · Producers: Configuration, Delivery Semantics, and Serialization
A B2B SaaS billing team runs a Kafka producer that writes invoice events. Compliance requires that an event is never acknowledged to the application until every in-sync replica has persisted it, even if that lowers throughput. Which producer setting satisfies this requirement?
・Set acks=1 so the leader confirms the write after persisting it locally
Incorrect. acks=1 waits only for the leader to write the record, so an unreplicated message can be lost on leader failure.
✓Set acks=all so the full in-sync replica set must persist the record first
Correct. acks=all makes the leader wait for acknowledgement from all in-sync replicas before confirming the write to the producer.
・Disable the producer's idempotence flag so that brokers always wait for full replication across the whole cluster
Incorrect. Idempotence actually requires acks=all and does not by itself control how many replicas must persist a record.
・Set enable.auto.commit=false so offsets are committed only after writes persist
Incorrect. enable.auto.commit is a consumer property for offset commits and has no effect on producer durability.
Explanation
Durability that requires all in-sync replicas to persist before acknowledgement is configured with acks=all on the producer.
Example3 · Consumers: Groups, Offsets, and Rebalancing
At a B2B SaaS company, the 'invoice-events' topic has 6 partitions. The billing-service consumer group currently runs 4 consumer instances, all subscribed to this topic. How will the partitions be assigned across the group?
・Each of the 4 consumers receives all 6 partitions, and the broker deduplicates the records so every message is processed exactly one time
Incorrect. Within a single group a partition is owned by one consumer at a time; the group does not broadcast every partition to every member.
✓Each partition goes to exactly one consumer in the group, so some consumers handle more than one partition while every partition still has an owner
Correct. With more partitions than consumers, each partition is assigned to a single consumer and the extras are distributed so some consumers own two partitions.
・Only 4 of the 6 partitions are consumed, because a group can never own more partitions than it has consumer instances available
Incorrect. All partitions are always assigned; having fewer consumers than partitions just means some consumers own multiple partitions, not that partitions go idle.
・The 6 partitions are split evenly so each consumer owns exactly 1.5 partitions after the fractional assignment rounds
Incorrect. Partitions are indivisible units of assignment and cannot be split fractionally between consumers.
Explanation
A partition is the unit of parallelism and is assigned to exactly one consumer per group. With 6 partitions and 4 consumers, two consumers own two partitions each and two own one; no partition is left unconsumed and none is shared.
Example4 · Kafka Streams and ksqlDB
A healthcare firm streams patient-vitals updates into a topic keyed by patient_id, where each new record replaces the prior reading for that patient. The engineering team wants a Kafka Streams abstraction that models the latest value per patient so downstream joins see current state. Which abstraction fits?
・A KStream, because every record is treated as an independent immutable event appended to the log
Incorrect. A KStream treats records as independent events, so it would not model latest-value-per-key semantics.
✓A KTable, which interprets each record as an update to the latest value for its key
Correct. A KTable interprets each record as an upsert, keeping the most recent value per key.
・A GlobalKTable loaded in full onto every single application instance regardless of the partitioning of the source topic
Incorrect. A GlobalKTable also models latest-value state but is fully replicated to every instance, which is unnecessary here and not what the per-partition requirement implies.
・A windowed session store grouping readings by inactivity gaps
Incorrect. A session window groups by activity gaps and does not represent latest-value-per-key state.
Explanation
KTable gives changelog/update semantics (latest value per key), which is the correct model for replacing-reading data.
Example5 · Schema Registry, Kafka Connect, Security, and Monitoring
A healthcare firm streams patient-vitals events through an Avro topic governed by Schema Registry. The data team must add a new optional 'oxygenSaturation' field with a default, and existing consumers that were deployed before the change must keep reading new records without being redeployed. Which compatibility setting on the subject satisfies this requirement?
✓FORWARD, because it lets data produced with the new schema be read by consumers still using the previous schema version
Correct. FORWARD compatibility guarantees that data written with the new schema can still be read by consumers running the older schema, which is exactly the no-redeploy requirement here.
・BACKWARD, which lets consumers using the new schema read data written with both the old and the new schema
Incorrect. BACKWARD lets new-schema consumers read old data; it would require the existing consumers to upgrade to the new schema first, which the scenario forbids.
・NONE, so the registry skips the compatibility check and simply accepts the newly registered schema version
Incorrect. NONE disables checks entirely and provides no guarantee that the old consumers can read new records.
・FULL_TRANSITIVE, enforcing both directions across every previously registered version of the subject
Incorrect. FULL_TRANSITIVE is stricter than needed and enforces backward direction across all versions, not the specific forward-only goal stated.
Explanation
Keeping already-deployed (old-schema) consumers reading new-schema data is the definition of FORWARD compatibility.
Example6 · Kafka Fundamentals, Architecture, and Topics and Partitions
A healthcare services firm streams patient vitals into a topic named vitals-raw that currently has one partition. The platform team wants to let more consumer instances in a single consumer group process records concurrently. Which statement best explains how partitions affect this goal?
✓Adding more partitions lets additional consumers in the same group each read a distinct partition, raising the group's parallelism
Correct. A partition is the unit of parallelism, so more partitions allow more group members to each own a partition and consume in parallel.
・The number of partitions is irrelevant because every consumer in a group always reads every record in the topic
Incorrect. Within one group each partition is assigned to only one member, so consumers do not all read every record.
・Consumer parallelism is capped by the replication factor, so the team should raise replication rather than add partitions
Incorrect. Replication factor governs fault tolerance of partition copies, not how many consumers can read concurrently.
・A single partition can be shared simultaneously by many consumers in the same group if the group is rebalanced frequently enough to split it
Incorrect. A partition is assigned to at most one consumer in a group at a time; rebalancing cannot split one partition across members.
Explanation
Partitions are Kafka's unit of parallelism. The maximum number of usefully active consumers in a single group equals the partition count, so adding partitions is the correct lever.
Example7 · Kafka Fundamentals, Architecture, and Topics and Partitions
At the retailer UrbanThread, a developer is diagramming how the Kafka cluster serves the checkout service. A teammate asks what a single Kafka broker is fundamentally responsible for within that cluster. Which description is accurate?
✓A broker is a server process that stores partition data on disk, serves produce and fetch requests from clients, and participates in replication for the partitions assigned to it
Correct. A broker is a server that persists partition log segments, handles produce/fetch requests, and replicates the partitions it hosts.
・A broker is a client library embedded in the checkout service that batches records locally and flushes them to the cluster on a configurable timer
Incorrect. A client library embedded in the application is the producer, not a broker; brokers are server-side processes.
・A broker is the metadata controller that alone decides which consumer in each group reads each partition
Incorrect. Partition assignment within a consumer group is handled by the group coordinator and the clients' assignor, not by a plain broker role, and consumer logic is client-side.
・A broker is a stateless router that forwards records to ZooKeeper for durable persistence
Incorrect. Brokers store data in their own logs; ZooKeeper never persists record data, and brokers are stateful, not stateless routers.
Explanation
A Kafka broker is a stateful server that owns partition logs, services client read/write requests, and replicates its partitions.
Example8 · Kafka Fundamentals, Architecture, and Topics and Partitions
UrbanThread streams order events into a topic with 6 partitions. The team needs to be precise about Kafka's ordering guarantee. Which statement correctly describes how ordering works for this topic?
・Kafka guarantees total ordering across every partition in the topic as long as all consumers belong to the same group
Incorrect. Consumer group membership does not create cross-partition total ordering; ordering is always per partition.
✓Kafka guarantees ordering of records only within an individual partition, not across the whole topic
Correct. Kafka preserves record order within a single partition but makes no ordering promise across partitions of a topic.
・Kafka guarantees ordering across the topic because each partition timestamps records using a cluster-wide synchronized clock before they are appended
Incorrect. There is no cluster-wide synchronized clock producing total ordering; order comes from append sequence within each partition only.
・Kafka guarantees ordering only when the topic has exactly one consumer
Incorrect. The number of consumers does not change the storage ordering model; ordering is a per-partition property regardless of consumer count.
Explanation
Kafka orders records only within a partition; spreading a topic across partitions trades global ordering for parallelism.
Example9 · Kafka Fundamentals, Architecture, and Topics and Partitions
UrbanThread's inventory-sync topic has 4 partitions. The team adds a consumer group with 7 consumer instances to keep up with load. What is the result for this configuration?
・All 7 consumers each read from every one of the 4 partitions concurrently to maximize throughput
Incorrect. Within a group a partition is assigned to only one consumer; consumers do not all read every partition.
・The group is rejected and no consumer receives records until the instance count is reduced to 4 or fewer
Incorrect. The group is not rejected; extra consumers are simply left idle while the others consume normally.
✓Four consumers each own one partition and the remaining three consumers stay idle with no partitions assigned
Correct. A partition maps to at most one consumer per group, so 4 get a partition each and the extra 3 remain idle.
・Kafka automatically splits each of the 4 partitions so that all 7 consumers get an equal slice
Incorrect. Kafka does not dynamically subdivide partitions at consume time to match consumer count.
Explanation
Maximum useful parallelism in a consumer group equals the partition count; extra consumers beyond that stay idle.
Example10 · Kafka Fundamentals, Architecture, and Topics and Partitions
At a payments processor, the 'card-authorizations' topic has partitions replicated across three brokers. A developer asks how producer writes and consumer reads interact with the replicas for a given partition. In the standard Kafka model, which broker handles both the produce and fetch requests for that partition?
✓The partition leader, which is the single replica that serves all produce and consume requests while followers replicate from it
Correct. The leader replica is the sole replica that handles produce and (by default) consume requests; followers only replicate the leader's log.
・Any in-sync replica selected at random, balancing the read and write load evenly across all brokers holding that partition
Incorrect. Reads and writes are not randomly spread across in-sync replicas; the leader serves them (follower fetching is a later opt-in feature, not the default model).
・The controller broker, since it coordinates all client traffic for every partition across the entire cluster centrally
Incorrect. The controller manages cluster metadata and leader elections, not per-partition client produce/fetch traffic.
・The partition leader
Incorrect. While technically the leader, this option omits that followers merely replicate; however the issue here is it is the shortest and least complete phrasing.
Explanation
Each partition has one leader among its replicas; the leader services client produce and consume requests, and followers stay in sync by replicating the leader's log.
Example11 · Kafka Fundamentals, Architecture, and Topics and Partitions
A bank streams every account transaction into the 'ledger-events' topic. Compliance requires that, for any single account, the sequence of debit and credit events is never reordered. The team keys each event by account ID. What ordering guarantee does Kafka provide for these events?
✓Ordering is guaranteed only within each individual partition, so events for a given account ID stay ordered because they hash to the same partition
Correct. Kafka maintains strict offset ordering within a partition; keying by account ID routes all of that account's events to one partition, preserving their order.
・Kafka guarantees global ordering across the entire topic regardless of how many partitions it has, so every event is strictly ordered
Incorrect. Kafka does not guarantee ordering across partitions, so there is no global topic-wide total order with multiple partitions.
・Ordering is guaranteed only when the topic has exactly one partition and a single consumer reads it
Incorrect. Single-partition topics preserve order but that is not required here; keying achieves per-account ordering while still allowing many partitions.
・Ordering depends entirely on the consumer group rebalance timing
Incorrect. Rebalances affect which consumer reads a partition, not the intra-partition offset ordering of messages.
Explanation
Kafka guarantees ordering per partition. Using a consistent key sends related records to the same partition, giving per-key ordering without forcing a single-partition topic.
Example12 · Kafka Fundamentals, Architecture, and Topics and Partitions
A payments platform at a financial services firm runs a Kafka cluster of six brokers. A developer needs to describe where the actual message bytes for a topic named 'card-authorizations' physically reside. Which statement correctly describes how Kafka stores this topic's data across the cluster?
✓The topic's partitions are distributed across the brokers, and each partition is an ordered log stored on the broker that hosts it
Correct. A topic is divided into partitions, and those partitions are spread across the cluster's brokers; each partition is an append-only ordered log on its hosting broker.
・The topic is stored in full on every broker so that any broker can serve a complete copy of all its messages at any time
Incorrect. Full replication to every broker is not how topics scale; only partitions and their configured replicas are placed on a subset of brokers.
・The topic is stored only on the controller broker, which forwards records to the other brokers whenever consumers request them
Incorrect. The controller manages metadata and leadership, not centralized storage of all topic data.
・The topic lives inside ZooKeeper, and brokers merely cache partition data in memory for faster consumer reads
Incorrect. ZooKeeper (or KRaft) stores metadata, not the message payloads, which live in partition log segments on brokers.
Explanation
Topics are logical; partitions are the physical unit of storage and are distributed across brokers as ordered logs.
Example13 · Kafka Fundamentals, Architecture, and Topics and Partitions
A trading desk application at the firm requires that all events for a single account be processed in the exact order they were produced. A developer asks what ordering guarantee Kafka provides. Which statement is accurate?
・Kafka guarantees a strict global ordering of all records across every partition in the topic regardless of the key used
Incorrect. Kafka does not provide a strict total order across partitions; ordering is scoped to a single partition.
✓Kafka preserves the order of records within an individual partition, so events sharing a key land in one partition in order
Correct. Ordering is guaranteed only within a partition, and keying records (e.g., by account) routes them to the same partition in produced order.
・Kafka orders records by their producer timestamp across the whole topic before consumers ever receive them
Incorrect. Kafka does not globally reorder records by timestamp before delivery; offset order within a partition is what is preserved.
・Kafka cannot guarantee ordering at all once a topic has more than one partition configured
Incorrect. Multiple partitions do not eliminate ordering; per-partition order is still guaranteed.
Explanation
Kafka's ordering guarantee is per-partition; using a consistent key sends related records to the same partition in order.
Example14 · Kafka Fundamentals, Architecture, and Topics and Partitions
A telecom operator streams call-detail records into a topic and must guarantee that all events for a single subscriber are processed in the exact order they occurred. Which design achieves this ordering guarantee in Kafka?
・Enable a global ordering flag on the topic so the broker sorts every record across all partitions before delivery to any consumer
Incorrect. Kafka only guarantees ordering within a single partition; there is no broker feature that globally sorts records across all partitions of a topic.
✓Use the subscriber identifier as the record key so each subscriber's events map to one partition
Correct. Keying on the subscriber identifier makes the default partitioner hash all of that subscriber's records to the same partition, where per-partition ordering is preserved.
・Increase the partition count and let the consumer group reorder records after fetching them
Incorrect. Adding partitions spreads a subscriber's events across partitions and consumers cannot reliably reconstruct the original order after fetching.
・Configure the producer with acks=all and a single consumer thread per topic
Incorrect. acks=all affects durability and a single consumer thread does not pin a subscriber's records to one partition, so cross-partition ordering is still not guaranteed.
Explanation
Kafka preserves ordering only within a partition, so keying records by subscriber routes each subscriber's events to one partition where order is maintained.
Example15 · Kafka Fundamentals, Architecture, and Topics and Partitions
An engineer at a telecom operator is explaining how a Kafka broker serves a partition. Which statement correctly describes the broker's role for a given partition?
・Every broker in the cluster holds a complete copy of every partition to maximize read throughput for consumers
Incorrect. Only brokers assigned as leader or follower replicas hold a partition's data; not every broker stores every partition.
✓One broker acts as the leader for the partition and handles all produce and consume requests for it
Correct. For each partition one broker is elected leader and serves all produce and consume requests, while followers replicate the log.
・Brokers forward produce requests to the ZooKeeper ensemble, which persists the partition log on disk
Incorrect. ZooKeeper (or KRaft metadata) manages cluster metadata; it does not store partition log data, which lives on broker disks.
・The partition is split evenly and stored in memory across all brokers that are currently in sync
Incorrect. A partition's log is stored on disk by its leader and follower replicas, not split in memory across all in-sync brokers.
Explanation
Each partition has a single leader broker that handles its reads and writes, with follower replicas maintaining copies for fault tolerance.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)