← Confluent Interview Insights
The 7-day filter tripped me up more than I expected.
Start by clarifying the schema and defining 'signed-up users' and 'completed' (reaching max step). Then write a query that joins users to their tutorial events, filters for completion within 7 days of signup, and calculates the percentage per variant using conditional aggregation.
Pro tip: Always confirm the definition of 'signed-up users'—it might mean users who started the tutorial, not just registered. Also, consider using a subquery to get the max step per variant to avoid hardcoding.
Ask about table structures, column names, and what 'signed-up users' and 'completed' mean. Confirm if 'maximum step' is per variant or global.
Determine how users are assigned to variants (e.g., via a variant column in users or events). Filter to signed-up users only.
Join users to tutorial events, filter events where step equals the maximum step for that variant, and event timestamp is within 7 days of signup.
Use conditional aggregation: count distinct users who completed divided by total signed-up users per variant, multiplied by 100.
Consider users with no events, multiple completions, or timezone issues. Validate results with a small sample.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.