Preparing your design workspace

Loading the problem and your latest saved attempt…

Cost-Aware Interactive Content Delivery

Design a private drawing-to-animal animation pipeline with reusable generic animations and fixed backgrounds, while controlling processing and delivery costs.

Problem statement

For this exercise, assume a mobile app lets a child upload a drawing, recognizes an animal, and presents an animated result against a background chosen from a fixed catalog. Families can also download a versioned interactive environment using that result.

Design upload, processing, publication and delivery while reducing compute, storage and bandwidth costs. Treat original drawings and any account-specific details as private.

Assume only pre-authored generic animal-animation templates and approved backgrounds contain no private drawing detail and may be reused across families. A retry must not create duplicate paid work, and clients must not receive incomplete or incompatible asset versions.

Model training, recognition accuracy, animation quality and on-device rendering are out of scope.

What to build

  1. A signed-in family can upload a drawing once, receive a stable job identifier, and observe processing status.
  2. The system recognizes an animal from an accepted drawing and asynchronously publishes its animated result with a selected fixed-catalog background, exposing success or a retryable failure.
  3. The client can securely start or resume downloading a published interactive environment whose manifest binds the selected background and compatible animation asset versions.

At scale

  • Assume about 2 million monthly active users and 100,000 new drawing uploads on a busy day.
  • Assume a drawing is at most 10 MB, while an interactive environment package may be about 100 MB and is downloaded far more often than drawings are uploaded.
  • Target a p95 status-read latency below 300 ms and begin a cached environment download within 1 second on a healthy network.
  • Keep source drawings and generated assets for 30 days unless the family deletes them sooner; shared environment packages are versioned and retained for active clients.