My program had an exam after 2 years. You could fail completely, do well enough to leave with a MS, or fully pass and continue to a PhD.