Exam Information
Free practice questions with explanations
Confluent CCDAK Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 13
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Apache Kafka Fundamentals
A retail company runs a Kafka cluster with replication factor 3 and min.insync.replicas set to 2 on its orders topic. Producers use acks=all. During a rolling broker upgrade, one broker is taken offline for maintenance while a second broker experiences a transient network partition from the controller. A producer reports NotEnoughReplicasException for writes to a single partition, while other partitions continue to accept writes. The team wants to preserve durability guarantees without rejecting writes unnecessarily during future maintenance. Which action is the BEST next step?
Correct Answer: CExplanationWith acks=all and min.insync.replicas=2, a write is rejected with NotEnoughReplicasException when the in-sync replica set for that partition drops below two. The correct response is to diagnose the ISR for the affected partition, restore the lagging replica, and schedule maintenance so that durability guarantees are not violated. Lowering min.insync.replicas to 1 weakens durability and risks data loss on leader failure. Setting acks=1 also weakens the guarantee the business requires. Increasing the replication factor does not by itself fix a shrunken ISR and changes the cost profile without addressing the cause.
-
2 Question 2 Multiple choice Apache Kafka Application Development
A logistics company has a producer application that publishes shipment events keyed by shipment ID. Consumers in a single consumer group must process all events for a given shipment in order, and the company must not lose or duplicate events from the producer's perspective when retries occur due to transient network errors. The team is deciding on producer configuration. (Choose two.)
Correct Answer: C, EExplanationWith enable.idempotence=true, the broker deduplicates producer retries using producer ID and sequence numbers, so retries do not create duplicates. Idempotent producers allow up to 5 in-flight requests while still preserving per-partition ordering, which is why setting max.in.flight.requests.per.connection to 5 is safe in that mode. Setting retries=0 causes lost events on transient failures. A random partitioner breaks the per-shipment ordering guarantee because a key's events would scatter across partitions. acks=0 gives no delivery guarantee at all and cannot satisfy the no-loss requirement.
-
3 Question 3 Order list Apache Kafka Streams
A fraud detection team has built a Kafka Streams application that joins a payments stream with a customer-profile KTable and writes results to a flagged-transactions topic. After a deployment, the team changed the join logic and must now reprocess the input topics from the beginning without disrupting other consumer groups that read the same topics. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Deploy the updated application so that it starts consuming from the earliest offsets on the input topics.
- Verify that the flagged-transactions output is being regenerated and monitor consumer lag.
- Stop all running instances of the Kafka Streams application.
- Run the application reset tool for the Streams application ID to reset the input topic offsets and clear internal state.
- Delete the internal changelog and repartition topics that the application created, if they are not cleaned up by the reset tool.
Correct Answer:- Stop all running instances of the Kafka Streams application.
- Run the application reset tool for the Streams application ID to reset the input topic offsets and clear internal state.
- Delete the internal changelog and repartition topics that the application created, if they are not cleaned up by the reset tool.
- Deploy the updated application so that it starts consuming from the earliest offsets on the input topics.
- Verify that the flagged-transactions output is being regenerated and monitor consumer lag.
ExplanationKafka Streams requires all instances of an application to be stopped before resetting, because a running instance would continue writing to state and offsets. The application reset tool resets committed offsets for the application ID and removes local state, while its own internal topics are also handled by the tool, but leftover internal topics may need explicit deletion. The updated application is then deployed, and output and lag are verified. Other consumer groups are unaffected because the reset only touches offsets for this application ID.
-
4 Question 4 Drag and drop Application Observability
A platform team operates a multi-tenant Kafka cluster serving several product teams. They need to detect the following conditions early and must choose the most appropriate signal for each. Match each requirement to the signal that best detects it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Consumers in a group are falling further behind the latest offset on a critical topicBrokers are running out of disk capacity because retention is too generousProducers are receiving errors on sends due to unavailable partition leadersLog size per topic and partitionConsumer heartbeat intervalConsumer group lag per partitionProducer error rate and request metricsBroker JVM garbage collection pause durationCorrect Answer:- Consumers in a group are falling further behind the latest offset on a critical topic → Consumer group lag per partition
- Brokers are running out of disk capacity because retention is too generous → Log size per topic and partition
- Producers are receiving errors on sends due to unavailable partition leaders → Producer error rate and request metrics
ExplanationConsumer group lag measures how far a group's committed offsets trail the log end offset, which directly reveals consumers falling behind. Log size per topic and partition shows disk consumption driven by retention settings. Producer error and request metrics surface send failures such as those caused by leader unavailability. JVM GC pauses are a broker health signal but do not directly show consumer lag or disk growth, and heartbeat interval is a consumer configuration, not an observability signal for the stated problems.
-
5 Question 5 Single choice Application Testing
A developer is writing integration tests for a Kafka consumer that must deduplicate events by business key using a state store within a Kafka Streams topology. The CI pipeline runs on shared build agents and cannot access an external Kafka cluster. The tests must verify output records and state store contents deterministically, without network timing dependencies. Which approach is the MOST appropriate?
Correct Answer: DExplanationTopologyTestDriver executes a Kafka Streams topology in-process without a broker, letting tests pipe records synchronously and inspect output topics and state stores deterministically. This satisfies the constraint of no external cluster and no timing dependency. Using a shared staging cluster violates the isolation requirement and relies on sleeps, which are flaky. Mocking the clients skips the topology logic under test entirely. Starting a full broker per test is possible but conflicts with the CI constraint and introduces timing variability that the requirement excludes.
-
6 Question 6 Dropdown Apache Kafka Application Development
A payments team is configuring a Java consumer that must commit offsets only after records have been fully processed and written to a downstream database, so that a crash does not skip any records. Complete the configuration by selecting the correct value for each blank.
Choose the correct value for each blank.
enable.auto.commit=
auto.offset.reset=
commit pattern: call consumer.() after the database transaction commitsCorrect Answer:enable.auto.commit=false
auto.offset.reset=earliest
commit pattern: call consumer.commitSync() after the database transaction commitsExplanationSetting enable.auto.commit to false prevents the consumer from committing offsets on a timer before processing completes, which would risk skipping records after a crash. auto.offset.reset=earliest ensures that a new group with no committed offset starts from the beginning rather than skipping existing data. Calling commitSync after the database transaction commits gives a synchronous, durable commit tied to processing completion. The 'manual' option is not a valid value for enable.auto.commit. latest would skip historical records, and seekToEnd is a seek operation rather than a commit.
-
7 Question 7 Single choice Apache Kafka Fundamentals
A media company stores user activity events in a topic named activity.raw with 24 partitions. Analysts want the latest state for each user, and the company must retain only the most recent record per user key indefinitely while keeping all tombstone deletes applied. Storage budget is limited, and the company does not need a time-based cutoff for historical events. Which topic configuration BEST meets these requirements?
Correct Answer: CExplanationLog compaction with cleanup.policy=compact retains the latest record per key and removes older ones, which matches the goal of keeping the latest state per user indefinitely. delete.retention.ms controls how long tombstones are retained so that consumers can observe deletes before they are removed. Time-based delete would discard the latest state for inactive users. The combined compact,delete policy would also apply size or time deletion, which the requirements exclude. Frequent segment rolling with delete removes data by age and does not preserve latest-per-key state.
-
8 Question 8 Multiple choice Application Observability
A team runs Kafka Connect source connectors that push data into a topic consumed by several downstream applications. After a connector restart, the team sees duplicate records and wants to understand the cause and monitor for recurrence. Which TWO actions are the most appropriate? (Choose two.)
Correct Answer: C, DExplanationDuplicates after a restart in a source connector typically indicate that offsets were not committed before the failure, so the replay begins earlier than the last delivered record. Inspecting task status and offset state through the Connect REST API verifies this. Monitoring offset commit metrics and alerting on task failures gives early warning of recurrence. Disabling retries does not address replay from uncommitted offsets. Partition count has no effect on duplicates from replay. Re-creating the connector does not remove records already written to the topic.
-
9 Question 9 Dropdown Apache Kafka Streams
A streaming analytics team needs to count clicks per user over fixed 5-minute windows and must tolerate events that arrive up to 1 minute late. They are defining the windowed aggregation in the Kafka Streams DSL. Complete the statement by selecting the correct value for each blank.
Choose the correct value for each blank.
KTable counts = clicksStream.groupByKey().windowedBy(TimeWindows.(Duration.ofMinutes(5)).(Duration.ofMinutes(1))).count();Correct Answer:KTable counts = clicksStream.groupByKey().windowedBy(TimeWindows.ofSizeAndGrace(Duration.ofMinutes(5)).gracePeriod(Duration.ofMinutes(1))).count();
ExplanationTimeWindows.ofSizeAndGrace is the factory method that creates tumbling windows with a specified grace period, which the DSL applies to accept late-arriving records. The gracePeriod setter is applied to the window definition to bound how late events may arrive before being dropped. ofSizeWithNoGrace would discard late records immediately, violating the one-minute tolerance. sessionWindowedBy creates session windows, not fixed windows, and hoppingWindow is not a TimeWindows method. advanceBy would make the windows hopping, and suppress controls emission rather than lateness tolerance.
-
10 Question 10 Single choice Apache Kafka Fundamentals
A healthcare provider uses a Kafka cluster where consumers must not receive messages that were never fully committed by producers, because downstream systems cannot handle partial transactions. Producers write multi-record units of work across several topics as one atomic operation. Consumers in another team already exist and cannot be modified in the short term. Which configuration BEST meets the requirement?
Correct Answer: DExplanationTransactional producers with a transactional.id provide atomic writes across multiple topics and partitions, and consumers configured with isolation.level=read_committed only return records from committed transactions. The consumers in this scenario are unchanged, but the requirement says they cannot be modified; the read_committed setting is therefore the point to note. Because the existing consumers cannot be modified, the solution must rely on the consumer side configuration accepted by the team, and read_committed is the only setting that filters aborted and open transactions. read_uncommitted would expose partial work. Idempotence alone gives no cross-topic atomicity. min.insync.replicas controls durability, not transaction visibility.
-
11 Question 11 Order list Application Testing
A team is introducing a new schema version for events produced to a topic with Confluent Schema Registry enforcing BACKWARD compatibility. The change adds an optional field. Before any producer is upgraded, the team wants to confirm the change will not break existing consumers and then roll it out safely. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Deploy the updated consumers so they can read records with the new optional field.
- Run the producer integration tests against the new schema in a test environment.
- Deploy the updated producers that write records using the new schema version.
- Verify in production that consumers process records from both schema versions without deserialization errors.
- Register the new schema version using the compatibility check endpoint to confirm it is accepted under BACKWARD compatibility.
Correct Answer:- Register the new schema version using the compatibility check endpoint to confirm it is accepted under BACKWARD compatibility.
- Deploy the updated consumers so they can read records with the new optional field.
- Run the producer integration tests against the new schema in a test environment.
- Deploy the updated producers that write records using the new schema version.
- Verify in production that consumers process records from both schema versions without deserialization errors.
ExplanationThe compatibility check should run first to confirm Schema Registry accepts the new version under BACKWARD rules before anything is deployed. Consumers are then updated so they can read the new optional field, since BACKWARD compatibility means new schemas are read by consumers using the new version. Producers are only upgraded after consumers are ready, and integration tests run before production rollout. Verification in production confirms both versions decode correctly. Deploying producers before consumers risks failures if consumers cannot handle the new schema.
-
12 Question 12 Single choice Apache Kafka Application Development
A sensor platform publishes readings to a topic with 12 partitions. One device produces most of the traffic, and its readings are keyed by device ID. The consumer group has 12 instances, but one partition consistently lags while others keep up. Ordering per device must be preserved. Which change is the MOST appropriate?
Correct Answer: AExplanationRecords with the same key always hash to the same partition, so a single very hot device can overload one partition. Increasing partitions spreads keys across more partitions, but this trade-off must still preserve per-key ordering, which increasing partition count does not break for new keys. A round-robin partitioner destroys per-device ordering because records for one device would scatter across partitions. Reducing consumers does not fix a hot key, and max.poll.records does not change where the load lands.
-
13 Question 13 Drag and drop Apache Kafka Streams
A team operates a Kafka Streams application that performs a stream-table join and stores state locally with changelog topics. They want to reduce recovery time after an instance failure and understand how each setting affects standby and restoration behaviour. Match each requirement to the configuration that addresses it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Keep warm copies of state on other instances so a failed task can resume quicklyGive each Streams instance a stable identity so tasks are reassigned to a restarted instance with existing stateLimit how many standby replicas can be kept on the same hostgroup.instance.idnum.standby.replicascommit.interval.msrack.aware.assignment.tagsprocessing.guaranteeCorrect Answer:- Keep warm copies of state on other instances so a failed task can resume quickly → num.standby.replicas
- Give each Streams instance a stable identity so tasks are reassigned to a restarted instance with existing state → group.instance.id
- Limit how many standby replicas can be kept on the same host → rack.aware.assignment.tags
Explanationnum.standby.replicas keeps standby copies of task state, reducing restoration time after failure. group.instance.id provides static membership so a restarting instance keeps its assignment and avoids a costly rebalance. rack.aware.assignment.tags spreads standby replicas across racks or zones so they are not lost together. processing.guarantee controls exactly-once semantics rather than recovery time, and commit.interval.ms controls how often progress is committed, so neither addresses the stated requirements.
These are 13 of the 150 questions in the full CCDAK pack.
Get All 150 QuestionsGet all 150 questions & answers
Full access options for Confluent CCDAK
Self-study
PDF Version
- 150 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 150 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 150 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the CCDAK Exam (Certified Developer for Apache Kafka) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.