Design an Audit Evidence Ingestion and Extraction Platform
Last updated: November 29, 2026
Quick Overview
Design a platform where audit clients upload evidence (invoices, bank confirmations, contracts, ERP extracts) for thousands of engagements, the system extracts key fields with OCR and ML, links them to the sampled transactions they support, and keeps a tamper-evident trail for regulators.
PwC
November 29, 20260
0
0 solved
Design a platform where audit clients upload evidence (invoices, bank confirmations, contracts, ERP extracts) for thousands of engagements, the system extracts key fields with OCR and ML, links them to the sampled transactions they support, and keeps a tamper-evident trail for regulators.
PwC runs client document exchange and audit workflow tooling across a huge engagement base, and evidence handling is constrained by confidentiality, independence and PCAOB inspection requirements. The interviewer wants to see tenant isolation, an asynchronous extraction pipeline with human review, and auditability designed in from the start rather than added later.
What the Interviewer Expects
- Isolate data per client and engagement, including encryption keys
- Use an asynchronous pipeline for virus scan, OCR, classification and field extraction
- Route low-confidence extractions to human review
- Link extracted fields to the sampled ledger items they support
- Keep immutable, versioned evidence with an append-only audit log
- Plan for peak load around year-end busy season
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How would you prove to an inspector that a document was not altered after sign-off?
- How do you handle a client uploading 200,000 invoices at once?
- How would you retire data at the end of the retention period while honoring legal holds?
- How would you measure and improve extraction accuracy over time?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: secure upload by client users, request lists tied to engagement samples, extraction of fields (vendor, date, amount, invoice number, bank balance), matching to sampled transactions, review...
High-Level Design
Upload service issues short-lived signed URLs into object storage partitioned by client/engagement, encrypted with a per-client key in a KMS. An upload event goes on a queue. Workers run malware sca...