The interview problem
Design an edge-camera sampling policy under a strict upload budget while keeping an unbiased evaluation stream.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Assume approved industrial imagery and intermittent connectivity. Run a lightweight model on device, reserve a random audit sample and allocate remaining bytes to uncertain or diverse cases. Deduplicate adjacent frames and attach selection probabilities and device/model versions. Separate training acquisition from the audit stream. Server ingestion checks retention policy before labeling; stale buffered images can expire locally.
2. Trace the design or derivation
Reserve random audit → score remaining images → diversify under bytes → queue → expire or upload
Record the sampling decision before upload, including failures, so network loss does not silently change the evaluated population. A device with poor connectivity may contribute fewer difficult cases. Use known inclusion probabilities only when their assumptions hold; otherwise state which devices and periods the audit actually represents.
3. Calculate the example
With 10,000 images/day at 200 KB each, uploading everything costs 2 GB/day. A 5% random audit uses 100 MB; another 500 selected images use 100 MB, giving 200 MB total before protocol overhead, assuming disjoint sets.
4. Failure cases and trade-offs
Uncertainty-only sampling misses confidently wrong cases and biases performance estimates. Compression saves bytes but may erase small defects. Reserve the random stream even when active-learning demand spikes, and measure the byte budget after encoding rather than by image count alone.
5. Validation, follow-ups and self-review
Replay a day with known labels and compare upload policies at equal bytes. Follow-up: how do you handle devices with different image sizes? Self-review: preserve evaluation representativeness and an explicit privacy/expiry boundary.
Sources and related practice
Technical reference: arxiv.org — Diversity-based active sample selection; random audit and upload accounting are original additions.
Source publication/update: Submitted August 1, 2017. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Design an active-learning annotation loop; Diagnose selection bias in logged recommendation data.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.