Free CCDAK Exam Braindumps (page: 16)

Page 16 of 38

You are sending messages with keys to a topic. To increase throughput, you decide to increase the number of partitions of the topic. Select all that apply.

  1. All the existing records will get rebalanced among the partitions to balance load
  2. New records with the same key will get written to the partition where old records with that key were written
  3. New records may get written to a different partition
  4. Old records will stay in their partitions

Answer(s): C,D

Explanation:

Increasing the number of partition causes new messages keys to get hashed differently, and breaks the guarantee "same keys goes to the same partition". Kafka logs are immutable and the previous messages are not re-shuffled



In Kafka Streams, by what value are internal topics prefixed by?

  1. tasks-<number>
  2. application.id
  3. group.id
  4. kafka-streams-

Answer(s): B

Explanation:

In Kafka Streams, the application.id is also the underlying group.id for your consumers, and the prefix
for all internal topics (repartition and state)



You are using JDBC source connector to copy data from 3 tables to three Kafka topics. There is one connector created with max.tasks equal to 2 deployed on a cluster of 3 workers. How many tasks are launched?

  1. 2
  2. 1
  3. 3
  4. 6

Answer(s): A

Explanation:

here, we have three tables, but the max.tasks is 2, so that's the maximum number of tasks that will be created



You are doing complex calculations using a machine learning framework on records fetched from a Kafka topic. It takes more about 6 minutes to process a record batch, and the consumer enters rebalances even though it's still running. How can you improve this scenario?

  1. Increase max.poll.interval.ms to 600000
  2. Increase heartbeat.interval.ms to 600000
  3. Increase session.timeout.ms to 600000
  4. Add consumers to the consumer group and kill them right away

Answer(s): A

Explanation:

Here, we need to change the setting max.poll.interval.ms (default 300000) to its double in order to tell Kafka a consumer should be considered dead if the consumer only if it hasn't called the .poll() method in 10 minutes instead of 5.



Page 16 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