Confluent
CCDAK · Question #212
CCDAK Question #212: Real Exam Question with Answer & Explanation
Sign in or unlock CCDAK to reveal the answer and full explanation for question #212. The question stem and answer options stay visible for context.
Question
Your application is consuming from a topic configured with a deserializer. The application needs to be resilient to badly formatted records (poison pills) so you surround the 'poll()' call with a try/catch block for 'RecordDeserializationException'. You need to log the bad record, skip it, and go on processing other records. Which action should you take in the catch block?
Options
- ALog the bad record, no other action needed.
- BLog the bad record and seek the consumer to the offset of the next record.
- CLog the bad record and call the consumer.skip() method.
- DThrow a runtime exception to trigger restart of the application.
Unlock CCDAK to see the answer
You've previewed enough free CCDAK questions. Unlock CCDAK for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.