06
A background job keeps failing on specific inputs. How would you investigate it?
Tap to write answer
0 words | 0 charsPress Enter ↵ to reveal
Your Attempt
0 wordsRefined Model Answer
ReferenceI would start by reproducing the failure with a minimal input and checking logs, stack traces, and job payloads. Then I would decide whether the problem is bad data, a code bug, a race condition, or a resource limit. The reason I start there is that worker failures often come from one edge case rather than the whole pipeline design. I would also think about retry limits and whether the failed job should move to a dead-letter queue. Once I know the root cause, I would add validation or safer error handling.