Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan
MongoDB Use Cases
00:00
5 left

MongoDB Use Cases

EasySQL · PostgreSQL

Problem

What are the use cases of MongoDB, and why did you use MongoDB in your project?

For the SQL portion, use the supplied workload and database-choice records to identify projects that selected MongoDB and classify the primary reason. Include projects with no matching workload detail.

Output

  1. One row per project that selected MongoDB.
  2. Columns: project_id, use_case, and selection_reason.
  3. Classify each use case from workload characteristics, preserve the recorded reason, and sort by project_id ascending.

Schema

project_workloads
ColumnTypeDescription
workload_idPKINTUnique workload record identifier
project_idVARCHAR(20)Project identifier
nested_dataBOOLEANWhether the workload contains nested data
schema_change_rateVARCHAR(20)Frequency of schema changes
event_volumeVARCHAR(20)Relative volume of events or records
project_database_choices
ColumnTypeDescription
choice_idPKINTUnique database-choice identifier
project_idVARCHAR(20)Project identifier
chosen_databaseVARCHAR(30)Database selected for the project
selection_reasonVARCHAR(160)Recorded reason for the database selection
Tablesproject_workloadsproject_database_choices
Interviewer

Your question is MongoDB Use Cases. Start with the requirements and the two tables in the Question tab.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.
CodePostgreSQL
Sign up free to run your codeLog inLn 1
Run your query to see results here.