I failed one portion of the MA exam. Do I have to retake both sections

No, you can just retake the section of the exam that you failed. Make sure you schedule your retake before your educational certificate form expires. The retake fee will be $54.