Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > Confluent > Confluent Certifications > CCDAK > CCDAK Online Practice Questions and Answers

CCDAK Online Practice Questions and Answers

Questions 4

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

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

Buy Now

Correct Answer: C

Questions 5

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

A. Call consumer.wakeUp() and catch a WakeUpException

B. Call consumer.poll() in another thread

C. Kill the consumer thread

Buy Now

Correct Answer: A

See https://stackoverflow.com/a/37748336/3019499

Questions 6

You are doing complex calculations using a machine learning framework on records fetched from a Kafka topic. It takes more about 6 minutes to process a record batch, and the consumer enters rebalances even though it's still running. How can you improve this scenario?

A. Increase max.poll.interval.ms to 600000

B. Increase heartbeat.interval.ms to 600000

C. Increase session.timeout.ms to 600000

D. Add consumers to the consumer group and kill them right away

Buy Now

Correct Answer: A

Here, we need to change the setting max.poll.interval.ms (default 300000) to its double in order to tell Kafka a consumer should be considered dead if the consumer only if it hasn't called the .poll() method in 10 minutes instead of 5.

Questions 7

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?

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

Buy Now

Correct Answer: B

In case the consumer has the wrong leader of a partition, it will issue a metadata request. The Metadata request can be handled by any node, so clients know afterwards which broker are the designated leader for the topic partitions. Produce and consume requests can only be sent to the node hosting partition leader.

Questions 8

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

A. Throws SerializationException

B. Fails silently

C. Throws DeserializationException

D. Fetches schema from Schema Registry

Buy Now

Correct Answer: D

First local cache is checked for the message schema. In case of cache miss, schema is pulled from the schema registry. An exception will be thrown in the Schema Registry does not have the schema (which should never happen if you set it up properly)

Questions 9

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?

A. it will crash

B. offset 2311

C. offset 643

D. offset 45

Buy Now

Correct Answer: C

The offsets are already committed for this consumer group and topic partition, so the property auto.offset.reset is ignored

Questions 10

Which of the following is not an Avro primitive type?

A. string

B. long

C. int

D. date

E. null

Buy Now

Correct Answer: D

date is a logical type

Questions 11

A Zookeeper configuration has tickTime of 2000, initLimit of 20 and syncLimit of 5. What's the timeout value for followers to connect to Zookeeper?

A. 20 sec

B. 10 sec

C. 2000 ms

D. 40 sec

Buy Now

Correct Answer: D

tick time is 2000 ms, and initLimit is the config taken into account when establishing a connection to Zookeeper, so the answer is 2000 * 20 = 40000 ms = 40s

Questions 12

We want the average of all events in every five-minute window updated every minute. What kind of Kafka Streams window will be required on the stream?

A. Session window

B. Tumbling window

C. Sliding window

D. Hopping window

Buy Now

Correct Answer: D

A hopping window is defined by two propertiesthe window's size and its advance interval (aka "hop"), e.g., a hopping window with a size 5 minutes and an advance interval of 1 minute.

Questions 13

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

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

Buy Now

Correct Answer: AD

Multiple topics can be passed as a list or regex pattern.

Exam Code: CCDAK
Exam Name: Confluent Certified Developer for Apache Kafka Certification Examination
Last Update: Jul 05, 2026
Questions: 150

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2026 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.