Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Confluent CCDAK Dumps

Page: 1 / 6
Total 150 questions

Confluent Certified Developer for Apache Kafka Certification Examination Questions and Answers

Question 1

Suppose you have 6 brokers and you decide to create a topic with 10 partitions and a replication factor of 3. The brokers 0 and 1 are on rack A, the brokers 2 and 3 are on rack B, and the brokers 4 and 5 are on rack C. If the leader for partition 0 is on broker 4, and the first replica is on broker 2, which broker can host the last replica? (select two)

Options:

A.

6

B.

1

C.

2

D.

5

E.

0

F.

3

Question 2

is KSQL ANSI SQL compliant?

Options:

A.

Yes

B.

No

Question 3

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 4

You have a consumer group of 12 consumers and when a consumer gets killed by the process management system, rather abruptly, it does not trigger a graceful shutdown of your consumer. Therefore, it takes up to 10 seconds for a rebalance to happen. The business would like to have a 3 seconds rebalance time. What should you do? (select two)

Options:

A.

Increase session.timeout.ms

B.

Decrease session.timeout.ms

C.

Increase heartbeat.interval.ms

D.

decrease max.poll.interval.ms

E.

increase max.poll.interval.ms

F.

Decrease heartbeat.interval.ms

Question 5

To allow consumers in a group to resume at the previously committed offset, I need to set the proper value for...

Options:

A.

value.deserializer

B.

auto.offset.resets

C.

group.id

D.

enable.auto.commit

Question 6

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"));

Question 7

The exactly once guarantee in the Kafka Streams is for which flow of data?

Options:

A.

Kafka => Kafka

B.

Kafka => External

C.

External => Kafka

Question 8

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

Options:

A.

Compression will be increased

B.

Throughput will be decreased

C.

It will force all brokers in Kafka to acknowledge the producerRecord

D.

Batching will be increased

Question 9

A consumer application is using KafkaAvroDeserializer to deserialize Avro messages. What happens if message schema is not present in AvroDeserializer local cache?

Options:

A.

Throws SerializationException

B.

Fails silently

C.

Throws DeserializationException

D.

Fetches schema from Schema Registry

Question 10

A Zookeeper ensemble contains 3 servers. Over which ports the members of the ensemble should be able to communicate in default configuration? (select three)

Options:

A.

2181

B.

3888

C.

443

D.

2888

E.

9092

F.

80

Question 11

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 12

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 13

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 14

A consumer sends a request to commit offset 2000. There is a temporary communication problem, so the broker never gets the request and therefore never responds. Meanwhile, the consumer processed another batch and successfully committed offset 3000. What should you do?

Options:

A.

Add a new consumer to the group

B.

Use the kafka-consumer-group command to manually commit the offsets 2000 for the consumer group

C.

Restart the consumer

D.

Nothing

Question 15

What are the requirements for a Kafka broker to connect to a Zookeeper ensemble? (select two)

Options:

A.

Unique value for each broker's zookeeper.connect parameter

B.

Unique values for each broker's broker.id parameter

C.

All the brokers must share the same broker.id

D.

All the brokers must share the same zookeeper.connect parameter

Question 16

If you enable an SSL endpoint in Kafka, what feature of Kafka will be lost?

Options:

A.

Cross-cluster mirroring

B.

Support for Avro format

C.

Zero copy

D.

Exactly-once delivery

Question 17

To enhance compression, I can increase the chances of batching by using

Options:

A.

acks=all

B.

linger.ms=20

C.

batch.size=65536

D.

max.message.size=10MB

Question 18

Which KSQL queries write to Kafka?

Options:

A.

COUNT and JOIN

B.

SHOW STREAMS and EXPLAIN statements

C.

CREATE STREAM WITH and CREATE TABLE WITH

D.

CREATE STREAM AS SELECT and CREATE TABLE AS SELECT

Question 19

How can you gracefully make a Kafka consumer to stop immediately polling data from Kafka and gracefully shut down a consumer application?

Options:

A.

Call consumer.wakeUp() and catch a WakeUpException

B.

Call consumer.poll() in another thread

C.

Kill the consumer thread

Question 20

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

Options:

A.

offset 2311

B.

offset 0

C.

offset 45

D.

it will crash

Question 21

A producer application was sending messages to a partition with a replication factor of 2 by connecting to Broker 1 that was hosting partition leader. If the Broker 1 goes down, what will happen?

Options:

A.

The producer will automatically produce to the broker that has been elected leader

B.

The topic will be unavailable

C.

The producer will stop working

Question 22

I am producing Avro data on my Kafka cluster that is integrated with the Confluent Schema Registry. After a schema change that is incompatible, I know my data will be rejected. Which component will reject the data?

Options:

A.

The Confluent Schema Registry

B.

The Kafka Broker

C.

The Kafka Producer itself

D.

Zookeeper

Page: 1 / 6
Total 150 questions