Well that's what exams are for but they went out the window as soon as the virus arrived. Whatever system the govenment put in place would be worse but it didn't need to be this bad.
They could and probably should have done exactly what ended up happening and relying on prior data per student. Imperfect though it was at least it's about their attainment rather than an aggregate attainment.