Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Confluent CCDAK Dumps 2026 with Free Practice Questions and Answers

17 original practice questions for the Certified Developer for Apache Kafka exam, each with an answer and explanation.

Exam topics: Apache Kafka® Application Development, Apache Kafka® Fundamentals, Apache Kafka® Streams, Application Observability and 1 more.

Formats: single answer, multiple answers, dropdown, order list and drag and drop. A new question is added every 15 days.

CCDAK Practice Set Details

Vendor
Confluent
Exam Code
CCDAK
Questions On This Page
17
Exam Topics Covered
5 of 5
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
150
Certification
Confluent Certified Developer
17 questions

Confluent CCDAK Exam Questions and Answers by Topic

Apache Kafka® Fundamentals

4 practice questions on this topicWhat this topic covers

Question 1

Added

Single Answer

An analytics team has a compacted topic keyed by customer ID. A producer writes an update for a customer and then a tombstone with the same key. A downstream service is offline for several days and must rebuild the current customer state when it returns; the topic is not intended to retain every historical update. Which statement correctly describes what the service should expect after compaction has run?

Correct answer: B

A compacted topic preserves the latest known record per key rather than every historical value. A tombstone marks a key for deletion and is retained for a configured period so consumers can observe the deletion; it can later be removed by compaction. Compaction is not time-based retention of all history, so the earlier update is not guaranteed to remain. Tombstones are not permanent, and brokers do not synchronously delete the key's log history at the moment a tombstone is produced.

Question 2

Added

Single Answer

A service writes records to a replicated topic with replication factor three. The product requirement says a successful produce response must mean that the record is safely replicated on at least two brokers, and the service must reject writes when that guarantee cannot be met. The team can tolerate temporary unavailability rather than weaken durability. Which configuration provides the intended behavior?

Correct answer: B

With acks=all, the leader waits for the current in-sync replicas, and min.insync.replicas=2 rejects writes when fewer than two replicas are in sync. That matches both the durability threshold and the preference for failure over weaker writes. With acks=1, the leader can acknowledge before replication. With acks=0, the producer does not wait for broker acknowledgement. A minimum of one permits writes without the required second in-sync replica.

Question 3

Added

Drag And Drop

A Kafka deployment team is reviewing workload requirements before choosing topic settings. For each requirement, match the Kafka mechanism that directly addresses it. Each mechanism is used once.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Preserve ordering for records sharing an entity key
Allow a consumer group to process records in parallel
Keep the latest state for each key rather than full history
Recover records after a broker failure
Assign work across topic partitions
Partition by record key
Replicate topic partitions
Enable log compaction
Correct answer:
  • Preserve ordering for records sharing an entity key → Partition by record key
  • Allow a consumer group to process records in parallel → Assign work across topic partitions
  • Recover records after a broker failure → Replicate topic partitions
  • Keep the latest state for each key rather than full history → Enable log compaction

A record key determines partition placement, so records with the same key can be ordered within that partition. Consumer-group parallelism is bounded by the number of partitions that can be assigned to distinct consumers. Replicas provide copies from which Kafka can recover after broker failure. Log compaction retains the latest value per key while allowing older records to be removed. These mechanisms serve different purposes; for example, more consumers do not create partition-level ordering, and compaction is not a substitute for replication.

Question 4

Added

Multiple Answers

A platform team is sizing a topic for a service that must preserve ordering for each customer while processing different customers concurrently. The service uses a consumer group and customer ID is available on every record. A future increase in consumer instances must provide more parallelism without changing the ordering guarantee for a customer. Which two design decisions best satisfy the requirements? (Choose two.)

Correct answer: A, E

Using customer ID as the key consistently routes a customer's records to the same partition, where Kafka preserves order. The topic needs multiple partitions to allow a consumer group to process different customers concurrently, with the practical parallelism ceiling set by partition count. A single partition is assigned to only one group member at a time. Random keys split one customer's sequence across partitions, and sorting cannot restore a reliable complete order without additional coordination. Replication improves fault tolerance, not consumer parallelism.

Apache Kafka® Application Development

5 practice questions on this topicWhat this topic covers

Question 5

Added

Single Answer

A payment service publishes transaction events to a three-partition topic. Consumers process each account's transactions in order, and the service must not publish a transaction twice after a retry caused by a lost acknowledgement. The application can assign a stable transaction identifier as the record key. It must continue to use the Java producer API, and the team does not require atomic updates across multiple topics or Kafka transactions. Which producer design best meets the requirements?

Correct answer: C

Idempotence suppresses duplicate writes caused by producer retries, while the account identifier as key consistently routes that account's records to one partition and preserves their order. A stable transactional.id is unnecessary when no transaction spans records or topics, and starting a transaction for every record adds complexity. Using acks=1 with retries disabled weakens acknowledgement guarantees and does not address retries. Omitting a key can distribute one account's records across partitions, defeating per-account ordering.

Question 6

Added

Multiple Answers

A Java consumer group processes a topic whose partitions each have one consumer. Processing a record includes a slow external database write, so records can take longer than max.poll.interval.ms to finish. The service must not advance its committed position past a record whose database write failed, and it cannot make the database part of a Kafka transaction. The team wants to keep polling often enough to remain in the group and recover cleanly after failures. Which two changes best meet these requirements? (Choose two.)

Correct answer: B, E

Disabling auto-commit and advancing offsets only after successful writes prevents Kafka from recording progress beyond failed database work. Separating processing from the poll loop lets the consumer call poll within max.poll.interval.ms; commits still need coordination so only completed records are acknowledged. Increasing max.poll.records can make processing take longer, not solve the polling deadline. Committing before asynchronous writes risks loss on failure. A longer session timeout does not override max.poll.interval.ms or make auto-commits safe.

Question 7

Added

Order List

A team is migrating a consumer from a single-threaded implementation to one with worker threads. Each partition must retain ordered processing, offsets may advance only through completed work, and the consumer must continue polling to remain in its group. Arrange the implementation steps in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Continue polling while workers process queued records
  2. Track the highest contiguous completed offset for each partition
  3. Commit only offsets represented by completed records
  4. Poll records and assign each partition's records to its ordered work queue
Correct answer:
  1. Poll records and assign each partition's records to its ordered work queue
  2. Continue polling while workers process queued records
  3. Track the highest contiguous completed offset for each partition
  4. Commit only offsets represented by completed records

The consumer first obtains records and queues each partition's work in order. It must keep polling while workers run so it does not exceed the group liveness interval. Once work completes, the application can identify the highest contiguous completed offset per partition; later completed records cannot justify skipping an earlier unfinished record. Committing only those safe offsets prevents loss while retaining parallel work across partitions.

Question 8

Added

Single Answer

A Java producer sends records to a topic and must publish related records to two topics as one atomic unit, so a read_committed consumer never exposes only half of the update. Multiple producer instances run concurrently, each representing a distinct application instance. The team needs Kafka's transaction protocol, including recovery fencing if an instance restarts with the same identity. Which design is appropriate?

Correct answer: B

Kafka transactions allow a producer to atomically write records across multiple partitions and topics. A stable transactional.id unique to the logical producer instance enables transactional recovery and fencing when that instance is restarted; records are sent between beginTransaction and commitTransaction or abortTransaction. Idempotence alone handles retry duplicates but does not make multi-topic writes atomic. Sharing one transactional.id among concurrent instances causes them to fence one another. client.id is for identification and isolation.level is a consumer setting.

Question 9

Added

Dropdown

A Java consumer is being configured for a service that must read only committed transactional records and must not automatically advance offsets. The application will commit offsets after its processing succeeds. Complete the required consumer properties.

Choose the correct value for each blank.

properties.put("isolation.level", ""); properties.put("enable.auto.commit", );
Correct answer:

properties.put("isolation.level", "read_committed"); properties.put("enable.auto.commit", false);

read_committed makes the consumer return only records from committed transactions, withholding records that belong to an open or aborted transaction. Setting enable.auto.commit to false leaves offset advancement under application control so it can occur after processing succeeds. read_uncommitted exposes transactional records before the transaction outcome is known. committed_only is not a valid isolation.level value. Enabling auto-commit would violate the requirement to commit only after successful processing.

Apache Kafka® Streams

4 practice questions on this topicWhat this topic covers

Question 10

Added

Single Answer

A logistics company uses a Kafka Streams application to enrich shipment events with a compacted topic containing the latest depot details. Depot updates are keyed by depot ID, and shipment records also carry that ID. The team wants each shipment enriched with the latest depot value without retaining an unbounded history or introducing a second streaming input. The application must recover correctly after a restart, and the depot table is updated continuously. Which design best meets these requirements?

Correct answer: C

A GlobalKTable is replicated to every application instance and supports a non-windowed stream-table lookup using a key derived from each shipment, so the depot ID need not be the shipment record key. Kafka Streams restores the table from its changelogged source topic after restart. A regular KTable join requires compatible keying and partitioning for the join, which the scenario does not establish. A windowed KStream-KStream join retains event history and adds an unnecessary time constraint. A KTable does not automatically repartition itself to match an arbitrary foreign-key lookup.

Question 11

Added

Single Answer

A Kafka Streams application aggregates sales by store over five-minute event-time windows. Events can arrive up to two minutes late, and the business accepts dropping records later than that. The application must emit a final result for a window only after its accepted late-arrival period has elapsed; it must not emit repeated updates while the window remains open. Which approach best fits?

Correct answer: B

A tumbling window defines non-overlapping five-minute event-time intervals. A two-minute grace period admits late records during the stated allowance, and suppression until window closure emits a final result rather than intermediate aggregate updates. No grace period would reject records that the business accepts as late. A hopping window creates overlapping windows and changes the aggregation semantics. A session window groups events by inactivity gap rather than fixed five-minute boundaries.

Question 12

Added

Dropdown

A Streams application performs a count grouped by key and must materialize the result in a persistent local state store. The team wants the store backed by Kafka so it can be restored after an instance is replaced. Complete the configuration values for the persistent store builder.

Choose the correct value for each blank.

Stores.("store").()
Correct answer:

Stores.persistentKeyValueStore("store").withLoggingEnabled()

A grouped count is naturally materialized as a key-value store, and persistentKeyValueStore creates the durable local store type. withLoggingEnabled configures the changelog topic used to restore the store after replacement or failure. An in-memory store does not meet the persistent-local-store requirement. Window and session stores represent different data models. Caching and retention or segment methods do not enable the required changelog recovery mechanism.

Question 13

Added

Single Answer

A Streams service performs a join between two streams keyed by order ID. Matching events can arrive several minutes apart, and operators are seeing incorrect unmatched results after a rolling deployment that changed the application's application.id. The topology uses persistent state stores and must resume the same logical processing state after deployment. Which remediation is best?

Correct answer: C

Kafka Streams uses application.id to identify the application, its consumer group, internal topics, and state recovery lineage. Keeping the prior ID allows the deployment to resume the existing logical state, while a join window that covers event-arrival skew retains records long enough to match. Changing only the ID creates a distinct application and does not reuse its state. Copying local state directories is not a reliable cluster-wide recovery strategy. Producer delivery timeout does not control join matching or state identity.

Application Testing

2 practice questions on this topicWhat this topic covers

Question 14

Added

Order List

A developer must write a deterministic unit test for a Kafka Streams topology that consumes input records, computes a keyed aggregate, and writes results to an output topic. The test must avoid a broker and should verify output records after the topology processes its input. Arrange the testing steps in the order they should be performed.

Drag the steps into the correct order, or use the arrows.

  1. Pipe timestamped input records through the input test topic
  2. Read output records and assert keys, values, and timestamps
  3. Create a TopologyTestDriver from the topology and test configuration
  4. Create input and output test-topic handles with the expected serializers and deserializers
Correct answer:
  1. Create a TopologyTestDriver from the topology and test configuration
  2. Create input and output test-topic handles with the expected serializers and deserializers
  3. Pipe timestamped input records through the input test topic
  4. Read output records and assert keys, values, and timestamps

TopologyTestDriver runs the Streams topology without a Kafka broker, so the test begins by constructing it with the topology and configuration. Test-topic handles then provide typed input and output boundaries. Piping timestamped records lets the topology's event-time behavior run deterministically. Finally, reading and asserting output records verifies the observable result, including timestamps where relevant. Asserting before input is supplied cannot validate the aggregate, and using a broker would not meet the stated unit-test constraint.

Question 15

Added

Single Answer

A team is building an integration test for a producer and consumer that must verify actual broker partition assignment, serialization, and consumer-group behavior. Unit tests already use mocks, but the integration test must exercise a real Kafka broker and remain isolated from developers' local clusters. The test suite must start and stop its own infrastructure as part of the build. Which approach is most appropriate?

Correct answer: C

An embedded Kafka broker provides a real broker for exercising partition assignment, serialization, and consumer-group behavior while allowing the test suite to manage its lifecycle. Isolated topic names prevent interference with other test runs. MockProducer and MockConsumer do not validate broker behavior or actual metadata. TopologyTestDriver is intended for testing Kafka Streams topologies, not arbitrary producer-consumer integration. A developer's local broker is neither isolated nor reliably available in the build environment.

Application Observability

2 practice questions on this topicWhat this topic covers

Question 16

Added

Single Answer

A production consumer group is processing a topic with a stable number of partitions and records. Its end-to-end latency has increased, but consumer CPU remains low and the lag metric is rising. The team needs to determine whether records are accumulating because consumers are not polling, processing slowly, or failing to commit progress. They have access to Kafka client metrics and broker metrics, but cannot add application tracing during the current incident. What should they inspect first?

Correct answer: D

Consumer lag metrics show the distance between the group's committed position and the log end, while fetch, poll, and commit metrics help distinguish lack of consumption from delayed processing or offset progress. This is the most direct evidence available under the incident constraints. Replication health matters for availability but does not explain a consumer's processing pace by itself. Producer batching metrics do not diagnose the group's poll or commit behavior. Adding partitions changes the workload and can mask rather than identify the cause.

Question 17

Added

Multiple Answers

A team is operating a Java Kafka consumer application and must alert on loss of processing capacity before backlog becomes customer-visible. The topic's partition count is fixed for the release, and broker dashboards show no replication problems. The application exposes consumer client metrics through JMX. Which two signals should be included in the first alert set? (Choose two.)

Correct answer: A, C

records-lag-max reveals the worst-behind partition and can expose an uneven or stalled consumer. poll-idle-ratio helps distinguish a consumer that spends most of its time waiting for records from one busy processing fetched data. Broker request-handler idle percentage is a broker capacity signal, not a direct measure of application processing. A topic's log-end offset does not show a consumer's committed progress without comparison. Commit latency concerns offset commit requests, not replica health.

More Practice Questions

Get the Full Confluent CCDAK Dumps as PDF and Practice Test

17 questions are free on this page and the full set has 150. It comes as a PDF and an online practice test, with 90 days of free updates.