Confluent CCDAK Certified Developer for Apache Kafka Exam Practice Test

Page: 1 / 14
Total 150 questions
Question 1

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?



Answer : D

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


Question 2

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



Question 3

When auto.create.topics.enable is set to true in Kafka configuration, what are the circumstances under which a Kafka broker automatically creates a topic? (select three)



Answer : A, B, D

A kafka broker automatically creates a topic under the following circumstances- When a producer starts writing messages to the topic - When a consumer starts reading messages from the topic - When any client requests metadata for the topic


Question 4

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



Answer : B

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. Seehttps://issues.apache.org/jira/browse/KAFKA-5494


Question 5

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 6

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.



Answer : C, D

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


Question 7

To produce data to a topic, a producer must provide the Kafka client with...



Answer : D

All brokers can respond to a Metadata request, so a client can connect to any broker in the cluster and then figure out on its own which brokers to send data to.


Page:    1 / 14   
Total 150 questions