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

No, you can just retake the one section that you failed. Make sure your testing eligibility is still valid. Wait 24 hours; then you can go online to the PSI website to schedule your retake. The exam fee for taking just one section of the test is $55.