I passed the written part of the YPP examination but failed the oral examination. Do I need to repeat both parts of the examination at a subsequent examination?

Yes, you will have to go through the entire examination process again, starting with the submission of your application. The YPP examination is comprised of both a written and oral examination, and results from one examination year do not carry over to another examination year.