58. How would you limit the impact of a flaw in a service that extracts text from untrusted documents?
HardApplication & data security
Technical
Show model answer
Run processing with only the permissions, data and network access required for extraction, separated from sensitive application credentials and other users' files. Keep parsers maintained and define explicit input-format and resource limits.
Use controlled job boundaries, timeouts, bounded output and reliable cleanup. Test failure and recovery behavior with authorized synthetic files. Isolation reduces consequences but does not prove every parser input safe or remove the need to validate extracted output.
What interviewers listen for
- Minimize parser capabilities and data
- Bound job resources and output
- Verify cleanup and failure recovery