Revoked Tokens by Scope
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L4
Problem
The trust and safety pipeline tracks revoked API tokens by scope. For December 2026, count revoked tokens per scope. Include tokens revoked before December whose expiration extends into at least part of the month. Tokens with no expiration are considered permanently revoked. Match status case-insensitively. Return the scope and blocked count.
Summary
Banned tokens, sorted by what they had access to.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.