Token Rate Limiter: Debugging and Testing
Debug and fix a broken token-based rate limiter, then analyze a proposed code change that passes existing tests but introduces a regression, and write a new test case that exposes the incorrect behavior.
Asked at:
Palo Alto Networks
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late October, 2026
Palo Alto Networks
Junior
Debug an existing token-based rate limiter using provided tests. Identify and fix the underlying issue, then review a proposed code change (diff) that passes all existing tests but introduces incorrect behavior. Explain the regression and write a new test case that exposes the issue and fails with the proposed change.
Your account is free and you can post anonymously if you choose.