DataDrivenDataDriven
LearnPracticeInterviewDiscussDailyJobs

Two Wallets

A medium Data Modeling interview practice problem on DataDriven. Write and execute real data modeling code with instant feedback.

Domain
Data Modeling
Difficulty
medium
Seniority
L5

Problem

We run an online education marketplace with two user types: students paying for access, and instructors paying for listing and promotion features. Both subscribe to different plan tiers and keep several payment methods on file, each stored as an opaque gateway token plus the card brand and last four digits for display, never full card numbers. Finance also needs to reconstruct how many subscribers we had in any past month, so design the data model behind billing.

Summary

Two user types. Multiple payment methods. One messy billing table.

Practice This Problem

Solve this Data Modeling problem with real code execution. DataDriven runs your solution and checks it automatically.

Related

  • All Practice Problems
  • Mock Interview Mode
  • Data Modeling Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons