Which two producer exceptions are examples of the class RetriableException? (Select two.)
A.
LeaderNotAvailableException
B.
RecordTooLargeException
C.
AuthorizationException
D.
NotEnoughReplicasException
The Answer Is:
A, D
This question includes an explanation.
Explanation:
RetriableException is a subclass of KafkaException, indicating transient issues thatmight succeed if retried. Examples include:
LeaderNotAvailableException: Happens when metadata is not yet propagated or leader election is in progress.
NotEnoughReplicasException: Happens when the number of in-sync replicas is insufficient. This can be transient if replicas come back online.
From theApache Kafka Java Client documentation:
"These exceptions (like LeaderNotAvailableException, NotEnoughReplicasException) are transient and the client will retry them automatically depending on retry configuration."
RecordTooLargeExceptionandAuthorizationExceptionarenon-retriableas they indicate client-side or permission errors.
[Reference:Apache Kafka Java Client API > org.apache.kafka.common.errors, ============]
CCDAK PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 60% Discount on All Products,
Use Coupon: "8w52ceb345"