Was this discussed before marriage (that she'd appear for exam and may work away from her matrimonial town)?
Discuss and come to a conclusion on what you both want.
If she's adamant on her exam and going from you, take preemptive legal action (consult a lawyer for this).
No point in living separate in the fear of law or in the name of women empowerment.