DataDriven
LearnPracticeInterviewDiscussDailyJobs

Who Holds Attention

A hard spark interview practice problem on DataDriven. Write and execute real spark code with instant grading.

Domain
spark
Difficulty
hard
Seniority
mid

Problem

We run a short-video platform where the catalog of videos is small but views pile up fast, and we want to know which creators actually hold attention rather than just publish volume. Pair each view with its video's creator and, for each creator, report the total seconds watched and the number of views, keeping only creators whose videos drew more than 1000 total seconds of watch time. List the most-watched creators first.

Practice This Problem

Solve this spark problem with real code execution. DataDriven runs your solution and grades it automatically.

Related

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