Free CCDAK Exam Braindumps (page: 16)

Page 15 of 38

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

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

Answer(s): A

Explanation:

Message with no keys will be stored with round-robin strategy among partitions.



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 consume request is sent to broker?

  1. Data will be returned from the remaining in-sync replica
  2. An empty message will be returned
  3. NotEnoughReplicasException will be returned
  4. A new leader for the partition will be elected

Answer(s): A

Explanation:

With this configuration, a single in-sync replica is still readable, but not writeable if the producer using acks=all



In Avro, removing a field that does not have a default is aschema evolution

  1. breaking
  2. full
  3. backward
  4. forward

Answer(s): C

Explanation:

Clients with new schema will be able to read records saved with old schema.



An ecommerce website maintains two topics - a high volume "purchase" topic with 5 partitions and low volume "customer" topic with 3 partitions. You would like to do a stream-table join of these topics. How should you proceed?

  1. Repartition the purchase topic to have 3 partitions
  2. Repartition customer topic to have 5 partitions
  3. Model customer as a GlobalKTable
  4. Do a KStream / KTable join after a repartition step

Answer(s): C

Explanation:

In case of KStream-KStream join, both need to be co-partitioned. This restriction is not applicable in case of join with GlobalKTable, which is the most efficient here.






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

CCDAK Discussions & Posts