Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

Confluent Certified Developer for Apache Kafka Certification Examination CCDAK Question # 25 Topic 3 Discussion

Confluent Certified Developer for Apache Kafka Certification Examination CCDAK Question # 25 Topic 3 Discussion

CCDAK Exam Topic 3 Question 25 Discussion:
Question #: 25
Topic #: 3

(Your application consumes from a topic configured with a deserializer.

You want the application to be resilient to badly formatted records (poison pills).

You surround the poll() call with a try/catch block for RecordDeserializationException.

You need to log the bad record, skip it, and continue processing other records.

Which action should you take in the catch block?)


A.

Log the bad record and seek the consumer to the offset of the next record.


B.

Log the bad record and call consumer.skip() method.


C.

Throw a runtime exception to trigger a restart of the application.


D.

Log the bad record; no other action is needed.


Get Premium CCDAK Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.