Practice · 2 of 2
DLQ promotion rule
CHALLENGE
Difficulty: advanced+25 XP
A job lands in the dead-letter queue when failures reach the threshold. Implement static (bool dead, int failures) OnFailure(int currentFailures, int threshold, int maxAttempts) — increments failures; dead = failures ≥ threshold OR attempts exhausted (maxAttempts), and failures saturate at threshold (never grow past it once dead).
Press Submit to check your solution.
Back to lesson: Practice: Production drills