stratascratch
  • Interview Questions
    • Interview Loops
    • Analytical
    • Algorithm
    • ML Coding
    • Stats Coding
    • Visualization
    • Concept
  • Data Labs
    • Discover
    • Your Notebooks
  • Mock Interview
  • Learn
  • Blog
  • Pricing
  • About
Log in
  • Interview Questions

    • Interview Loops
    • Analytical
    • Algorithm
    • ML Coding
    • Stats Coding
    • Visualization
    • Concept
  • Data Labs

    • Discover
    • Your Notebooks
  • Mock Interview
  • Learn
  • Blog
  • Pricing
  • About
Log inSign up
Back to Mini Analyses
  1. Assignment
  2. Your Solution
  3. Solution
  4. Solutions from Users
  5. Discussion

Delivery Promise Misses

You must be logged in to download the datasets

Amazon: Find which fulfillment center is responsible for the region's missed delivery promises.

Assignment

The Midwest operations lead has had complaints from customer service about packages arriving after the promised date, and wants to know where the problem actually sits before raising it with the center managers. They have shared two exports from the delivery tracking system: one of shipments from the last two weeks, and one describing the fulfillment centers in the region.

Deliverables

  • The rate at which each fulfillment center misses its delivery promises.
  • Which center is causing the most missed promises for the region, and the reasoning that led you to that center rather than another.
  • A short closing report of your findings for the operations lead, including anything they should double-check before relying on the numbers.

Data Description

shipments.csv has one row per shipment record from the tracking system:

  • shipment_id
  • center_id - the fulfillment center that dispatched the shipment
  • promised_at - the delivery time promised to the customer
  • delivered_at - the delivery time reported by the carrier's tracking system
  • order_value_usd
  • carrier

fulfillment_centers.csv has one row per fulfillment center:

  • center_id
  • center_name
  • region
  • opened_on - the date the center began operating

Practicalities

You can solve this in Python, SQL, or a mix of both — StrataScratch notebooks support both languages in the same notebook.

Assume this data comes directly from the delivery tracking system and hasn't been cleaned, so review it carefully before relying on the numbers. When something looks off, work out what it is and decide how to handle it; when a definition or a final decision is genuinely ambiguous, choose a reasonable option and explain why. There's often more than one valid way to compute a result, so explain the approach you take and the reasoning behind your choices.

What's assessed: your results, and how clearly you explain what you see in the data and justify the choices you make.

This question is part of an interview loop

See the full interview round by round, with questions for each stage.

Amazon · Data ScientistAmazon · Data Analyst