Free CCDAK Exam Braindumps

Pass your Confluent Certified Developer for Apache Kafka Certification Examination exam with these free Questions and Answers

Page 6 of 30
QUESTION 21

You want to send a message of size 3 MB to a topic with default message size configuration. How does KafkaProducer handle large messages?

  1. A. KafkaProducer divides messages into sizes of max.request.size and sends them in order
  2. B. KafkaProducer divides messages into sizes of message.max.bytes and sends them in order
  3. C. MessageSizeTooLarge exception will be thrown, KafkaProducer will not retry and return exception immediately
  4. D. MessageSizeTooLarge exception will be thrown, KafkaProducer retries until the number of retries are exhausted

Correct Answer: C
MessageSizeTooLarge is not a retryable exception.

QUESTION 22

A topic has three replicas and you set min.insync.replicas to 2. If two out of three replicas are not available, what happens when a produce request with acks=all is sent to broker?

  1. A. NotEnoughReplicasException will be returned
  2. B. Produce request is honored with single in-sync replica
  3. C. Produce request will block till one of the two unavailable partition is available again.

Correct Answer: A
With this configuration, a single in-sync replica becomes read-only. Produce request will receive NotEnoughReplicasException.

QUESTION 23

If I supply the setting compression.type=snappy to my producer, what will happen? (select two)

  1. A. The Kafka brokers have to de-compress the data
  2. B. The Kafka brokers have to compress the data
  3. C. The Consumers have to de-compress the data
  4. D. The Consumers have to compress the data
  5. E. The Producers have to compress the data

Correct Answer: C
Kafka transfers data with zero copy and no transformation. Any transformation (including compression) is the responsibility of clients.

QUESTION 24

A producer is sending messages with null key to a topic with 6 partitions using the DefaultPartitioner. Where will the messages be stored?

  1. A. Partition 5
  2. B. Any of the topic partitions
  3. C. The partition for the null key
  4. D. Partition 0

Correct Answer: A
Message with no keys will be stored with round-robin strategy among partitions.

QUESTION 25

If a topic has a replication factor of 3...

  1. A. 3 replicas of the same data will live on 1 broker
  2. B. Each partition will live on 4 different brokers
  3. C. Each partition will live on 2 different brokers
  4. D. Each partition will live on 3 different brokers

Correct Answer: D
Replicas are spread across available brokers, and each replica = one broker. RF 3 = 3 brokers

Page 6 of 30

Post your Comments and Discuss Confluent CCDAK exam with other Community members: