Your question is Refactor Legacy With Stability. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
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.