New Year Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

Confluent CCDAK Confluent Certified Developer for Apache Kafka Certification Examination Exam Practice Test

Demo: 22 questions
Total 150 questions

Confluent Certified Developer for Apache Kafka Certification Examination Questions and Answers

Question 1

Producing with a key allows to...

Options:

A.

Ensure per-record level security

B.

Influence partitioning of the producer messages

C.

Add more information to my message

D.

Allow a Kafka Consumer to subscribe to a (topic,key) pair and only receive that data

Question 2

A kafka topic has a replication factor of 3 and min.insync.replicas setting of 1. What is the maximum number of brokers that can be down so that a producer with acks=all can still produce to the topic?

Options:

A.

3

B.

0

C.

2

D.

1

Question 3

Which Kafka CLI should you use to consume from a topic?

Options:

A.

kafka-console-consumer

B.

kafka-topics

C.

kafka-console

D.

kafka-consumer-groups

Question 4

How will you find out all the partitions where one or more of the replicas for the partition are not in-sync with the leader?

Options:

A.

kafka-topics.sh --bootstrap-server localhost:9092 --describe --unavailable- partitions

B.

kafka-topics.sh --zookeeper localhost:2181 --describe --unavailable- partitions

C.

kafka-topics.sh --broker-list localhost:9092 --describe --under-replicated-partitions

D.

kafka-topics.sh --zookeeper localhost:2181 --describe --under-replicated-partitions

Question 5

How does a consumer commit offsets in Kafka?

Options:

A.

It directly sends a message to the __consumer_offsets topic

B.

It interacts with the Group Coordinator broker

C.

It directly commits the offsets in Zookeeper

Question 6

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?

Options:

A.

10

B.

6

C.

3

D.

2

Question 7

Which actions will trigger partition rebalance for a consumer group? (select three)

Options:

A.

Increase partitions of a topic

B.

Remove a broker from the cluster

C.

Add a new consumer to consumer group

D.

A consumer in a consumer group shuts down

Add a broker to the cluster

Question 8

There are 3 producers writing to a topic with 5 partitions. There are 5 consumers consuming from the topic. How many Controllers will be present in the cluster?

Options:

A.

3

B.

5

C.

2

D.

1

Question 9

You are receiving orders from different customer in an "orders" topic with multiple partitions. Each message has the customer name as the key. There is a special customer named ABC that generates a lot of orders and you would like to reserve a partition exclusively for ABC. The rest of the message should be distributed among other partitions. How can this be achieved?

Options:

A.

Add metadata to the producer record

B.

Create a custom partitioner

C.

All messages with the same key will go the same partition, but the same partition may have messages with different keys. It is not possible to reserve

D.

Define a Kafka Broker routing rule

Question 10

Once sent to a topic, a message can be modified

Options:

A.

No

B.

Yes

Question 11

What is a generic unique id that I can use for messages I receive from a consumer?

Options:

A.

topic + partition + timestamp

B.

topic + partition + offset

C.

topic + timestamp

Question 12

We have a store selling shoes. What dataset is a great candidate to be modeled as a KTable in Kafka Streams?

Options:

A.

Money made until now

B.

The transaction stream

C.

Items returned

D.

Inventory contents right now

Question 13

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?

Options:

A.

Data will be returned from the remaining in-sync replica

B.

An empty message will be returned

C.

NotEnoughReplicasException will be returned

D.

A new leader for the partition will be elected

Question 14

If I want to send binary data through the REST proxy to topic "test_binary", it needs to be base64 encoded. A consumer connecting directly into the Kafka topic A. "test_binary" will receive

B. binary data

C. avro data

D. json data

E. base64 encoded data, it will need to decode it

Options:

Question 15

while (true) {

ConsumerRecords records = consumer.poll(100);

try {

consumer.commitSync();

} catch (CommitFailedException e) {

log.error("commit failed", e)

}

for (ConsumerRecord record records)

{

System.out.printf("topic = %s, partition = %s, offset =

%d, customer = %s, country = %s

",

record.topic(), record.partition(),

record.offset(), record.key(), record.value());

}

}

What kind of delivery guarantee this consumer offers?

Options:

A.

Exactly-once

B.

At-least-once

C.

At-most-once

Question 16

What happens when broker.rack configuration is provided in broker configuration in Kafka cluster?

Options:

A.

You can use the same broker.id as long as they have different broker.rack configuration

B.

Replicas for a partition are placed in the same rack

C.

Replicas for a partition are spread across different racks

D.

Each rack contains all the topics and partitions, effectively making Kafka highly available

Question 17

You are building a consumer application that processes events from a Kafka topic. What is the most important metric to monitor to ensure real-time processing?

Options:

A.

UnderReplicatedPartitions

B.

records-lag-max

C.

MessagesInPerSec

D.

BytesInPerSec

Question 18

If I produce to a topic that does not exist, and the broker setting auto.create.topic.enable=true, what will happen?

Options:

A.

Kafka will automatically create the topic with 1 partition and 1 replication factor

B.

Kafka will automatically create the topic with the indicated producer settings num.partitions and default.replication.factor

C.

Kafka will automatically create the topic with the broker settings num.partitions and default.replication.factor

D.

Kafka will automatically create the topic with num.partitions=#of brokers and replication.factor=3

Question 19

There are 3 producers writing to a topic with 5 partitions. There are 10 consumers consuming from the topic as part of the same group. How many consumers will remain idle?

Options:

A.

10

B.

3

C.

None

D.

5

Question 20

Your streams application is reading from an input topic that has 5 partitions. You run 5 instances of your application, each with num.streams.threads set to 5. How many stream tasks will be created and how many will be active?

Options:

A.

5 created, 1 active

B.

5 created, 5 active

C.

25 created, 25 active

D.

25 created, 5 active

Question 21

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?

Options:

A.

Repartition the purchase topic to have 3 partitions

B.

Repartition customer topic to have 5 partitions

C.

Model customer as a GlobalKTable

D.

Do a KStream / KTable join after a repartition step

Question 22

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?

Options:

A.

Create 8 consumers in the same group with 4 consumers for each application

B.

Create two consumers groups for two applications with 8 consumers in each

C.

Create two consumer groups for two applications with 4 consumers in each

D.

Create four consumers in the same group, one for each partition - two for fulfilment and two for monitoring

Demo: 22 questions
Total 150 questions