Kafka - Event-Driven ArchitectureWhich scenario best describes when a message should be sent to a Dead Letter Queue in Kafka?AWhen the message is older than a certain timestamp.BWhen the message is successfully processed.CWhen the message is consumed multiple times without error.DWhen the message format is invalid and cannot be parsed.Check Answer
Step-by-Step SolutionSolution:Step 1: Identify error conditions for DLQ usageMessages that cannot be processed due to format errors or other failures are candidates for DLQ to avoid blocking the main topic.Step 2: Eliminate non-error scenariosSuccessful processing or repeated consumption without error does not require DLQ. Age alone is not a reason for DLQ.Final Answer:When the message format is invalid and cannot be parsed. -> Option DQuick Check:DLQ triggers on processing errors = true [OK]Quick Trick: Send only unprocessable messages to DLQ [OK]Common Mistakes:MISTAKESSending successfully processed messages to DLQSending messages based on age aloneConfusing repeated consumption with errors
Master "Event-Driven Architecture" in Kafka9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kafka Quizzes Advanced Stream Processing - Why advanced patterns handle complex flows - Quiz 7medium Advanced Stream Processing - Exactly-once stream processing - Quiz 15hard Event-Driven Architecture - Why event-driven scales applications - Quiz 12easy Kubernetes and Cloud Deployment - Amazon MSK - Quiz 13medium Kubernetes and Cloud Deployment - Kafka on Kubernetes (Strimzi) - Quiz 7medium Kubernetes and Cloud Deployment - Why cloud-native deployment matters - Quiz 6medium Multi-Datacenter and Replication - Geo-replication strategies - Quiz 14medium Performance Tuning - Why tuning handles production load - Quiz 3easy Security - SSL/TLS encryption - Quiz 11easy Security - SSL/TLS encryption - Quiz 4medium