Whenever you're ready, walk me through how you'd approach this.
Describe a time you had to refactor a legacy system; what was your process for ensuring stability?
Use a specific project from your experience. Explain how you assessed the legacy system, defined the refactoring scope, coordinated with affected stakeholders, and maintained confidence in production behavior. Cover your testing, rollout, monitoring, rollback, and communication approach, including any trade-offs or risks you managed.