Spring Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

CCDAK Confluent Certified Developer for Apache Kafka Certification Examination Questions and Answers

Questions 4

Which is true about topic compaction?

Options:

A.

When a client produces a new event with an existing key, the old value is overwritten with the new value in the compacted log segment.

B.

When a client produces a new event with an existing key, the broker immediately deletes the offset of the existing event.

C.

Topic compaction does not remove old events; instead, when clients consume events from a compacted topic, they store events in a hashmap that maintains the latest value.

D.

Compaction will keep exactly one message per key after compaction of inactive log segments.

Buy Now
Questions 5

(Which configuration determines the maximum number of records a consumer can poll in a single call to poll()?)

Options:

A.

max.poll.records

B.

max.records.consumer

C.

fetch.max.records

D.

max.poll.records.interval

Buy Now
Questions 6

Which statement describes the storage location for a sink connector’s offsets?

Options:

A.

The __consumer_offsets topic, like any other consumer

B.

The topic specified in the offsets.storage.topic configuration parameter

C.

In a file specified by the offset.storage.file.filename configuration parameter

D.

In memory which is then periodically flushed to a RocksDB instance

Buy Now
Questions 7

(You are writing a producer application and need to ensure proper delivery.

You configure the producer with acks=all.

Which two actions should you take to ensure proper error handling?

Select two.)

Options:

A.

Check the value of ProducerRecord.status().

B.

Use a callback argument in producer.send() where you check delivery status.

C.

Check that producer.send() returned a RecordMetadata object and is not null.

D.

Surround the call to producer.send() with a try/catch block to catch KafkaException.

Buy Now
Questions 8

You create a producer that writes messages about bank account transactions from tens of thousands of different customers into a topic.

Your consumers must process these messages with low latency and minimize consumer lag

Processing takes ~6x longer than producing

Transactions for each bank account must be processed in orderWhich strategy should you use?

Options:

A.

Use the timestamp of the message's arrival as its key.

B.

Use the bank account number found in the message as the message key.

C.

Use a combination of the bank account number and the transaction timestamp as the message key.

D.

Use a unique identifier such as a universally unique identifier (UUID) as the message key.

Buy Now
Questions 9

Kafka producers can batch messages going to the same partition.

Which statement is correct about producer batching?

Options:

A.

Producers can only batch messages of the same size.

B.

Two or more broker failures will automatically disable batching on the producer.

C.

Producers have a separate background thread for each batch.

D.

Producers can include multiple batches in a single request to a broker.

Buy Now
Questions 10

(Your application consumes from a topic configured with a deserializer.

You want the application to be resilient to badly formatted records (poison pills).

You surround the poll() call with a try/catch block for RecordDeserializationException.

You need to log the bad record, skip it, and continue processing other records.

Which action should you take in the catch block?)

Options:

A.

Log the bad record and seek the consumer to the offset of the next record.

B.

Log the bad record and call consumer.skip() method.

C.

Throw a runtime exception to trigger a restart of the application.

D.

Log the bad record; no other action is needed.

Buy Now
Questions 11

(An S3 source connector named s3-connector stopped running.

You use the Kafka Connect REST API to query the connector and task status.

One of the three tasks has failed.

You need to restart the connector and all currently running tasks.

Which REST request will restart the connector instance and all its tasks?)

Options:

A.

POST /connectors/s3-connector/restart?includeTasks=true

B.

POST /connectors/s3-connector/restart?includeTasks=true & onlyFailed=true

C.

POST /connectors/s3-connector/restart

D.

POST /connectors/s3-connector/tasks/0/restart

Buy Now
Questions 12

You want to connect with username and password to a secured Kafka cluster that has SSL encryption.

Which properties must your client include?

Options:

A.

security.protocol=SASL_SSLsasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username='myUser' password='myPassword';

B.

security.protocol=SSLsasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username='myUser' password='myPassword';

C.

security.protocol=SASL_PLAINTEXTsasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username='myUser' password='myPassword';

D.

security.protocol=PLAINTEXTsasl.jaas.config=org.apache.kafka.common.security.ssl.TlsLoginModule required username='myUser' password='myPassword';

Buy Now
Questions 13

(You create an Orders topic with 10 partitions.

The topic receives data at high velocity.

Your Kafka Streams application initially runs on a server with four CPU threads.

You move the application to another server with 10 CPU threads to improve performance.

What does this example describe?)

Options:

A.

Horizontal Scaling

B.

Vertical Scaling

C.

Plain Scaling

D.

Scaling Out

Buy Now
Questions 14

You need to correctly join data from two Kafka topics.

Which two scenarios will allow for co-partitioning?

(Select two.)

Options:

A.

Both topics have the same number of partitions.

B.

Both topics have the same key and partitioning strategy.

C.

Both topics have the same value schema.

D.

Both topics have the same retention time.

Buy Now
Questions 15

Your Kafka cluster has five brokers. The topic t1 on the cluster has:

Two partitions

Replication factor = 4

min.insync.replicas = 3You need strong durability guarantees for messages written to topic t1.You configure a producer acks=all and all the replicas for t1 are in-sync.How many brokers need to acknowledge a message before it is considered committed?

Options:

A.

2

B.

3

C.

4

D.

5

Buy Now
Questions 16

A stream processing application is tracking user activity in online shopping carts.

You want to identify periods of user inactivity.

Which type of Kafka Streams window should you use?

Options:

A.

Sliding

B.

Tumbling

C.

Hopping

D.

Session

Buy Now
Questions 17

The producer code below features a Callback class with a method called onCompletion().

When will the onCompletion() method be invoked?

Options:

A.

When a consumer sends an acknowledgement to the producer

B.

When the producer puts the message into its socket buffer

C.

When the producer batches the message

D.

When the producer receives the acknowledgment from the broker

Buy Now
Questions 18

Where are source connector offsets stored?

Options:

A.

offset.storage.topic

B.

storage.offset.topic

C.

topic.offset.config

D.

offset, storage, partitions

Buy Now
Questions 19

You have a consumer group with default configuration settings reading messages from your Kafka cluster.

You need to optimize throughput so the consumer group processes more messages in the same amount of time.

Which change should you make?

Options:

A.

Remove some consumers from the consumer group.

B.

Increase the number of bytes the consumers read with each fetch request.

C.

Disable auto commit and have the consumers manually commit offsets.

D.

Decrease the session timeout of each consumer.

Buy Now
Questions 20

What is a consequence of increasing the number of partitions in an existing Kafka topic?

Options:

A.

Existing data will be redistributed across the new number of partitions temporarily increasing cluster load.

B.

Records with the same key could be located in different partitions.

C.

Consumers will need to process data from more partitions which will significantly increase consumer lag.

D.

The acknowledgment process will increase latency for producers using acks=all.

Buy Now
Questions 21

A producer is configured with the default partitioner. It is sending records to a topic that is configured with five partitions. The record does not contain any key.

What is the result of this?

Options:

A.

Records will be dispatched among the available partitions.

B.

Records will be sent to partition 0.

C.

An error will be raised and no record will be sent.

D.

Records will be sent to the least used partition.

Buy Now
Questions 22

You create a topic named stream-logs with:

A replication factor of 3

Four partitions

Messages that are plain logs without a keyHow will messages be distributed across partitions?

Options:

A.

The first message will always be written to partition 0.

B.

Messages will be distributed round-robin among all the topic partitions.

C.

All messages will be written to the same log segment.

D.

Messages will be distributed among all the topic partitions with strict ordering.

Buy Now
Questions 23

You create a topic named loT-Data with 10 partitions and replication factor of three.

A producer sends 1 MB messages compressed with Gzip.

Which two statements are true in this scenario?

(Select two.)

Options:

A.

Compression type will be stored in batch attributes.

B.

By default, compression is the producer’s responsibility.

C.

The message is already compressed so it will not be serialized.

D.

All compressed messages will be stored in the same topic partition.

Buy Now
Questions 24

(Your configuration parameters for a Source connector and Connect worker are:

• offset.flush.interval.ms=60000

• offset.flush.timeout.ms=500

• offset.storage.topic=connect-offsets

• offset.storage.replication.factor=-1

Which two statements match the expected behavior?

Select two.)

Options:

A.

The offsets topic will use the broker default replication factor.

B.

The connector will commit offsets to the broker default offsets topic.

C.

The connector will commit offsets to a topic called connect-offsets.

D.

The connector will wait 500 ms before trying to commit offsets for tasks.

Buy Now
Questions 25

You have a Kafka consumer in production actively reading from a critical topic.

You need to update the offset of your consumer to start reading from the beginning of the topic.

Which action should you take?

Options:

A.

Temporarily configure the topic’s retention.ms parameter to 0 to empty the topic.

B.

Start a new consumer application with the same consumer group id.

C.

Update the consumer configuration by setting auto.offset.reset=earliest.

D.

Update the consumer group’s offset to the earliest position using the kafka-consumer-groups CLI tool.

Buy Now
Questions 26

You are creating a Kafka Streams application to process retail data.

Match the input data streams with the appropriate Kafka Streams object.

Options:

Buy Now
Questions 27

Your company has three Kafka clusters: Development, Testing, and Production.

The Production cluster is running out of storage, so you add a new node.

Which two statements about the new node are true?

(Select two.)

Options:

A.

A node ID will be assigned to the new node automatically.

B.

A newly added node will have KRaft controller role by default.

C.

A new node will not have any partitions assigned to it unless a new topic is created or reassignment occurs.

D.

A new node can be added without stopping existing cluster nodes.

Buy Now
Exam Code: CCDAK
Exam Name: Confluent Certified Developer for Apache Kafka Certification Examination
Last Update: May 17, 2026
Questions: 90

PDF + Testing Engine

$64.99  $185.69

Testing Engine

$49.99  $142.83
buy now CCDAK testing engine

PDF (Q&A)

$54.99  $157.11
buy now CCDAK pdf