Free CCDAK Exam Braindumps (page: 12)

Page 12 of 38

How will you read all the messages from a topic in your KSQL query?

  1. KSQL reads from the beginning of a topic, by default.
  2. KSQL reads from the end of a topic. This cannot be changed.
  3. Use KSQL CLI to set auto.offset.reset property to earliest

Answer(s): C

Explanation:

Consumers can set auto.offset.reset property to earliest to start consuming from beginning. For KSQL, SET 'auto.offset.reset'='earliest';



You want to sink data from a Kafka topic to S3 using Kafka Connect. There are 10 brokers in the cluster, the topic has 2 partitions with replication factor of 3. How many tasks will you configure for the S3 connector?

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

Answer(s): D

Explanation:

You cannot have more sink tasks (= consumers) than the number of partitions, so 2.



Producing with a key allows to...

  1. Ensure per-record level security
  2. Influence partitioning of the producer messages
  3. Add more information to my message
  4. Allow a Kafka Consumer to subscribe to a (topic,key) pair and only receive that data

Answer(s): B

Explanation:

Keys are necessary if you require strong ordering or grouping for messages that share the same key. If you require that messages with the same key are always seen in the correct order, attaching a key to messages will ensure messages with the same key always go to the same partition in a topic. Kafka guarantees order within a partition, but not across partitions in a topic, so alternatively not providing a key - which will result in round-robin distribution across partitions - will not maintain such order.



Select all the way for one consumer to subscribe simultaneously to the following topics - topic.history, topic.sports, topic.politics? (Select two)

  1. consumer.subscribe(Pattern.compile("topic\..*"));
  2. consumer.subscribe("topic.history");consumer.subscribe("topic.sports"); consumer.subscribe("topic.politics");
  3. consumer.subscribePrefix("topic.");
  4. consumer.subscribe(Arrays.asList("topic.history", "topic.sports", "topic.politics"));

Answer(s): A,D

Explanation:

Multiple topics can be passed as a list or regex pattern.



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