An architect wants to stabilize a high-risk COBOL subsystem before planning full extraction. Which refactoring pattern is most appropriate as an initial step?
Select an answer to reveal the explanation.
Short Explanation
Wrap the COBOL subsystem with a stable interface while it stays in place. That gives you a lower-risk way to stabilize it and validate the contract before full extraction.
Full Explanation
Encapsulate wraps the subsystem with a stable interface while it remains in place, lowering risk and letting the team validate the contract before extraction. Immediate service extraction, full Java transformation, and dead-code removal all change or bypass the interface before stabilization. This appears on mainframe exams.