Confluent Certified Developer for Apache Kafka CCDAK Exam Questions

Page: 1 / 14
Total 150 questions
Question 1

To prevent network-induced duplicates when producing to Kafka, I should use



Answer : B

Producer idempotence helps prevent the network introduced duplicates. More details herehttps://cwiki.apache.org/confluence/display/KAFKA/Idempotent+Producer


Question 2

How often is log compaction evaluated?



Answer : B

Log compaction is evaluated every time a segment is closed. It will be triggered if enough data is 'dirty' (see dirty ratio config)


Question 3

A topic receives all the orders for the products that are available on a commerce site. Two applications want to process all the messages independently - order fulfilment and monitoring. The topic has 4 partitions, how would you organise the consumers for optimal performance and resource usage?



Answer : C

two partitions groups - one for each application so that all messages are delivered to both the application. 4 consumers in each as there are 4 partitions of the topic, and you cannot have more consumers per groups than the number of partitions (otherwise they will be inactive and wasting resources)


Question 4

Where are the ACLs stored in a Kafka cluster by default?



Answer : A

ACLs are stored in Zookeeper node /kafka-acls/ by default.


Question 5

A consumer wants to read messages from a specific partition of a topic. How can this be achieved?



Question 6

What is not a valid authentication mechanism in Kafka?



Answer : C

Learn more about security herehttps://kafka.apache.org/documentation/#security


Question 7

What happens if you write the following code in your producer? producer.send(producerRecord).get()



Answer : B

Using Future.get() to wait for a reply from Kafka will limit throughput.


Page:    1 / 14   
Total 150 questions