Duplicated User Event Messages
A medium SQL mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L3
Interview Prompt
We are building a load-testing replay tool that pushes twice the normal volume from the 'user-events' topic. Emit each qualifying row exactly twice as identical copies showing the message ID, topic, partition key, payload, produced timestamp, and consumer, with the result ordered by message ID.
Summary
Duplicated messages from the alerts topic.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your sql solution with real code execution
- Get instant feedback and a hire/no-hire decision