Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: cramtick70

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

Questions 4

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 5

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_SSL

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

B.

security.protocol=SSL

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

C.

security.protocol=SASL_PLAINTEXT

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

D.

security.protocol=PLAINTEXT

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

Buy Now
Questions 6

Which partition assignment minimizes partition movements between two assignments?

Options:

A.

RoundRobinAssignor

B.

StickyAssignor

C.

RangeAssignor

D.

PartitionAssignor

Buy Now
Questions 7

Which two statements are correct about transactions in Kafka?

(Select two.)

Options:

A.

All messages from a failed transaction will be deleted from a Kafka topic.

B.

Transactions are only possible when writing messages to a topic with single partition.

C.

Consumers can consume both committed and uncommitted transactions.

D.

Information about producers and their transactions is stored in the _transaction_state topic.

E.

Transactions guarantee at least once delivery of messages.

Buy Now
Questions 8

Which configuration determines how many bytes of data are collected before sending messages to the Kafka broker?

Options:

A.

batch.size

B.

max.block.size

C.

buffer.memory

D.

send.buffer.bytes

Buy Now
Questions 9

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 processedin 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 10

Which statement is true about how exactly-once semantics (EOS) work in Kafka Streams?

Options:

A.

Kafka Streams disables log compaction on internal changelog topics to preserve all state changes for potential recovery.

B.

EOS in Kafka Streams relies on transactional producers to atomically commit state updates to changelog topics and output records to Kafka.

C.

Kafka Streams provides EOS by periodically checkpointing state stores and replaying changelogs to recover only unprocessed messages during failure.

D.

EOS in Kafka Streams is implemented by creating a separate Kafka topic for deduplication of all messages processed by the application.

Buy Now
Questions 11

Which two producer exceptions are examples of the class RetriableException? (Select two.)

Options:

A.

LeaderNotAvailableException

B.

RecordTooLargeException

C.

AuthorizationException

D.

NotEnoughReplicasException

Buy Now
Questions 12

An application is consuming messages from Kafka.

The application logs show that partitions are frequently being reassigned within the consumer group.

Which two factors may be contributing to this?

(Select two.)

Options:

A.

There is a slow consumer processing application.

B.

The number of partitions does not match the number of application instances.

C.

There is a storage issue on the broker.

D.

An instance of the application is crashing and being restarted.

Buy Now
Questions 13

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 14

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 15

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 16

You have a Kafka client application that has real-time processing requirements.

Which Kafka metric should you monitor?

Options:

A.

Consumer lag between brokers and consumers

B.

Total time to serve requests to replica followers

C.

Consumer heartbeat rate to group coordinator

D.

Aggregate incoming byte rate

Buy Now
Questions 17

You are composing a REST request to create a new connector in a running Connect cluster. You invoke POST /connectors with a configuration and receive a 409 (Conflict) response.

What are two reasons for this response? (Select two.)

Options:

A.

The connector configuration was invalid, and the response body will expand on the configuration error.

B.

The connect cluster has reached capacity, and new connectors cannot be created without expandingthe cluster.

C.

The Connector already exists in the cluster.

D.

The Connect cluster is in process of rebalancing.

Buy Now
Questions 18

You need to set alerts on key broker metrics to trigger notifications when the cluster is unhealthy.

Which are three minimum broker metrics to monitor?

(Select three.)

Options:

A.

kafka.controller:type=KafkaController,name=TopicsToDeleteCount

B.

kafka.controller:type=KafkaController,name=OfflinePartitionsCount

C.

kafka.controller:type=KafkaController,name=ActiveControllerCount

D.

kafka.controller:type=ControllerStats,name=UncleanLeaderElectionsPerSec

E.

kafka.controller:type=KafkaController,name=LastCommittedRecordOffset

Buy Now
Exam Code: CCDAK
Exam Name: Confluent Certified Developer for Apache Kafka Certification Examination
Last Update: Jul 5, 2025
Questions: 61
CCDAK pdf

CCDAK PDF

$25.5  $84.99
CCDAK Engine

CCDAK Testing Engine

$30  $99.99
CCDAK PDF + Engine

CCDAK PDF + Testing Engine

$40.5  $134.99