Free CCDAK Exam Braindumps (page: 2)

Page 2 of 38

There are two consumers C1 and C2 belonging to the same group G subscribed to topics T1 and T2. Each of the topics has 3 partitions. How will the partitions be assigned to consumers with Partition Assigner being Round Robin Assigner?

  1. C1 will be assigned partitions 0 and 2 from T1 and partition 1 from T2. C2 will have partition 1 from T1 and partitions 0 and 2 from T2.
  2. Two consumers cannot read from two topics at the same time
  3. C1 will be assigned partitions 0 and 1 from T1 and T2, C2 will be assigned partition 2 from T1 and T2.
  4. All consumers will read from all partitions

Answer(s): A

Explanation:

The correct option is the only one where the two consumers share an equal number of partitions amongst the two topics of three partitions. An interesting article to read is


Reference:

https://medium.com/@anyili0928/what-i-have-learned-from-kafka-partition-assignment-strategy-799fdf15d3ab



A client connects to a broker in the cluster and sends a fetch request for a partition in a topic. It gets an exception Not Leader For Partition Exception in the response. How does client handle this situation?

  1. Get the Broker id from Zookeeper that is hosting the leader replica and send request to it
  2. Send metadata request to the same broker for the topic and select the broker hosting the leader replica
  3. Send metadata request to Zookeeper for the topic and select the broker hosting the leader replica
  4. Send fetch request to each Broker in the cluster

Answer(s): B

Explanation:

In case the consumer has the wrong leader of a partition, it will issue a metadata request. The Metadata request can be handled by any node, so clients know afterwards which broker are the designated leader for the topic partitions. Produce and consume requests can only be sent to the node hosting partition leader.



What is the risk of increasing max.in.flight.requests.per.connection while also enabling retries in a producer?

  1. At least once delivery is not guaranteed
  2. Message order not preserved
  3. Reduce throughput
  4. Less resilient

Answer(s): B

Explanation:

Some messages may require multiple retries. If there are more than 1 requests in flight, it may result in messages received out of order. Note an exception to this rule is if you enable the producer settingenable.idempotence=true which takes care of the out of ordering case on its own.


Reference:

https://issues.apache.org/jira/browse/KAFKA-5494



A Kafka producer application wants to send log messages to a topic that does not include any key. What are the properties that are mandatory to configure for the producer configuration? (Select three)

  1. bootstrap.servers
  2. partition
  3. key.serializer
  4. value.serializer
  5. key
  6. value

Answer(s): A,C,D

Explanation:

Both key and value serializer are mandatory.



Page 2 of 38



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

Testbear commented on June 13, 2023
please upload
ITALY
upvote

Testbear commented on June 13, 2023
please upload
ITALY
upvote