You are designing a code-migration assistant that converts legacy COBOL modules to a modern language. Stakeholders require high reliability and verifiable output. Which TWO architectural practices best support this requirement? (Choose two.)
Compiling and running generated code against known inputs converts the migration from a text task into an empirically verified one. Behavioral equivalence with the legacy module is the strongest available signal of correctness. This practice catches semantic errors that schema validation alone cannot, making it essential for a pipeline where stakeholders demand verifiable, high-reliability conversion results.
Why this answer
Verifiable migration needs machine-checkable artifacts and empirical proof of behavior. A fixed schema plus structured report makes each response auditable, while a compile-and-execute harness compares generated behavior against known legacy outputs. Together they catch both structural and semantic defects.
Creativity, monolithic responses, and silent omission of edge cases all reduce verifiability rather than strengthen it.
Exam trap
The trap here is treating schema validation as sufficient proof of correctness, when only executing the generated code against known inputs verifies behavioral equivalence.