Whenever you're ready, walk me through how you'd approach this.
How would you refactor a monolithic model inference script into a distributed, modular architecture?
Explain how you would separate preprocessing, model execution, postprocessing, orchestration, and observability while preserving correctness and predictable latency. Cover deployment boundaries, online versus batch inference, scaling, testing, rollout, failure handling, and training-serving consistency.