Design Encrypted In-Trip Audio Recording for Safety Reports

Last updated: November 29, 2026

Quick Overview

Design the safety feature that lets a rider or driver record audio during a trip, keeps the recording encrypted on the device, and uploads it only when the user attaches it to a safety report.

Uber
System Design
Software Engineer
Uber
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the safety feature that lets a rider or driver record audio during a trip, keeps the recording encrypted on the device, and uploads it only when the user attaches it to a safety report.

Uber has offered audio recording as a safety tool in some markets, with strong privacy guarantees that nobody listens unless a report is filed. This tests media capture and upload under constraints: on-device encryption, key management that keeps Uber unable to read unsubmitted audio, resumable uploads, and strict access paths.

What the Interviewer Expects
  • Record in chunks and encrypt on device as it records
  • Use key wrapping so only the safety team's key service can decrypt submitted audio
  • Upload only on report, with resumable chunked uploads
  • Delete unsubmitted recordings automatically after a retention window
  • Provide an audited, need-to-know review path
Key Topics to Cover
Client-side encryption
Key wrapping
Chunked uploads
Retention
Access auditing
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you make sure the user cannot tamper with a recording before submitting it?
  • How do you handle a two-hour recording on a phone with little storage?
  • What if the app crashes mid-recording?
  • How do regional privacy laws change your design?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Start or stop recording from the safety toolkit during a trip. Audio stays on device, encrypted, and cannot be played back even by the user (prevents selective editing and protects the other party). I...

High-Level Design
  • Recorder: captures compressed audio (for example Opus at low bitrate) in 30 s chunks. Each recording gets a random symmetric data key; chunks are encrypted with AES-GCM as they are written.
  • **...

Submit Your Answer
Markdown supported