The final ranking is determined by the marks obtained in the written exam and the interview. Service allocation depends on both rank and preferences given by the candidate.