Preview

Learn data engineering from the fundamentals

Lesson3of 25Spark course, 5 paths

Short lessons, one figure per idea. This one is lesson 3 of the Spark course and takes 15 minutes.

How a Spark job is built and run: driver, executors, stages, the optimizer and memory.

What happens inside shuffles, aggregations and joins, and how skew breaks them.

Reading the plan and stage metrics to find, fix and tune slow or failing jobs.

What Python costs on top of the JVM and how Spark Connect splits client from server.

Streams as small batch jobs: event time, watermarks, state, checkpoints and exactly-once.

Finish all five paths and the Spark course badge is yours.

40 questions, closed book. Pass it and your badge gets its crown.

Your name on it, and a link anyone can open to verify it.

Join 601 learners to learn the fundamentals once, then scale them to whatever’s next.

Spark, Parquet, data modeling, system design and more.

You saw the whole road.

Join 601 learners to learn the fundamentals once, then scale them to whatever’s next.

320 SQL and PySpark DataFrame problems

  1. Vivek56 pts
  2. Đức Anh50 pts
  3. NamUong44 pts
  • Referral Signup CountsEasy · 2 pts
  • Release Held PaymentsMedium · 3 pts
  • Cloud Cost SubtotalsHard · 4 pts
  • Last Touch Per LeadMedium · 3 pts
  • Customers Above Average SpendEasy · 2 pts
  • Pulse Survey Response CountsMedium · 3 pts
  • Ad Spend Split by TagHard · 4 pts
  • Typical Task DurationMedium · 3 pts
  • Failed Runs To PageEasy · 2 pts
  • Fleet Fuel EfficiencyMedium · 3 pts
  • Events To Overlapping SessionsHard · 4 pts
  • Ship-To CountryEasy · 2 pts
  • First And Last ScanMedium · 3 pts
  • FIFO Cost Of SalesHard · 4 pts
  • Weekly Seat GrowthMedium · 3 pts
  • Ad Click-Through RateEasy · 2 pts
  • Store Repeat Customer RateMedium · 3 pts
  • Lanes Behind Most CostHard · 4 pts
  • Work Pattern LabelsEasy · 2 pts
  • Recent Failure ReasonsMedium · 3 pts
  • Silent Sensors Since CutoffMedium · 3 pts
  • Agent Satisfaction ScoresEasy · 2 pts
  • Merchant Revenue Month Over MonthHard · 4 pts
  • Channel Revenue And ParcelsMedium · 3 pts
  • Merchant Payment Status CountsEasy · 2 pts
  • Delivery Zone By PostcodeMedium · 3 pts
  • Plan On Every Usage RowHard · 4 pts
  • Similar Price ListingsMedium · 3 pts
  • Warehouses Running LateEasy · 2 pts
  • Last Reply Before CloseMedium · 3 pts
  • Truck Loads by StopHard · 4 pts
  • Active User DaysEasy · 2 pts
  • Stock For Every PairMedium · 3 pts
  • VM Minutes Per DayHard · 4 pts
  • Dispatch Board Trip DetailsMedium · 3 pts
  • Products With Top ReviewsEasy · 2 pts
  • Orders Followed by a TicketMedium · 3 pts
  • Delivery Business DaysHard · 4 pts
  • Received Shipments Per WarehouseEasy · 2 pts
  • Costliest Queries Per DayMedium · 3 pts
  • Store Delivery WavesMedium · 3 pts
  • Devices Sharing A GatewayEasy · 2 pts
  • Golden Customer RecordHard · 4 pts
  • Seat Usage QuartilesMedium · 3 pts
  • Merged Ticket ParentsEasy · 2 pts
  • Feature Rank MovementMedium · 3 pts
  • Alert Pages After DebounceHard · 4 pts
  • Noisiest Devices Per SiteMedium · 3 pts
  • Payments with Merchant NamesEasy · 2 pts
  • Ledger Balance After Each EntryMedium · 3 pts
  • Link Duplicate ContactsHard · 4 pts
  • API Calls By Current PlanEasy · 2 pts
  • Rolling Weekly Cloud SpendMedium · 3 pts
  • Degraded Service PeriodsHard · 4 pts
  • Energy Use Between ReadingsMedium · 3 pts
  • Delivery Fee BandsEasy · 2 pts
  • SKUs Stocked To DateMedium · 3 pts
  • Device Downtime WindowsHard · 4 pts
  • Conversion Rank Per CategoryEasy · 2 pts
  • Ticket Status At Day EndMedium · 3 pts
  • Budget Reached DayMedium · 3 pts
  • Catalog Page NumbersEasy · 2 pts
  • Overspeed EpisodesHard · 4 pts
  • Tickets Per Hub Local DayMedium · 3 pts
  • Ticket Queue PositionEasy · 2 pts
  • Successful Runs Per DayMedium · 3 pts
  • Peak Concurrent TasksHard · 4 pts
  • Campaign Clicks by Day PartMedium · 3 pts
  • Courier On-Time BoardEasy · 2 pts
  • Cloud Cost By Fiscal QuarterMedium · 3 pts
  • Plan History From SnapshotsHard · 4 pts
  • Time In Each StatusEasy · 2 pts
  • Month End BalancesMedium · 3 pts
  • Role History From Change LogHard · 4 pts
  • Current Customer RowsMedium · 3 pts
  • Daily Ticket BacklogEasy · 2 pts
  • Payable Timesheet Per WeekMedium · 3 pts
  • Apply Product Batch To SCD2Hard · 4 pts
  • Price Index From First DayEasy · 2 pts
  • One Signup Per EmailMedium · 3 pts
  • Settlements From Reloaded FilesMedium · 3 pts
  • March Orders Per CustomerEasy · 2 pts
  • Backdated Segment FixHard · 4 pts
  • Drop Double ClicksMedium · 3 pts
  • Weekly Ticket LoadEasy · 2 pts
  • Active After Soft DeletesMedium · 3 pts
  • Next Incremental BatchHard · 4 pts
  • App Sessions Per UserMedium · 3 pts
  • Transit Days Per ShipmentEasy · 2 pts
  • Longest Reporting StreakMedium · 3 pts
  • Days To RecomputeHard · 4 pts
  • Next Billing DateEasy · 2 pts
  • Error Entries From LogsMedium · 3 pts
  • Subscriptions After The UpsertHard · 4 pts
  • Missing Invoice NumbersMedium · 3 pts
  • Campaign Months BilledEasy · 2 pts
  • Free Slots For Long PalletsMedium · 3 pts
  • Daily Totals From ChangesHard · 4 pts
  • First Landing Of Each ClickEasy · 2 pts
  • Machine Runs From EventsMedium · 3 pts
  • Tiers Held In Promo WeekMedium · 3 pts
  • Carrier Days Per TierEasy · 2 pts
  • Net Change Per KeyHard · 4 pts
  • Compress Department HistoryMedium · 3 pts
  • Order Lines With Product KeysEasy · 2 pts
  • Price List VersionsMedium · 3 pts
  • Data Checks From A TableHard · 4 pts
  • Region Name on Sale DayMedium · 3 pts
  • Next Watermark Per GatewayEasy · 2 pts
  • Grade History From Audit LogMedium · 3 pts
  • Ledger Against The BankHard · 4 pts
  • Duplicate Order IdsEasy · 2 pts
  • Age Band HistoryMedium · 3 pts
  • Orders for Unsellable ProductsHard · 4 pts
  • One Plan History TableMedium · 3 pts
  • Allocation Rules To FixEasy · 2 pts
  • Totals As PublishedMedium · 3 pts
  • Spend Share Against BaselineHard · 4 pts
  • Stale Tables CheckEasy · 2 pts
  • Notes To Pull On SyncMedium · 3 pts
  • Cost Table After OverwriteMedium · 3 pts
  • Shipment Milestone CheckEasy · 2 pts
  • Parse Bank Statement LinesHard · 4 pts
  • Parcels From Unknown SitesMedium · 3 pts
  • Order Reference From MessagesEasy · 2 pts
  • Invalid Product BarcodesMedium · 3 pts
  • Settings After Merge PatchesHard · 4 pts
  • Sensor Reading OutliersMedium · 3 pts
  • Storage Bytes By ExtensionEasy · 2 pts
  • Cash Amount Precision CheckMedium · 3 pts
  • Payload Key Drift LogHard · 4 pts
  • Beta Users Outside StaffEasy · 2 pts
  • Payment Webhook FieldsMedium · 3 pts
  • Trial Conversion by WeekHard · 4 pts
  • Checkout Lines From JSONMedium · 3 pts
  • Masked Card NumbersEasy · 2 pts
  • Clicks Per Campaign TagMedium · 3 pts
  • Weekly Cohort RetentionHard · 4 pts
  • Ride Acceptance RateEasy · 2 pts
  • Daily Checkout FunnelMedium · 3 pts
  • Chargeback Rate by Sale MonthMedium · 3 pts
  • Team Depth In The OrgEasy · 2 pts
  • Campaign Reach And FrequencyHard · 4 pts
  • First Response SLA RateMedium · 3 pts
  • Daily Orders From Two FeedsEasy · 2 pts
  • Monthly MRR MovementsMedium · 3 pts
  • On-Time In-Full RateHard · 4 pts
  • Error Budget RemainingMedium · 3 pts
  • Advertisers On Both PlatformsEasy · 2 pts
  • Management Chain ExportMedium · 3 pts
  • Upstream Tables Of A ReportHard · 4 pts
  • Daily Takings By MethodEasy · 2 pts
  • Final Agent After ReassignmentMedium · 3 pts
  • Base Parts Per KitHard · 4 pts
  • Rows Lost In The ReplicaMedium · 3 pts
  • Pipeline Status BoardEasy · 2 pts
  • Cost Columns To RowsMedium · 3 pts
  • Services On Dependency CyclesHard · 4 pts
  • Floor Access ListEasy · 2 pts
  • Carrier Service CrosstabMedium · 3 pts
PostgreSQLPostgreSQL 18, read-only tables, 5-second limit
SELECT COUNT(*) AS signups,
       COUNT(referral_code) AS with_code,
       COUNT(DISTINCT referral_code) AS codes
FROM signups

Run on Example checks your code against Example 1. Submit checks it against all hidden cases.

Passed. Example 1 matches.

Your output on Example 1
signupswith_codecodes
642
Example 1 input: signups
user_idnamereferral_code
1MaiSPRING
2TomasNULL
3PriyaFRIEND
4KwameSPRING
5ElenaNULL
6RaviSPRING

Open vutr on a laptop

This early version needs a bigger screen. Open this link on your laptop to play.