Weekend Sale Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

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

Page: 1 / 15
Total 150 questions

Confluent Certified Developer for Apache Kafka Certification Examination Questions and Answers

Question 1

In Avro, adding an element to an enum without a default is a __ schema evolution

Options:

A.

breaking

B.

full

C.

backward

D.

forward

Question 2

What is the protocol used by Kafka clients to securely connect to the Confluent REST Proxy?

Options:

A.

Kerberos

B.

SASL

C.

HTTPS (SSL/TLS)

D.

HTTP

Question 3

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 4

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 5

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 6

Where are KSQL-related data and metadata stored?

Options:

A.

Kafka Topics

B.

Zookeeper

C.

PostgreSQL database

D.

Schema Registry

Question 7

You have a Kafka cluster and all the topics have a replication factor of 3. One intern at your company stopped a broker, and accidentally deleted all the data of that broker on the disk. What will happen if the broker is restarted?

Options:

A.

The broker will start, and other topics will also be deleted as the broker data on the disk got deleted

B.

The broker will start, and won't be online until all the data it needs to have is replicated from other leaders

C.

The broker will crash

D.

The broker will start, and won't have any data. If the broker comes leader, we have a data loss

Question 8

A consumer starts and has auto.offset.reset=latest, and the topic partition currently has data for offsets going from 45 to 2311. The consumer group has committed the offset 643 for the topic before. Where will the consumer read from?

Options:

A.

it will crash

B.

offset 2311

C.

offset 643

D.

offset 45

Question 9

How much should be the heap size of a broker in a production setup on a machine with 256 GB of RAM, in PLAINTEXT mode?

Options:

A.

4 GB

B.

128 GB

C.

16 GB

D.

512 MB

Question 10

To transform data from a Kafka topic to another one, I should use

Options:

A.

Kafka Connect Sink

B.

Kafka Connect Source

C.

Consumer + Producer

D.

Kafka Streams

Question 11

Once sent to a topic, a message can be modified

Options:

A.

No

B.

Yes

Question 12

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.

Options:

A.

All the existing records will get rebalanced among the partitions to balance load

B.

New records with the same key will get written to the partition where old records with that key were written

C.

New records may get written to a different partition

D.

Old records will stay in their partitions

Question 13

A kafka topic has a replication factor of 3 and min.insync.replicas setting of 2. How many brokers can go down before a producer with acks=all can't produce?

Options:

A.

0

B.

2

C.

1

D.

3

Question 14

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)

Options:

A.

Client requests metadata for a topic

B.

Consumer reads message from a topic

C.

Client alters number of partitions of a topic

D.

Producer sends message to a topic

Question 15

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

Options:

A.

KSQL reads from the beginning of a topic, by default.

B.

KSQL reads from the end of a topic. This cannot be changed.

C.

Use KSQL CLI to set auto.offset.reset property to earliest

Question 16

A client connects to a broker in the cluster and sends a fetch request for a partition in a topic. It gets an exception Not Leader For Partition Exception in the response. How does client handle this situation?

Options:

A.

Get the Broker id from Zookeeper that is hosting the leader replica and send request to it

B.

Send metadata request to the same broker for the topic and select the broker hosting the leader replica

C.

Send metadata request to Zookeeper for the topic and select the broker hosting the leader replica

D.

Send fetch request to each Broker in the cluster

Question 17

Which of these joins does not require input topics to be sharing the same number of partitions?

Options:

A.

KStream-KTable join

B.

KStream-KStream join

C.

KStream-GlobalKTable

D.

KTable-KTable join

Question 18

If a topic has a replication factor of 3...

Options:

A.

3 replicas of the same data will live on 1 broker

B.

Each partition will live on 4 different brokers

C.

Each partition will live on 2 different brokers

D.

Each partition will live on 3 different brokers

Question 19

What client protocol is supported for the schema registry? (select two)

Options:

A.

HTTP

B.

HTTPS

C.

JDBC

D.

Websocket

E.

SASL

Question 20

In Java, Avro SpecificRecords classes are

Options:

A.

automatically generated from an Avro Schema

B.

written manually by the programmer

C.

automatically generated from an Avro Schema + a Maven / Gradle Plugin

Question 21

You want to perform table lookups against a KTable everytime a new record is received from the KStream. What is the output of KStream-KTable join?

Options:

A.

KTable

B.

GlobalKTable

C.

You choose between KStream or KTable

D.

Kstream

Question 22

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

Options:

A.

consumer.subscribe(Pattern.compile("topic\..*"));

B.

consumer.subscribe("topic.history"); consumer.subscribe("topic.sports"); consumer.subscribe("topic.politics");

C.

consumer.subscribePrefix("topic.");

D.

consumer.subscribe(Arrays.asList("topic.history", "topic.sports", "topic.politics"));

Page: 1 / 15
Total 150 questions